Adjust check_for_isn_and_int8_passing_mismatch() so it is called for all
[pgsql-fdw.git] / configure
blobbd9b347f25ce7cc45ce277d73581af12823bbc3b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1devel.
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, 2007, 2008 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-2010, 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 # Pre-4.2 versions of Zsh do 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 as_nl='
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87 as_unset=unset
88 else
89 as_unset=false
93 # IFS
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" "" $as_nl"
100 # Find who we are. Look in the path if we contain no directory separator.
101 case $0 in
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117 as_myself=$0
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
141 as_expr=expr
142 else
143 as_expr=false
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147 as_basename=basename
148 else
149 as_basename=false
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
160 s//\1/
163 /^X\/\(\/\/\)$/{
164 s//\1/
167 /^X\/\(\/\).*/{
168 s//\1/
171 s/.*/./; q'`
173 # CDPATH.
174 $as_unset CDPATH
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
179 as_have_required=yes
180 else
181 as_have_required=no
184 if test $as_have_required = yes && (eval ":
185 (as_func_return () {
186 (exit \$1)
188 as_func_success () {
189 as_func_return 0
191 as_func_failure () {
192 as_func_return 1
194 as_func_ret_success () {
195 return 0
197 as_func_ret_failure () {
198 return 1
201 exitcode=0
202 if as_func_success; then
204 else
205 exitcode=1
206 echo as_func_success failed.
209 if as_func_failure; then
210 exitcode=1
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
216 else
217 exitcode=1
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
222 exitcode=1
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 else
229 exitcode=1
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
236 as_lineno_1=\$LINENO
237 as_lineno_2=\$LINENO
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
242 else
243 as_candidate_shells=
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
247 IFS=$as_save_IFS
248 test -z "$as_dir" && as_dir=.
249 case $as_dir in
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253 done;;
254 esac
255 done
256 IFS=$as_save_IFS
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 _ASEOF
280 }; then
281 CONFIG_SHELL=$as_shell
282 as_have_required=yes
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 emulate sh
286 NULLCMD=:
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
290 setopt NO_GLOB_SUBST
291 else
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
294 esac
300 (as_func_return () {
301 (exit $1)
303 as_func_success () {
304 as_func_return 0
306 as_func_failure () {
307 as_func_return 1
309 as_func_ret_success () {
310 return 0
312 as_func_ret_failure () {
313 return 1
316 exitcode=0
317 if as_func_success; then
319 else
320 exitcode=1
321 echo as_func_success failed.
324 if as_func_failure; then
325 exitcode=1
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
331 else
332 exitcode=1
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
337 exitcode=1
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 else
344 exitcode=1
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
351 as_lineno_1=$LINENO
352 as_lineno_2=$LINENO
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
356 _ASEOF
357 }; then
358 break
363 done
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 done
369 export CONFIG_SHELL
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
390 (exit \$1)
392 as_func_success () {
393 as_func_return 0
395 as_func_failure () {
396 as_func_return 1
398 as_func_ret_success () {
399 return 0
401 as_func_ret_failure () {
402 return 1
405 exitcode=0
406 if as_func_success; then
408 else
409 exitcode=1
410 echo as_func_success failed.
413 if as_func_failure; then
414 exitcode=1
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
420 else
421 exitcode=1
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
426 exitcode=1
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 else
433 exitcode=1
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
447 as_lineno_1=$LINENO
448 as_lineno_2=$LINENO
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
458 # case at line end.
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
462 sed -n '
464 /[$]LINENO/=
465 ' <$as_myself |
466 sed '
467 s/[$]LINENO.*/&-/
468 t lineno
470 :lineno
472 :loop
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474 t loop
475 s/-\n.*//
476 ' >$as_me.lineno &&
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
484 . "./$as_me.lineno"
485 # Exit status is that of the last command.
486 exit
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491 as_dirname=dirname
492 else
493 as_dirname=false
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499 case `echo 'x\c'` in
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
501 *) ECHO_C='\c';;
502 esac;;
504 ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
508 as_expr=expr
509 else
510 as_expr=false
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -p'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -p'
534 else
535 as_ln_s='cp -p'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p=:
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 if test -x / >/dev/null 2>&1; then
548 as_test_x='test -x'
549 else
550 if ls -dL / >/dev/null 2>&1; then
551 as_ls_L_option=L
552 else
553 as_ls_L_option=
555 as_test_x='
556 eval sh -c '\''
557 if test -d "$1"; then
558 test -d "$1/.";
559 else
560 case $1 in
561 -*)set "./$1";;
562 esac;
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
565 '\'' sh
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 # Initializations.
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 # include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 HAVE_IPV6
671 LIBOBJS
672 OSSP_UUID_LIBS
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
693 LN_S
695 WINDRES
696 DLLWRAP
697 DLLTOOL
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
706 LDFLAGS_SL
707 LDFLAGS_EX
708 ELF_SYS
709 EGREP
710 GREP
711 with_zlib
712 with_system_tzdata
713 with_libxslt
714 with_libxml
715 XML2_CONFIG
716 with_ossp_uuid
717 with_openssl
718 with_bonjour
719 with_ldap
720 with_pam
721 krb_srvtab
722 with_krb5
723 with_gssapi
724 with_python
725 with_perl
726 with_tcl
727 enable_thread_safety
728 INCLUDES
729 autodepend
733 SUN_STUDIO_CC
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 enable_dtrace
742 DTRACEFLAGS
743 DTRACE
744 enable_coverage
745 GENHTML
746 LCOV
747 GCOV
748 enable_profiling
749 enable_debug
750 enable_rpath
751 enable_shared
752 default_port
753 WANTED_LANGUAGES
754 enable_nls
755 PORTNAME
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 PG_MAJORVERSION
765 configure_args
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 with_template
807 with_includes
808 with_libraries
809 with_libs
810 enable_integer_datetimes
811 enable_nls
812 with_pgport
813 enable_shared
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_readline
840 with_libedit_preferred
841 with_ossp_uuid
842 with_libxml
843 with_libxslt
844 with_system_tzdata
845 with_zlib
846 with_gnu_ld
847 enable_largefile
848 enable_float4_byval
849 enable_float8_byval
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 LDFLAGS_EX
861 LDFLAGS_SL
862 DOCBOOKSTYLE'
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
913 ac_prev=
914 ac_dashdash=
915 for ac_option
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
924 case $ac_option in
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *) ac_optarg=yes ;;
927 esac
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
933 ac_dashdash=yes ;;
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
952 --config-cache | -C)
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 { (exit 1); exit 1; }; }
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=no ;;
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 esac
1274 done
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286 { (exit 1); exit 1; }; } ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1470 cat <<\_ACEOF
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1481 esac
1482 cat <<\_ACEOF
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-integer-datetimes
1489 disable 64-bit integer date/time support
1490 --enable-nls[=LANGUAGES]
1491 enable Native Language Support
1492 --disable-shared do not build shared libraries
1493 --disable-rpath do not embed shared library search path in
1494 executables
1495 --disable-spinlocks do not use spinlocks
1496 --enable-debug build with debugging symbols (-g)
1497 --enable-profiling build with profiling enabled
1498 --enable-coverage build with coverage testing instrumentation
1499 --enable-dtrace build with DTrace support
1500 --enable-depend turn on automatic dependency tracking
1501 --enable-cassert enable assertion checks (for debugging)
1502 --disable-thread-safety disable thread-safety in client libraries
1503 --disable-largefile omit support for large files
1504 --disable-float4-byval disable float4 passed by value
1505 --disable-float8-byval disable float8 passed by value
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-template=NAME override operating system template
1511 --with-includes=DIRS look for additional header files in DIRS
1512 --with-libraries=DIRS look for additional libraries in DIRS
1513 --with-libs=DIRS alternative spelling of --with-libraries
1514 --with-pgport=PORTNUM set default port number [5432]
1515 --with-blocksize=BLOCKSIZE
1516 set table block size in kB [8]
1517 --with-segsize=SEGSIZE set table segment size in GB [1]
1518 --with-wal-blocksize=BLOCKSIZE
1519 set WAL block size in kB [8]
1520 --with-wal-segsize=SEGSIZE
1521 set WAL segment size in MB [16]
1522 --with-CC=CMD set compiler (deprecated)
1523 --with-tcl build Tcl modules (PL/Tcl)
1524 --with-tclconfig=DIR tclConfig.sh is in DIR
1525 --with-perl build Perl modules (PL/Perl)
1526 --with-python build Python modules (PL/Python)
1527 --with-gssapi build with GSSAPI support
1528 --with-krb5 build with Kerberos 5 support
1529 --with-krb-srvnam=NAME default service principal name in Kerberos
1530 [postgres]
1531 --with-pam build with PAM support
1532 --with-ldap build with LDAP support
1533 --with-bonjour build with Bonjour support
1534 --with-openssl build with OpenSSL support
1535 --without-readline do not use GNU Readline nor BSD Libedit for editing
1536 --with-libedit-preferred
1537 prefer BSD Libedit over GNU Readline
1538 --with-ossp-uuid use OSSP UUID library when building
1539 contrib/uuid-ossp
1540 --with-libxml build with XML support
1541 --with-libxslt use XSLT support when building contrib/xml2
1542 --with-system-tzdata=DIR
1543 use system time zone data in DIR
1544 --without-zlib do not use Zlib
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CPP C preprocessor
1556 LDFLAGS_EX extra linker flags for linking executables only
1557 LDFLAGS_SL extra linker flags for linking shared libraries only
1558 DOCBOOKSTYLE
1559 location of DocBook stylesheets
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 PostgreSQL configure 9.1devel
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 _ACEOF
1637 exit
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by PostgreSQL $as_me 9.1devel, which was
1644 generated by GNU Autoconf 2.63. Invocation command line was
1646 $ $0 $@
1648 _ACEOF
1649 exec 5>>config.log
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1666 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1669 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1670 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1671 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 _ASUNAME
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1684 } >&5
1686 cat >&5 <<_ACEOF
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1693 _ACEOF
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1707 for ac_arg
1709 case $ac_arg in
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1713 continue ;;
1714 *\'*)
1715 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 esac
1717 case $ac_pass in
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1723 else
1724 case $ac_arg in
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 esac
1733 -* ) ac_must_keep_next=true ;;
1734 esac
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 esac
1739 done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1752 echo
1754 cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759 echo
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in #(
1765 *${as_nl}*)
1766 case $ac_var in #(
1767 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 esac
1770 case $ac_var in #(
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) $as_unset $ac_var ;;
1774 esac ;;
1775 esac
1776 done
1777 (set) 2>&1 |
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1780 sed -n \
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 ;; #(
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 esac |
1788 sort
1790 echo
1792 cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797 echo
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1801 case $ac_val in
1802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 esac
1804 $as_echo "$ac_var='\''$ac_val'\''"
1805 done | sort
1806 echo
1808 if test -n "$ac_subst_files"; then
1809 cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814 echo
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1818 case $ac_val in
1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 esac
1821 $as_echo "$ac_var='\''$ac_val'\''"
1822 done | sort
1823 echo
1826 if test -s confdefs.h; then
1827 cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832 echo
1833 cat confdefs.h
1834 echo
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1839 } >&5
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 exit $exit_status
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884 ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886 ac_site_file1=$prefix/share/config.site
1887 ac_site_file2=$prefix/etc/config.site
1888 else
1889 ac_site_file1=$ac_default_prefix/share/config.site
1890 ac_site_file2=$ac_default_prefix/etc/config.site
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 test "x$ac_site_file" = xNONE && continue
1895 if test -r "$ac_site_file"; then
1896 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1899 . "$ac_site_file"
1901 done
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909 case $cache_file in
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1912 esac
1914 else
1915 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917 >$cache_file
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1929 set,)
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1933 ,set)
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1937 ,);;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 # differences in whitespace do not lead to failure.
1941 ac_old_val_w=`echo x $ac_old_val`
1942 ac_new_val_w=`echo x $ac_new_val`
1943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946 ac_cache_corrupted=:
1947 else
1948 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950 eval $ac_var=\$ac_old_val
1952 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1953 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1954 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 fi;;
1957 esac
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1960 case $ac_new_val in
1961 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1963 esac
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 esac
1969 done
1970 if $ac_cache_corrupted; then
1971 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977 { (exit 1); exit 1; }; }
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017 if test -f "$ac_dir/install-sh"; then
2018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 break
2021 elif test -f "$ac_dir/install.sh"; then
2022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 break
2025 elif test -f "$ac_dir/shtool"; then
2026 ac_aux_dir=$ac_dir
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 break
2030 done
2031 if test -z "$ac_aux_dir"; then
2032 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047 configure_args=$ac_configure_args
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2073 else
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 $as_echo_n "(cached) " >&6
2113 else
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2116 else
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156 withval=$with_template;
2157 case $withval in
2158 yes)
2159 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166 { (exit 1); exit 1; }; }
2170 case $withval in
2171 list) echo; ls "$srcdir/src/template"; exit;;
2172 *) if test -f "$srcdir/src/template/$with_template" ; then
2173 template=$withval
2174 else
2175 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi;;
2179 esac
2182 esac
2184 else
2186 # --with-template not given
2188 case $host_os in
2189 aix*) template=aix ;;
2190 bsdi*) template=bsdi ;;
2191 cygwin*) template=cygwin ;;
2192 darwin*) template=darwin ;;
2193 dgux*) template=dgux ;;
2194 freebsd*) template=freebsd ;;
2195 hpux*) template=hpux ;;
2196 irix*) template=irix ;;
2197 linux*|gnu*|k*bsd*-gnu)
2198 template=linux ;;
2199 mingw*) template=win32 ;;
2200 netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202 openbsd*) template=openbsd ;;
2203 osf*) template=osf ;;
2204 sco*) template=sco ;;
2205 solaris*) template=solaris ;;
2206 sunos*) template=sunos4 ;;
2207 sysv4.2*)
2208 case $host_vendor in
2209 univel) template=univel ;;
2210 esac ;;
2211 sysv4*) template=svr4 ;;
2212 sysv5*) template=unixware ;;
2213 ultrix*) template=ultrix4 ;;
2214 esac
2216 if test x"$template" = x"" ; then
2217 { { $as_echo "$as_me:$LINENO: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&5
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this. Include the above 'checking host system type...'
2236 line.
2237 *******************************************************************
2238 " >&2;}
2239 { (exit 1); exit 1; }; }
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2250 PORTNAME=$template
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set). This can be overridden by the template file
2255 # when it's executed.
2256 need_tas=no
2257 tas_file=dummy.s
2262 ## Command line options
2266 # Add non-standard directories to the include path
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273 withval=$with_includes;
2274 case $withval in
2275 yes)
2276 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283 { (exit 1); exit 1; }; }
2288 esac
2296 # Add non-standard directories to the library search path
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303 withval=$with_libraries;
2304 case $withval in
2305 yes)
2306 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 LIBRARY_DIRS=$withval
2318 esac
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2329 withval=$with_libs;
2330 case $withval in
2331 yes)
2332 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334 { (exit 1); exit 1; }; }
2337 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339 { (exit 1); exit 1; }; }
2342 LIBRARY_DIRS=$withval
2344 esac
2352 # 64-bit integer date/time storage: enabled by default.
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360 enableval=$enable_integer_datetimes;
2361 case $enableval in
2362 yes)
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2366 _ACEOF
2373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375 { (exit 1); exit 1; }; }
2377 esac
2379 else
2380 enable_integer_datetimes=yes
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2384 _ACEOF
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2394 # NLS
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402 enableval=$enable_nls;
2403 case $enableval in
2404 yes)
2411 enable_nls=yes
2412 WANTED_LANGUAGES=$enableval
2414 esac
2416 else
2417 enable_nls=no
2422 if test "$enable_nls" = yes; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2426 _ACEOF
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2436 # Default port number (--with-pgport), default 5432
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445 withval=$with_pgport;
2446 case $withval in
2447 yes)
2448 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450 { (exit 1); exit 1; }; }
2453 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455 { (exit 1); exit 1; }; }
2458 default_port=$withval
2460 esac
2462 else
2463 default_port=5432
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2473 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2478 _ACEOF
2483 # Option to disable shared libraries
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489 enableval=$enable_shared;
2490 case $enableval in
2491 yes)
2498 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500 { (exit 1); exit 1; }; }
2502 esac
2504 else
2505 enable_shared=yes
2513 # '-rpath'-like feature can be disabled
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519 enableval=$enable_rpath;
2520 case $enableval in
2521 yes)
2528 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530 { (exit 1); exit 1; }; }
2532 esac
2534 else
2535 enable_rpath=yes
2543 # Spinlocks
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549 enableval=$enable_spinlocks;
2550 case $enableval in
2551 yes)
2558 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560 { (exit 1); exit 1; }; }
2562 esac
2564 else
2565 enable_spinlocks=yes
2572 # --enable-debug adds -g to compiler flags
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578 enableval=$enable_debug;
2579 case $enableval in
2580 yes)
2587 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589 { (exit 1); exit 1; }; }
2591 esac
2593 else
2594 enable_debug=no
2602 # --enable-profiling enables gcc profiling
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608 enableval=$enable_profiling;
2609 case $enableval in
2610 yes)
2617 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619 { (exit 1); exit 1; }; }
2621 esac
2623 else
2624 enable_profiling=no
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638 enableval=$enable_coverage;
2639 case $enableval in
2640 yes)
2641 for ac_prog in gcov
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$GCOV"; then
2651 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_GCOV="$ac_prog"
2661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2666 IFS=$as_save_IFS
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2674 else
2675 { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$GCOV" && break
2681 done
2683 if test -z "$GCOV"; then
2684 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686 { (exit 1); exit 1; }; }
2688 for ac_prog in lcov
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$LCOV"; then
2698 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_LCOV="$ac_prog"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2711 done
2712 done
2713 IFS=$as_save_IFS
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2721 else
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$LCOV" && break
2728 done
2730 if test -z "$LCOV"; then
2731 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733 { (exit 1); exit 1; }; }
2735 for ac_prog in genhtml
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$GENHTML"; then
2745 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_GENHTML="$ac_prog"
2755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2768 else
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2774 test -n "$GENHTML" && break
2775 done
2777 if test -z "$GENHTML"; then
2778 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780 { (exit 1); exit 1; }; }
2787 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789 { (exit 1); exit 1; }; }
2791 esac
2793 else
2794 enable_coverage=no
2802 # DTrace
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808 enableval=$enable_dtrace;
2809 case $enableval in
2810 yes)
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2814 _ACEOF
2816 for ac_prog in dtrace
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$DTRACE"; then
2826 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_DTRACE="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2849 else
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$DTRACE" && break
2856 done
2858 if test -z "$DTRACE"; then
2859 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861 { (exit 1); exit 1; }; }
2869 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871 { (exit 1); exit 1; }; }
2873 esac
2875 else
2876 enable_dtrace=no
2884 # Block size
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893 withval=$with_blocksize;
2894 case $withval in
2895 yes)
2896 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898 { (exit 1); exit 1; }; }
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903 { (exit 1); exit 1; }; }
2906 blocksize=$withval
2908 esac
2910 else
2911 blocksize=8
2915 case ${blocksize} in
2916 1) BLCKSZ=1024;;
2917 2) BLCKSZ=2048;;
2918 4) BLCKSZ=4096;;
2919 8) BLCKSZ=8192;;
2920 16) BLCKSZ=16384;;
2921 32) BLCKSZ=32768;;
2922 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924 { (exit 1); exit 1; }; }
2925 esac
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2932 _ACEOF
2936 # Relation segment size
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945 withval=$with_segsize;
2946 case $withval in
2947 yes)
2948 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950 { (exit 1); exit 1; }; }
2953 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955 { (exit 1); exit 1; }; }
2958 segsize=$withval
2960 esac
2962 else
2963 segsize=1
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2977 _ACEOF
2981 # WAL block size
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990 withval=$with_wal_blocksize;
2991 case $withval in
2992 yes)
2993 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995 { (exit 1); exit 1; }; }
2998 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000 { (exit 1); exit 1; }; }
3003 wal_blocksize=$withval
3005 esac
3007 else
3008 wal_blocksize=8
3012 case ${wal_blocksize} in
3013 1) XLOG_BLCKSZ=1024;;
3014 2) XLOG_BLCKSZ=2048;;
3015 4) XLOG_BLCKSZ=4096;;
3016 8) XLOG_BLCKSZ=8192;;
3017 16) XLOG_BLCKSZ=16384;;
3018 32) XLOG_BLCKSZ=32768;;
3019 64) XLOG_BLCKSZ=65536;;
3020 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022 { (exit 1); exit 1; }; }
3023 esac
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3030 _ACEOF
3034 # WAL segment size
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043 withval=$with_wal_segsize;
3044 case $withval in
3045 yes)
3046 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048 { (exit 1); exit 1; }; }
3051 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053 { (exit 1); exit 1; }; }
3056 wal_segsize=$withval
3058 esac
3060 else
3061 wal_segsize=16
3065 case ${wal_segsize} in
3066 1) ;;
3067 2) ;;
3068 4) ;;
3069 8) ;;
3070 16) ;;
3071 32) ;;
3072 64) ;;
3073 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075 { (exit 1); exit 1; }; }
3076 esac
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3083 _ACEOF
3087 # C compiler
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3092 # variable.
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3098 withval=$with_CC;
3099 case $withval in
3100 yes)
3101 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103 { (exit 1); exit 1; }; }
3106 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108 { (exit 1); exit 1; }; }
3111 CC=$with_CC
3113 esac
3119 case $template in
3120 aix) pgac_cc_list="gcc xlc";;
3121 irix) pgac_cc_list="cc";; # no gcc
3122 *) pgac_cc_list="gcc cc";;
3123 esac
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in $pgac_cc_list
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$CC" && break
3171 done
3173 if test -z "$CC"; then
3174 ac_ct_CC=$CC
3175 for ac_prog in $pgac_cc_list
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$ac_ct_CC" && break
3215 done
3217 if test "x$ac_ct_CC" = x; then
3218 CC=""
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226 CC=$ac_ct_CC
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }; }
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler --version >&5") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -v >&5") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3285 main ()
3289 return 0;
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310 esac
3311 done
3312 rm -f $ac_rmfiles
3314 if { (ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link_default") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 [ab].out )
3337 # We found the default executable, but exeext='' is most
3338 # certainly right.
3339 break;;
3340 *.* )
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342 then :; else
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3349 # actually working.
3350 break;;
3352 break;;
3353 esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 else
3358 ac_file=''
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373 { (exit 77); exit 77; }; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 cross_compiling=no
3397 else
3398 if test "$cross_compiling" = maybe; then
3399 cross_compiling=yes
3400 else
3401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }; }
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 break;;
3448 * ) break;;
3449 esac
3450 done
3451 else
3452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }; }
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3467 ac_exeext=$EXEEXT
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3472 else
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3481 main ()
3485 return 0;
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; then
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507 done
3508 else
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3540 main ()
3542 #ifndef __GNUC__
3543 choke me
3544 #endif
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_compiler_gnu=yes
3569 else
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_compiler_gnu=no
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583 GCC=yes
3584 else
3585 GCC=
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3596 ac_cv_prog_cc_g=no
3597 CFLAGS="-g"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3606 main ()
3610 return 0;
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_prog_cc_g=yes
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 CFLAGS=""
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3671 else
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3676 CFLAGS="-g"
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3685 main ()
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3710 ac_cv_prog_cc_g=yes
3711 else
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3733 CFLAGS="-g -O2"
3734 else
3735 CFLAGS="-g"
3737 else
3738 if test "$GCC" = yes; then
3739 CFLAGS="-O2"
3740 else
3741 CFLAGS=
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3748 else
3749 ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3768 return p[i];
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3801 main ()
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 return 0;
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3831 else
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850 xno)
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own. We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3881 #ifndef __INTEL_COMPILER
3882 choke me
3883 #endif
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ICC=yes
3907 else
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ICC=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3926 main ()
3928 #ifndef __SUNPRO_C
3929 choke me
3930 #endif
3932 return 0;
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && {
3950 test -z "$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 } && test -s conftest.$ac_objext; then
3953 SUN_STUDIO_CC=yes
3954 else
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 SUN_STUDIO_CC=no
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 unset CFLAGS
3968 # Read the template
3970 . "$srcdir/src/template/$template" || exit
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else: If the template file set something, that is used.
3975 # else: If coverage was enabled, don't set anything.
3976 # else: If the compiler is GCC, then we use -O2.
3977 # else: If the compiler is something else, then we use -O, unless debugging.
3979 if test "$ac_env_CFLAGS_set" = set; then
3980 CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982 : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984 : # no optimization by default
3985 elif test "$GCC" = yes; then
3986 CFLAGS="-O2"
3987 else
3988 # if the user selected debug mode, don't use -O
3989 if test "$enable_debug" != yes; then
3990 CFLAGS="-O"
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own. Also check other compiler-specific flags here.
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001 # These work in some but not all gcc versions
4002 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4004 pgac_save_CFLAGS=$CFLAGS
4005 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4014 main ()
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 { $as_echo "$as_me:$LINENO: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 CFLAGS="$pgac_save_CFLAGS"
4046 { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4053 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4089 { $as_echo "$as_me:$LINENO: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 CFLAGS="$pgac_save_CFLAGS"
4096 { $as_echo "$as_me:$LINENO: result: no" >&5
4097 $as_echo "no" >&6; }
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 # Disable strict-aliasing rules; needed for gcc 3.3+
4103 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4104 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4105 pgac_save_CFLAGS=$CFLAGS
4106 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4124 case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4129 $as_echo "$ac_try_echo") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } && {
4137 test -z "$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 } && test -s conftest.$ac_objext; then
4140 { $as_echo "$as_me:$LINENO: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 CFLAGS="$pgac_save_CFLAGS"
4147 { $as_echo "$as_me:$LINENO: result: no" >&5
4148 $as_echo "no" >&6; }
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4154 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4155 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4156 pgac_save_CFLAGS=$CFLAGS
4157 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4166 main ()
4170 return 0;
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4191 { $as_echo "$as_me:$LINENO: result: yes" >&5
4192 $as_echo "yes" >&6; }
4193 else
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 CFLAGS="$pgac_save_CFLAGS"
4198 { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 elif test "$ICC" = yes; then
4205 # Intel's compiler has a bug/misoptimization in checking for
4206 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4207 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4208 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -mp1"
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4219 main ()
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 { $as_echo "$as_me:$LINENO: result: yes" >&5
4245 $as_echo "yes" >&6; }
4246 else
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 CFLAGS="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: no" >&5
4252 $as_echo "no" >&6; }
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 # Make sure strict aliasing is off (though this is said to be the default)
4258 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4259 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4260 pgac_save_CFLAGS=$CFLAGS
4261 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4270 main ()
4274 return 0;
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && {
4292 test -z "$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 } && test -s conftest.$ac_objext; then
4295 { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 elif test "$PORTNAME" = "aix"; then
4309 # AIX's xlc has to have strict aliasing turned off too
4310 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4311 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4312 pgac_save_CFLAGS=$CFLAGS
4313 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4322 main ()
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest.$ac_objext; then
4347 { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 CFLAGS="$pgac_save_CFLAGS"
4354 { $as_echo "$as_me:$LINENO: result: no" >&5
4355 $as_echo "no" >&6; }
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 # supply -g if --enable-debug
4363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4364 CFLAGS="$CFLAGS -g"
4367 # enable code coverage if --enable-coverage
4368 if test "$enable_coverage" = yes; then
4369 if test "$GCC" = yes; then
4370 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4371 else
4372 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4373 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4374 { (exit 1); exit 1; }; }
4378 # enable profiling if --enable-profiling
4379 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4380 if test "$GCC" = yes; then
4382 cat >>confdefs.h <<\_ACEOF
4383 #define PROFILE_PID_DIR 1
4384 _ACEOF
4386 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4387 else
4388 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4389 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4390 { (exit 1); exit 1; }; }
4394 # We already have this in Makefile.win32, but configure needs it too
4395 if test "$PORTNAME" = "win32"; then
4396 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4399 # Check if the compiler still works with the template settings
4400 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4401 $as_echo_n "checking whether the C compiler still works... " >&6; }
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4410 main ()
4412 return 0;
4414 return 0;
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425 (eval "$ac_link") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest$ac_exeext && {
4435 test "$cross_compiling" = yes ||
4436 $as_test_x conftest$ac_exeext
4437 }; then
4438 { $as_echo "$as_me:$LINENO: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 else
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4447 $as_echo "$as_me: error: cannot proceed" >&2;}
4448 { (exit 1); exit 1; }; }
4451 rm -rf conftest.dSYM
4452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4453 conftest$ac_exeext conftest.$ac_ext
4455 # Defend against gcc -ffast-math
4456 if test "$GCC" = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4465 main ()
4467 #ifdef __FAST_MATH__
4468 choke me
4469 #endif
4471 return 0;
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4481 $as_echo "$ac_try_echo") >&5
4482 (eval "$ac_compile") 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && {
4489 test -z "$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4491 } && test -s conftest.$ac_objext; then
4493 else
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4498 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4499 { (exit 1); exit 1; }; }
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_ext=c
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4512 # On Suns, sometimes $CPP names a directory.
4513 if test -n "$CPP" && test -d "$CPP"; then
4514 CPP=
4516 if test -z "$CPP"; then
4517 if test "${ac_cv_prog_CPP+set}" = set; then
4518 $as_echo_n "(cached) " >&6
4519 else
4520 # Double quotes because CPP needs to be expanded
4521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4523 ac_preproc_ok=false
4524 for ac_c_preproc_warn_flag in '' yes
4526 # Use a header file that comes with gcc, so configuring glibc
4527 # with a fresh cross-compiler works.
4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 # <limits.h> exists even on freestanding compilers.
4530 # On the NeXT, cc -E runs the code through the compiler's parser,
4531 # not just through cpp. "Syntax error" is here to catch this case.
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543 Syntax error
4544 _ACEOF
4545 if { (ac_try="$ac_cpp conftest.$ac_ext"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 }; then
4563 else
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 # Broken: fails on valid input.
4568 continue
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4582 _ACEOF
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null && {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 }; then
4600 # Broken: success on invalid input.
4601 continue
4602 else
4603 $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 # Passes both tests.
4607 ac_preproc_ok=:
4608 break
4611 rm -f conftest.err conftest.$ac_ext
4613 done
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4617 break
4620 done
4621 ac_cv_prog_CPP=$CPP
4624 CPP=$ac_cv_prog_CPP
4625 else
4626 ac_cv_prog_CPP=$CPP
4628 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4629 $as_echo "$CPP" >&6; }
4630 ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650 Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev/null && {
4666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 }; then
4670 else
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 # Broken: fails on valid input.
4675 continue
4678 rm -f conftest.err conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <ac_nonexistent.h>
4689 _ACEOF
4690 if { (ac_try="$ac_cpp conftest.$ac_ext"
4691 case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null && {
4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 }; then
4707 # Broken: success on invalid input.
4708 continue
4709 else
4710 $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 # Passes both tests.
4714 ac_preproc_ok=:
4715 break
4718 rm -f conftest.err conftest.$ac_ext
4720 done
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.err conftest.$ac_ext
4723 if $ac_preproc_ok; then
4725 else
4726 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4728 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&5
4730 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }; }
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 # Set up TAS assembly code if needed; the template file has now had its
4746 # chance to request this.
4748 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4751 if test "$need_tas" = yes ; then
4752 TAS=tas.o
4753 else
4754 TAS=""
4760 # Automatic dependency tracking
4764 # Check whether --enable-depend was given.
4765 if test "${enable_depend+set}" = set; then
4766 enableval=$enable_depend;
4767 case $enableval in
4768 yes)
4769 autodepend=yes
4775 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4776 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4777 { (exit 1); exit 1; }; }
4779 esac
4781 else
4782 enable_depend=no
4791 # Enable assert checks
4795 # Check whether --enable-cassert was given.
4796 if test "${enable_cassert+set}" = set; then
4797 enableval=$enable_cassert;
4798 case $enableval in
4799 yes)
4801 cat >>confdefs.h <<\_ACEOF
4802 #define USE_ASSERT_CHECKING 1
4803 _ACEOF
4810 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4811 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4812 { (exit 1); exit 1; }; }
4814 esac
4816 else
4817 enable_cassert=no
4825 # Include directories
4827 ac_save_IFS=$IFS
4828 IFS="${IFS}${PATH_SEPARATOR}"
4829 # SRCH_INC comes from the template file
4830 for dir in $with_includes $SRCH_INC; do
4831 if test -d "$dir"; then
4832 INCLUDES="$INCLUDES -I$dir"
4833 else
4834 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4835 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4837 done
4838 IFS=$ac_save_IFS
4843 # Library directories
4845 ac_save_IFS=$IFS
4846 IFS="${IFS}${PATH_SEPARATOR}"
4847 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4848 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4849 if test -d "$dir"; then
4850 LIBDIRS="$LIBDIRS -L$dir"
4851 else
4852 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4853 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4855 done
4856 IFS=$ac_save_IFS
4859 # Enable thread-safe client libraries
4861 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4862 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867 enableval=$enable_thread_safety;
4868 case $enableval in
4869 yes)
4876 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878 { (exit 1); exit 1; }; }
4880 esac
4882 else
4883 enable_thread_safety=yes
4888 if test "$enable_thread_safety" = yes; then
4890 cat >>confdefs.h <<\_ACEOF
4891 #define ENABLE_THREAD_SAFETY 1
4892 _ACEOF
4895 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4896 $as_echo "$enable_thread_safety" >&6; }
4900 # Optionally build Tcl modules (PL/Tcl)
4902 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4903 $as_echo_n "checking whether to build with Tcl... " >&6; }
4907 # Check whether --with-tcl was given.
4908 if test "${with_tcl+set}" = set; then
4909 withval=$with_tcl;
4910 case $withval in
4911 yes)
4918 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4919 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4920 { (exit 1); exit 1; }; }
4922 esac
4924 else
4925 with_tcl=no
4930 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4931 $as_echo "$with_tcl" >&6; }
4934 # We see if the path to the Tcl/Tk configuration scripts is specified.
4935 # This will override the use of tclsh to find the paths to search.
4940 # Check whether --with-tclconfig was given.
4941 if test "${with_tclconfig+set}" = set; then
4942 withval=$with_tclconfig;
4943 case $withval in
4944 yes)
4945 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4946 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4947 { (exit 1); exit 1; }; }
4950 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4951 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4952 { (exit 1); exit 1; }; }
4957 esac
4964 # Optionally build Perl modules (PL/Perl)
4966 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4967 $as_echo_n "checking whether to build Perl modules... " >&6; }
4971 # Check whether --with-perl was given.
4972 if test "${with_perl+set}" = set; then
4973 withval=$with_perl;
4974 case $withval in
4975 yes)
4982 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4983 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4984 { (exit 1); exit 1; }; }
4986 esac
4988 else
4989 with_perl=no
4994 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4995 $as_echo "$with_perl" >&6; }
4999 # Optionally build Python modules (PL/Python)
5001 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5002 $as_echo_n "checking whether to build Python modules... " >&6; }
5006 # Check whether --with-python was given.
5007 if test "${with_python+set}" = set; then
5008 withval=$with_python;
5009 case $withval in
5010 yes)
5017 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5018 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5019 { (exit 1); exit 1; }; }
5021 esac
5023 else
5024 with_python=no
5029 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5030 $as_echo "$with_python" >&6; }
5034 # GSSAPI
5036 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5037 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5041 # Check whether --with-gssapi was given.
5042 if test "${with_gssapi+set}" = set; then
5043 withval=$with_gssapi;
5044 case $withval in
5045 yes)
5048 cat >>confdefs.h <<\_ACEOF
5049 #define ENABLE_GSS 1
5050 _ACEOF
5052 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5059 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5060 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5061 { (exit 1); exit 1; }; }
5063 esac
5065 else
5066 with_gssapi=no
5071 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5072 $as_echo "$with_gssapi" >&6; }
5076 # Kerberos 5
5078 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5079 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5083 # Check whether --with-krb5 was given.
5084 if test "${with_krb5+set}" = set; then
5085 withval=$with_krb5;
5086 case $withval in
5087 yes)
5090 cat >>confdefs.h <<\_ACEOF
5091 #define KRB5 1
5092 _ACEOF
5094 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5101 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5102 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5103 { (exit 1); exit 1; }; }
5105 esac
5107 else
5108 with_krb5=no
5113 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5114 $as_echo "$with_krb5" >&6; }
5122 # Kerberos configuration parameters
5127 # Check whether --with-krb-srvnam was given.
5128 if test "${with_krb_srvnam+set}" = set; then
5129 withval=$with_krb_srvnam;
5130 case $withval in
5131 yes)
5132 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5133 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5134 { (exit 1); exit 1; }; }
5137 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5138 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5139 { (exit 1); exit 1; }; }
5144 esac
5146 else
5147 with_krb_srvnam="postgres"
5152 cat >>confdefs.h <<_ACEOF
5153 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5154 _ACEOF
5159 # PAM
5161 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5162 $as_echo_n "checking whether to build with PAM support... " >&6; }
5166 # Check whether --with-pam was given.
5167 if test "${with_pam+set}" = set; then
5168 withval=$with_pam;
5169 case $withval in
5170 yes)
5172 cat >>confdefs.h <<\_ACEOF
5173 #define USE_PAM 1
5174 _ACEOF
5181 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5182 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5183 { (exit 1); exit 1; }; }
5185 esac
5187 else
5188 with_pam=no
5193 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5194 $as_echo "$with_pam" >&6; }
5199 # LDAP
5201 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5202 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5206 # Check whether --with-ldap was given.
5207 if test "${with_ldap+set}" = set; then
5208 withval=$with_ldap;
5209 case $withval in
5210 yes)
5212 cat >>confdefs.h <<\_ACEOF
5213 #define USE_LDAP 1
5214 _ACEOF
5221 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5222 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5223 { (exit 1); exit 1; }; }
5225 esac
5227 else
5228 with_ldap=no
5233 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5234 $as_echo "$with_ldap" >&6; }
5239 # Bonjour
5241 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5242 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5246 # Check whether --with-bonjour was given.
5247 if test "${with_bonjour+set}" = set; then
5248 withval=$with_bonjour;
5249 case $withval in
5250 yes)
5252 cat >>confdefs.h <<\_ACEOF
5253 #define USE_BONJOUR 1
5254 _ACEOF
5261 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5262 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5263 { (exit 1); exit 1; }; }
5265 esac
5267 else
5268 with_bonjour=no
5273 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5274 $as_echo "$with_bonjour" >&6; }
5279 # OpenSSL
5281 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5282 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5286 # Check whether --with-openssl was given.
5287 if test "${with_openssl+set}" = set; then
5288 withval=$with_openssl;
5289 case $withval in
5290 yes)
5292 cat >>confdefs.h <<\_ACEOF
5293 #define USE_SSL 1
5294 _ACEOF
5301 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5303 { (exit 1); exit 1; }; }
5305 esac
5307 else
5308 with_openssl=no
5313 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5314 $as_echo "$with_openssl" >&6; }
5319 # Readline
5324 # Check whether --with-readline was given.
5325 if test "${with_readline+set}" = set; then
5326 withval=$with_readline;
5327 case $withval in
5328 yes)
5335 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5336 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5337 { (exit 1); exit 1; }; }
5339 esac
5341 else
5342 with_readline=yes
5347 # readline on MinGW has problems with backslashes in psql and other bugs.
5348 # This is particularly a problem with non-US code pages.
5349 # Therefore disable its use until we understand the cause. 2004-07-20
5350 if test "$PORTNAME" = "win32"; then
5351 if test "$with_readline" = yes; then
5352 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5353 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5354 with_readline=no
5360 # Prefer libedit
5365 # Check whether --with-libedit-preferred was given.
5366 if test "${with_libedit_preferred+set}" = set; then
5367 withval=$with_libedit_preferred;
5368 case $withval in
5369 yes)
5376 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5377 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5378 { (exit 1); exit 1; }; }
5380 esac
5382 else
5383 with_libedit_preferred=no
5391 # OSSP UUID library
5396 # Check whether --with-ossp-uuid was given.
5397 if test "${with_ossp_uuid+set}" = set; then
5398 withval=$with_ossp_uuid;
5399 case $withval in
5400 yes)
5407 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5408 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5409 { (exit 1); exit 1; }; }
5411 esac
5413 else
5414 with_ossp_uuid=no
5423 # XML
5428 # Check whether --with-libxml was given.
5429 if test "${with_libxml+set}" = set; then
5430 withval=$with_libxml;
5431 case $withval in
5432 yes)
5434 cat >>confdefs.h <<\_ACEOF
5435 #define USE_LIBXML 1
5436 _ACEOF
5443 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5444 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5445 { (exit 1); exit 1; }; }
5447 esac
5449 else
5450 with_libxml=no
5456 if test "$with_libxml" = yes ; then
5457 for ac_prog in xml2-config
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$XML2_CONFIG"; then
5467 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_XML2_CONFIG="$ac_prog"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5486 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5487 if test -n "$XML2_CONFIG"; then
5488 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5489 $as_echo "$XML2_CONFIG" >&6; }
5490 else
5491 { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5496 test -n "$XML2_CONFIG" && break
5497 done
5499 if test -n "$XML2_CONFIG"; then
5500 for pgac_option in `$XML2_CONFIG --cflags`; do
5501 case $pgac_option in
5502 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5503 esac
5504 done
5505 for pgac_option in `$XML2_CONFIG --libs`; do
5506 case $pgac_option in
5507 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5508 esac
5509 done
5516 # XSLT
5521 # Check whether --with-libxslt was given.
5522 if test "${with_libxslt+set}" = set; then
5523 withval=$with_libxslt;
5524 case $withval in
5525 yes)
5527 cat >>confdefs.h <<\_ACEOF
5528 #define USE_LIBXSLT 1
5529 _ACEOF
5536 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5537 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5538 { (exit 1); exit 1; }; }
5540 esac
5542 else
5543 with_libxslt=no
5553 # tzdata
5558 # Check whether --with-system-tzdata was given.
5559 if test "${with_system_tzdata+set}" = set; then
5560 withval=$with_system_tzdata;
5561 case $withval in
5562 yes)
5563 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5564 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5565 { (exit 1); exit 1; }; }
5568 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5569 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5570 { (exit 1); exit 1; }; }
5575 esac
5583 # Zlib
5588 # Check whether --with-zlib was given.
5589 if test "${with_zlib+set}" = set; then
5590 withval=$with_zlib;
5591 case $withval in
5592 yes)
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5601 { (exit 1); exit 1; }; }
5603 esac
5605 else
5606 with_zlib=yes
5614 # Elf
5617 # Assume system is ELF if it predefines __ELF__ as 1,
5618 # otherwise believe host_os based default.
5619 case $host_os in
5620 freebsd1*|freebsd2*) elf=no;;
5621 freebsd3*|freebsd4*) elf=yes;;
5622 esac
5625 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -z "$GREP"; then
5631 ac_path_GREP_found=false
5632 # Loop through the user's path and test for each of PROGNAME-LIST
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_prog in grep ggrep; do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643 # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5645 *GNU*)
5646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5648 ac_count=0
5649 $as_echo_n 0123456789 >"conftest.in"
5650 while :
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 $as_echo 'GREP' >> "conftest.nl"
5656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658 ac_count=`expr $ac_count + 1`
5659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_GREP="$ac_path_GREP"
5662 ac_path_GREP_max=$ac_count
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5666 done
5667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5670 $ac_path_GREP_found && break 3
5671 done
5672 done
5673 done
5674 IFS=$as_save_IFS
5675 if test -z "$ac_cv_path_GREP"; then
5676 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678 { (exit 1); exit 1; }; }
5680 else
5681 ac_cv_path_GREP=$GREP
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5686 $as_echo "$ac_cv_path_GREP" >&6; }
5687 GREP="$ac_cv_path_GREP"
5690 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5691 $as_echo_n "checking for egrep... " >&6; }
5692 if test "${ac_cv_path_EGREP+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5696 then ac_cv_path_EGREP="$GREP -E"
5697 else
5698 if test -z "$EGREP"; then
5699 ac_path_EGREP_found=false
5700 # Loop through the user's path and test for each of PROGNAME-LIST
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_prog in egrep; do
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5709 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5710 # Check for GNU ac_path_EGREP and select it if it is found.
5711 # Check for GNU $ac_path_EGREP
5712 case `"$ac_path_EGREP" --version 2>&1` in
5713 *GNU*)
5714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5716 ac_count=0
5717 $as_echo_n 0123456789 >"conftest.in"
5718 while :
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 $as_echo 'EGREP' >> "conftest.nl"
5724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 ac_count=`expr $ac_count + 1`
5727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_EGREP="$ac_path_EGREP"
5730 ac_path_EGREP_max=$ac_count
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5734 done
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5738 $ac_path_EGREP_found && break 3
5739 done
5740 done
5741 done
5742 IFS=$as_save_IFS
5743 if test -z "$ac_cv_path_EGREP"; then
5744 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5745 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5746 { (exit 1); exit 1; }; }
5748 else
5749 ac_cv_path_EGREP=$EGREP
5754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5755 $as_echo "$ac_cv_path_EGREP" >&6; }
5756 EGREP="$ac_cv_path_EGREP"
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #if __ELF__
5767 #endif
5769 _ACEOF
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771 $EGREP "yes" >/dev/null 2>&1; then
5772 ELF_SYS=true
5773 else
5774 if test "X$elf" = "Xyes" ; then
5775 ELF_SYS=true
5776 else
5777 ELF_SYS=
5780 rm -f conftest*
5785 # Assignments
5788 CPPFLAGS="$CPPFLAGS $INCLUDES"
5789 LDFLAGS="$LDFLAGS $LIBDIRS"
5795 # Check whether --with-gnu-ld was given.
5796 if test "${with_gnu_ld+set}" = set; then
5797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5798 else
5799 with_gnu_ld=no
5802 ac_prog=ld
5803 if test "$GCC" = yes; then
5804 # Check if gcc -print-prog-name=ld gives a path.
5805 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5806 $as_echo_n "checking for ld used by GCC... " >&6; }
5807 case $host in
5808 *-*-mingw*)
5809 # gcc leaves a trailing carriage return which upsets mingw
5810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5813 esac
5814 case "$ac_prog" in
5815 # Accept absolute paths.
5816 [\\/]* | [A-Za-z]:[\\/]*)
5817 re_direlt='/[^/][^/]*/\.\./'
5818 # Canonicalize the path of ld
5819 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5820 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5821 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5822 done
5823 test -z "$LD" && LD="$ac_prog"
5826 # If it fails, then pretend we aren't using GCC.
5827 ac_prog=ld
5830 # If it is relative, then search for the first ld in PATH.
5831 with_gnu_ld=unknown
5833 esac
5834 elif test "$with_gnu_ld" = yes; then
5835 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5836 $as_echo_n "checking for GNU ld... " >&6; }
5837 else
5838 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5839 $as_echo_n "checking for non-GNU ld... " >&6; }
5841 if test "${ac_cv_path_LD+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -z "$LD"; then
5845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5846 for ac_dir in $PATH; do
5847 test -z "$ac_dir" && ac_dir=.
5848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849 ac_cv_path_LD="$ac_dir/$ac_prog"
5850 # Check to see if the program is GNU ld. I'd rather use --version,
5851 # but apparently some GNU ld's only accept -v.
5852 # Break only if it was the GNU/non-GNU ld that we prefer.
5853 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5854 test "$with_gnu_ld" != no && break
5855 else
5856 test "$with_gnu_ld" != yes && break
5859 done
5860 IFS="$ac_save_ifs"
5861 else
5862 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5866 LD="$ac_cv_path_LD"
5867 if test -n "$LD"; then
5868 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5869 $as_echo "$LD" >&6; }
5870 else
5871 { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5874 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5875 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5876 { (exit 1); exit 1; }; }
5877 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5881 else
5882 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5883 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5884 ac_cv_prog_gnu_ld=yes
5885 else
5886 ac_cv_prog_gnu_ld=no
5889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5890 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5891 with_gnu_ld=$ac_cv_prog_gnu_ld
5896 case $host_os in sysv5*)
5897 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5898 $as_echo_n "checking whether ld -R works... " >&6; }
5899 if test "${pgac_cv_prog_ld_R+set}" = set; then
5900 $as_echo_n "(cached) " >&6
5901 else
5903 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5912 main ()
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_link") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext && {
5937 test "$cross_compiling" = yes ||
5938 $as_test_x conftest$ac_exeext
5939 }; then
5940 pgac_cv_prog_ld_R=yes
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 pgac_cv_prog_ld_R=no
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LDFLAGS=$pgac_save_LDFLAGS
5954 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5955 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5956 ld_R_works=$pgac_cv_prog_ld_R
5958 esac
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5981 done
5982 done
5983 IFS=$as_save_IFS
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992 { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6023 IFS=$as_save_IFS
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032 { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045 RANLIB=$ac_ct_RANLIB
6047 else
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}strip; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_STRIP+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$STRIP"; then
6061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 STRIP=$ac_cv_prog_STRIP
6081 if test -n "$STRIP"; then
6082 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6083 $as_echo "$STRIP" >&6; }
6084 else
6085 { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test -z "$ac_cv_prog_STRIP"; then
6092 ac_ct_STRIP=$STRIP
6093 # Extract the first word of "strip", so it can be a program name with args.
6094 set dummy strip; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$ac_ct_STRIP"; then
6101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_STRIP="strip"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6116 IFS=$as_save_IFS
6120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121 if test -n "$ac_ct_STRIP"; then
6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6123 $as_echo "$ac_ct_STRIP" >&6; }
6124 else
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6129 if test "x$ac_ct_STRIP" = x; then
6130 STRIP=":"
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138 STRIP=$ac_ct_STRIP
6140 else
6141 STRIP="$ac_cv_prog_STRIP"
6145 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6146 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6147 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6148 STRIP_STATIC_LIB="$STRIP -x"
6149 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6150 { $as_echo "$as_me:$LINENO: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152 else
6153 STRIP_STATIC_LIB=:
6154 STRIP_SHARED_LIB=:
6155 { $as_echo "$as_me:$LINENO: result: no" >&5
6156 $as_echo "no" >&6; }
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6193 else
6194 { $as_echo "$as_me:$LINENO: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6201 ac_ct_AR=$AR
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6233 else
6234 { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6239 AR="ar"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 AR=$ac_ct_AR
6249 else
6250 AR="$ac_cv_prog_AR"
6253 if test "$PORTNAME" = "win32"; then
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -n "$DLLTOOL"; then
6263 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6276 done
6277 done
6278 IFS=$as_save_IFS
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 $as_echo "$DLLTOOL" >&6; }
6286 else
6287 { $as_echo "$as_me:$LINENO: result: no" >&5
6288 $as_echo "no" >&6; }
6293 if test -z "$ac_cv_prog_DLLTOOL"; then
6294 ac_ct_DLLTOOL=$DLLTOOL
6295 # Extract the first word of "dlltool", so it can be a program name with args.
6296 set dummy dlltool; ac_word=$2
6297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$ac_ct_DLLTOOL"; then
6303 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6316 done
6317 done
6318 IFS=$as_save_IFS
6322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323 if test -n "$ac_ct_DLLTOOL"; then
6324 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325 $as_echo "$ac_ct_DLLTOOL" >&6; }
6326 else
6327 { $as_echo "$as_me:$LINENO: result: no" >&5
6328 $as_echo "no" >&6; }
6331 if test "x$ac_ct_DLLTOOL" = x; then
6332 DLLTOOL="dlltool"
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340 DLLTOOL=$ac_ct_DLLTOOL
6342 else
6343 DLLTOOL="$ac_cv_prog_DLLTOOL"
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$DLLWRAP"; then
6355 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 DLLWRAP=$ac_cv_prog_DLLWRAP
6375 if test -n "$DLLWRAP"; then
6376 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6377 $as_echo "$DLLWRAP" >&6; }
6378 else
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_DLLWRAP"; then
6386 ac_ct_DLLWRAP=$DLLWRAP
6387 # Extract the first word of "dllwrap", so it can be a program name with args.
6388 set dummy dllwrap; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$ac_ct_DLLWRAP"; then
6395 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6414 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6415 if test -n "$ac_ct_DLLWRAP"; then
6416 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6417 $as_echo "$ac_ct_DLLWRAP" >&6; }
6418 else
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_DLLWRAP" = x; then
6424 DLLWRAP="dllwrap"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 DLLWRAP=$ac_ct_DLLWRAP
6434 else
6435 DLLWRAP="$ac_cv_prog_DLLWRAP"
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}windres; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_WINDRES+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$WINDRES"; then
6447 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 WINDRES=$ac_cv_prog_WINDRES
6467 if test -n "$WINDRES"; then
6468 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6469 $as_echo "$WINDRES" >&6; }
6470 else
6471 { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_WINDRES"; then
6478 ac_ct_WINDRES=$WINDRES
6479 # Extract the first word of "windres", so it can be a program name with args.
6480 set dummy windres; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$ac_ct_WINDRES"; then
6487 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_WINDRES="windres"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6507 if test -n "$ac_ct_WINDRES"; then
6508 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6509 $as_echo "$ac_ct_WINDRES" >&6; }
6510 else
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_WINDRES" = x; then
6516 WINDRES="windres"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 WINDRES=$ac_ct_WINDRES
6526 else
6527 WINDRES="$ac_cv_prog_WINDRES"
6532 # Extract the first word of "tar", so it can be a program name with args.
6533 set dummy tar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_path_TAR+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6538 else
6539 case $TAR in
6540 [\\/]* | ?:[\\/]*)
6541 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6560 esac
6562 TAR=$ac_cv_path_TAR
6563 if test -n "$TAR"; then
6564 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6565 $as_echo "$TAR" >&6; }
6566 else
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6572 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6574 LN_S=$as_ln_s
6575 if test "$LN_S" = "ln -s"; then
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 else
6579 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6583 for ac_prog in gawk mawk nawk awk
6585 # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_AWK+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6591 else
6592 if test -n "$AWK"; then
6593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_AWK="$ac_prog"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6606 done
6607 done
6608 IFS=$as_save_IFS
6612 AWK=$ac_cv_prog_AWK
6613 if test -n "$AWK"; then
6614 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6615 $as_echo "$AWK" >&6; }
6616 else
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$AWK" && break
6623 done
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628 if test "${ac_cv_path_mkdir+set}" = set; then
6629 $as_echo_n "(cached) " >&6
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_prog in mkdir gmkdir; do
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640 'mkdir (GNU coreutils) '* | \
6641 'mkdir (coreutils) '* | \
6642 'mkdir (fileutils) '4.1*)
6643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6644 break 3;;
6645 esac
6646 done
6647 done
6648 done
6649 IFS=$as_save_IFS
6653 if test "${ac_cv_path_mkdir+set}" = set; then
6654 MKDIR_P="$ac_cv_path_mkdir -p"
6655 else
6656 # As a last resort, use the slow shell script. Don't cache a
6657 # value for MKDIR_P within a source directory, because that will
6658 # break other packages using the cache if that directory is
6659 # removed, or if the value is a relative name.
6660 test -d ./--version && rmdir ./--version
6661 MKDIR_P="$ac_install_sh -d"
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6667 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6668 # a relative path to it in each makefile where it subsitutes it. This clashes
6669 # with our Makefile.global concept. This workaround helps.
6670 case $MKDIR_P in
6671 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6672 esac
6674 # Let the user override the search
6675 if test -z "$BISON"; then
6676 for ac_prog in bison
6678 # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_BISON+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6684 else
6685 case $BISON in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6706 esac
6708 BISON=$ac_cv_path_BISON
6709 if test -n "$BISON"; then
6710 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6711 $as_echo "$BISON" >&6; }
6712 else
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6718 test -n "$BISON" && break
6719 done
6723 if test "$BISON"; then
6724 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6725 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6726 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6727 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6728 then
6729 { $as_echo "$as_me:$LINENO: WARNING:
6730 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6731 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6732 $as_echo "$as_me: WARNING:
6733 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6735 BISON=""
6739 if test -z "$BISON"; then
6740 { $as_echo "$as_me:$LINENO: WARNING:
6741 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6742 *** change any of the parser definition files. You can obtain Bison from
6743 *** a GNU mirror site. (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this, because the Bison
6745 *** output is pre-generated.)" >&5
6746 $as_echo "$as_me: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6748 *** change any of the parser definition files. You can obtain Bison from
6749 *** a GNU mirror site. (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&2;}
6753 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6756 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6757 $as_echo_n "checking for flex... " >&6; }
6758 if test "${pgac_cv_path_flex+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6760 else
6761 # Let the user override the test
6762 if test -n "$FLEX"; then
6763 pgac_cv_path_flex=$FLEX
6764 else
6765 pgac_save_IFS=$IFS
6766 IFS=$PATH_SEPARATOR
6767 for pgac_dir in $PATH; do
6768 IFS=$pgac_save_IFS
6769 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6770 pgac_dir=`pwd`
6772 for pgac_prog in flex lex; do
6773 pgac_candidate="$pgac_dir/$pgac_prog"
6774 if test -f "$pgac_candidate" \
6775 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6776 then
6777 echo '%%' > conftest.l
6778 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6779 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6780 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6781 then
6782 pgac_cv_path_flex=$pgac_candidate
6783 break 2
6784 else
6785 { $as_echo "$as_me:$LINENO: WARNING:
6786 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6787 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6788 $as_echo "$as_me: WARNING:
6789 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6790 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6794 done
6795 done
6796 rm -f conftest.l lex.yy.c
6797 : ${pgac_cv_path_flex=no}
6801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6802 $as_echo "$pgac_cv_path_flex" >&6; }
6803 if test x"$pgac_cv_path_flex" = x"no"; then
6804 { $as_echo "$as_me:$LINENO: WARNING:
6805 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6806 *** change any of the scanner definition files. You can obtain Flex from
6807 *** a GNU mirror site. (If you are using the official distribution of
6808 *** PostgreSQL then you do not need to worry about this because the Flex
6809 *** output is pre-generated.)" >&5
6810 $as_echo "$as_me: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6812 *** change any of the scanner definition files. You can obtain Flex from
6813 *** a GNU mirror site. (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&2;}
6817 FLEX=
6818 else
6819 FLEX=$pgac_cv_path_flex
6820 pgac_flex_version=`$FLEX --version 2>/dev/null`
6821 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6822 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6829 # Let the user override the search
6830 if test -z "$PERL"; then
6831 # Extract the first word of "perl", so it can be a program name with args.
6832 set dummy perl; ac_word=$2
6833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_path_PERL+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6837 else
6838 case $PERL in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6854 done
6855 done
6856 IFS=$as_save_IFS
6859 esac
6861 PERL=$ac_cv_path_PERL
6862 if test -n "$PERL"; then
6863 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6864 $as_echo "$PERL" >&6; }
6865 else
6866 { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6873 if test "$PERL"; then
6874 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
6875 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6876 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6877 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6878 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6879 then
6880 { $as_echo "$as_me:$LINENO: WARNING:
6881 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6882 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6883 $as_echo "$as_me: WARNING:
6884 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6885 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6886 PERL=""
6890 if test -z "$PERL"; then
6891 { $as_echo "$as_me:$LINENO: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from CVS.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6896 $as_echo "$as_me: WARNING:
6897 *** Without Perl you will not be able to build PostgreSQL from CVS.
6898 *** You can obtain Perl from any CPAN mirror site.
6899 *** (If you are using the official distribution of PostgreSQL then you do not
6900 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6903 if test "$with_perl" = yes; then
6904 if test -z "$PERL"; then
6905 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6906 $as_echo "$as_me: error: Perl not found" >&2;}
6907 { (exit 1); exit 1; }; }
6910 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6911 $as_echo_n "checking for Perl archlibexp... " >&6; }
6912 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6914 $as_echo "$perl_archlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6916 $as_echo_n "checking for Perl privlibexp... " >&6; }
6917 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6919 $as_echo "$perl_privlibexp" >&6; }
6920 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6921 $as_echo_n "checking for Perl useshrplib... " >&6; }
6922 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6923 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6924 $as_echo "$perl_useshrplib" >&6; }
6926 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6927 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6928 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6929 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6930 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6931 if test -z "$perl_embed_ldflags" ; then
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6935 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6936 installed." >&5
6937 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6938 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6939 installed." >&2;}
6940 { (exit 1); exit 1; }; }
6941 else
6942 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6943 $as_echo "$perl_embed_ldflags" >&6; }
6948 if test "$with_python" = yes; then
6949 # Extract the first word of "python", so it can be a program name with args.
6950 set dummy python; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_path_PYTHON+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6955 else
6956 case $PYTHON in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6972 done
6973 done
6974 IFS=$as_save_IFS
6977 esac
6979 PYTHON=$ac_cv_path_PYTHON
6980 if test -n "$PYTHON"; then
6981 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6982 $as_echo "$PYTHON" >&6; }
6983 else
6984 { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6989 if test x"$PYTHON" = x""; then
6990 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6991 $as_echo "$as_me: error: Python not found" >&2;}
6992 { (exit 1); exit 1; }; }
6996 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6997 $as_echo_n "checking for Python distutils module... " >&6; }
6998 if "${PYTHON}" -c 'import distutils' 2>&5
6999 then
7000 { $as_echo "$as_me:$LINENO: result: yes" >&5
7001 $as_echo "yes" >&6; }
7002 else
7003 { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7006 $as_echo "$as_me: error: distutils module not found" >&2;}
7007 { (exit 1); exit 1; }; }
7009 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7010 $as_echo_n "checking Python configuration directory... " >&6; }
7011 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7012 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7013 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'))"`
7014 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7016 # This should be enough of a message.
7017 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7018 $as_echo "$python_configdir" >&6; }
7021 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7022 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7024 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7025 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7026 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7027 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7029 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7030 then
7031 # New way: use the official shared library
7032 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7033 python_libspec="-L${python_libdir} -l${ldlibrary}"
7034 else
7035 # Old way: use libpython from python_configdir
7036 python_libdir="${python_configdir}"
7037 python_libspec="-L${python_libdir} -lpython${python_version}"
7040 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7042 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7043 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7046 # threaded python is not supported on bsd's
7047 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7048 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7049 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7050 if test "$pythreads" = "1"; then
7051 { $as_echo "$as_me:$LINENO: result: yes" >&5
7052 $as_echo "yes" >&6; }
7053 case $host_os in
7054 openbsd*|freebsd*)
7055 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7056 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7057 { (exit 1); exit 1; }; }
7059 esac
7060 else
7061 { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7068 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7069 # Extract the first word of "zic", so it can be a program name with args.
7070 set dummy zic; ac_word=$2
7071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_path_ZIC+set}" = set; then
7074 $as_echo_n "(cached) " >&6
7075 else
7076 case $ZIC in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7097 esac
7099 ZIC=$ac_cv_path_ZIC
7100 if test -n "$ZIC"; then
7101 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7102 $as_echo "$ZIC" >&6; }
7103 else
7104 { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7109 if test -z "$ZIC"; then
7110 { { $as_echo "$as_me:$LINENO: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&5
7114 $as_echo "$as_me: error:
7115 When cross-compiling, either use the option --with-system-tzdata to use
7116 existing time-zone data, or set the environment variable ZIC to a zic
7117 program to use during the build." >&2;}
7118 { (exit 1); exit 1; }; }
7124 ## Libraries
7126 ## Most libraries are included only if they demonstrably provide a function
7127 ## we need, but libm is an exception: always include it, because there are
7128 ## too many compilers that play cute optimization games that will break
7129 ## probes for standard functions such as pow().
7133 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7134 $as_echo_n "checking for main in -lm... " >&6; }
7135 if test "${ac_cv_lib_m_main+set}" = set; then
7136 $as_echo_n "(cached) " >&6
7137 else
7138 ac_check_lib_save_LIBS=$LIBS
7139 LIBS="-lm $LIBS"
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7149 main ()
7151 return main ();
7153 return 0;
7155 _ACEOF
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7158 case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_link") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest$ac_exeext && {
7174 test "$cross_compiling" = yes ||
7175 $as_test_x conftest$ac_exeext
7176 }; then
7177 ac_cv_lib_m_main=yes
7178 else
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_cv_lib_m_main=no
7185 rm -rf conftest.dSYM
7186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7191 $as_echo "$ac_cv_lib_m_main" >&6; }
7192 if test "x$ac_cv_lib_m_main" = x""yes; then
7193 cat >>confdefs.h <<_ACEOF
7194 #define HAVE_LIBM 1
7195 _ACEOF
7197 LIBS="-lm $LIBS"
7201 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7202 $as_echo_n "checking for library containing setproctitle... " >&6; }
7203 if test "${ac_cv_search_setproctitle+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7205 else
7206 ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char setproctitle ();
7222 main ()
7224 return setproctitle ();
7226 return 0;
7228 _ACEOF
7229 for ac_lib in '' util; do
7230 if test -z "$ac_lib"; then
7231 ac_res="none required"
7232 else
7233 ac_res=-l$ac_lib
7234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7238 case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_link") 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest$ac_exeext && {
7254 test "$cross_compiling" = yes ||
7255 $as_test_x conftest$ac_exeext
7256 }; then
7257 ac_cv_search_setproctitle=$ac_res
7258 else
7259 $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7267 conftest$ac_exeext
7268 if test "${ac_cv_search_setproctitle+set}" = set; then
7269 break
7271 done
7272 if test "${ac_cv_search_setproctitle+set}" = set; then
7274 else
7275 ac_cv_search_setproctitle=no
7277 rm conftest.$ac_ext
7278 LIBS=$ac_func_search_save_LIBS
7280 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7281 $as_echo "$ac_cv_search_setproctitle" >&6; }
7282 ac_res=$ac_cv_search_setproctitle
7283 if test "$ac_res" != no; then
7284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7288 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7289 $as_echo_n "checking for library containing dlopen... " >&6; }
7290 if test "${ac_cv_search_dlopen+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7292 else
7293 ac_func_search_save_LIBS=$LIBS
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7301 /* Override any GCC internal prototype to avoid an error.
7302 Use char because int might match the return type of a GCC
7303 builtin and then its argument prototype would still apply. */
7304 #ifdef __cplusplus
7305 extern "C"
7306 #endif
7307 char dlopen ();
7309 main ()
7311 return dlopen ();
7313 return 0;
7315 _ACEOF
7316 for ac_lib in '' dl; do
7317 if test -z "$ac_lib"; then
7318 ac_res="none required"
7319 else
7320 ac_res=-l$ac_lib
7321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (ac_try="$ac_link"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331 (eval "$ac_link") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest$ac_exeext && {
7341 test "$cross_compiling" = yes ||
7342 $as_test_x conftest$ac_exeext
7343 }; then
7344 ac_cv_search_dlopen=$ac_res
7345 else
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7352 rm -rf conftest.dSYM
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354 conftest$ac_exeext
7355 if test "${ac_cv_search_dlopen+set}" = set; then
7356 break
7358 done
7359 if test "${ac_cv_search_dlopen+set}" = set; then
7361 else
7362 ac_cv_search_dlopen=no
7364 rm conftest.$ac_ext
7365 LIBS=$ac_func_search_save_LIBS
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res=$ac_cv_search_dlopen
7370 if test "$ac_res" != no; then
7371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7375 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7376 $as_echo_n "checking for library containing socket... " >&6; }
7377 if test "${ac_cv_search_socket+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7379 else
7380 ac_func_search_save_LIBS=$LIBS
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char socket ();
7396 main ()
7398 return socket ();
7400 return 0;
7402 _ACEOF
7403 for ac_lib in '' socket wsock32; do
7404 if test -z "$ac_lib"; then
7405 ac_res="none required"
7406 else
7407 ac_res=-l$ac_lib
7408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7410 rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (ac_try="$ac_link"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_link") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest$ac_exeext && {
7428 test "$cross_compiling" = yes ||
7429 $as_test_x conftest$ac_exeext
7430 }; then
7431 ac_cv_search_socket=$ac_res
7432 else
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -rf conftest.dSYM
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441 conftest$ac_exeext
7442 if test "${ac_cv_search_socket+set}" = set; then
7443 break
7445 done
7446 if test "${ac_cv_search_socket+set}" = set; then
7448 else
7449 ac_cv_search_socket=no
7451 rm conftest.$ac_ext
7452 LIBS=$ac_func_search_save_LIBS
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7455 $as_echo "$ac_cv_search_socket" >&6; }
7456 ac_res=$ac_cv_search_socket
7457 if test "$ac_res" != no; then
7458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7462 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7463 $as_echo_n "checking for library containing shl_load... " >&6; }
7464 if test "${ac_cv_search_shl_load+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7466 else
7467 ac_func_search_save_LIBS=$LIBS
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char shl_load ();
7483 main ()
7485 return shl_load ();
7487 return 0;
7489 _ACEOF
7490 for ac_lib in '' dld; do
7491 if test -z "$ac_lib"; then
7492 ac_res="none required"
7493 else
7494 ac_res=-l$ac_lib
7495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_link") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest$ac_exeext && {
7515 test "$cross_compiling" = yes ||
7516 $as_test_x conftest$ac_exeext
7517 }; then
7518 ac_cv_search_shl_load=$ac_res
7519 else
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7528 conftest$ac_exeext
7529 if test "${ac_cv_search_shl_load+set}" = set; then
7530 break
7532 done
7533 if test "${ac_cv_search_shl_load+set}" = set; then
7535 else
7536 ac_cv_search_shl_load=no
7538 rm conftest.$ac_ext
7539 LIBS=$ac_func_search_save_LIBS
7541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7542 $as_echo "$ac_cv_search_shl_load" >&6; }
7543 ac_res=$ac_cv_search_shl_load
7544 if test "$ac_res" != no; then
7545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7549 # We only use libld in port/dynloader/aix.c
7550 case $host_os in
7551 aix*)
7552 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7553 $as_echo_n "checking for library containing ldopen... " >&6; }
7554 if test "${ac_cv_search_ldopen+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 else
7557 ac_func_search_save_LIBS=$LIBS
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char ldopen ();
7573 main ()
7575 return ldopen ();
7577 return 0;
7579 _ACEOF
7580 for ac_lib in '' ld; do
7581 if test -z "$ac_lib"; then
7582 ac_res="none required"
7583 else
7584 ac_res=-l$ac_lib
7585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594 $as_echo "$ac_try_echo") >&5
7595 (eval "$ac_link") 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext && {
7605 test "$cross_compiling" = yes ||
7606 $as_test_x conftest$ac_exeext
7607 }; then
7608 ac_cv_search_ldopen=$ac_res
7609 else
7610 $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7616 rm -rf conftest.dSYM
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext
7619 if test "${ac_cv_search_ldopen+set}" = set; then
7620 break
7622 done
7623 if test "${ac_cv_search_ldopen+set}" = set; then
7625 else
7626 ac_cv_search_ldopen=no
7628 rm conftest.$ac_ext
7629 LIBS=$ac_func_search_save_LIBS
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7632 $as_echo "$ac_cv_search_ldopen" >&6; }
7633 ac_res=$ac_cv_search_ldopen
7634 if test "$ac_res" != no; then
7635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7640 esac
7641 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7642 $as_echo_n "checking for library containing getopt_long... " >&6; }
7643 if test "${ac_cv_search_getopt_long+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7645 else
7646 ac_func_search_save_LIBS=$LIBS
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char getopt_long ();
7662 main ()
7664 return getopt_long ();
7666 return 0;
7668 _ACEOF
7669 for ac_lib in '' getopt gnugetopt; do
7670 if test -z "$ac_lib"; then
7671 ac_res="none required"
7672 else
7673 ac_res=-l$ac_lib
7674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7678 case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683 $as_echo "$ac_try_echo") >&5
7684 (eval "$ac_link") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest$ac_exeext && {
7694 test "$cross_compiling" = yes ||
7695 $as_test_x conftest$ac_exeext
7696 }; then
7697 ac_cv_search_getopt_long=$ac_res
7698 else
7699 $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7705 rm -rf conftest.dSYM
7706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7707 conftest$ac_exeext
7708 if test "${ac_cv_search_getopt_long+set}" = set; then
7709 break
7711 done
7712 if test "${ac_cv_search_getopt_long+set}" = set; then
7714 else
7715 ac_cv_search_getopt_long=no
7717 rm conftest.$ac_ext
7718 LIBS=$ac_func_search_save_LIBS
7720 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7721 $as_echo "$ac_cv_search_getopt_long" >&6; }
7722 ac_res=$ac_cv_search_getopt_long
7723 if test "$ac_res" != no; then
7724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7728 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7729 $as_echo_n "checking for library containing crypt... " >&6; }
7730 if test "${ac_cv_search_crypt+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7732 else
7733 ac_func_search_save_LIBS=$LIBS
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char crypt ();
7749 main ()
7751 return crypt ();
7753 return 0;
7755 _ACEOF
7756 for ac_lib in '' crypt; do
7757 if test -z "$ac_lib"; then
7758 ac_res="none required"
7759 else
7760 ac_res=-l$ac_lib
7761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771 (eval "$ac_link") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext && {
7781 test "$cross_compiling" = yes ||
7782 $as_test_x conftest$ac_exeext
7783 }; then
7784 ac_cv_search_crypt=$ac_res
7785 else
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794 conftest$ac_exeext
7795 if test "${ac_cv_search_crypt+set}" = set; then
7796 break
7798 done
7799 if test "${ac_cv_search_crypt+set}" = set; then
7801 else
7802 ac_cv_search_crypt=no
7804 rm conftest.$ac_ext
7805 LIBS=$ac_func_search_save_LIBS
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7808 $as_echo "$ac_cv_search_crypt" >&6; }
7809 ac_res=$ac_cv_search_crypt
7810 if test "$ac_res" != no; then
7811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7815 # Solaris:
7816 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7817 $as_echo_n "checking for library containing fdatasync... " >&6; }
7818 if test "${ac_cv_search_fdatasync+set}" = set; then
7819 $as_echo_n "(cached) " >&6
7820 else
7821 ac_func_search_save_LIBS=$LIBS
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h. */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7829 /* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 char fdatasync ();
7837 main ()
7839 return fdatasync ();
7841 return 0;
7843 _ACEOF
7844 for ac_lib in '' rt posix4; do
7845 if test -z "$ac_lib"; then
7846 ac_res="none required"
7847 else
7848 ac_res=-l$ac_lib
7849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856 esac
7857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859 (eval "$ac_link") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext && {
7869 test "$cross_compiling" = yes ||
7870 $as_test_x conftest$ac_exeext
7871 }; then
7872 ac_cv_search_fdatasync=$ac_res
7873 else
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882 conftest$ac_exeext
7883 if test "${ac_cv_search_fdatasync+set}" = set; then
7884 break
7886 done
7887 if test "${ac_cv_search_fdatasync+set}" = set; then
7889 else
7890 ac_cv_search_fdatasync=no
7892 rm conftest.$ac_ext
7893 LIBS=$ac_func_search_save_LIBS
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7896 $as_echo "$ac_cv_search_fdatasync" >&6; }
7897 ac_res=$ac_cv_search_fdatasync
7898 if test "$ac_res" != no; then
7899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7903 # Required for thread_test.c on Solaris 2.5:
7904 # Other ports use it too (HP-UX) so test unconditionally
7905 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7906 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7907 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7909 else
7910 ac_func_search_save_LIBS=$LIBS
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7918 /* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char gethostbyname_r ();
7926 main ()
7928 return gethostbyname_r ();
7930 return 0;
7932 _ACEOF
7933 for ac_lib in '' nsl; do
7934 if test -z "$ac_lib"; then
7935 ac_res="none required"
7936 else
7937 ac_res=-l$ac_lib
7938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext && {
7958 test "$cross_compiling" = yes ||
7959 $as_test_x conftest$ac_exeext
7960 }; then
7961 ac_cv_search_gethostbyname_r=$ac_res
7962 else
7963 $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -rf conftest.dSYM
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971 conftest$ac_exeext
7972 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7973 break
7975 done
7976 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7978 else
7979 ac_cv_search_gethostbyname_r=no
7981 rm conftest.$ac_ext
7982 LIBS=$ac_func_search_save_LIBS
7984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7985 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7986 ac_res=$ac_cv_search_gethostbyname_r
7987 if test "$ac_res" != no; then
7988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7992 # Cygwin:
7993 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7994 $as_echo_n "checking for library containing shmget... " >&6; }
7995 if test "${ac_cv_search_shmget+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7997 else
7998 ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char shmget ();
8014 main ()
8016 return shmget ();
8018 return 0;
8020 _ACEOF
8021 for ac_lib in '' cygipc; do
8022 if test -z "$ac_lib"; then
8023 ac_res="none required"
8024 else
8025 ac_res=-l$ac_lib
8026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest$ac_exeext
8048 }; then
8049 ac_cv_search_shmget=$ac_res
8050 else
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 conftest$ac_exeext
8060 if test "${ac_cv_search_shmget+set}" = set; then
8061 break
8063 done
8064 if test "${ac_cv_search_shmget+set}" = set; then
8066 else
8067 ac_cv_search_shmget=no
8069 rm conftest.$ac_ext
8070 LIBS=$ac_func_search_save_LIBS
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8073 $as_echo "$ac_cv_search_shmget" >&6; }
8074 ac_res=$ac_cv_search_shmget
8075 if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8081 if test "$with_readline" = yes; then
8084 if test "${pgac_cv_check_readline+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8086 else
8087 pgac_cv_check_readline=no
8088 pgac_save_LIBS=$LIBS
8089 if test x"$with_libedit_preferred" != x"yes"
8090 then READLINE_ORDER="-lreadline -ledit"
8091 else READLINE_ORDER="-ledit -lreadline"
8093 for pgac_rllib in $READLINE_ORDER ; do
8094 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8095 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8096 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8097 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char readline ();
8113 main ()
8115 return readline ();
8117 return 0;
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8140 }; then
8142 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8143 # recognize dependent libraries; assume curses is needed if we didn't
8144 # find any dependency.
8145 case $host_os in
8146 netbsd* | openbsd* | irix*)
8147 if test x"$pgac_lib" = x"" ; then
8148 pgac_lib=" -lcurses"
8149 fi ;;
8150 esac
8152 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8153 break
8155 else
8156 $as_echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -rf conftest.dSYM
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164 conftest$ac_exeext conftest.$ac_ext
8165 done
8166 if test "$pgac_cv_check_readline" != no ; then
8167 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8168 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8169 break
8170 else
8171 { $as_echo "$as_me:$LINENO: result: no" >&5
8172 $as_echo "no" >&6; }
8174 done
8175 LIBS=$pgac_save_LIBS
8179 if test "$pgac_cv_check_readline" != no ; then
8180 LIBS="$pgac_cv_check_readline $LIBS"
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_LIBREADLINE 1
8184 _ACEOF
8189 if test x"$pgac_cv_check_readline" = x"no"; then
8190 { { $as_echo "$as_me:$LINENO: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure. It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&5
8194 $as_echo "$as_me: error: readline library not found
8195 If you have readline already installed, see config.log for details on the
8196 failure. It is possible the compiler isn't looking in the proper directory.
8197 Use --without-readline to disable readline support." >&2;}
8198 { (exit 1); exit 1; }; }
8202 if test "$with_zlib" = yes; then
8204 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8205 $as_echo_n "checking for inflate in -lz... " >&6; }
8206 if test "${ac_cv_lib_z_inflate+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8208 else
8209 ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lz $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char inflate ();
8226 main ()
8228 return inflate ();
8230 return 0;
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240 $as_echo "$ac_try_echo") >&5
8241 (eval "$ac_link") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest$ac_exeext && {
8251 test "$cross_compiling" = yes ||
8252 $as_test_x conftest$ac_exeext
8253 }; then
8254 ac_cv_lib_z_inflate=yes
8255 else
8256 $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_lib_z_inflate=no
8262 rm -rf conftest.dSYM
8263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8268 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8269 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8270 cat >>confdefs.h <<_ACEOF
8271 #define HAVE_LIBZ 1
8272 _ACEOF
8274 LIBS="-lz $LIBS"
8276 else
8277 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&5
8281 $as_echo "$as_me: error: zlib library not found
8282 If you have zlib already installed, see config.log for details on the
8283 failure. It is possible the compiler isn't looking in the proper directory.
8284 Use --without-zlib to disable zlib support." >&2;}
8285 { (exit 1); exit 1; }; }
8290 if test "$enable_spinlocks" = yes; then
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_SPINLOCKS 1
8294 _ACEOF
8296 else
8297 { $as_echo "$as_me:$LINENO: WARNING:
8298 *** Not using spinlocks will cause poor performance." >&5
8299 $as_echo "$as_me: WARNING:
8300 *** Not using spinlocks will cause poor performance." >&2;}
8303 if test "$with_gssapi" = yes ; then
8304 if test "$PORTNAME" != "win32"; then
8305 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8306 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8307 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8309 else
8310 ac_func_search_save_LIBS=$LIBS
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char gss_init_sec_context ();
8326 main ()
8328 return gss_init_sec_context ();
8330 return 0;
8332 _ACEOF
8333 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8334 if test -z "$ac_lib"; then
8335 ac_res="none required"
8336 else
8337 ac_res=-l$ac_lib
8338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8342 case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345 esac
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348 (eval "$ac_link") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest$ac_exeext && {
8358 test "$cross_compiling" = yes ||
8359 $as_test_x conftest$ac_exeext
8360 }; then
8361 ac_cv_search_gss_init_sec_context=$ac_res
8362 else
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -rf conftest.dSYM
8370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8371 conftest$ac_exeext
8372 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8373 break
8375 done
8376 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8378 else
8379 ac_cv_search_gss_init_sec_context=no
8381 rm conftest.$ac_ext
8382 LIBS=$ac_func_search_save_LIBS
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8385 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8386 ac_res=$ac_cv_search_gss_init_sec_context
8387 if test "$ac_res" != no; then
8388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8390 else
8391 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8392 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8393 { (exit 1); exit 1; }; }
8396 else
8397 LIBS="$LIBS -lgssapi32"
8401 if test "$with_krb5" = yes ; then
8402 if test "$PORTNAME" != "win32"; then
8403 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 $as_echo_n "checking for library containing com_err... " >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8407 else
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char com_err ();
8424 main ()
8426 return com_err ();
8428 return 0;
8430 _ACEOF
8431 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8434 else
8435 ac_res=-l$ac_lib
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446 (eval "$ac_link") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext && {
8456 test "$cross_compiling" = yes ||
8457 $as_test_x conftest$ac_exeext
8458 }; then
8459 ac_cv_search_com_err=$ac_res
8460 else
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8467 rm -rf conftest.dSYM
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8469 conftest$ac_exeext
8470 if test "${ac_cv_search_com_err+set}" = set; then
8471 break
8473 done
8474 if test "${ac_cv_search_com_err+set}" = set; then
8476 else
8477 ac_cv_search_com_err=no
8479 rm conftest.$ac_ext
8480 LIBS=$ac_func_search_save_LIBS
8482 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8483 $as_echo "$ac_cv_search_com_err" >&6; }
8484 ac_res=$ac_cv_search_com_err
8485 if test "$ac_res" != no; then
8486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8488 else
8489 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8490 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8491 { (exit 1); exit 1; }; }
8494 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8495 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8498 else
8499 ac_func_search_save_LIBS=$LIBS
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 char krb5_sendauth ();
8515 main ()
8517 return krb5_sendauth ();
8519 return 0;
8521 _ACEOF
8522 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8523 if test -z "$ac_lib"; then
8524 ac_res="none required"
8525 else
8526 ac_res=-l$ac_lib
8527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8531 case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534 esac
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537 (eval "$ac_link") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest$ac_exeext && {
8547 test "$cross_compiling" = yes ||
8548 $as_test_x conftest$ac_exeext
8549 }; then
8550 ac_cv_search_krb5_sendauth=$ac_res
8551 else
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8560 conftest$ac_exeext
8561 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8562 break
8564 done
8565 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8567 else
8568 ac_cv_search_krb5_sendauth=no
8570 rm conftest.$ac_ext
8571 LIBS=$ac_func_search_save_LIBS
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8574 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8575 ac_res=$ac_cv_search_krb5_sendauth
8576 if test "$ac_res" != no; then
8577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8579 else
8580 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8581 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8582 { (exit 1); exit 1; }; }
8585 else
8586 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8587 $as_echo_n "checking for library containing com_err... " >&6; }
8588 if test "${ac_cv_search_com_err+set}" = set; then
8589 $as_echo_n "(cached) " >&6
8590 else
8591 ac_func_search_save_LIBS=$LIBS
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. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 char com_err ();
8607 main ()
8609 return com_err ();
8611 return 0;
8613 _ACEOF
8614 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8617 else
8618 ac_res=-l$ac_lib
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629 (eval "$ac_link") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest$ac_exeext && {
8639 test "$cross_compiling" = yes ||
8640 $as_test_x conftest$ac_exeext
8641 }; then
8642 ac_cv_search_com_err=$ac_res
8643 else
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8652 conftest$ac_exeext
8653 if test "${ac_cv_search_com_err+set}" = set; then
8654 break
8656 done
8657 if test "${ac_cv_search_com_err+set}" = set; then
8659 else
8660 ac_cv_search_com_err=no
8662 rm conftest.$ac_ext
8663 LIBS=$ac_func_search_save_LIBS
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8666 $as_echo "$ac_cv_search_com_err" >&6; }
8667 ac_res=$ac_cv_search_com_err
8668 if test "$ac_res" != no; then
8669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8671 else
8672 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8673 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8674 { (exit 1); exit 1; }; }
8680 if test "$with_openssl" = yes ; then
8681 if test "$PORTNAME" != "win32"; then
8683 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8685 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8687 else
8688 ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lcrypto $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h. */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char CRYPTO_new_ex_data ();
8705 main ()
8707 return CRYPTO_new_ex_data ();
8709 return 0;
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717 esac
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720 (eval "$ac_link") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest$ac_exeext && {
8730 test "$cross_compiling" = yes ||
8731 $as_test_x conftest$ac_exeext
8732 }; then
8733 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8734 else
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8747 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8748 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_LIBCRYPTO 1
8751 _ACEOF
8753 LIBS="-lcrypto $LIBS"
8755 else
8756 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8757 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8758 { (exit 1); exit 1; }; }
8762 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8763 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8764 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8766 else
8767 ac_check_lib_save_LIBS=$LIBS
8768 LIBS="-lssl $LIBS"
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8776 /* Override any GCC internal prototype to avoid an error.
8777 Use char because int might match the return type of a GCC
8778 builtin and then its argument prototype would still apply. */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 char SSL_library_init ();
8784 main ()
8786 return SSL_library_init ();
8788 return 0;
8790 _ACEOF
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8793 case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796 esac
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_link") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest$ac_exeext && {
8809 test "$cross_compiling" = yes ||
8810 $as_test_x conftest$ac_exeext
8811 }; then
8812 ac_cv_lib_ssl_SSL_library_init=yes
8813 else
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_lib_ssl_SSL_library_init=no
8820 rm -rf conftest.dSYM
8821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8822 conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8826 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8827 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8828 cat >>confdefs.h <<_ACEOF
8829 #define HAVE_LIBSSL 1
8830 _ACEOF
8832 LIBS="-lssl $LIBS"
8834 else
8835 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8836 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8837 { (exit 1); exit 1; }; }
8840 else
8842 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8843 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8844 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8846 else
8847 ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-leay32 $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char CRYPTO_new_ex_data ();
8864 main ()
8866 return CRYPTO_new_ex_data ();
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8891 }; then
8892 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8893 else
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8906 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8907 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBEAY32 1
8910 _ACEOF
8912 LIBS="-leay32 $LIBS"
8914 else
8915 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8916 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8917 { (exit 1); exit 1; }; }
8921 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8922 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8923 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8925 else
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lssleay32 $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char SSL_library_init ();
8943 main ()
8945 return SSL_library_init ();
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8952 case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955 esac
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958 (eval "$ac_link") 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest$ac_exeext && {
8968 test "$cross_compiling" = yes ||
8969 $as_test_x conftest$ac_exeext
8970 }; then
8971 ac_cv_lib_ssleay32_SSL_library_init=yes
8972 else
8973 $as_echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_lib_ssleay32_SSL_library_init=no
8979 rm -rf conftest.dSYM
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8985 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8986 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBSSLEAY32 1
8989 _ACEOF
8991 LIBS="-lssleay32 $LIBS"
8993 else
8994 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8995 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8996 { (exit 1); exit 1; }; }
9002 if test "$with_pam" = yes ; then
9004 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9005 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9006 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9007 $as_echo_n "(cached) " >&6
9008 else
9009 ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lpam $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char pam_start ();
9026 main ()
9028 return pam_start ();
9030 return 0;
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9053 }; then
9054 ac_cv_lib_pam_pam_start=yes
9055 else
9056 $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_pam_pam_start=no
9062 rm -rf conftest.dSYM
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9068 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9069 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_LIBPAM 1
9072 _ACEOF
9074 LIBS="-lpam $LIBS"
9076 else
9077 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9078 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9079 { (exit 1); exit 1; }; }
9084 if test "$with_libxml" = yes ; then
9086 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9087 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9088 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9089 $as_echo_n "(cached) " >&6
9090 else
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lxml2 $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char xmlSaveToBuffer ();
9108 main ()
9110 return xmlSaveToBuffer ();
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_link") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest$ac_exeext && {
9133 test "$cross_compiling" = yes ||
9134 $as_test_x conftest$ac_exeext
9135 }; then
9136 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9137 else
9138 $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_cv_lib_xml2_xmlSaveToBuffer=no
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9150 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9151 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBXML2 1
9154 _ACEOF
9156 LIBS="-lxml2 $LIBS"
9158 else
9159 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9160 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9161 { (exit 1); exit 1; }; }
9166 if test "$with_libxslt" = yes ; then
9168 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9169 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9170 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9171 $as_echo_n "(cached) " >&6
9172 else
9173 ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lxslt $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h. */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char xsltCleanupGlobals ();
9190 main ()
9192 return xsltCleanupGlobals ();
9194 return 0;
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9217 }; then
9218 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9219 else
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_cv_lib_xslt_xsltCleanupGlobals=no
9226 rm -rf conftest.dSYM
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9232 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9233 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBXSLT 1
9236 _ACEOF
9238 LIBS="-lxslt $LIBS"
9240 else
9241 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9242 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9243 { (exit 1); exit 1; }; }
9248 # for contrib/uuid-ossp
9249 if test "$with_ossp_uuid" = yes ; then
9250 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9251 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9252 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9253 $as_echo_n "(cached) " >&6
9254 else
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lossp-uuid $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char uuid_export ();
9272 main ()
9274 return uuid_export ();
9276 return 0;
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9286 $as_echo "$ac_try_echo") >&5
9287 (eval "$ac_link") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest$ac_exeext && {
9297 test "$cross_compiling" = yes ||
9298 $as_test_x conftest$ac_exeext
9299 }; then
9300 ac_cv_lib_ossp_uuid_uuid_export=yes
9301 else
9302 $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_lib_ossp_uuid_uuid_export=no
9308 rm -rf conftest.dSYM
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9314 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9315 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9316 OSSP_UUID_LIBS="-lossp-uuid"
9317 else
9318 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9319 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9320 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9321 $as_echo_n "(cached) " >&6
9322 else
9323 ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-luuid $LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char uuid_export ();
9340 main ()
9342 return uuid_export ();
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_link") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext && {
9365 test "$cross_compiling" = yes ||
9366 $as_test_x conftest$ac_exeext
9367 }; then
9368 ac_cv_lib_uuid_uuid_export=yes
9369 else
9370 $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_cv_lib_uuid_uuid_export=no
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9382 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9383 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9384 OSSP_UUID_LIBS="-luuid"
9385 else
9386 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9387 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9388 { (exit 1); exit 1; }; }
9398 ## Header files
9401 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9402 $as_echo_n "checking for ANSI C header files... " >&6; }
9403 if test "${ac_cv_header_stdc+set}" = set; then
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 #include <stdlib.h>
9413 #include <stdarg.h>
9414 #include <string.h>
9415 #include <float.h>
9418 main ()
9422 return 0;
9424 _ACEOF
9425 rm -f conftest.$ac_objext
9426 if { (ac_try="$ac_compile"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_compile") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest.$ac_objext; then
9443 ac_cv_header_stdc=yes
9444 else
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_cv_header_stdc=no
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 if test $ac_cv_header_stdc = yes; then
9454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 #include <string.h>
9463 _ACEOF
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465 $EGREP "memchr" >/dev/null 2>&1; then
9467 else
9468 ac_cv_header_stdc=no
9470 rm -f conftest*
9474 if test $ac_cv_header_stdc = yes; then
9475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <stdlib.h>
9484 _ACEOF
9485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9486 $EGREP "free" >/dev/null 2>&1; then
9488 else
9489 ac_cv_header_stdc=no
9491 rm -f conftest*
9495 if test $ac_cv_header_stdc = yes; then
9496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9497 if test "$cross_compiling" = yes; then
9499 else
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <ctype.h>
9507 #include <stdlib.h>
9508 #if ((' ' & 0x0FF) == 0x020)
9509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9511 #else
9512 # define ISLOWER(c) \
9513 (('a' <= (c) && (c) <= 'i') \
9514 || ('j' <= (c) && (c) <= 'r') \
9515 || ('s' <= (c) && (c) <= 'z'))
9516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9517 #endif
9519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9521 main ()
9523 int i;
9524 for (i = 0; i < 256; i++)
9525 if (XOR (islower (i), ISLOWER (i))
9526 || toupper (i) != TOUPPER (i))
9527 return 2;
9528 return 0;
9530 _ACEOF
9531 rm -f conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539 (eval "$ac_link") 2>&5
9540 ac_status=$?
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_try") 2>&5
9550 ac_status=$?
9551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9554 else
9555 $as_echo "$as_me: program exited with status $ac_status" >&5
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ( exit $ac_status )
9560 ac_cv_header_stdc=no
9562 rm -rf conftest.dSYM
9563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9570 $as_echo "$ac_cv_header_stdc" >&6; }
9571 if test $ac_cv_header_stdc = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define STDC_HEADERS 1
9575 _ACEOF
9579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9590 inttypes.h stdint.h unistd.h
9592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 $as_echo_n "checking for $ac_header... " >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 $as_echo_n "(cached) " >&6
9597 else
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9606 #include <$ac_header>
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (ac_try="$ac_compile"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616 (eval "$ac_compile") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest.$ac_objext; then
9626 eval "$as_ac_Header=yes"
9627 else
9628 $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_Header=no"
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636 ac_res=`eval 'as_val=${'$as_ac_Header'}
9637 $as_echo "$as_val"'`
9638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9639 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x""yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 _ACEOF
9649 done
9682 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 $as_echo_n "(cached) " >&6
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9695 else
9696 # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9710 case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713 esac
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_header_compiler=yes
9727 else
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <$ac_header>
9748 _ACEOF
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 }; then
9766 ac_header_preproc=yes
9767 else
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 yes:no: )
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9787 no:yes:* )
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800 ( cat <<\_ASBOX
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9804 _ASBOX
9805 ) | sed "s/^/$as_me: WARNING: /" >&2
9807 esac
9808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 $as_echo_n "checking for $ac_header... " >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 $as_echo_n "(cached) " >&6
9812 else
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 ac_res=`eval 'as_val=${'$as_ac_Header'}
9816 $as_echo "$as_val"'`
9817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818 $as_echo "$ac_res" >&6; }
9821 as_val=`eval 'as_val=${'$as_ac_Header'}
9822 $as_echo "$as_val"'`
9823 if test "x$as_val" = x""yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9830 done
9833 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9834 # is included first.
9836 for ac_header in net/if.h
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 $as_echo_n "checking for $ac_header... " >&6; }
9841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #ifdef HAVE_SYS_SOCKET_H
9852 #include <sys/socket.h>
9853 #endif
9856 #include <$ac_header>
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9860 case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863 esac
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 eval "$as_ac_Header=yes"
9877 else
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 eval "$as_ac_Header=no"
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 ac_res=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9890 as_val=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 if test "x$as_val" = x""yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 _ACEOF
9899 done
9902 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9903 # netinet/in.h is included first.
9905 for ac_header in netinet/in.h
9907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 $as_echo_n "checking for $ac_header... " >&6; }
9911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912 $as_echo_n "(cached) " >&6
9914 ac_res=`eval 'as_val=${'$as_ac_Header'}
9915 $as_echo "$as_val"'`
9916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9918 else
9919 # Is the header compilable?
9920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9921 $as_echo_n "checking $ac_header usability... " >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h. */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 #include <$ac_header>
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9933 case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936 esac
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_header_compiler=yes
9950 else
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_header_compiler=no
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 $as_echo "$ac_header_compiler" >&6; }
9961 # Is the header present?
9962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9963 $as_echo_n "checking $ac_header presence... " >&6; }
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 #include <$ac_header>
9971 _ACEOF
9972 if { (ac_try="$ac_cpp conftest.$ac_ext"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } >/dev/null && {
9986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 }; then
9989 ac_header_preproc=yes
9990 else
9991 $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_preproc=no
9997 rm -f conftest.err conftest.$ac_ext
9998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 $as_echo "$ac_header_preproc" >&6; }
10001 # So? What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10003 yes:no: )
10004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008 ac_header_preproc=yes
10010 no:yes:* )
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10023 ( cat <<\_ASBOX
10024 ## ---------------------------------------- ##
10025 ## Report this to pgsql-bugs@postgresql.org ##
10026 ## ---------------------------------------- ##
10027 _ASBOX
10028 ) | sed "s/^/$as_me: WARNING: /" >&2
10030 esac
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034 $as_echo_n "(cached) " >&6
10035 else
10036 eval "$as_ac_Header=\$ac_header_preproc"
10038 ac_res=`eval 'as_val=${'$as_ac_Header'}
10039 $as_echo "$as_val"'`
10040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10041 $as_echo "$ac_res" >&6; }
10044 as_val=`eval 'as_val=${'$as_ac_Header'}
10045 $as_echo "$as_val"'`
10046 if test "x$as_val" = x""yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10053 done
10056 for ac_header in netinet/tcp.h
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10060 $as_echo_n "checking for $ac_header... " >&6; }
10061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10062 $as_echo_n "(cached) " >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 $ac_includes_default
10071 #ifdef HAVE_NETINET_IN_H
10072 #include <netinet/in.h>
10073 #endif
10076 #include <$ac_header>
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083 esac
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 eval "$as_ac_Header=yes"
10097 else
10098 $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 eval "$as_ac_Header=no"
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 ac_res=`eval 'as_val=${'$as_ac_Header'}
10107 $as_echo "$as_val"'`
10108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10109 $as_echo "$ac_res" >&6; }
10110 as_val=`eval 'as_val=${'$as_ac_Header'}
10111 $as_echo "$as_val"'`
10112 if test "x$as_val" = x""yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10119 done
10122 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10124 for ac_header in readline/readline.h
10126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 $as_echo_n "checking for $ac_header... " >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131 $as_echo_n "(cached) " >&6
10133 ac_res=`eval 'as_val=${'$as_ac_Header'}
10134 $as_echo "$as_val"'`
10135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136 $as_echo "$ac_res" >&6; }
10137 else
10138 # Is the header compilable?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10148 #include <$ac_header>
10149 _ACEOF
10150 rm -f conftest.$ac_objext
10151 if { (ac_try="$ac_compile"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155 esac
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158 (eval "$ac_compile") 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest.$ac_objext; then
10168 ac_header_compiler=yes
10169 else
10170 $as_echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_header_compiler=no
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 $as_echo "$ac_header_compiler" >&6; }
10180 # Is the header present?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 $as_echo_n "checking $ac_header presence... " >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <$ac_header>
10190 _ACEOF
10191 if { (ac_try="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } >/dev/null && {
10205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 }; then
10208 ac_header_preproc=yes
10209 else
10210 $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_header_preproc=no
10216 rm -f conftest.err conftest.$ac_ext
10217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218 $as_echo "$ac_header_preproc" >&6; }
10220 # So? What about this header?
10221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10222 yes:no: )
10223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10227 ac_header_preproc=yes
10229 no:yes:* )
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10242 ( cat <<\_ASBOX
10243 ## ---------------------------------------- ##
10244 ## Report this to pgsql-bugs@postgresql.org ##
10245 ## ---------------------------------------- ##
10246 _ASBOX
10247 ) | sed "s/^/$as_me: WARNING: /" >&2
10249 esac
10250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 $as_echo_n "checking for $ac_header... " >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 $as_echo_n "(cached) " >&6
10254 else
10255 eval "$as_ac_Header=\$ac_header_preproc"
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10263 as_val=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 if test "x$as_val" = x""yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 _ACEOF
10270 else
10272 for ac_header in readline.h
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 $as_echo_n "checking for $ac_header... " >&6; }
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279 $as_echo_n "(cached) " >&6
10281 ac_res=`eval 'as_val=${'$as_ac_Header'}
10282 $as_echo "$as_val"'`
10283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10284 $as_echo "$ac_res" >&6; }
10285 else
10286 # Is the header compilable?
10287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 $as_echo_n "checking $ac_header usability... " >&6; }
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10296 #include <$ac_header>
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303 esac
10304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305 $as_echo "$ac_try_echo") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.$ac_objext; then
10316 ac_header_compiler=yes
10317 else
10318 $as_echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_header_compiler=no
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 $as_echo "$ac_header_compiler" >&6; }
10328 # Is the header present?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 $as_echo_n "checking $ac_header presence... " >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <$ac_header>
10338 _ACEOF
10339 if { (ac_try="$ac_cpp conftest.$ac_ext"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345 $as_echo "$ac_try_echo") >&5
10346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null && {
10353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 }; then
10356 ac_header_preproc=yes
10357 else
10358 $as_echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 $as_echo "$ac_header_preproc" >&6; }
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370 yes:no: )
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10377 no:yes:* )
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10390 ( cat <<\_ASBOX
10391 ## ---------------------------------------- ##
10392 ## Report this to pgsql-bugs@postgresql.org ##
10393 ## ---------------------------------------- ##
10394 _ASBOX
10395 ) | sed "s/^/$as_me: WARNING: /" >&2
10397 esac
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401 $as_echo_n "(cached) " >&6
10402 else
10403 eval "$as_ac_Header=\$ac_header_preproc"
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406 $as_echo "$as_val"'`
10407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10411 as_val=`eval 'as_val=${'$as_ac_Header'}
10412 $as_echo "$as_val"'`
10413 if test "x$as_val" = x""yes; then
10414 cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10416 _ACEOF
10418 else
10419 { { $as_echo "$as_me:$LINENO: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure. It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&5
10423 $as_echo "$as_me: error: readline header not found
10424 If you have readline already installed, see config.log for details on the
10425 failure. It is possible the compiler isn't looking in the proper directory.
10426 Use --without-readline to disable readline support." >&2;}
10427 { (exit 1); exit 1; }; }
10430 done
10434 done
10437 for ac_header in readline/history.h
10439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444 $as_echo_n "(cached) " >&6
10446 ac_res=`eval 'as_val=${'$as_ac_Header'}
10447 $as_echo "$as_val"'`
10448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10450 else
10451 # Is the header compilable?
10452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 $as_echo_n "checking $ac_header usability... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 $ac_includes_default
10461 #include <$ac_header>
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.$ac_objext; then
10481 ac_header_compiler=yes
10482 else
10483 $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_header_compiler=no
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 $as_echo "$ac_header_compiler" >&6; }
10493 # Is the header present?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 $as_echo_n "checking $ac_header presence... " >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (ac_try="$ac_cpp conftest.$ac_ext"
10505 case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10508 esac
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null && {
10518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 }; then
10521 ac_header_preproc=yes
10522 else
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_preproc=no
10529 rm -f conftest.err conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 $as_echo "$ac_header_preproc" >&6; }
10533 # So? What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10535 yes:no: )
10536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540 ac_header_preproc=yes
10542 no:yes:* )
10543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10546 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10555 ( cat <<\_ASBOX
10556 ## ---------------------------------------- ##
10557 ## Report this to pgsql-bugs@postgresql.org ##
10558 ## ---------------------------------------- ##
10559 _ASBOX
10560 ) | sed "s/^/$as_me: WARNING: /" >&2
10562 esac
10563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 $as_echo_n "checking for $ac_header... " >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 $as_echo_n "(cached) " >&6
10567 else
10568 eval "$as_ac_Header=\$ac_header_preproc"
10570 ac_res=`eval 'as_val=${'$as_ac_Header'}
10571 $as_echo "$as_val"'`
10572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10573 $as_echo "$ac_res" >&6; }
10576 as_val=`eval 'as_val=${'$as_ac_Header'}
10577 $as_echo "$as_val"'`
10578 if test "x$as_val" = x""yes; then
10579 cat >>confdefs.h <<_ACEOF
10580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581 _ACEOF
10583 else
10585 for ac_header in history.h
10587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 $as_echo_n "checking for $ac_header... " >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592 $as_echo_n "(cached) " >&6
10594 ac_res=`eval 'as_val=${'$as_ac_Header'}
10595 $as_echo "$as_val"'`
10596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597 $as_echo "$ac_res" >&6; }
10598 else
10599 # Is the header compilable?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 $as_echo_n "checking $ac_header usability... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h. */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 $ac_includes_default
10609 #include <$ac_header>
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest.$ac_objext; then
10629 ac_header_compiler=yes
10630 else
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_header_compiler=no
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 $as_echo "$ac_header_compiler" >&6; }
10641 # Is the header present?
10642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 $as_echo_n "checking $ac_header presence... " >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <$ac_header>
10651 _ACEOF
10652 if { (ac_try="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656 esac
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null && {
10666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 }; then
10669 ac_header_preproc=yes
10670 else
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_header_preproc=no
10677 rm -f conftest.err conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10679 $as_echo "$ac_header_preproc" >&6; }
10681 # So? What about this header?
10682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10683 yes:no: )
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10688 ac_header_preproc=yes
10690 no:yes:* )
10691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10703 ( cat <<\_ASBOX
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10707 _ASBOX
10708 ) | sed "s/^/$as_me: WARNING: /" >&2
10710 esac
10711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 $as_echo_n "checking for $ac_header... " >&6; }
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714 $as_echo_n "(cached) " >&6
10715 else
10716 eval "$as_ac_Header=\$ac_header_preproc"
10718 ac_res=`eval 'as_val=${'$as_ac_Header'}
10719 $as_echo "$as_val"'`
10720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10721 $as_echo "$ac_res" >&6; }
10724 as_val=`eval 'as_val=${'$as_ac_Header'}
10725 $as_echo "$as_val"'`
10726 if test "x$as_val" = x""yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 _ACEOF
10731 else
10732 { { $as_echo "$as_me:$LINENO: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure. It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&5
10736 $as_echo "$as_me: error: history header not found
10737 If you have readline already installed, see config.log for details on the
10738 failure. It is possible the compiler isn't looking in the proper directory.
10739 Use --without-readline to disable readline support." >&2;}
10740 { (exit 1); exit 1; }; }
10743 done
10747 done
10751 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10752 # Some installations of libedit usurp /usr/include/readline/, which seems
10753 # bad practice, since in combined installations readline will have its headers
10754 # there. We might have to resort to AC_EGREP checks to make sure we found
10755 # the proper header...
10757 for ac_header in editline/readline.h
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 $as_echo_n "checking for $ac_header... " >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 $as_echo_n "(cached) " >&6
10766 ac_res=`eval 'as_val=${'$as_ac_Header'}
10767 $as_echo "$as_val"'`
10768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10769 $as_echo "$ac_res" >&6; }
10770 else
10771 # Is the header compilable?
10772 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773 $as_echo_n "checking $ac_header usability... " >&6; }
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 #include <$ac_header>
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788 esac
10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest.$ac_objext; then
10801 ac_header_compiler=yes
10802 else
10803 $as_echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_header_compiler=no
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 $as_echo "$ac_header_compiler" >&6; }
10813 # Is the header present?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815 $as_echo_n "checking $ac_header presence... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <$ac_header>
10823 _ACEOF
10824 if { (ac_try="$ac_cpp conftest.$ac_ext"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828 esac
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } >/dev/null && {
10838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 }; then
10841 ac_header_preproc=yes
10842 else
10843 $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_header_preproc=no
10849 rm -f conftest.err conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 $as_echo "$ac_header_preproc" >&6; }
10853 # So? What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10855 yes:no: )
10856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10857 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10860 ac_header_preproc=yes
10862 no:yes:* )
10863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10870 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10874 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10875 ( cat <<\_ASBOX
10876 ## ---------------------------------------- ##
10877 ## Report this to pgsql-bugs@postgresql.org ##
10878 ## ---------------------------------------- ##
10879 _ASBOX
10880 ) | sed "s/^/$as_me: WARNING: /" >&2
10882 esac
10883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 $as_echo_n "checking for $ac_header... " >&6; }
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886 $as_echo_n "(cached) " >&6
10887 else
10888 eval "$as_ac_Header=\$ac_header_preproc"
10890 ac_res=`eval 'as_val=${'$as_ac_Header'}
10891 $as_echo "$as_val"'`
10892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10893 $as_echo "$ac_res" >&6; }
10896 as_val=`eval 'as_val=${'$as_ac_Header'}
10897 $as_echo "$as_val"'`
10898 if test "x$as_val" = x""yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10903 else
10905 for ac_header in readline.h
10907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 $as_echo_n "checking for $ac_header... " >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 $as_echo_n "(cached) " >&6
10914 ac_res=`eval 'as_val=${'$as_ac_Header'}
10915 $as_echo "$as_val"'`
10916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917 $as_echo "$ac_res" >&6; }
10918 else
10919 # Is the header compilable?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 $as_echo_n "checking $ac_header usability... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest.$ac_objext; then
10949 ac_header_compiler=yes
10950 else
10951 $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 ac_header_compiler=no
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959 $as_echo "$ac_header_compiler" >&6; }
10961 # Is the header present?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963 $as_echo_n "checking $ac_header presence... " >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <$ac_header>
10971 _ACEOF
10972 if { (ac_try="$ac_cpp conftest.$ac_ext"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null && {
10986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 }; then
10989 ac_header_preproc=yes
10990 else
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_header_preproc=no
10997 rm -f conftest.err conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999 $as_echo "$ac_header_preproc" >&6; }
11001 # So? What about this header?
11002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003 yes:no: )
11004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008 ac_header_preproc=yes
11010 no:yes:* )
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11023 ( cat <<\_ASBOX
11024 ## ---------------------------------------- ##
11025 ## Report this to pgsql-bugs@postgresql.org ##
11026 ## ---------------------------------------- ##
11027 _ASBOX
11028 ) | sed "s/^/$as_me: WARNING: /" >&2
11030 esac
11031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11032 $as_echo_n "checking for $ac_header... " >&6; }
11033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034 $as_echo_n "(cached) " >&6
11035 else
11036 eval "$as_ac_Header=\$ac_header_preproc"
11038 ac_res=`eval 'as_val=${'$as_ac_Header'}
11039 $as_echo "$as_val"'`
11040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11041 $as_echo "$ac_res" >&6; }
11044 as_val=`eval 'as_val=${'$as_ac_Header'}
11045 $as_echo "$as_val"'`
11046 if test "x$as_val" = x""yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049 _ACEOF
11051 else
11053 for ac_header in readline/readline.h
11055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 $as_echo_n "checking for $ac_header... " >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 $as_echo_n "(cached) " >&6
11062 ac_res=`eval 'as_val=${'$as_ac_Header'}
11063 $as_echo "$as_val"'`
11064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11065 $as_echo "$ac_res" >&6; }
11066 else
11067 # Is the header compilable?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 $as_echo_n "checking $ac_header usability... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 #include <$ac_header>
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11097 ac_header_compiler=yes
11098 else
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_header_compiler=no
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 $as_echo "$ac_header_compiler" >&6; }
11109 # Is the header present?
11110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 $as_echo_n "checking $ac_header presence... " >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <$ac_header>
11119 _ACEOF
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } >/dev/null && {
11134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11136 }; then
11137 ac_header_preproc=yes
11138 else
11139 $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_header_preproc=no
11145 rm -f conftest.err conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11147 $as_echo "$ac_header_preproc" >&6; }
11149 # So? What about this header?
11150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11151 yes:no: )
11152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11156 ac_header_preproc=yes
11158 no:yes:* )
11159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11162 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11166 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11171 ( cat <<\_ASBOX
11172 ## ---------------------------------------- ##
11173 ## Report this to pgsql-bugs@postgresql.org ##
11174 ## ---------------------------------------- ##
11175 _ASBOX
11176 ) | sed "s/^/$as_me: WARNING: /" >&2
11178 esac
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11183 else
11184 eval "$as_ac_Header=\$ac_header_preproc"
11186 ac_res=`eval 'as_val=${'$as_ac_Header'}
11187 $as_echo "$as_val"'`
11188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11192 as_val=`eval 'as_val=${'$as_ac_Header'}
11193 $as_echo "$as_val"'`
11194 if test "x$as_val" = x""yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 _ACEOF
11199 else
11200 { { $as_echo "$as_me:$LINENO: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure. It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&5
11204 $as_echo "$as_me: error: readline header not found
11205 If you have libedit already installed, see config.log for details on the
11206 failure. It is possible the compiler isn't looking in the proper directory.
11207 Use --without-readline to disable libedit support." >&2;}
11208 { (exit 1); exit 1; }; }
11211 done
11215 done
11219 done
11221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11222 # not be there at all. Hence, don't complain if not found. We must check
11223 # though, since in yet other versions it is an independent header.
11225 for ac_header in editline/history.h
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 $as_echo_n "checking for $ac_header... " >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 $as_echo_n "(cached) " >&6
11234 ac_res=`eval 'as_val=${'$as_ac_Header'}
11235 $as_echo "$as_val"'`
11236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237 $as_echo "$ac_res" >&6; }
11238 else
11239 # Is the header compilable?
11240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 $as_echo_n "checking $ac_header usability... " >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256 esac
11257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11258 $as_echo "$ac_try_echo") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_header_compiler=yes
11270 else
11271 $as_echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_header_compiler=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 $as_echo "$ac_header_compiler" >&6; }
11281 # Is the header present?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11283 $as_echo_n "checking $ac_header presence... " >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <$ac_header>
11291 _ACEOF
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null && {
11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 }; then
11309 ac_header_preproc=yes
11310 else
11311 $as_echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 $as_echo "$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 yes:no: )
11324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11330 no:yes:* )
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343 ( cat <<\_ASBOX
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11347 _ASBOX
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11350 esac
11351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 $as_echo_n "checking for $ac_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 $as_echo_n "(cached) " >&6
11355 else
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11364 as_val=`eval 'as_val=${'$as_ac_Header'}
11365 $as_echo "$as_val"'`
11366 if test "x$as_val" = x""yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 _ACEOF
11371 else
11373 for ac_header in history.h
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 $as_echo_n "checking for $ac_header... " >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 $as_echo_n "(cached) " >&6
11382 ac_res=`eval 'as_val=${'$as_ac_Header'}
11383 $as_echo "$as_val"'`
11384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11386 else
11387 # Is the header compilable?
11388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 $as_echo_n "checking $ac_header usability... " >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 #include <$ac_header>
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.$ac_objext; then
11417 ac_header_compiler=yes
11418 else
11419 $as_echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_header_compiler=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 $as_echo "$ac_header_compiler" >&6; }
11429 # Is the header present?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 $as_echo_n "checking $ac_header presence... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <$ac_header>
11439 _ACEOF
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev/null && {
11454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 }; then
11457 ac_header_preproc=yes
11458 else
11459 $as_echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_header_preproc=no
11465 rm -f conftest.err conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 $as_echo "$ac_header_preproc" >&6; }
11469 # So? What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471 yes:no: )
11472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11476 ac_header_preproc=yes
11478 no:yes:* )
11479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11491 ( cat <<\_ASBOX
11492 ## ---------------------------------------- ##
11493 ## Report this to pgsql-bugs@postgresql.org ##
11494 ## ---------------------------------------- ##
11495 _ASBOX
11496 ) | sed "s/^/$as_me: WARNING: /" >&2
11498 esac
11499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 $as_echo_n "checking for $ac_header... " >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 $as_echo_n "(cached) " >&6
11503 else
11504 eval "$as_ac_Header=\$ac_header_preproc"
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507 $as_echo "$as_val"'`
11508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11512 as_val=`eval 'as_val=${'$as_ac_Header'}
11513 $as_echo "$as_val"'`
11514 if test "x$as_val" = x""yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 _ACEOF
11519 else
11521 for ac_header in readline/history.h
11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 $as_echo_n "checking for $ac_header... " >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528 $as_echo_n "(cached) " >&6
11530 ac_res=`eval 'as_val=${'$as_ac_Header'}
11531 $as_echo "$as_val"'`
11532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 $as_echo "$ac_res" >&6; }
11534 else
11535 # Is the header compilable?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11537 $as_echo_n "checking $ac_header usability... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 $ac_includes_default
11545 #include <$ac_header>
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (ac_try="$ac_compile"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest.$ac_objext; then
11565 ac_header_compiler=yes
11566 else
11567 $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_header_compiler=no
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 $as_echo "$ac_header_compiler" >&6; }
11577 # Is the header present?
11578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 $as_echo_n "checking $ac_header presence... " >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h. */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592 esac
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev/null && {
11602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 }; then
11605 ac_header_preproc=yes
11606 else
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_header_preproc=no
11613 rm -f conftest.err conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 $as_echo "$ac_header_preproc" >&6; }
11617 # So? What about this header?
11618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11619 yes:no: )
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624 ac_header_preproc=yes
11626 no:yes:* )
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11639 ( cat <<\_ASBOX
11640 ## ---------------------------------------- ##
11641 ## Report this to pgsql-bugs@postgresql.org ##
11642 ## ---------------------------------------- ##
11643 _ASBOX
11644 ) | sed "s/^/$as_me: WARNING: /" >&2
11646 esac
11647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 $as_echo_n "checking for $ac_header... " >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 $as_echo_n "(cached) " >&6
11651 else
11652 eval "$as_ac_Header=\$ac_header_preproc"
11654 ac_res=`eval 'as_val=${'$as_ac_Header'}
11655 $as_echo "$as_val"'`
11656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11660 as_val=`eval 'as_val=${'$as_ac_Header'}
11661 $as_echo "$as_val"'`
11662 if test "x$as_val" = x""yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11665 _ACEOF
11669 done
11673 done
11677 done
11681 if test "$with_zlib" = yes; then
11682 if test "${ac_cv_header_zlib_h+set}" = set; then
11683 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11684 $as_echo_n "checking for zlib.h... " >&6; }
11685 if test "${ac_cv_header_zlib_h+set}" = set; then
11686 $as_echo_n "(cached) " >&6
11688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11689 $as_echo "$ac_cv_header_zlib_h" >&6; }
11690 else
11691 # Is the header compilable?
11692 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11693 $as_echo_n "checking zlib.h usability... " >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 #include <zlib.h>
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.$ac_objext; then
11721 ac_header_compiler=yes
11722 else
11723 $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_header_compiler=no
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 $as_echo "$ac_header_compiler" >&6; }
11733 # Is the header present?
11734 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11735 $as_echo_n "checking zlib.h presence... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h. */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <zlib.h>
11743 _ACEOF
11744 if { (ac_try="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null && {
11758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 }; then
11761 ac_header_preproc=yes
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_header_preproc=no
11769 rm -f conftest.err conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 $as_echo "$ac_header_preproc" >&6; }
11773 # So? What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11775 yes:no: )
11776 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11780 ac_header_preproc=yes
11782 no:yes:* )
11783 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11786 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11790 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11791 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11792 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11793 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11794 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11795 ( cat <<\_ASBOX
11796 ## ---------------------------------------- ##
11797 ## Report this to pgsql-bugs@postgresql.org ##
11798 ## ---------------------------------------- ##
11799 _ASBOX
11800 ) | sed "s/^/$as_me: WARNING: /" >&2
11802 esac
11803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11804 $as_echo_n "checking for zlib.h... " >&6; }
11805 if test "${ac_cv_header_zlib_h+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11807 else
11808 ac_cv_header_zlib_h=$ac_header_preproc
11810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11811 $as_echo "$ac_cv_header_zlib_h" >&6; }
11814 if test "x$ac_cv_header_zlib_h" = x""yes; then
11816 else
11817 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure. It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&5
11821 $as_echo "$as_me: error: zlib header not found
11822 If you have zlib already installed, see config.log for details on the
11823 failure. It is possible the compiler isn't looking in the proper directory.
11824 Use --without-zlib to disable zlib support." >&2;}
11825 { (exit 1); exit 1; }; }
11831 if test "$with_gssapi" = yes ; then
11833 for ac_header in gssapi/gssapi.h
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843 $as_echo "$as_val"'`
11844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11846 else
11847 # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <$ac_header>
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 ac_header_compiler=yes
11878 else
11879 $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_header_compiler=no
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <$ac_header>
11899 _ACEOF
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null && {
11914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 }; then
11917 ac_header_preproc=yes
11918 else
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931 yes:no: )
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11938 no:yes:* )
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951 ( cat <<\_ASBOX
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11955 _ASBOX
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11958 esac
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11963 else
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11979 else
11981 for ac_header in gssapi.h
11983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 $as_echo_n "checking for $ac_header... " >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 $as_echo_n "(cached) " >&6
11990 ac_res=`eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'`
11992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11993 $as_echo "$ac_res" >&6; }
11994 else
11995 # Is the header compilable?
11996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 $as_echo_n "checking $ac_header usability... " >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 #include <$ac_header>
12006 _ACEOF
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12025 ac_header_compiler=yes
12026 else
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_header_compiler=no
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 $as_echo "$ac_header_compiler" >&6; }
12037 # Is the header present?
12038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 $as_echo_n "checking $ac_header presence... " >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <$ac_header>
12047 _ACEOF
12048 if { (ac_try="$ac_cpp conftest.$ac_ext"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null && {
12062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 }; then
12065 ac_header_preproc=yes
12066 else
12067 $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_header_preproc=no
12073 rm -f conftest.err conftest.$ac_ext
12074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 $as_echo "$ac_header_preproc" >&6; }
12077 # So? What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079 yes:no: )
12080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12086 no:yes:* )
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099 ( cat <<\_ASBOX
12100 ## ---------------------------------------- ##
12101 ## Report this to pgsql-bugs@postgresql.org ##
12102 ## ---------------------------------------- ##
12103 _ASBOX
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12106 esac
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111 else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'`
12122 if test "x$as_val" = x""yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12127 else
12128 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12129 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12130 { (exit 1); exit 1; }; }
12133 done
12137 done
12141 if test "$with_krb5" = yes ; then
12142 if test "${ac_cv_header_krb5_h+set}" = set; then
12143 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12144 $as_echo_n "checking for krb5.h... " >&6; }
12145 if test "${ac_cv_header_krb5_h+set}" = set; then
12146 $as_echo_n "(cached) " >&6
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12149 $as_echo "$ac_cv_header_krb5_h" >&6; }
12150 else
12151 # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12153 $as_echo_n "checking krb5.h usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 #include <krb5.h>
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_header_compiler=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_header_compiler=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12195 $as_echo_n "checking krb5.h presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 #include <krb5.h>
12203 _ACEOF
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null && {
12218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 }; then
12221 ac_header_preproc=yes
12222 else
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235 yes:no: )
12236 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12242 no:yes:* )
12243 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12245 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12255 ( cat <<\_ASBOX
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12259 _ASBOX
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12262 esac
12263 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12264 $as_echo_n "checking for krb5.h... " >&6; }
12265 if test "${ac_cv_header_krb5_h+set}" = set; then
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_cv_header_krb5_h=$ac_header_preproc
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12271 $as_echo "$ac_cv_header_krb5_h" >&6; }
12274 if test "x$ac_cv_header_krb5_h" = x""yes; then
12276 else
12277 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12278 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12279 { (exit 1); exit 1; }; }
12285 if test "$with_openssl" = yes ; then
12286 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12287 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12288 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12289 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12290 $as_echo_n "(cached) " >&6
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12293 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12294 else
12295 # Is the header compilable?
12296 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12297 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <openssl/ssl.h>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312 esac
12313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12314 $as_echo "$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 $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 $as_echo "$ac_header_compiler" >&6; }
12337 # Is the header present?
12338 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12339 $as_echo_n "checking openssl/ssl.h presence... " >&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 <openssl/ssl.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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null && {
12362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 }; then
12365 ac_header_preproc=yes
12366 else
12367 $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_header_preproc=no
12373 rm -f conftest.err conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 $as_echo "$ac_header_preproc" >&6; }
12377 # So? What about this header?
12378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12379 yes:no: )
12380 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12381 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12384 ac_header_preproc=yes
12386 no:yes:* )
12387 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12389 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12391 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12393 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12395 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12396 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12398 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12399 ( cat <<\_ASBOX
12400 ## ---------------------------------------- ##
12401 ## Report this to pgsql-bugs@postgresql.org ##
12402 ## ---------------------------------------- ##
12403 _ASBOX
12404 ) | sed "s/^/$as_me: WARNING: /" >&2
12406 esac
12407 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12408 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12409 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12410 $as_echo_n "(cached) " >&6
12411 else
12412 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12415 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12418 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12420 else
12421 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12422 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12423 { (exit 1); exit 1; }; }
12427 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12428 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12429 $as_echo_n "checking for openssl/err.h... " >&6; }
12430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12431 $as_echo_n "(cached) " >&6
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12434 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12435 else
12436 # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12438 $as_echo_n "checking openssl/err.h usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <openssl/err.h>
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453 esac
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456 (eval "$ac_compile") 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } && {
12463 test -z "$ac_c_werror_flag" ||
12464 test ! -s conftest.err
12465 } && test -s conftest.$ac_objext; then
12466 ac_header_compiler=yes
12467 else
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_header_compiler=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12480 $as_echo_n "checking openssl/err.h presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <openssl/err.h>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null && {
12503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 }; then
12506 ac_header_preproc=yes
12507 else
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_preproc=no
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520 yes:no: )
12521 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12527 no:yes:* )
12528 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12538 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12540 ( cat <<\_ASBOX
12541 ## ---------------------------------------- ##
12542 ## Report this to pgsql-bugs@postgresql.org ##
12543 ## ---------------------------------------- ##
12544 _ASBOX
12545 ) | sed "s/^/$as_me: WARNING: /" >&2
12547 esac
12548 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12549 $as_echo_n "checking for openssl/err.h... " >&6; }
12550 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_cv_header_openssl_err_h=$ac_header_preproc
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12556 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12559 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12561 else
12562 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12563 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12564 { (exit 1); exit 1; }; }
12569 for ac_func in ERR_set_mark
12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 $as_echo_n "checking for $ac_func... " >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12585 #define $ac_func innocuous_$ac_func
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char $ac_func (); below.
12589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590 <limits.h> exists even on freestanding compilers. */
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12598 #undef $ac_func
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char $ac_func ();
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 choke me
12612 #endif
12615 main ()
12617 return $ac_func ();
12619 return 0;
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627 esac
12628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630 (eval "$ac_link") 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest$ac_exeext && {
12640 test "$cross_compiling" = yes ||
12641 $as_test_x conftest$ac_exeext
12642 }; then
12643 eval "$as_ac_var=yes"
12644 else
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 eval "$as_ac_var=no"
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12655 ac_res=`eval 'as_val=${'$as_ac_var'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659 as_val=`eval 'as_val=${'$as_ac_var'}
12660 $as_echo "$as_val"'`
12661 if test "x$as_val" = x""yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12667 done
12671 if test "$with_pam" = yes ; then
12673 for ac_header in security/pam_appl.h
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 $as_echo_n "(cached) " >&6
12682 ac_res=`eval 'as_val=${'$as_ac_Header'}
12683 $as_echo "$as_val"'`
12684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12686 else
12687 # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <$ac_header>
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704 esac
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_header_compiler=yes
12718 else
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_header_compiler=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 #include <$ac_header>
12739 _ACEOF
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null && {
12754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 }; then
12757 ac_header_preproc=yes
12758 else
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_header_preproc=no
12765 rm -f conftest.err conftest.$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12769 # So? What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771 yes:no: )
12772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc=yes
12778 no:yes:* )
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791 ( cat <<\_ASBOX
12792 ## ---------------------------------------- ##
12793 ## Report this to pgsql-bugs@postgresql.org ##
12794 ## ---------------------------------------- ##
12795 _ASBOX
12796 ) | sed "s/^/$as_me: WARNING: /" >&2
12798 esac
12799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 $as_echo_n "checking for $ac_header... " >&6; }
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802 $as_echo_n "(cached) " >&6
12803 else
12804 eval "$as_ac_Header=\$ac_header_preproc"
12806 ac_res=`eval 'as_val=${'$as_ac_Header'}
12807 $as_echo "$as_val"'`
12808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12809 $as_echo "$ac_res" >&6; }
12812 as_val=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 if test "x$as_val" = x""yes; then
12815 cat >>confdefs.h <<_ACEOF
12816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF
12819 else
12821 for ac_header in pam/pam_appl.h
12823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 $as_echo_n "checking for $ac_header... " >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 $as_echo_n "(cached) " >&6
12830 ac_res=`eval 'as_val=${'$as_ac_Header'}
12831 $as_echo "$as_val"'`
12832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12834 else
12835 # Is the header compilable?
12836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837 $as_echo_n "checking $ac_header usability... " >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 $ac_includes_default
12845 #include <$ac_header>
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 ac_header_compiler=yes
12866 else
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_header_compiler=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12875 $as_echo "$ac_header_compiler" >&6; }
12877 # Is the header present?
12878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12879 $as_echo_n "checking $ac_header presence... " >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <$ac_header>
12887 _ACEOF
12888 if { (ac_try="$ac_cpp conftest.$ac_ext"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892 esac
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev/null && {
12902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 }; then
12905 ac_header_preproc=yes
12906 else
12907 $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_header_preproc=no
12913 rm -f conftest.err conftest.$ac_ext
12914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 $as_echo "$ac_header_preproc" >&6; }
12917 # So? What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919 yes:no: )
12920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12924 ac_header_preproc=yes
12926 no:yes:* )
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12930 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12934 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12939 ( cat <<\_ASBOX
12940 ## ---------------------------------------- ##
12941 ## Report this to pgsql-bugs@postgresql.org ##
12942 ## ---------------------------------------- ##
12943 _ASBOX
12944 ) | sed "s/^/$as_me: WARNING: /" >&2
12946 esac
12947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 $as_echo_n "checking for $ac_header... " >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 $as_echo_n "(cached) " >&6
12951 else
12952 eval "$as_ac_Header=\$ac_header_preproc"
12954 ac_res=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12960 as_val=`eval 'as_val=${'$as_ac_Header'}
12961 $as_echo "$as_val"'`
12962 if test "x$as_val" = x""yes; then
12963 cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965 _ACEOF
12967 else
12968 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12969 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12970 { (exit 1); exit 1; }; }
12973 done
12977 done
12981 if test "$with_libxml" = yes ; then
12982 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12983 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12984 $as_echo_n "checking for libxml/parser.h... " >&6; }
12985 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12986 $as_echo_n "(cached) " >&6
12988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12989 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12990 else
12991 # Is the header compilable?
12992 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12993 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 $ac_includes_default
13001 #include <libxml/parser.h>
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 ac_header_compiler=yes
13022 else
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_compiler=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 $as_echo "$ac_header_compiler" >&6; }
13033 # Is the header present?
13034 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13035 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <libxml/parser.h>
13043 _ACEOF
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048 esac
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null && {
13058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13060 }; then
13061 ac_header_preproc=yes
13062 else
13063 $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_header_preproc=no
13069 rm -f conftest.err conftest.$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 $as_echo "$ac_header_preproc" >&6; }
13073 # So? What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13075 yes:no: )
13076 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13077 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13080 ac_header_preproc=yes
13082 no:yes:* )
13083 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13087 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13089 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13091 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13092 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13093 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13094 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13095 ( cat <<\_ASBOX
13096 ## ---------------------------------------- ##
13097 ## Report this to pgsql-bugs@postgresql.org ##
13098 ## ---------------------------------------- ##
13099 _ASBOX
13100 ) | sed "s/^/$as_me: WARNING: /" >&2
13102 esac
13103 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13104 $as_echo_n "checking for libxml/parser.h... " >&6; }
13105 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13106 $as_echo_n "(cached) " >&6
13107 else
13108 ac_cv_header_libxml_parser_h=$ac_header_preproc
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13111 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13114 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13116 else
13117 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13118 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13119 { (exit 1); exit 1; }; }
13125 if test "$with_libxslt" = yes ; then
13126 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13127 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13128 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13129 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13130 $as_echo_n "(cached) " >&6
13132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13133 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13134 else
13135 # Is the header compilable?
13136 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13137 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 #include <libxslt/xslt.h>
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_compile") 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
13165 ac_header_compiler=yes
13166 else
13167 $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_compiler=no
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 $as_echo "$ac_header_compiler" >&6; }
13177 # Is the header present?
13178 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13179 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 #include <libxslt/xslt.h>
13187 _ACEOF
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192 esac
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } >/dev/null && {
13202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 }; then
13205 ac_header_preproc=yes
13206 else
13207 $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_header_preproc=no
13213 rm -f conftest.err conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 $as_echo "$ac_header_preproc" >&6; }
13217 # So? What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13219 yes:no: )
13220 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13221 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13224 ac_header_preproc=yes
13226 no:yes:* )
13227 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13236 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13238 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13239 ( cat <<\_ASBOX
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13243 _ASBOX
13244 ) | sed "s/^/$as_me: WARNING: /" >&2
13246 esac
13247 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13248 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13249 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13251 else
13252 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13255 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13258 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13260 else
13261 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13262 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13263 { (exit 1); exit 1; }; }
13269 if test "$with_ldap" = yes ; then
13270 if test "$PORTNAME" != "win32"; then
13272 for ac_header in ldap.h
13274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13277 $as_echo_n "checking for $ac_header... " >&6; }
13278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13279 $as_echo_n "(cached) " >&6
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282 $as_echo "$as_val"'`
13283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 else
13286 # Is the header compilable?
13287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13288 $as_echo_n "checking $ac_header usability... " >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 #include <$ac_header>
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest.$ac_objext; then
13316 ac_header_compiler=yes
13317 else
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_header_compiler=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 $as_echo "$ac_header_compiler" >&6; }
13328 # Is the header present?
13329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 $as_echo_n "checking $ac_header presence... " >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h. */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <$ac_header>
13338 _ACEOF
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343 esac
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null && {
13353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 }; then
13356 ac_header_preproc=yes
13357 else
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_preproc=no
13364 rm -f conftest.err conftest.$ac_ext
13365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 $as_echo "$ac_header_preproc" >&6; }
13368 # So? What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13370 yes:no: )
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375 ac_header_preproc=yes
13377 no:yes:* )
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13390 ( cat <<\_ASBOX
13391 ## ---------------------------------------- ##
13392 ## Report this to pgsql-bugs@postgresql.org ##
13393 ## ---------------------------------------- ##
13394 _ASBOX
13395 ) | sed "s/^/$as_me: WARNING: /" >&2
13397 esac
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401 $as_echo_n "(cached) " >&6
13402 else
13403 eval "$as_ac_Header=\$ac_header_preproc"
13405 ac_res=`eval 'as_val=${'$as_ac_Header'}
13406 $as_echo "$as_val"'`
13407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13411 as_val=`eval 'as_val=${'$as_ac_Header'}
13412 $as_echo "$as_val"'`
13413 if test "x$as_val" = x""yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 _ACEOF
13418 else
13419 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13420 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13421 { (exit 1); exit 1; }; }
13424 done
13426 else
13428 for ac_header in winldap.h
13430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 $as_echo_n "checking for $ac_header... " >&6; }
13433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13434 $as_echo_n "(cached) " >&6
13435 else
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <windows.h>
13446 #include <$ac_header>
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (ac_try="$ac_compile"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453 esac
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest.$ac_objext; then
13466 eval "$as_ac_Header=yes"
13467 else
13468 $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 eval "$as_ac_Header=no"
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 ac_res=`eval 'as_val=${'$as_ac_Header'}
13477 $as_echo "$as_val"'`
13478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479 $as_echo "$ac_res" >&6; }
13480 as_val=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 if test "x$as_val" = x""yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13485 _ACEOF
13487 else
13488 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13489 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13490 { (exit 1); exit 1; }; }
13493 done
13498 if test "$with_bonjour" = yes ; then
13499 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13500 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13501 $as_echo_n "checking for dns_sd.h... " >&6; }
13502 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13503 $as_echo_n "(cached) " >&6
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13506 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13507 else
13508 # Is the header compilable?
13509 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13510 $as_echo_n "checking dns_sd.h usability... " >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h. */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13518 #include <dns_sd.h>
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 ac_header_compiler=yes
13539 else
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_compiler=no
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548 $as_echo "$ac_header_compiler" >&6; }
13550 # Is the header present?
13551 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13552 $as_echo_n "checking dns_sd.h presence... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <dns_sd.h>
13560 _ACEOF
13561 if { (ac_try="$ac_cpp conftest.$ac_ext"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565 esac
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } >/dev/null && {
13575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 }; then
13578 ac_header_preproc=yes
13579 else
13580 $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13586 rm -f conftest.err conftest.$ac_ext
13587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 $as_echo "$ac_header_preproc" >&6; }
13590 # So? What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 yes:no: )
13593 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
13599 no:yes:* )
13600 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13609 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13610 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13611 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13612 ( cat <<\_ASBOX
13613 ## ---------------------------------------- ##
13614 ## Report this to pgsql-bugs@postgresql.org ##
13615 ## ---------------------------------------- ##
13616 _ASBOX
13617 ) | sed "s/^/$as_me: WARNING: /" >&2
13619 esac
13620 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13621 $as_echo_n "checking for dns_sd.h... " >&6; }
13622 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13623 $as_echo_n "(cached) " >&6
13624 else
13625 ac_cv_header_dns_sd_h=$ac_header_preproc
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13628 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13631 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13633 else
13634 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13635 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13636 { (exit 1); exit 1; }; }
13642 # for contrib/uuid-ossp
13643 if test "$with_ossp_uuid" = yes ; then
13645 for ac_header in ossp/uuid.h
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 $as_echo_n "(cached) " >&6
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655 $as_echo "$as_val"'`
13656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13658 else
13659 # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13669 #include <$ac_header>
13670 _ACEOF
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest.$ac_objext; then
13689 ac_header_compiler=yes
13690 else
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_header_compiler=no
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <$ac_header>
13711 _ACEOF
13712 if { (ac_try="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716 esac
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 }; then
13729 ac_header_preproc=yes
13730 else
13731 $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_preproc=no
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743 yes:no: )
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13750 no:yes:* )
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763 ( cat <<\_ASBOX
13764 ## ---------------------------------------- ##
13765 ## Report this to pgsql-bugs@postgresql.org ##
13766 ## ---------------------------------------- ##
13767 _ASBOX
13768 ) | sed "s/^/$as_me: WARNING: /" >&2
13770 esac
13771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 $as_echo_n "checking for $ac_header... " >&6; }
13773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13774 $as_echo_n "(cached) " >&6
13775 else
13776 eval "$as_ac_Header=\$ac_header_preproc"
13778 ac_res=`eval 'as_val=${'$as_ac_Header'}
13779 $as_echo "$as_val"'`
13780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13784 as_val=`eval 'as_val=${'$as_ac_Header'}
13785 $as_echo "$as_val"'`
13786 if test "x$as_val" = x""yes; then
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 _ACEOF
13791 else
13794 for ac_header in uuid.h
13796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 $as_echo_n "checking for $ac_header... " >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 $as_echo_n "(cached) " >&6
13803 ac_res=`eval 'as_val=${'$as_ac_Header'}
13804 $as_echo "$as_val"'`
13805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13807 else
13808 # Is the header compilable?
13809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 $as_echo_n "checking $ac_header usability... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 $ac_includes_default
13818 #include <$ac_header>
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13825 esac
13826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } && {
13835 test -z "$ac_c_werror_flag" ||
13836 test ! -s conftest.err
13837 } && test -s conftest.$ac_objext; then
13838 ac_header_compiler=yes
13839 else
13840 $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_header_compiler=no
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 $as_echo "$ac_header_compiler" >&6; }
13850 # Is the header present?
13851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13852 $as_echo_n "checking $ac_header presence... " >&6; }
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h. */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 #include <$ac_header>
13860 _ACEOF
13861 if { (ac_try="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null && {
13875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 }; then
13878 ac_header_preproc=yes
13879 else
13880 $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_header_preproc=no
13886 rm -f conftest.err conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 $as_echo "$ac_header_preproc" >&6; }
13890 # So? What about this header?
13891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13892 yes:no: )
13893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897 ac_header_preproc=yes
13899 no:yes:* )
13900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13903 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13907 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13912 ( cat <<\_ASBOX
13913 ## ---------------------------------------- ##
13914 ## Report this to pgsql-bugs@postgresql.org ##
13915 ## ---------------------------------------- ##
13916 _ASBOX
13917 ) | sed "s/^/$as_me: WARNING: /" >&2
13919 esac
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 $as_echo_n "checking for $ac_header... " >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923 $as_echo_n "(cached) " >&6
13924 else
13925 eval "$as_ac_Header=\$ac_header_preproc"
13927 ac_res=`eval 'as_val=${'$as_ac_Header'}
13928 $as_echo "$as_val"'`
13929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13930 $as_echo "$ac_res" >&6; }
13933 as_val=`eval 'as_val=${'$as_ac_Header'}
13934 $as_echo "$as_val"'`
13935 if test "x$as_val" = x""yes; then
13936 cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13938 _ACEOF
13940 else
13941 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13942 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13943 { (exit 1); exit 1; }; }
13946 done
13950 done
13956 ## Types, structures, compiler characteristics
13960 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13962 if test "${ac_cv_c_bigendian+set}" = set; then
13963 $as_echo_n "(cached) " >&6
13964 else
13965 ac_cv_c_bigendian=unknown
13966 # See if we're dealing with a universal compiler.
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #ifndef __APPLE_CC__
13974 not a universal capable compiler
13975 #endif
13976 typedef int dummy;
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987 (eval "$ac_compile") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest.$ac_objext; then
13998 # Check for potential -arch flags. It is not universal unless
13999 # there are some -arch flags. Note that *ppc* also matches
14000 # ppc64. This check is also rather less than ideal.
14001 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14002 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14003 esac
14004 else
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 if test $ac_cv_c_bigendian = unknown; then
14013 # See if sys/param.h defines the BYTE_ORDER macro.
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h. */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #include <sys/types.h>
14021 #include <sys/param.h>
14024 main ()
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14028 && LITTLE_ENDIAN)
14029 bogus endian macros
14030 #endif
14033 return 0;
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041 esac
14042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043 $as_echo "$ac_try_echo") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 # It does; now see whether it defined to BIG_ENDIAN or not.
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h. */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <sys/types.h>
14062 #include <sys/param.h>
14065 main ()
14067 #if BYTE_ORDER != BIG_ENDIAN
14068 not big endian
14069 #endif
14072 return 0;
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080 esac
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083 (eval "$ac_compile") 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && {
14090 test -z "$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14092 } && test -s conftest.$ac_objext; then
14093 ac_cv_c_bigendian=yes
14094 else
14095 $as_echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_cv_c_bigendian=no
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 else
14103 $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 if test $ac_cv_c_bigendian = unknown; then
14112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 #include <limits.h>
14122 main ()
14124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14125 bogus endian macros
14126 #endif
14129 return 0;
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 # It does; now see whether it defined to _BIG_ENDIAN or not.
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <limits.h>
14160 main ()
14162 #ifndef _BIG_ENDIAN
14163 not big endian
14164 #endif
14167 return 0;
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_compile") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest.$ac_objext; then
14188 ac_cv_c_bigendian=yes
14189 else
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_c_bigendian=no
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 else
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 if test $ac_cv_c_bigendian = unknown; then
14207 # Compile a test program.
14208 if test "$cross_compiling" = yes; then
14209 # Try to guess by grepping values from an object file.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 short int ascii_mm[] =
14217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218 short int ascii_ii[] =
14219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220 int use_ascii (int i) {
14221 return ascii_mm[i] + ascii_ii[i];
14223 short int ebcdic_ii[] =
14224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225 short int ebcdic_mm[] =
14226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227 int use_ebcdic (int i) {
14228 return ebcdic_mm[i] + ebcdic_ii[i];
14230 extern int foo;
14233 main ()
14235 return use_ascii (foo) == use_ebcdic (foo);
14237 return 0;
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_compile") 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
14258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14259 ac_cv_c_bigendian=yes
14261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14262 if test "$ac_cv_c_bigendian" = unknown; then
14263 ac_cv_c_bigendian=no
14264 else
14265 # finding both strings is unlikely to happen, but who knows?
14266 ac_cv_c_bigendian=unknown
14269 else
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 else
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h. */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 $ac_includes_default
14286 main ()
14289 /* Are we little or big endian? From Harbison&Steele. */
14290 union
14292 long int l;
14293 char c[sizeof (long int)];
14294 } u;
14295 u.l = 1;
14296 return u.c[sizeof (long int) - 1] == 1;
14299 return 0;
14301 _ACEOF
14302 rm -f conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307 esac
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310 (eval "$ac_link") 2>&5
14311 ac_status=$?
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317 esac
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320 (eval "$ac_try") 2>&5
14321 ac_status=$?
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_c_bigendian=no
14325 else
14326 $as_echo "$as_me: program exited with status $ac_status" >&5
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ( exit $ac_status )
14331 ac_cv_c_bigendian=yes
14333 rm -rf conftest.dSYM
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14341 $as_echo "$ac_cv_c_bigendian" >&6; }
14342 case $ac_cv_c_bigendian in #(
14343 yes)
14344 cat >>confdefs.h <<\_ACEOF
14345 #define WORDS_BIGENDIAN 1
14346 _ACEOF
14347 ;; #(
14349 ;; #(
14350 universal)
14352 cat >>confdefs.h <<\_ACEOF
14353 #define AC_APPLE_UNIVERSAL_BUILD 1
14354 _ACEOF
14356 ;; #(
14358 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14359 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14360 $as_echo "$as_me: error: unknown endianness
14361 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14362 { (exit 1); exit 1; }; } ;;
14363 esac
14365 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14367 if test "${ac_cv_c_const+set}" = set; then
14368 $as_echo_n "(cached) " >&6
14369 else
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h. */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14378 main ()
14380 /* FIXME: Include the comments suggested by Paul. */
14381 #ifndef __cplusplus
14382 /* Ultrix mips cc rejects this. */
14383 typedef int charset[2];
14384 const charset cs;
14385 /* SunOS 4.1.1 cc rejects this. */
14386 char const *const *pcpcc;
14387 char **ppc;
14388 /* NEC SVR4.0.2 mips cc rejects this. */
14389 struct point {int x, y;};
14390 static struct point const zero = {0,0};
14391 /* AIX XL C 1.02.0.0 rejects this.
14392 It does not let you subtract one const X* pointer from another in
14393 an arm of an if-expression whose if-part is not a constant
14394 expression */
14395 const char *g = "string";
14396 pcpcc = &g + (g ? g-g : 0);
14397 /* HPUX 7.0 cc rejects these. */
14398 ++pcpcc;
14399 ppc = (char**) pcpcc;
14400 pcpcc = (char const *const *) ppc;
14401 { /* SCO 3.2v4 cc rejects this. */
14402 char *t;
14403 char const *s = 0 ? (char *) 0 : (char const *) 0;
14405 *t++ = 0;
14406 if (s) return 0;
14408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14409 int x[] = {25, 17};
14410 const int *foo = &x[0];
14411 ++foo;
14413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14414 typedef const int *iptr;
14415 iptr p = 0;
14416 ++p;
14418 { /* AIX XL C 1.02.0.0 rejects this saying
14419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14420 struct s { int j; const int *ap[3]; };
14421 struct s *b; b->j = 5;
14423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14424 const int foo = 10;
14425 if (!foo) return 0;
14427 return !cs[0] && !zero.x;
14428 #endif
14431 return 0;
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442 (eval "$ac_compile") 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && {
14449 test -z "$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 } && test -s conftest.$ac_objext; then
14452 ac_cv_c_const=yes
14453 else
14454 $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_cv_c_const=no
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14463 $as_echo "$ac_cv_c_const" >&6; }
14464 if test $ac_cv_c_const = no; then
14466 cat >>confdefs.h <<\_ACEOF
14467 #define const /**/
14468 _ACEOF
14472 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14473 $as_echo_n "checking for inline... " >&6; }
14474 if test "${ac_cv_c_inline+set}" = set; then
14475 $as_echo_n "(cached) " >&6
14476 else
14477 ac_cv_c_inline=no
14478 for ac_kw in inline __inline__ __inline; do
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #ifndef __cplusplus
14486 typedef int foo_t;
14487 static $ac_kw foo_t static_foo () {return 0; }
14488 $ac_kw foo_t foo () {return 0; }
14489 #endif
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (ac_try="$ac_compile"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14499 $as_echo "$ac_try_echo") >&5
14500 (eval "$ac_compile") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest.$ac_objext; then
14510 ac_cv_c_inline=$ac_kw
14511 else
14512 $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 test "$ac_cv_c_inline" != no && break
14520 done
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14524 $as_echo "$ac_cv_c_inline" >&6; }
14527 case $ac_cv_c_inline in
14528 inline | yes) ;;
14530 case $ac_cv_c_inline in
14531 no) ac_val=;;
14532 *) ac_val=$ac_cv_c_inline;;
14533 esac
14534 cat >>confdefs.h <<_ACEOF
14535 #ifndef __cplusplus
14536 #define inline $ac_val
14537 #endif
14538 _ACEOF
14540 esac
14542 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14543 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14544 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14546 else
14547 pgac_cv_c_inline_quietly=no
14548 if test "$ac_cv_c_inline" != no; then
14549 pgac_c_inline_save_werror=$ac_c_werror_flag
14550 ac_c_werror_flag=yes
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 static inline int fun () {return 0;}
14559 main ()
14563 return 0;
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571 esac
14572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574 (eval "$ac_link") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext && {
14584 test "$cross_compiling" = yes ||
14585 $as_test_x conftest$ac_exeext
14586 }; then
14587 pgac_cv_c_inline_quietly=yes
14588 else
14589 $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 ac_c_werror_flag=$pgac_c_inline_save_werror
14601 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14602 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14603 if test "$pgac_cv_c_inline_quietly" != no; then
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_INLINE 1
14607 _ACEOF
14611 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14612 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14613 if test "${ac_cv_c_stringize+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14615 else
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 #define x(y) #y
14624 char *s = x(teststring);
14625 _ACEOF
14626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14627 $EGREP "#teststring" >/dev/null 2>&1; then
14628 ac_cv_c_stringize=no
14629 else
14630 ac_cv_c_stringize=yes
14632 rm -f conftest*
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14636 $as_echo "$ac_cv_c_stringize" >&6; }
14637 if test $ac_cv_c_stringize = yes; then
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_STRINGIZE 1
14641 _ACEOF
14645 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14646 $as_echo_n "checking for signed types... " >&6; }
14647 if test "${pgac_cv_c_signed+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14649 else
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14658 main ()
14660 signed char c; signed short s; signed int i;
14662 return 0;
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 pgac_cv_c_signed=yes
14684 else
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 pgac_cv_c_signed=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14694 $as_echo "$pgac_cv_c_signed" >&6; }
14695 if test x"$pgac_cv_c_signed" = xno ; then
14697 cat >>confdefs.h <<\_ACEOF
14698 #define signed /**/
14699 _ACEOF
14702 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14703 $as_echo_n "checking for working volatile... " >&6; }
14704 if test "${ac_cv_c_volatile+set}" = set; then
14705 $as_echo_n "(cached) " >&6
14706 else
14707 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14715 main ()
14718 volatile int x;
14719 int * volatile y = (int *) 0;
14720 return !x && !y;
14722 return 0;
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.$ac_objext; then
14743 ac_cv_c_volatile=yes
14744 else
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_cv_c_volatile=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14754 $as_echo "$ac_cv_c_volatile" >&6; }
14755 if test $ac_cv_c_volatile = no; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define volatile /**/
14759 _ACEOF
14763 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14764 $as_echo_n "checking for __func__... " >&6; }
14765 if test "${pgac_cv_funcname_func_support+set}" = set; then
14766 $as_echo_n "(cached) " >&6
14767 else
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 #include <stdio.h>
14776 main ()
14778 printf("%s\n", __func__);
14780 return 0;
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788 esac
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791 (eval "$ac_compile") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest.$ac_objext; then
14801 pgac_cv_funcname_func_support=yes
14802 else
14803 $as_echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 pgac_cv_funcname_func_support=no
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14812 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14813 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_FUNCNAME__FUNC 1
14817 _ACEOF
14819 else
14820 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14821 $as_echo_n "checking for __FUNCTION__... " >&6; }
14822 if test "${pgac_cv_funcname_function_support+set}" = set; then
14823 $as_echo_n "(cached) " >&6
14824 else
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <stdio.h>
14833 main ()
14835 printf("%s\n", __FUNCTION__);
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest.$ac_objext; then
14858 pgac_cv_funcname_function_support=yes
14859 else
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 pgac_cv_funcname_function_support=no
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14869 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_FUNCNAME__FUNCTION 1
14874 _ACEOF
14878 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14879 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14880 if test "${ac_cv_struct_tm+set}" = set; then
14881 $as_echo_n "(cached) " >&6
14882 else
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14890 #include <time.h>
14893 main ()
14895 struct tm tm;
14896 int *p = &tm.tm_sec;
14897 return !p;
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
14920 ac_cv_struct_tm=time.h
14921 else
14922 $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_struct_tm=sys/time.h
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14931 $as_echo "$ac_cv_struct_tm" >&6; }
14932 if test $ac_cv_struct_tm = sys/time.h; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define TM_IN_SYS_TIME 1
14936 _ACEOF
14940 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14941 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14942 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14944 else
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <$ac_cv_struct_tm>
14956 main ()
14958 static struct tm ac_aggr;
14959 if (ac_aggr.tm_zone)
14960 return 0;
14962 return 0;
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970 esac
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.$ac_objext; then
14983 ac_cv_member_struct_tm_tm_zone=yes
14984 else
14985 $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 #include <sys/types.h>
14995 #include <$ac_cv_struct_tm>
14999 main ()
15001 static struct tm ac_aggr;
15002 if (sizeof ac_aggr.tm_zone)
15003 return 0;
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013 esac
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && {
15023 test -z "$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15025 } && test -s conftest.$ac_objext; then
15026 ac_cv_member_struct_tm_tm_zone=yes
15027 else
15028 $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_member_struct_tm_tm_zone=no
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15040 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15041 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_STRUCT_TM_TM_ZONE 1
15045 _ACEOF
15050 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_TM_ZONE 1
15054 _ACEOF
15057 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15058 $as_echo_n "checking for tzname... " >&6; }
15059 if test "${ac_cv_var_tzname+set}" = set; then
15060 $as_echo_n "(cached) " >&6
15061 else
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <time.h>
15069 #ifndef tzname /* For SGI. */
15070 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15071 #endif
15074 main ()
15076 atoi(*tzname);
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086 esac
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089 (eval "$ac_link") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest$ac_exeext && {
15099 test "$cross_compiling" = yes ||
15100 $as_test_x conftest$ac_exeext
15101 }; then
15102 ac_cv_var_tzname=yes
15103 else
15104 $as_echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_var_tzname=no
15110 rm -rf conftest.dSYM
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112 conftest$ac_exeext conftest.$ac_ext
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15115 $as_echo "$ac_cv_var_tzname" >&6; }
15116 if test $ac_cv_var_tzname = yes; then
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_TZNAME 1
15120 _ACEOF
15124 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15125 $as_echo_n "checking for union semun... " >&6; }
15126 if test "${ac_cv_type_union_semun+set}" = set; then
15127 $as_echo_n "(cached) " >&6
15128 else
15129 ac_cv_type_union_semun=no
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #include <sys/ipc.h>
15138 #include <sys/sem.h>
15141 main ()
15143 if (sizeof (union semun))
15144 return 0;
15146 return 0;
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156 $as_echo "$ac_try_echo") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest.$ac_objext; then
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <sys/types.h>
15174 #include <sys/ipc.h>
15175 #include <sys/sem.h>
15178 main ()
15180 if (sizeof ((union semun)))
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194 (eval "$ac_compile") 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && {
15201 test -z "$ac_c_werror_flag" ||
15202 test ! -s conftest.err
15203 } && test -s conftest.$ac_objext; then
15205 else
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_cv_type_union_semun=yes
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 else
15214 $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15223 $as_echo "$ac_cv_type_union_semun" >&6; }
15224 if test "x$ac_cv_type_union_semun" = x""yes; then
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_UNION_SEMUN 1
15228 _ACEOF
15233 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15234 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15235 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15236 $as_echo_n "(cached) " >&6
15237 else
15238 ac_cv_type_struct_sockaddr_un=no
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h. */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 #include <sys/types.h>
15246 #ifdef HAVE_SYS_UN_H
15247 #include <sys/un.h>
15248 #endif
15252 main ()
15254 if (sizeof (struct sockaddr_un))
15255 return 0;
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <sys/types.h>
15285 #ifdef HAVE_SYS_UN_H
15286 #include <sys/un.h>
15287 #endif
15291 main ()
15293 if (sizeof ((struct sockaddr_un)))
15294 return 0;
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest.$ac_objext; then
15318 else
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_type_struct_sockaddr_un=yes
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 else
15327 $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15336 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15337 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_STRUCT_SOCKADDR_UN 1
15341 _ACEOF
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_UNIX_SOCKETS 1
15346 _ACEOF
15350 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15351 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15352 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15353 $as_echo_n "(cached) " >&6
15354 else
15355 ac_cv_type_struct_sockaddr_storage=no
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15365 #endif
15369 main ()
15371 if (sizeof (struct sockaddr_storage))
15372 return 0;
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15384 $as_echo "$ac_try_echo") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest.$ac_objext; then
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h. */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_SOCKET_H
15403 #include <sys/socket.h>
15404 #endif
15408 main ()
15410 if (sizeof ((struct sockaddr_storage)))
15411 return 0;
15413 return 0;
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && {
15431 test -z "$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 } && test -s conftest.$ac_objext; then
15435 else
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_cv_type_struct_sockaddr_storage=yes
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 else
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15453 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15454 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15458 _ACEOF
15463 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15464 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15465 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15466 $as_echo_n "(cached) " >&6
15467 else
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <sys/types.h>
15475 #ifdef HAVE_SYS_SOCKET_H
15476 #include <sys/socket.h>
15477 #endif
15481 main ()
15483 static struct sockaddr_storage ac_aggr;
15484 if (ac_aggr.ss_family)
15485 return 0;
15487 return 0;
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15509 else
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15522 #endif
15526 main ()
15528 static struct sockaddr_storage ac_aggr;
15529 if (sizeof ac_aggr.ss_family)
15530 return 0;
15532 return 0;
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540 esac
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15544 ac_status=$?
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
15548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest.$ac_objext; then
15553 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15554 else
15555 $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_member_struct_sockaddr_storage_ss_family=no
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15567 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15568 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15572 _ACEOF
15576 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15577 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15578 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15579 $as_echo_n "(cached) " >&6
15580 else
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15590 #endif
15594 main ()
15596 static struct sockaddr_storage ac_aggr;
15597 if (ac_aggr.__ss_family)
15598 return 0;
15600 return 0;
15602 _ACEOF
15603 rm -f conftest.$ac_objext
15604 if { (ac_try="$ac_compile"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608 esac
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15621 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15622 else
15623 $as_echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15635 #endif
15639 main ()
15641 static struct sockaddr_storage ac_aggr;
15642 if (sizeof ac_aggr.__ss_family)
15643 return 0;
15645 return 0;
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest.$ac_objext; then
15666 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15667 else
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_cv_member_struct_sockaddr_storage___ss_family=no
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15680 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15681 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15685 _ACEOF
15689 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15690 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15691 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15693 else
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h. */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <sys/types.h>
15701 #ifdef HAVE_SYS_SOCKET_H
15702 #include <sys/socket.h>
15703 #endif
15707 main ()
15709 static struct sockaddr_storage ac_aggr;
15710 if (ac_aggr.ss_len)
15711 return 0;
15713 return 0;
15715 _ACEOF
15716 rm -f conftest.$ac_objext
15717 if { (ac_try="$ac_compile"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721 esac
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest.$ac_objext; then
15734 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15735 else
15736 $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15748 #endif
15752 main ()
15754 static struct sockaddr_storage ac_aggr;
15755 if (sizeof ac_aggr.ss_len)
15756 return 0;
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766 esac
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_compile") 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest.$ac_objext; then
15779 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15780 else
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_member_struct_sockaddr_storage_ss_len=no
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15793 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15794 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15798 _ACEOF
15802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15803 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15804 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15805 $as_echo_n "(cached) " >&6
15806 else
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h. */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 #include <sys/types.h>
15814 #ifdef HAVE_SYS_SOCKET_H
15815 #include <sys/socket.h>
15816 #endif
15820 main ()
15822 static struct sockaddr_storage ac_aggr;
15823 if (ac_aggr.__ss_len)
15824 return 0;
15826 return 0;
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (ac_try="$ac_compile"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15834 esac
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837 (eval "$ac_compile") 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } && {
15844 test -z "$ac_c_werror_flag" ||
15845 test ! -s conftest.err
15846 } && test -s conftest.$ac_objext; then
15847 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15848 else
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15861 #endif
15865 main ()
15867 static struct sockaddr_storage ac_aggr;
15868 if (sizeof ac_aggr.__ss_len)
15869 return 0;
15871 return 0;
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879 esac
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882 (eval "$ac_compile") 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest.$ac_objext; then
15892 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15893 else
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_member_struct_sockaddr_storage___ss_len=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15906 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15907 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15911 _ACEOF
15915 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15916 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15917 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15918 $as_echo_n "(cached) " >&6
15919 else
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <sys/types.h>
15927 #ifdef HAVE_SYS_SOCKET_H
15928 #include <sys/socket.h>
15929 #endif
15933 main ()
15935 static struct sockaddr ac_aggr;
15936 if (ac_aggr.sa_len)
15937 return 0;
15939 return 0;
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947 esac
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 ac_cv_member_struct_sockaddr_sa_len=yes
15961 else
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15974 #endif
15978 main ()
15980 static struct sockaddr ac_aggr;
15981 if (sizeof ac_aggr.sa_len)
15982 return 0;
15984 return 0;
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.$ac_objext; then
16005 ac_cv_member_struct_sockaddr_sa_len=yes
16006 else
16007 $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_cv_member_struct_sockaddr_sa_len=no
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16019 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16020 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16024 _ACEOF
16029 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16030 $as_echo_n "checking for struct addrinfo... " >&6; }
16031 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16033 else
16034 ac_cv_type_struct_addrinfo=no
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h. */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <sys/types.h>
16042 #include <sys/socket.h>
16043 #include <netdb.h>
16047 main ()
16049 if (sizeof (struct addrinfo))
16050 return 0;
16052 return 0;
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062 $as_echo "$ac_try_echo") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <sys/types.h>
16080 #include <sys/socket.h>
16081 #include <netdb.h>
16085 main ()
16087 if (sizeof ((struct addrinfo)))
16088 return 0;
16090 return 0;
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098 esac
16099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16100 $as_echo "$ac_try_echo") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.$ac_objext; then
16112 else
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_type_struct_addrinfo=yes
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 else
16121 $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16130 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16131 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_ADDRINFO 1
16135 _ACEOF
16141 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16142 $as_echo_n "checking for intptr_t... " >&6; }
16143 if test "${ac_cv_type_intptr_t+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145 else
16146 ac_cv_type_intptr_t=no
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h. */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16155 main ()
16157 if (sizeof (intptr_t))
16158 return 0;
16160 return 0;
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (ac_try="$ac_compile"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168 esac
16169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16170 $as_echo "$ac_try_echo") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } && {
16178 test -z "$ac_c_werror_flag" ||
16179 test ! -s conftest.err
16180 } && test -s conftest.$ac_objext; then
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16189 main ()
16191 if (sizeof ((intptr_t)))
16192 return 0;
16194 return 0;
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16216 else
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_type_intptr_t=yes
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 else
16225 $as_echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16234 $as_echo "$ac_cv_type_intptr_t" >&6; }
16235 if test "x$ac_cv_type_intptr_t" = x""yes; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_INTPTR_T 1
16239 _ACEOF
16241 else
16242 for ac_type in 'int' 'long int' 'long long int'; do
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16251 main ()
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16254 test_array [0] = 0
16257 return 0;
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_compile") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest.$ac_objext; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define intptr_t $ac_type
16281 _ACEOF
16283 ac_type=
16284 else
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 test -z "$ac_type" && break
16293 done
16298 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16299 $as_echo_n "checking for uintptr_t... " >&6; }
16300 if test "${ac_cv_type_uintptr_t+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16302 else
16303 ac_cv_type_uintptr_t=no
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16312 main ()
16314 if (sizeof (uintptr_t))
16315 return 0;
16317 return 0;
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325 esac
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest.$ac_objext; then
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16346 main ()
16348 if (sizeof ((uintptr_t)))
16349 return 0;
16351 return 0;
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359 esac
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16373 else
16374 $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_type_uintptr_t=yes
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 else
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16391 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16392 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_UINTPTR_T 1
16396 _ACEOF
16398 else
16399 for ac_type in 'unsigned int' 'unsigned long int' \
16400 'unsigned long long int'; do
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16409 main ()
16411 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16412 test_array [0] = 0
16415 return 0;
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest.$ac_objext; then
16437 cat >>confdefs.h <<_ACEOF
16438 #define uintptr_t $ac_type
16439 _ACEOF
16441 ac_type=
16442 else
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 test -z "$ac_type" && break
16451 done
16456 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16457 $as_echo_n "checking for long long int... " >&6; }
16458 if test "${ac_cv_type_long_long_int+set}" = set; then
16459 $as_echo_n "(cached) " >&6
16460 else
16461 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 /* For now, do not test the preprocessor; as of 2007 there are too many
16469 implementations with broken preprocessors. Perhaps this can
16470 be revisited in 2012. In the meantime, code should not expect
16471 #if to work with literals wider than 32 bits. */
16472 /* Test literals. */
16473 long long int ll = 9223372036854775807ll;
16474 long long int nll = -9223372036854775807LL;
16475 unsigned long long int ull = 18446744073709551615ULL;
16476 /* Test constant expressions. */
16477 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16478 ? 1 : -1)];
16479 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16480 ? 1 : -1)];
16481 int i = 63;
16483 main ()
16485 /* Test availability of runtime routines for shift and division. */
16486 long long int llmax = 9223372036854775807ll;
16487 unsigned long long int ullmax = 18446744073709551615ull;
16488 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16489 | (llmax / ll) | (llmax % ll)
16490 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16491 | (ullmax / ull) | (ullmax % ull));
16493 return 0;
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502 esac
16503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504 $as_echo "$ac_try_echo") >&5
16505 (eval "$ac_link") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext && {
16515 test "$cross_compiling" = yes ||
16516 $as_test_x conftest$ac_exeext
16517 }; then
16518 if test "$cross_compiling" = yes; then
16519 ac_cv_type_long_long_int=yes
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <limits.h>
16528 #ifndef LLONG_MAX
16529 # define HALF \
16530 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16531 # define LLONG_MAX (HALF - 1 + HALF)
16532 #endif
16534 main ()
16536 long long int n = 1;
16537 int i;
16538 for (i = 0; ; i++)
16540 long long int m = n << i;
16541 if (m >> i != n)
16542 return 1;
16543 if (LLONG_MAX / 2 < m)
16544 break;
16546 return 0;
16548 return 0;
16550 _ACEOF
16551 rm -f conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556 esac
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559 (eval "$ac_link") 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566 esac
16567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568 $as_echo "$ac_try_echo") >&5
16569 (eval "$ac_try") 2>&5
16570 ac_status=$?
16571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_long_long_int=yes
16574 else
16575 $as_echo "$as_me: program exited with status $ac_status" >&5
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ( exit $ac_status )
16580 ac_cv_type_long_long_int=no
16582 rm -rf conftest.dSYM
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587 else
16588 $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_type_long_long_int=no
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596 conftest$ac_exeext conftest.$ac_ext
16598 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16599 $as_echo "$ac_cv_type_long_long_int" >&6; }
16600 if test $ac_cv_type_long_long_int = yes; then
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_LONG_LONG_INT 1
16604 _ACEOF
16609 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16610 $as_echo_n "checking for struct cmsgcred... " >&6; }
16611 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16612 $as_echo_n "(cached) " >&6
16613 else
16614 ac_cv_type_struct_cmsgcred=no
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 #include <sys/param.h>
16622 #include <sys/types.h>
16623 #include <sys/socket.h>
16624 #include <sys/ucred.h>
16627 main ()
16629 if (sizeof (struct cmsgcred))
16630 return 0;
16632 return 0;
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_compile") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest.$ac_objext; then
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 #include <sys/param.h>
16660 #include <sys/types.h>
16661 #include <sys/socket.h>
16662 #include <sys/ucred.h>
16665 main ()
16667 if (sizeof ((struct cmsgcred)))
16668 return 0;
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest.$ac_objext; then
16692 else
16693 $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_type_struct_cmsgcred=yes
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 else
16701 $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16710 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16711 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_STRUCT_CMSGCRED 1
16715 _ACEOF
16719 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16720 $as_echo_n "checking for struct fcred... " >&6; }
16721 if test "${ac_cv_type_struct_fcred+set}" = set; then
16722 $as_echo_n "(cached) " >&6
16723 else
16724 ac_cv_type_struct_fcred=no
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h. */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 #include <sys/param.h>
16732 #include <sys/types.h>
16733 #include <sys/socket.h>
16734 #include <sys/ucred.h>
16737 main ()
16739 if (sizeof (struct fcred))
16740 return 0;
16742 return 0;
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <sys/param.h>
16770 #include <sys/types.h>
16771 #include <sys/socket.h>
16772 #include <sys/ucred.h>
16775 main ()
16777 if (sizeof ((struct fcred)))
16778 return 0;
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (ac_try="$ac_compile"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788 esac
16789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16790 $as_echo "$ac_try_echo") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16802 else
16803 $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_type_struct_fcred=yes
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 else
16811 $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16820 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16821 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_STRUCT_FCRED 1
16825 _ACEOF
16829 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16830 $as_echo_n "checking for struct sockcred... " >&6; }
16831 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16832 $as_echo_n "(cached) " >&6
16833 else
16834 ac_cv_type_struct_sockcred=no
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #include <sys/param.h>
16842 #include <sys/types.h>
16843 #include <sys/socket.h>
16844 #include <sys/ucred.h>
16847 main ()
16849 if (sizeof (struct sockcred))
16850 return 0;
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860 esac
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.$ac_objext; then
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/param.h>
16880 #include <sys/types.h>
16881 #include <sys/socket.h>
16882 #include <sys/ucred.h>
16885 main ()
16887 if (sizeof ((struct sockcred)))
16888 return 0;
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16912 else
16913 $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_type_struct_sockcred=yes
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 else
16921 $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16930 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16931 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_SOCKCRED 1
16935 _ACEOF
16941 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16942 $as_echo_n "checking for struct option... " >&6; }
16943 if test "${ac_cv_type_struct_option+set}" = set; then
16944 $as_echo_n "(cached) " >&6
16945 else
16946 ac_cv_type_struct_option=no
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #ifdef HAVE_GETOPT_H
16954 #include <getopt.h>
16955 #endif
16958 main ()
16960 if (sizeof (struct option))
16961 return 0;
16963 return 0;
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #ifdef HAVE_GETOPT_H
16991 #include <getopt.h>
16992 #endif
16995 main ()
16997 if (sizeof ((struct option)))
16998 return 0;
17000 return 0;
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17022 else
17023 $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_struct_option=yes
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 else
17031 $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17040 $as_echo "$ac_cv_type_struct_option" >&6; }
17041 if test "x$ac_cv_type_struct_option" = x""yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_OPTION 1
17045 _ACEOF
17051 if test "$with_zlib" = yes; then
17052 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17053 # did not). While we could work around the lack of z_streamp, it
17054 # seems unwise to encourage people to use such old zlib versions...
17055 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17056 $as_echo_n "checking for z_streamp... " >&6; }
17057 if test "${ac_cv_type_z_streamp+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17059 else
17060 ac_cv_type_z_streamp=no
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h. */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 #include <zlib.h>
17070 main ()
17072 if (sizeof (z_streamp))
17073 return 0;
17075 return 0;
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest.$ac_objext; then
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 #include <zlib.h>
17105 main ()
17107 if (sizeof ((z_streamp)))
17108 return 0;
17110 return 0;
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17122 ac_status=$?
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
17126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest.$ac_objext; then
17132 else
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_cv_type_z_streamp=yes
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 else
17141 $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17150 $as_echo "$ac_cv_type_z_streamp" >&6; }
17151 if test "x$ac_cv_type_z_streamp" = x""yes; then
17153 else
17154 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17155 Use --without-zlib to disable zlib support." >&5
17156 $as_echo "$as_me: error: zlib version is too old
17157 Use --without-zlib to disable zlib support." >&2;}
17158 { (exit 1); exit 1; }; }
17163 if test "$with_krb5" = yes; then
17164 # Check for differences between MIT and Heimdal (KTH) releases
17165 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17166 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17167 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17169 else
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 #include <krb5.h>
17179 main ()
17181 static krb5_ticket ac_aggr;
17182 if (ac_aggr.enc_part2)
17183 return 0;
17185 return 0;
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17206 ac_cv_member_krb5_ticket_enc_part2=yes
17207 else
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 #include <krb5.h>
17220 main ()
17222 static krb5_ticket ac_aggr;
17223 if (sizeof ac_aggr.enc_part2)
17224 return 0;
17226 return 0;
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234 esac
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest.$ac_objext; then
17247 ac_cv_member_krb5_ticket_enc_part2=yes
17248 else
17249 $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_member_krb5_ticket_enc_part2=no
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17261 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17262 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_KRB5_TICKET_ENC_PART2 1
17266 _ACEOF
17269 else
17270 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17271 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17272 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17273 $as_echo_n "(cached) " >&6
17274 else
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 #include <krb5.h>
17284 main ()
17286 static krb5_ticket ac_aggr;
17287 if (ac_aggr.client)
17288 return 0;
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17300 $as_echo "$ac_try_echo") >&5
17301 (eval "$ac_compile") 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && {
17308 test -z "$ac_c_werror_flag" ||
17309 test ! -s conftest.err
17310 } && test -s conftest.$ac_objext; then
17311 ac_cv_member_krb5_ticket_client=yes
17312 else
17313 $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h. */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #include <krb5.h>
17325 main ()
17327 static krb5_ticket ac_aggr;
17328 if (sizeof ac_aggr.client)
17329 return 0;
17331 return 0;
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339 esac
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest.$ac_objext; then
17352 ac_cv_member_krb5_ticket_client=yes
17353 else
17354 $as_echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_cv_member_krb5_ticket_client=no
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17366 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17367 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_KRB5_TICKET_CLIENT 1
17371 _ACEOF
17374 else
17375 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17376 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17377 { (exit 1); exit 1; }; }
17382 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17383 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17384 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17385 $as_echo_n "(cached) " >&6
17386 else
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393 #include <krb5.h>
17396 main ()
17398 static krb5_error ac_aggr;
17399 if (ac_aggr.text.data)
17400 return 0;
17402 return 0;
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410 esac
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17414 ac_status=$?
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
17418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.$ac_objext; then
17423 ac_cv_member_krb5_error_text_data=yes
17424 else
17425 $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h. */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <krb5.h>
17437 main ()
17439 static krb5_error ac_aggr;
17440 if (sizeof ac_aggr.text.data)
17441 return 0;
17443 return 0;
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451 esac
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest.$ac_objext; then
17464 ac_cv_member_krb5_error_text_data=yes
17465 else
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_member_krb5_error_text_data=no
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17478 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17479 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17483 _ACEOF
17486 else
17487 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17488 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17489 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17490 $as_echo_n "(cached) " >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 #include <krb5.h>
17501 main ()
17503 static krb5_error ac_aggr;
17504 if (ac_aggr.e_data)
17505 return 0;
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_cv_member_krb5_error_e_data=yes
17529 else
17530 $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h. */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 #include <krb5.h>
17542 main ()
17544 static krb5_error ac_aggr;
17545 if (sizeof ac_aggr.e_data)
17546 return 0;
17548 return 0;
17550 _ACEOF
17551 rm -f conftest.$ac_objext
17552 if { (ac_try="$ac_compile"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556 esac
17557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17558 $as_echo "$ac_try_echo") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest.$ac_objext; then
17569 ac_cv_member_krb5_error_e_data=yes
17570 else
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_member_krb5_error_e_data=no
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17583 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17584 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_KRB5_ERROR_E_DATA 1
17588 _ACEOF
17591 else
17592 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17593 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17594 { (exit 1); exit 1; }; }
17600 # Win32 requires headers to be loaded for __stdcall, so can't use
17601 # AC_CHECK_FUNCS here.
17602 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17603 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17604 cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h. */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610 #include <krb5.h>
17612 main ()
17614 krb5_free_unparsed_name(NULL,NULL);
17616 return 0;
17618 _ACEOF
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627 (eval "$ac_link") 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest$ac_exeext && {
17637 test "$cross_compiling" = yes ||
17638 $as_test_x conftest$ac_exeext
17639 }; then
17641 cat >>confdefs.h <<\_ACEOF
17642 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17643 _ACEOF
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17647 else
17648 $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17655 rm -rf conftest.dSYM
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657 conftest$ac_exeext conftest.$ac_ext
17660 # Check largefile support. You might think this is a system service not a
17661 # compiler characteristic, but you'd be wrong. We must check this before
17662 # probing existence of related functions such as fseeko, since the largefile
17663 # defines can affect what is generated for that.
17664 # Check whether --enable-largefile was given.
17665 if test "${enable_largefile+set}" = set; then
17666 enableval=$enable_largefile;
17669 if test "$enable_largefile" != no; then
17671 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17673 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17674 $as_echo_n "(cached) " >&6
17675 else
17676 ac_cv_sys_largefile_CC=no
17677 if test "$GCC" != yes; then
17678 ac_save_CC=$CC
17679 while :; do
17680 # IRIX 6.2 and later do not support large files by default,
17681 # so use the C compiler's -n32 option if that helps.
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 #include <sys/types.h>
17689 /* Check that off_t can represent 2**63 - 1 correctly.
17690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17691 since some C++ compilers masquerading as C compilers
17692 incorrectly reject 9223372036854775807. */
17693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17695 && LARGE_OFF_T % 2147483647 == 1)
17696 ? 1 : -1];
17698 main ()
17702 return 0;
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710 esac
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713 (eval "$ac_compile") 2>conftest.er1
17714 ac_status=$?
17715 grep -v '^ *+' conftest.er1 >conftest.err
17716 rm -f conftest.er1
17717 cat conftest.err >&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && {
17720 test -z "$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17722 } && test -s conftest.$ac_objext; then
17723 break
17724 else
17725 $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17731 rm -f core conftest.err conftest.$ac_objext
17732 CC="$CC -n32"
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17738 esac
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest.$ac_objext; then
17751 ac_cv_sys_largefile_CC=' -n32'; break
17752 else
17753 $as_echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17759 rm -f core conftest.err conftest.$ac_objext
17760 break
17761 done
17762 CC=$ac_save_CC
17763 rm -f conftest.$ac_ext
17766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17767 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17768 if test "$ac_cv_sys_largefile_CC" != no; then
17769 CC=$CC$ac_cv_sys_largefile_CC
17772 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17773 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17775 $as_echo_n "(cached) " >&6
17776 else
17777 while :; do
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h. */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 #include <sys/types.h>
17785 /* Check that off_t can represent 2**63 - 1 correctly.
17786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17787 since some C++ compilers masquerading as C compilers
17788 incorrectly reject 9223372036854775807. */
17789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17791 && LARGE_OFF_T % 2147483647 == 1)
17792 ? 1 : -1];
17794 main ()
17798 return 0;
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806 esac
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17819 ac_cv_sys_file_offset_bits=no; break
17820 else
17821 $as_echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 _FILE_OFFSET_BITS 64
17835 #include <sys/types.h>
17836 /* Check that off_t can represent 2**63 - 1 correctly.
17837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17838 since some C++ compilers masquerading as C compilers
17839 incorrectly reject 9223372036854775807. */
17840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17842 && LARGE_OFF_T % 2147483647 == 1)
17843 ? 1 : -1];
17845 main ()
17849 return 0;
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857 esac
17858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17859 $as_echo "$ac_try_echo") >&5
17860 (eval "$ac_compile") 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest.$ac_objext; then
17870 ac_cv_sys_file_offset_bits=64; break
17871 else
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 ac_cv_sys_file_offset_bits=unknown
17880 break
17881 done
17883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17885 case $ac_cv_sys_file_offset_bits in #(
17886 no | unknown) ;;
17888 cat >>confdefs.h <<_ACEOF
17889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17890 _ACEOF
17892 esac
17893 rm -rf conftest*
17894 if test $ac_cv_sys_file_offset_bits = unknown; then
17895 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17897 if test "${ac_cv_sys_large_files+set}" = set; then
17898 $as_echo_n "(cached) " >&6
17899 else
17900 while :; do
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <sys/types.h>
17908 /* Check that off_t can represent 2**63 - 1 correctly.
17909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17910 since some C++ compilers masquerading as C compilers
17911 incorrectly reject 9223372036854775807. */
17912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17914 && LARGE_OFF_T % 2147483647 == 1)
17915 ? 1 : -1];
17917 main ()
17921 return 0;
17923 _ACEOF
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932 (eval "$ac_compile") 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest.$ac_objext; then
17942 ac_cv_sys_large_files=no; break
17943 else
17944 $as_echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #define _LARGE_FILES 1
17958 #include <sys/types.h>
17959 /* Check that off_t can represent 2**63 - 1 correctly.
17960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17961 since some C++ compilers masquerading as C compilers
17962 incorrectly reject 9223372036854775807. */
17963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17965 && LARGE_OFF_T % 2147483647 == 1)
17966 ? 1 : -1];
17968 main ()
17972 return 0;
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980 esac
17981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17982 $as_echo "$ac_try_echo") >&5
17983 (eval "$ac_compile") 2>conftest.er1
17984 ac_status=$?
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
17988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest.$ac_objext; then
17993 ac_cv_sys_large_files=1; break
17994 else
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002 ac_cv_sys_large_files=unknown
18003 break
18004 done
18006 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18007 $as_echo "$ac_cv_sys_large_files" >&6; }
18008 case $ac_cv_sys_large_files in #(
18009 no | unknown) ;;
18011 cat >>confdefs.h <<_ACEOF
18012 #define _LARGE_FILES $ac_cv_sys_large_files
18013 _ACEOF
18015 esac
18016 rm -rf conftest*
18021 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18022 # The cast to long int works around a bug in the HP C Compiler
18023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18025 # This bug is HP SR number 8606223364.
18026 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18027 $as_echo_n "checking size of off_t... " >&6; }
18028 if test "${ac_cv_sizeof_off_t+set}" = set; then
18029 $as_echo_n "(cached) " >&6
18030 else
18031 if test "$cross_compiling" = yes; then
18032 # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 $ac_includes_default
18041 main ()
18043 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18044 test_array [0] = 0
18047 return 0;
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057 $as_echo "$ac_try_echo") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_lo=0 ac_mid=0
18069 while :; do
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h. */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 $ac_includes_default
18078 main ()
18080 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18081 test_array [0] = 0
18084 return 0;
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18092 esac
18093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest.$ac_objext; then
18105 ac_hi=$ac_mid; break
18106 else
18107 $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_lo=`expr $ac_mid + 1`
18111 if test $ac_lo -le $ac_mid; then
18112 ac_lo= ac_hi=
18113 break
18115 ac_mid=`expr 2 '*' $ac_mid + 1`
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 done
18120 else
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 $ac_includes_default
18132 main ()
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18135 test_array [0] = 0
18138 return 0;
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146 esac
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_hi=-1 ac_mid=-1
18160 while :; do
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 $ac_includes_default
18169 main ()
18171 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18172 test_array [0] = 0
18175 return 0;
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183 esac
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186 (eval "$ac_compile") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest.$ac_objext; then
18196 ac_lo=$ac_mid; break
18197 else
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_hi=`expr '(' $ac_mid ')' - 1`
18202 if test $ac_mid -le $ac_hi; then
18203 ac_lo= ac_hi=
18204 break
18206 ac_mid=`expr 2 '*' $ac_mid`
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 done
18211 else
18212 $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_lo= ac_hi=
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 # Binary search between lo and hi bounds.
18223 while test "x$ac_lo" != "x$ac_hi"; do
18224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18233 main ()
18235 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18236 test_array [0] = 0
18239 return 0;
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (ac_try="$ac_compile"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247 esac
18248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18249 $as_echo "$ac_try_echo") >&5
18250 (eval "$ac_compile") 2>conftest.er1
18251 ac_status=$?
18252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
18255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } && {
18257 test -z "$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 } && test -s conftest.$ac_objext; then
18260 ac_hi=$ac_mid
18261 else
18262 $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_lo=`expr '(' $ac_mid ')' + 1`
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 done
18270 case $ac_lo in
18271 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18272 '') if test "$ac_cv_type_off_t" = yes; then
18273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18276 See \`config.log' for more details." >&5
18277 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18278 See \`config.log' for more details." >&2;}
18279 { (exit 77); exit 77; }; }; }
18280 else
18281 ac_cv_sizeof_off_t=0
18282 fi ;;
18283 esac
18284 else
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 $ac_includes_default
18292 static long int longval () { return (long int) (sizeof (off_t)); }
18293 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18294 #include <stdio.h>
18295 #include <stdlib.h>
18297 main ()
18300 FILE *f = fopen ("conftest.val", "w");
18301 if (! f)
18302 return 1;
18303 if (((long int) (sizeof (off_t))) < 0)
18305 long int i = longval ();
18306 if (i != ((long int) (sizeof (off_t))))
18307 return 1;
18308 fprintf (f, "%ld", i);
18310 else
18312 unsigned long int i = ulongval ();
18313 if (i != ((long int) (sizeof (off_t))))
18314 return 1;
18315 fprintf (f, "%lu", i);
18317 /* Do not output a trailing newline, as this causes \r\n confusion
18318 on some platforms. */
18319 return ferror (f) || fclose (f) != 0;
18322 return 0;
18324 _ACEOF
18325 rm -f conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>&5
18334 ac_status=$?
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_sizeof_off_t=`cat conftest.val`
18348 else
18349 $as_echo "$as_me: program exited with status $ac_status" >&5
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ( exit $ac_status )
18354 if test "$ac_cv_type_off_t" = yes; then
18355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18358 See \`config.log' for more details." >&5
18359 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18360 See \`config.log' for more details." >&2;}
18361 { (exit 77); exit 77; }; }; }
18362 else
18363 ac_cv_sizeof_off_t=0
18366 rm -rf conftest.dSYM
18367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18369 rm -f conftest.val
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18372 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18376 cat >>confdefs.h <<_ACEOF
18377 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18378 _ACEOF
18382 # If we don't have largefile support, can't handle segsize >= 2GB.
18383 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18384 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18385 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18386 { (exit 1); exit 1; }; }
18391 ## Functions, global variables
18394 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18395 $as_echo_n "checking for int timezone... " >&6; }
18396 if test "${pgac_cv_var_int_timezone+set}" = set; then
18397 $as_echo_n "(cached) " >&6
18398 else
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 #include <time.h>
18406 int res;
18408 main ()
18410 #ifndef __CYGWIN__
18411 res = timezone / 60;
18412 #else
18413 res = _timezone / 60;
18414 #endif
18416 return 0;
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427 (eval "$ac_link") 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest$ac_exeext && {
18437 test "$cross_compiling" = yes ||
18438 $as_test_x conftest$ac_exeext
18439 }; then
18440 pgac_cv_var_int_timezone=yes
18441 else
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 pgac_cv_var_int_timezone=no
18448 rm -rf conftest.dSYM
18449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450 conftest$ac_exeext conftest.$ac_ext
18452 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18453 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18454 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_INT_TIMEZONE /**/
18458 _ACEOF
18461 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18462 $as_echo_n "checking types of arguments for accept()... " >&6; }
18463 if test "${ac_cv_func_accept_return+set}" = set; then
18464 $as_echo_n "(cached) " >&6
18465 else
18466 if test "${ac_cv_func_accept_arg1+set}" = set; then
18467 $as_echo_n "(cached) " >&6
18468 else
18469 if test "${ac_cv_func_accept_arg2+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18471 else
18472 if test "${ac_cv_func_accept_arg3+set}" = set; then
18473 $as_echo_n "(cached) " >&6
18474 else
18475 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18476 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18477 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18478 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18479 cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h. */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 #ifdef HAVE_SYS_TYPES_H
18486 #include <sys/types.h>
18487 #endif
18488 #ifdef HAVE_SYS_SOCKET_H
18489 #include <sys/socket.h>
18490 #endif
18491 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18493 main ()
18497 return 0;
18499 _ACEOF
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505 esac
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_not_found=no; break 4
18519 else
18520 $as_echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_not_found=yes
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527 done
18528 done
18529 done
18530 done
18531 if test "$ac_not_found" = yes; then
18532 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18533 $as_echo "$as_me: error: could not determine argument types" >&2;}
18534 { (exit 1); exit 1; }; }
18536 if test "$ac_cv_func_accept_arg3" = "void"; then
18537 ac_cv_func_accept_arg3=int
18547 { $as_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
18548 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18550 cat >>confdefs.h <<_ACEOF
18551 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18552 _ACEOF
18555 cat >>confdefs.h <<_ACEOF
18556 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18557 _ACEOF
18560 cat >>confdefs.h <<_ACEOF
18561 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18562 _ACEOF
18565 cat >>confdefs.h <<_ACEOF
18566 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18567 _ACEOF
18570 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18571 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18572 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18573 $as_echo_n "(cached) " >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <sys/time.h>
18583 main ()
18585 struct timeval *tp;
18586 struct timezone *tzp;
18587 gettimeofday(tp,tzp);
18589 return 0;
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18599 $as_echo "$ac_try_echo") >&5
18600 (eval "$ac_compile") 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest.$ac_objext; then
18610 pgac_cv_func_gettimeofday_1arg=no
18611 else
18612 $as_echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 pgac_cv_func_gettimeofday_1arg=yes
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18621 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18622 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18624 cat >>confdefs.h <<\_ACEOF
18625 #define GETTIMEOFDAY_1ARG /**/
18626 _ACEOF
18655 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 $as_echo_n "checking for $ac_func... " >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661 $as_echo_n "(cached) " >&6
18662 else
18663 cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18671 #define $ac_func innocuous_$ac_func
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func (); below.
18675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676 <limits.h> exists even on freestanding compilers. */
18678 #ifdef __STDC__
18679 # include <limits.h>
18680 #else
18681 # include <assert.h>
18682 #endif
18684 #undef $ac_func
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char $ac_func ();
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 choke me
18698 #endif
18701 main ()
18703 return $ac_func ();
18705 return 0;
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713 esac
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716 (eval "$ac_link") 2>conftest.er1
18717 ac_status=$?
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
18721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } && {
18723 test -z "$ac_c_werror_flag" ||
18724 test ! -s conftest.err
18725 } && test -s conftest$ac_exeext && {
18726 test "$cross_compiling" = yes ||
18727 $as_test_x conftest$ac_exeext
18728 }; then
18729 eval "$as_ac_var=yes"
18730 else
18731 $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 eval "$as_ac_var=no"
18737 rm -rf conftest.dSYM
18738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18739 conftest$ac_exeext conftest.$ac_ext
18741 ac_res=`eval 'as_val=${'$as_ac_var'}
18742 $as_echo "$as_val"'`
18743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 as_val=`eval 'as_val=${'$as_ac_var'}
18746 $as_echo "$as_val"'`
18747 if test "x$as_val" = x""yes; then
18748 cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18750 _ACEOF
18753 done
18757 for ac_func in fseeko
18759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 $as_echo_n "checking for $ac_func... " >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763 $as_echo_n "(cached) " >&6
18764 else
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18780 #ifdef __STDC__
18781 # include <limits.h>
18782 #else
18783 # include <assert.h>
18784 #endif
18786 #undef $ac_func
18788 /* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 char $ac_func ();
18795 /* The GNU C library defines this for functions which it implements
18796 to always fail with ENOSYS. Some functions are actually named
18797 something starting with __ and the normal name is an alias. */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18799 choke me
18800 #endif
18803 main ()
18805 return $ac_func ();
18807 return 0;
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815 esac
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_link") 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest$ac_exeext && {
18828 test "$cross_compiling" = yes ||
18829 $as_test_x conftest$ac_exeext
18830 }; then
18831 eval "$as_ac_var=yes"
18832 else
18833 $as_echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 eval "$as_ac_var=no"
18839 rm -rf conftest.dSYM
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841 conftest$ac_exeext conftest.$ac_ext
18843 ac_res=`eval 'as_val=${'$as_ac_var'}
18844 $as_echo "$as_val"'`
18845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18846 $as_echo "$ac_res" >&6; }
18847 as_val=`eval 'as_val=${'$as_ac_var'}
18848 $as_echo "$as_val"'`
18849 if test "x$as_val" = x""yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18854 else
18855 case " $LIBOBJS " in
18856 *" $ac_func.$ac_objext "* ) ;;
18857 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18859 esac
18862 done
18865 case $host_os in
18866 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18867 # Mingw uses macros to access Win32 API calls
18868 bsdi*|netbsd*|mingw*)
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_FSEEKO 1
18872 _ACEOF
18874 ac_cv_func_fseeko=yes;;
18876 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18877 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18878 if test "${ac_cv_sys_largefile_source+set}" = set; then
18879 $as_echo_n "(cached) " >&6
18880 else
18881 while :; do
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <sys/types.h> /* for off_t */
18889 #include <stdio.h>
18891 main ()
18893 int (*fp) (FILE *, off_t, int) = fseeko;
18894 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904 esac
18905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18906 $as_echo "$ac_try_echo") >&5
18907 (eval "$ac_link") 2>conftest.er1
18908 ac_status=$?
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
18912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest$ac_exeext && {
18917 test "$cross_compiling" = yes ||
18918 $as_test_x conftest$ac_exeext
18919 }; then
18920 ac_cv_sys_largefile_source=no; break
18921 else
18922 $as_echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -rf conftest.dSYM
18929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18930 conftest$ac_exeext conftest.$ac_ext
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #define _LARGEFILE_SOURCE 1
18938 #include <sys/types.h> /* for off_t */
18939 #include <stdio.h>
18941 main ()
18943 int (*fp) (FILE *, off_t, int) = fseeko;
18944 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954 esac
18955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957 (eval "$ac_link") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext && {
18967 test "$cross_compiling" = yes ||
18968 $as_test_x conftest$ac_exeext
18969 }; then
18970 ac_cv_sys_largefile_source=1; break
18971 else
18972 $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18978 rm -rf conftest.dSYM
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18981 ac_cv_sys_largefile_source=unknown
18982 break
18983 done
18985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18986 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18987 case $ac_cv_sys_largefile_source in #(
18988 no | unknown) ;;
18990 cat >>confdefs.h <<_ACEOF
18991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18992 _ACEOF
18994 esac
18995 rm -rf conftest*
18997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18998 # in glibc 2.1.3, but that breaks too many other things.
18999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19000 if test $ac_cv_sys_largefile_source != unknown; then
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_FSEEKO 1
19004 _ACEOF
19008 esac
19010 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19011 # by calling it, 2009-04-02
19012 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19013 if test "$PORTNAME" != "solaris"; then
19015 for ac_func in posix_fadvise
19017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19019 $as_echo_n "checking for $ac_func... " >&6; }
19020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19021 $as_echo_n "(cached) " >&6
19022 else
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19031 #define $ac_func innocuous_$ac_func
19033 /* System header to define __stub macros and hopefully few prototypes,
19034 which can conflict with char $ac_func (); below.
19035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19036 <limits.h> exists even on freestanding compilers. */
19038 #ifdef __STDC__
19039 # include <limits.h>
19040 #else
19041 # include <assert.h>
19042 #endif
19044 #undef $ac_func
19046 /* Override any GCC internal prototype to avoid an error.
19047 Use char because int might match the return type of a GCC
19048 builtin and then its argument prototype would still apply. */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 char $ac_func ();
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined __stub_$ac_func || defined __stub___$ac_func
19057 choke me
19058 #endif
19061 main ()
19063 return $ac_func ();
19065 return 0;
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073 esac
19074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19075 $as_echo "$ac_try_echo") >&5
19076 (eval "$ac_link") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext && {
19086 test "$cross_compiling" = yes ||
19087 $as_test_x conftest$ac_exeext
19088 }; then
19089 eval "$as_ac_var=yes"
19090 else
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 eval "$as_ac_var=no"
19097 rm -rf conftest.dSYM
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19101 ac_res=`eval 'as_val=${'$as_ac_var'}
19102 $as_echo "$as_val"'`
19103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19104 $as_echo "$ac_res" >&6; }
19105 as_val=`eval 'as_val=${'$as_ac_var'}
19106 $as_echo "$as_val"'`
19107 if test "x$as_val" = x""yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110 _ACEOF
19113 done
19115 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19116 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19117 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19118 $as_echo_n "(cached) " >&6
19119 else
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <fcntl.h>
19129 main ()
19131 #ifndef posix_fadvise
19132 (void) posix_fadvise;
19133 #endif
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19157 ac_cv_have_decl_posix_fadvise=yes
19158 else
19159 $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_have_decl_posix_fadvise=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19168 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19169 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_DECL_POSIX_FADVISE 1
19173 _ACEOF
19176 else
19177 cat >>confdefs.h <<_ACEOF
19178 #define HAVE_DECL_POSIX_FADVISE 0
19179 _ACEOF
19187 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19188 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19189 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19190 $as_echo_n "(cached) " >&6
19191 else
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 #include <unistd.h>
19201 main ()
19203 #ifndef fdatasync
19204 (void) fdatasync;
19205 #endif
19208 return 0;
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216 esac
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_compile") 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest.$ac_objext; then
19229 ac_cv_have_decl_fdatasync=yes
19230 else
19231 $as_echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_have_decl_fdatasync=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19240 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19241 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_DECL_FDATASYNC 1
19245 _ACEOF
19248 else
19249 cat >>confdefs.h <<_ACEOF
19250 #define HAVE_DECL_FDATASYNC 0
19251 _ACEOF
19257 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19258 $as_echo_n "checking whether strlcat is declared... " >&6; }
19259 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19260 $as_echo_n "(cached) " >&6
19261 else
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 $ac_includes_default
19270 main ()
19272 #ifndef strlcat
19273 (void) strlcat;
19274 #endif
19277 return 0;
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285 esac
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19298 ac_cv_have_decl_strlcat=yes
19299 else
19300 $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_have_decl_strlcat=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19309 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19310 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_DECL_STRLCAT 1
19314 _ACEOF
19317 else
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRLCAT 0
19320 _ACEOF
19324 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19325 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19326 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19327 $as_echo_n "(cached) " >&6
19328 else
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 $ac_includes_default
19337 main ()
19339 #ifndef strlcpy
19340 (void) strlcpy;
19341 #endif
19344 return 0;
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19354 $as_echo "$ac_try_echo") >&5
19355 (eval "$ac_compile") 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest.$ac_objext; then
19365 ac_cv_have_decl_strlcpy=yes
19366 else
19367 $as_echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_have_decl_strlcpy=no
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19376 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19377 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_DECL_STRLCPY 1
19381 _ACEOF
19384 else
19385 cat >>confdefs.h <<_ACEOF
19386 #define HAVE_DECL_STRLCPY 0
19387 _ACEOF
19393 # This is probably only present on Darwin, but may as well check always
19394 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19395 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19396 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19398 else
19399 cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <fcntl.h>
19408 main ()
19410 #ifndef F_FULLFSYNC
19411 (void) F_FULLFSYNC;
19412 #endif
19415 return 0;
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423 esac
19424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19425 $as_echo "$ac_try_echo") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
19436 ac_cv_have_decl_F_FULLFSYNC=yes
19437 else
19438 $as_echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_have_decl_F_FULLFSYNC=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19447 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19448 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_DECL_F_FULLFSYNC 1
19452 _ACEOF
19455 else
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_DECL_F_FULLFSYNC 0
19458 _ACEOF
19465 HAVE_IPV6=no
19466 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19467 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19468 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19469 $as_echo_n "(cached) " >&6
19470 else
19471 ac_cv_type_struct_sockaddr_in6=no
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h. */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 $ac_includes_default
19479 #include <netinet/in.h>
19482 main ()
19484 if (sizeof (struct sockaddr_in6))
19485 return 0;
19487 return 0;
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495 esac
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 $ac_includes_default
19515 #include <netinet/in.h>
19518 main ()
19520 if (sizeof ((struct sockaddr_in6)))
19521 return 0;
19523 return 0;
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19533 $as_echo "$ac_try_echo") >&5
19534 (eval "$ac_compile") 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } && {
19541 test -z "$ac_c_werror_flag" ||
19542 test ! -s conftest.err
19543 } && test -s conftest.$ac_objext; then
19545 else
19546 $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_type_struct_sockaddr_in6=yes
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 else
19554 $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19563 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19564 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_IPV6 1
19568 _ACEOF
19570 HAVE_IPV6=yes
19575 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19576 $as_echo_n "checking for PS_STRINGS... " >&6; }
19577 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19578 $as_echo_n "(cached) " >&6
19579 else
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <machine/vmparam.h>
19587 #include <sys/exec.h>
19590 main ()
19592 PS_STRINGS->ps_nargvstr = 1;
19593 PS_STRINGS->ps_argvstr = "foo";
19595 return 0;
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603 esac
19604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606 (eval "$ac_link") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext && {
19616 test "$cross_compiling" = yes ||
19617 $as_test_x conftest$ac_exeext
19618 }; then
19619 pgac_cv_var_PS_STRINGS=yes
19620 else
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 pgac_cv_var_PS_STRINGS=no
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19631 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19632 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19633 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19635 cat >>confdefs.h <<\_ACEOF
19636 #define HAVE_PS_STRINGS /**/
19637 _ACEOF
19642 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19643 # is missing. Yes, there are machines that have only one. We may
19644 # also decide to use snprintf.c if snprintf() is present but does not
19645 # have all the features we need --- see below.
19647 if test "$PORTNAME" = "win32"; then
19648 # Win32 gets snprintf.c built unconditionally.
19650 # To properly translate all NLS languages strings, we must support the
19651 # *printf() %$ format, which allows *printf() arguments to be selected
19652 # by position in the translated string.
19654 # libintl versions < 0.13 use the native *printf() functions, and Win32
19655 # *printf() doesn't understand %$, so we must use our /port versions,
19656 # which do understand %$. libintl versions >= 0.13 include their own
19657 # *printf versions on Win32. The libintl 0.13 release note text is:
19659 # C format strings with positions, as they arise when a translator
19660 # needs to reorder a sentence, are now supported on all platforms.
19661 # On those few platforms (NetBSD and Woe32) for which the native
19662 # printf()/fprintf()/... functions don't support such format
19663 # strings, replacements are provided through <libintl.h>.
19665 # We could use libintl >= 0.13's *printf() if we were sure that we had
19666 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19667 # to guarantee that, it is best to just use our own, so we are sure to
19668 # get %$ support. In include/port.h we disable the *printf() macros
19669 # that might have been defined by libintl.
19671 # We do this unconditionally whether NLS is used or not so we are sure
19672 # that all Win32 libraries and binaries behave the same.
19673 pgac_need_repl_snprintf=yes
19674 else
19675 pgac_need_repl_snprintf=no
19677 for ac_func in snprintf
19679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19681 $as_echo_n "checking for $ac_func... " >&6; }
19682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19683 $as_echo_n "(cached) " >&6
19684 else
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19693 #define $ac_func innocuous_$ac_func
19695 /* System header to define __stub macros and hopefully few prototypes,
19696 which can conflict with char $ac_func (); below.
19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698 <limits.h> exists even on freestanding compilers. */
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19706 #undef $ac_func
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char $ac_func ();
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined __stub_$ac_func || defined __stub___$ac_func
19719 choke me
19720 #endif
19723 main ()
19725 return $ac_func ();
19727 return 0;
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext && {
19748 test "$cross_compiling" = yes ||
19749 $as_test_x conftest$ac_exeext
19750 }; then
19751 eval "$as_ac_var=yes"
19752 else
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 eval "$as_ac_var=no"
19759 rm -rf conftest.dSYM
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761 conftest$ac_exeext conftest.$ac_ext
19763 ac_res=`eval 'as_val=${'$as_ac_var'}
19764 $as_echo "$as_val"'`
19765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19766 $as_echo "$ac_res" >&6; }
19767 as_val=`eval 'as_val=${'$as_ac_var'}
19768 $as_echo "$as_val"'`
19769 if test "x$as_val" = x""yes; then
19770 cat >>confdefs.h <<_ACEOF
19771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19772 _ACEOF
19774 else
19775 pgac_need_repl_snprintf=yes
19777 done
19780 for ac_func in vsnprintf
19782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 $as_echo_n "checking for $ac_func... " >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786 $as_echo_n "(cached) " >&6
19787 else
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19796 #define $ac_func innocuous_$ac_func
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func (); below.
19800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801 <limits.h> exists even on freestanding compilers. */
19803 #ifdef __STDC__
19804 # include <limits.h>
19805 #else
19806 # include <assert.h>
19807 #endif
19809 #undef $ac_func
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char $ac_func ();
19818 /* The GNU C library defines this for functions which it implements
19819 to always fail with ENOSYS. Some functions are actually named
19820 something starting with __ and the normal name is an alias. */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19822 choke me
19823 #endif
19826 main ()
19828 return $ac_func ();
19830 return 0;
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_link") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext && {
19851 test "$cross_compiling" = yes ||
19852 $as_test_x conftest$ac_exeext
19853 }; then
19854 eval "$as_ac_var=yes"
19855 else
19856 $as_echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 ac_res=`eval 'as_val=${'$as_ac_var'}
19867 $as_echo "$as_val"'`
19868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19870 as_val=`eval 'as_val=${'$as_ac_var'}
19871 $as_echo "$as_val"'`
19872 if test "x$as_val" = x""yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 _ACEOF
19877 else
19878 pgac_need_repl_snprintf=yes
19880 done
19885 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19886 # include/c.h will provide declarations. Note this is a separate test
19887 # from whether the functions exist in the C library --- there are
19888 # systems that have the functions but don't bother to declare them :-(
19890 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19891 $as_echo_n "checking whether snprintf is declared... " >&6; }
19892 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19893 $as_echo_n "(cached) " >&6
19894 else
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19903 main ()
19905 #ifndef snprintf
19906 (void) snprintf;
19907 #endif
19910 return 0;
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19918 esac
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_have_decl_snprintf=yes
19932 else
19933 $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_have_decl_snprintf=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19942 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19943 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_DECL_SNPRINTF 1
19947 _ACEOF
19950 else
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_DECL_SNPRINTF 0
19953 _ACEOF
19957 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19958 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19959 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19960 $as_echo_n "(cached) " >&6
19961 else
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19970 main ()
19972 #ifndef vsnprintf
19973 (void) vsnprintf;
19974 #endif
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_compile") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest.$ac_objext; then
19998 ac_cv_have_decl_vsnprintf=yes
19999 else
20000 $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_have_decl_vsnprintf=no
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20009 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20010 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_VSNPRINTF 1
20014 _ACEOF
20017 else
20018 cat >>confdefs.h <<_ACEOF
20019 #define HAVE_DECL_VSNPRINTF 0
20020 _ACEOF
20028 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20029 $as_echo_n "checking for isinf... " >&6; }
20030 if test "${ac_cv_func_isinf+set}" = set; then
20031 $as_echo_n "(cached) " >&6
20032 else
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20040 #include <math.h>
20041 double glob_double;
20044 main ()
20046 return isinf(glob_double) ? 0 : 1;
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059 (eval "$ac_link") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest$ac_exeext && {
20069 test "$cross_compiling" = yes ||
20070 $as_test_x conftest$ac_exeext
20071 }; then
20072 ac_cv_func_isinf=yes
20073 else
20074 $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_func_isinf=no
20080 rm -rf conftest.dSYM
20081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20082 conftest$ac_exeext conftest.$ac_ext
20084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20085 $as_echo "$ac_cv_func_isinf" >&6; }
20087 if test $ac_cv_func_isinf = yes ; then
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_ISINF 1
20091 _ACEOF
20093 else
20094 case " $LIBOBJS " in
20095 *" isinf.$ac_objext "* ) ;;
20096 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20098 esac
20100 # Look for a way to implement a substitute for isinf()
20105 for ac_func in fpclass fp_class fp_class_d class
20107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20109 $as_echo_n "checking for $ac_func... " >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached) " >&6
20112 else
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h. */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20121 #define $ac_func innocuous_$ac_func
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20128 #ifdef __STDC__
20129 # include <limits.h>
20130 #else
20131 # include <assert.h>
20132 #endif
20134 #undef $ac_func
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char $ac_func ();
20143 /* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20147 choke me
20148 #endif
20151 main ()
20153 return $ac_func ();
20155 return 0;
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163 esac
20164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20165 $as_echo "$ac_try_echo") >&5
20166 (eval "$ac_link") 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest$ac_exeext && {
20176 test "$cross_compiling" = yes ||
20177 $as_test_x conftest$ac_exeext
20178 }; then
20179 eval "$as_ac_var=yes"
20180 else
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 eval "$as_ac_var=no"
20187 rm -rf conftest.dSYM
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20191 ac_res=`eval 'as_val=${'$as_ac_var'}
20192 $as_echo "$as_val"'`
20193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20195 as_val=`eval 'as_val=${'$as_ac_var'}
20196 $as_echo "$as_val"'`
20197 if test "x$as_val" = x""yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20200 _ACEOF
20201 break
20203 done
20207 # Some versions of libedit contain strlcpy(); so disregard that library while
20208 # checking for these standard libc functions.
20209 pgac_save_LIBS="$LIBS"
20210 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20226 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20229 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20230 $as_echo_n "checking for $ac_func... " >&6; }
20231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20232 $as_echo_n "(cached) " >&6
20233 else
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20242 #define $ac_func innocuous_$ac_func
20244 /* System header to define __stub macros and hopefully few prototypes,
20245 which can conflict with char $ac_func (); below.
20246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247 <limits.h> exists even on freestanding compilers. */
20249 #ifdef __STDC__
20250 # include <limits.h>
20251 #else
20252 # include <assert.h>
20253 #endif
20255 #undef $ac_func
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char $ac_func ();
20264 /* The GNU C library defines this for functions which it implements
20265 to always fail with ENOSYS. Some functions are actually named
20266 something starting with __ and the normal name is an alias. */
20267 #if defined __stub_$ac_func || defined __stub___$ac_func
20268 choke me
20269 #endif
20272 main ()
20274 return $ac_func ();
20276 return 0;
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287 (eval "$ac_link") 2>conftest.er1
20288 ac_status=$?
20289 grep -v '^ *+' conftest.er1 >conftest.err
20290 rm -f conftest.er1
20291 cat conftest.err >&5
20292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest$ac_exeext && {
20297 test "$cross_compiling" = yes ||
20298 $as_test_x conftest$ac_exeext
20299 }; then
20300 eval "$as_ac_var=yes"
20301 else
20302 $as_echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 eval "$as_ac_var=no"
20308 rm -rf conftest.dSYM
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310 conftest$ac_exeext conftest.$ac_ext
20312 ac_res=`eval 'as_val=${'$as_ac_var'}
20313 $as_echo "$as_val"'`
20314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20315 $as_echo "$ac_res" >&6; }
20316 as_val=`eval 'as_val=${'$as_ac_var'}
20317 $as_echo "$as_val"'`
20318 if test "x$as_val" = x""yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20321 _ACEOF
20323 else
20324 case " $LIBOBJS " in
20325 *" $ac_func.$ac_objext "* ) ;;
20326 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20328 esac
20331 done
20335 case $host_os in
20337 # Windows uses a specialised env handler
20338 mingw*)
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_UNSETENV 1
20342 _ACEOF
20344 ac_cv_func_unsetenv=yes;;
20347 for ac_func in unsetenv
20349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20351 $as_echo_n "checking for $ac_func... " >&6; }
20352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20353 $as_echo_n "(cached) " >&6
20354 else
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h. */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20363 #define $ac_func innocuous_$ac_func
20365 /* System header to define __stub macros and hopefully few prototypes,
20366 which can conflict with char $ac_func (); below.
20367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20368 <limits.h> exists even on freestanding compilers. */
20370 #ifdef __STDC__
20371 # include <limits.h>
20372 #else
20373 # include <assert.h>
20374 #endif
20376 #undef $ac_func
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char $ac_func ();
20385 /* The GNU C library defines this for functions which it implements
20386 to always fail with ENOSYS. Some functions are actually named
20387 something starting with __ and the normal name is an alias. */
20388 #if defined __stub_$ac_func || defined __stub___$ac_func
20389 choke me
20390 #endif
20393 main ()
20395 return $ac_func ();
20397 return 0;
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408 (eval "$ac_link") 2>conftest.er1
20409 ac_status=$?
20410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext && {
20418 test "$cross_compiling" = yes ||
20419 $as_test_x conftest$ac_exeext
20420 }; then
20421 eval "$as_ac_var=yes"
20422 else
20423 $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 eval "$as_ac_var=no"
20429 rm -rf conftest.dSYM
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20433 ac_res=`eval 'as_val=${'$as_ac_var'}
20434 $as_echo "$as_val"'`
20435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20436 $as_echo "$ac_res" >&6; }
20437 as_val=`eval 'as_val=${'$as_ac_var'}
20438 $as_echo "$as_val"'`
20439 if test "x$as_val" = x""yes; then
20440 cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20442 _ACEOF
20444 else
20445 case " $LIBOBJS " in
20446 *" $ac_func.$ac_objext "* ) ;;
20447 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20449 esac
20452 done
20456 esac
20459 LIBS="$pgac_save_LIBS"
20461 # System's version of getaddrinfo(), if any, may be used only if we found
20462 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20463 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20464 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20465 # because we want to use our own getaddrinfo.c on Windows anyway.)
20466 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20468 for ac_func in getaddrinfo
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20472 $as_echo_n "checking for $ac_func... " >&6; }
20473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20474 $as_echo_n "(cached) " >&6
20475 else
20476 cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h. */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20484 #define $ac_func innocuous_$ac_func
20486 /* System header to define __stub macros and hopefully few prototypes,
20487 which can conflict with char $ac_func (); below.
20488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20489 <limits.h> exists even on freestanding compilers. */
20491 #ifdef __STDC__
20492 # include <limits.h>
20493 #else
20494 # include <assert.h>
20495 #endif
20497 #undef $ac_func
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char $ac_func ();
20506 /* The GNU C library defines this for functions which it implements
20507 to always fail with ENOSYS. Some functions are actually named
20508 something starting with __ and the normal name is an alias. */
20509 #if defined __stub_$ac_func || defined __stub___$ac_func
20510 choke me
20511 #endif
20514 main ()
20516 return $ac_func ();
20518 return 0;
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_link") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext && {
20539 test "$cross_compiling" = yes ||
20540 $as_test_x conftest$ac_exeext
20541 }; then
20542 eval "$as_ac_var=yes"
20543 else
20544 $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 eval "$as_ac_var=no"
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20554 ac_res=`eval 'as_val=${'$as_ac_var'}
20555 $as_echo "$as_val"'`
20556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20557 $as_echo "$ac_res" >&6; }
20558 as_val=`eval 'as_val=${'$as_ac_var'}
20559 $as_echo "$as_val"'`
20560 if test "x$as_val" = x""yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563 _ACEOF
20565 else
20566 case " $LIBOBJS " in
20567 *" $ac_func.$ac_objext "* ) ;;
20568 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20570 esac
20573 done
20576 else
20577 case " $LIBOBJS " in
20578 *" getaddrinfo.$ac_objext "* ) ;;
20579 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20581 esac
20585 # Similarly, use system's getopt_long() only if system provides struct option.
20586 if test x"$ac_cv_type_struct_option" = xyes ; then
20588 for ac_func in getopt_long
20590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 $as_echo_n "checking for $ac_func... " >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594 $as_echo_n "(cached) " >&6
20595 else
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h. */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604 #define $ac_func innocuous_$ac_func
20606 /* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20611 #ifdef __STDC__
20612 # include <limits.h>
20613 #else
20614 # include <assert.h>
20615 #endif
20617 #undef $ac_func
20619 /* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 char $ac_func ();
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20630 choke me
20631 #endif
20634 main ()
20636 return $ac_func ();
20638 return 0;
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646 esac
20647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649 (eval "$ac_link") 2>conftest.er1
20650 ac_status=$?
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext && {
20659 test "$cross_compiling" = yes ||
20660 $as_test_x conftest$ac_exeext
20661 }; then
20662 eval "$as_ac_var=yes"
20663 else
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 eval "$as_ac_var=no"
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 ac_res=`eval 'as_val=${'$as_ac_var'}
20675 $as_echo "$as_val"'`
20676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20677 $as_echo "$ac_res" >&6; }
20678 as_val=`eval 'as_val=${'$as_ac_var'}
20679 $as_echo "$as_val"'`
20680 if test "x$as_val" = x""yes; then
20681 cat >>confdefs.h <<_ACEOF
20682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20683 _ACEOF
20685 else
20686 case " $LIBOBJS " in
20687 *" $ac_func.$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20690 esac
20693 done
20696 else
20697 case " $LIBOBJS " in
20698 *" getopt_long.$ac_objext "* ) ;;
20699 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20701 esac
20705 # Solaris' getopt() doesn't do what we want for long options, so always use
20706 # our version on that platform.
20707 if test "$PORTNAME" = "solaris"; then
20708 case " $LIBOBJS " in
20709 *" getopt.$ac_objext "* ) ;;
20710 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20712 esac
20716 # Cygwin's erand48() is broken (always returns zero) in some releases,
20717 # so force use of ours.
20718 if test "$PORTNAME" = "cygwin"; then
20719 case " $LIBOBJS " in
20720 *" erand48.$ac_objext "* ) ;;
20721 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20723 esac
20727 # Win32 support
20728 if test "$PORTNAME" = "win32"; then
20730 for ac_func in gettimeofday
20732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20734 $as_echo_n "checking for $ac_func... " >&6; }
20735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20736 $as_echo_n "(cached) " >&6
20737 else
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20746 #define $ac_func innocuous_$ac_func
20748 /* System header to define __stub macros and hopefully few prototypes,
20749 which can conflict with char $ac_func (); below.
20750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20751 <limits.h> exists even on freestanding compilers. */
20753 #ifdef __STDC__
20754 # include <limits.h>
20755 #else
20756 # include <assert.h>
20757 #endif
20759 #undef $ac_func
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 char $ac_func ();
20768 /* The GNU C library defines this for functions which it implements
20769 to always fail with ENOSYS. Some functions are actually named
20770 something starting with __ and the normal name is an alias. */
20771 #if defined __stub_$ac_func || defined __stub___$ac_func
20772 choke me
20773 #endif
20776 main ()
20778 return $ac_func ();
20780 return 0;
20782 _ACEOF
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788 esac
20789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20790 $as_echo "$ac_try_echo") >&5
20791 (eval "$ac_link") 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext && {
20801 test "$cross_compiling" = yes ||
20802 $as_test_x conftest$ac_exeext
20803 }; then
20804 eval "$as_ac_var=yes"
20805 else
20806 $as_echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 eval "$as_ac_var=no"
20812 rm -rf conftest.dSYM
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814 conftest$ac_exeext conftest.$ac_ext
20816 ac_res=`eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'`
20818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 as_val=`eval 'as_val=${'$as_ac_var'}
20821 $as_echo "$as_val"'`
20822 if test "x$as_val" = x""yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20825 _ACEOF
20827 else
20828 case " $LIBOBJS " in
20829 *" $ac_func.$ac_objext "* ) ;;
20830 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20832 esac
20835 done
20838 case " $LIBOBJS " in
20839 *" kill.$ac_objext "* ) ;;
20840 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20842 esac
20844 case " $LIBOBJS " in
20845 *" open.$ac_objext "* ) ;;
20846 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20848 esac
20850 case " $LIBOBJS " in
20851 *" win32env.$ac_objext "* ) ;;
20852 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20854 esac
20856 case " $LIBOBJS " in
20857 *" win32error.$ac_objext "* ) ;;
20858 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20860 esac
20863 cat >>confdefs.h <<\_ACEOF
20864 #define HAVE_SYMLINK 1
20865 _ACEOF
20869 if test "$with_readline" = yes; then
20870 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20871 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 #include <stdio.h>
20879 #ifdef HAVE_READLINE_READLINE_H
20880 # include <readline/readline.h>
20881 #elif defined(HAVE_READLINE_H)
20882 # include <readline.h>
20883 #endif
20886 main ()
20888 rl_completion_append_character = 'x';
20890 return 0;
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20913 }; then
20914 { $as_echo "$as_me:$LINENO: result: yes" >&5
20915 $as_echo "yes" >&6; }
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20919 _ACEOF
20921 else
20922 $as_echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 { $as_echo "$as_me:$LINENO: result: no" >&5
20926 $as_echo "no" >&6; }
20929 rm -rf conftest.dSYM
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931 conftest$ac_exeext conftest.$ac_ext
20934 for ac_func in rl_completion_matches rl_filename_completion_function
20936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20938 $as_echo_n "checking for $ac_func... " >&6; }
20939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20940 $as_echo_n "(cached) " >&6
20941 else
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20950 #define $ac_func innocuous_$ac_func
20952 /* System header to define __stub macros and hopefully few prototypes,
20953 which can conflict with char $ac_func (); below.
20954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955 <limits.h> exists even on freestanding compilers. */
20957 #ifdef __STDC__
20958 # include <limits.h>
20959 #else
20960 # include <assert.h>
20961 #endif
20963 #undef $ac_func
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20968 #ifdef __cplusplus
20969 extern "C"
20970 #endif
20971 char $ac_func ();
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined __stub_$ac_func || defined __stub___$ac_func
20976 choke me
20977 #endif
20980 main ()
20982 return $ac_func ();
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_link") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext && {
21005 test "$cross_compiling" = yes ||
21006 $as_test_x conftest$ac_exeext
21007 }; then
21008 eval "$as_ac_var=yes"
21009 else
21010 $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 eval "$as_ac_var=no"
21016 rm -rf conftest.dSYM
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018 conftest$ac_exeext conftest.$ac_ext
21020 ac_res=`eval 'as_val=${'$as_ac_var'}
21021 $as_echo "$as_val"'`
21022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21023 $as_echo "$ac_res" >&6; }
21024 as_val=`eval 'as_val=${'$as_ac_var'}
21025 $as_echo "$as_val"'`
21026 if test "x$as_val" = x""yes; then
21027 cat >>confdefs.h <<_ACEOF
21028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21032 done
21036 for ac_func in append_history history_truncate_file
21038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21039 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21040 $as_echo_n "checking for $ac_func... " >&6; }
21041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21042 $as_echo_n "(cached) " >&6
21043 else
21044 cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h. */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21052 #define $ac_func innocuous_$ac_func
21054 /* System header to define __stub macros and hopefully few prototypes,
21055 which can conflict with char $ac_func (); below.
21056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21057 <limits.h> exists even on freestanding compilers. */
21059 #ifdef __STDC__
21060 # include <limits.h>
21061 #else
21062 # include <assert.h>
21063 #endif
21065 #undef $ac_func
21067 /* Override any GCC internal prototype to avoid an error.
21068 Use char because int might match the return type of a GCC
21069 builtin and then its argument prototype would still apply. */
21070 #ifdef __cplusplus
21071 extern "C"
21072 #endif
21073 char $ac_func ();
21074 /* The GNU C library defines this for functions which it implements
21075 to always fail with ENOSYS. Some functions are actually named
21076 something starting with __ and the normal name is an alias. */
21077 #if defined __stub_$ac_func || defined __stub___$ac_func
21078 choke me
21079 #endif
21082 main ()
21084 return $ac_func ();
21086 return 0;
21088 _ACEOF
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21094 esac
21095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21096 $as_echo "$ac_try_echo") >&5
21097 (eval "$ac_link") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest$ac_exeext && {
21107 test "$cross_compiling" = yes ||
21108 $as_test_x conftest$ac_exeext
21109 }; then
21110 eval "$as_ac_var=yes"
21111 else
21112 $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 eval "$as_ac_var=no"
21118 rm -rf conftest.dSYM
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21122 ac_res=`eval 'as_val=${'$as_ac_var'}
21123 $as_echo "$as_val"'`
21124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21125 $as_echo "$ac_res" >&6; }
21126 as_val=`eval 'as_val=${'$as_ac_var'}
21127 $as_echo "$as_val"'`
21128 if test "x$as_val" = x""yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21131 _ACEOF
21134 done
21139 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21140 $as_echo_n "checking for sigsetjmp... " >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h. */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <setjmp.h>
21149 main ()
21151 sigjmp_buf x; sigsetjmp(x, 1);
21153 return 0;
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21161 esac
21162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164 (eval "$ac_link") 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest$ac_exeext && {
21174 test "$cross_compiling" = yes ||
21175 $as_test_x conftest$ac_exeext
21176 }; then
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_SIGSETJMP 1
21180 _ACEOF
21182 { $as_echo "$as_me:$LINENO: result: yes" >&5
21183 $as_echo "yes" >&6; }
21184 else
21185 $as_echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 { $as_echo "$as_me:$LINENO: result: no" >&5
21189 $as_echo "no" >&6; }
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21196 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21197 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21198 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21199 $as_echo_n "(cached) " >&6
21200 else
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h. */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 #include <signal.h>
21208 /* NetBSD declares sys_siglist in unistd.h. */
21209 #ifdef HAVE_UNISTD_H
21210 # include <unistd.h>
21211 #endif
21215 main ()
21217 #ifndef sys_siglist
21218 (void) sys_siglist;
21219 #endif
21222 return 0;
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 ac_cv_have_decl_sys_siglist=yes
21244 else
21245 $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_have_decl_sys_siglist=no
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21255 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define HAVE_DECL_SYS_SIGLIST 1
21259 _ACEOF
21262 else
21263 cat >>confdefs.h <<_ACEOF
21264 #define HAVE_DECL_SYS_SIGLIST 0
21265 _ACEOF
21273 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21274 $as_echo_n "checking for syslog... " >&6; }
21275 if test "${ac_cv_func_syslog+set}" = set; then
21276 $as_echo_n "(cached) " >&6
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21286 #define syslog innocuous_syslog
21288 /* System header to define __stub macros and hopefully few prototypes,
21289 which can conflict with char syslog (); below.
21290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291 <limits.h> exists even on freestanding compilers. */
21293 #ifdef __STDC__
21294 # include <limits.h>
21295 #else
21296 # include <assert.h>
21297 #endif
21299 #undef syslog
21301 /* Override any GCC internal prototype to avoid an error.
21302 Use char because int might match the return type of a GCC
21303 builtin and then its argument prototype would still apply. */
21304 #ifdef __cplusplus
21305 extern "C"
21306 #endif
21307 char syslog ();
21308 /* The GNU C library defines this for functions which it implements
21309 to always fail with ENOSYS. Some functions are actually named
21310 something starting with __ and the normal name is an alias. */
21311 #if defined __stub_syslog || defined __stub___syslog
21312 choke me
21313 #endif
21316 main ()
21318 return syslog ();
21320 return 0;
21322 _ACEOF
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21328 esac
21329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21330 $as_echo "$ac_try_echo") >&5
21331 (eval "$ac_link") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest$ac_exeext && {
21341 test "$cross_compiling" = yes ||
21342 $as_test_x conftest$ac_exeext
21343 }; then
21344 ac_cv_func_syslog=yes
21345 else
21346 $as_echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_cv_func_syslog=no
21352 rm -rf conftest.dSYM
21353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21354 conftest$ac_exeext conftest.$ac_ext
21356 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21357 $as_echo "$ac_cv_func_syslog" >&6; }
21358 if test "x$ac_cv_func_syslog" = x""yes; then
21359 if test "${ac_cv_header_syslog_h+set}" = set; then
21360 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21361 $as_echo_n "checking for syslog.h... " >&6; }
21362 if test "${ac_cv_header_syslog_h+set}" = set; then
21363 $as_echo_n "(cached) " >&6
21365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21366 $as_echo "$ac_cv_header_syslog_h" >&6; }
21367 else
21368 # Is the header compilable?
21369 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21370 $as_echo_n "checking syslog.h usability... " >&6; }
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 $ac_includes_default
21378 #include <syslog.h>
21379 _ACEOF
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21385 esac
21386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21387 $as_echo "$ac_try_echo") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 ac_header_compiler=yes
21399 else
21400 $as_echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 ac_header_compiler=no
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21408 $as_echo "$ac_header_compiler" >&6; }
21410 # Is the header present?
21411 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21412 $as_echo_n "checking syslog.h presence... " >&6; }
21413 cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h. */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 #include <syslog.h>
21420 _ACEOF
21421 if { (ac_try="$ac_cpp conftest.$ac_ext"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21427 $as_echo "$ac_try_echo") >&5
21428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } >/dev/null && {
21435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 }; then
21438 ac_header_preproc=yes
21439 else
21440 $as_echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_header_preproc=no
21446 rm -f conftest.err conftest.$ac_ext
21447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21448 $as_echo "$ac_header_preproc" >&6; }
21450 # So? What about this header?
21451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21452 yes:no: )
21453 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21454 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21455 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21456 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21457 ac_header_preproc=yes
21459 no:yes:* )
21460 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21461 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21462 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21463 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21464 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21465 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21466 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21467 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21468 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21469 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21470 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21471 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21472 ( cat <<\_ASBOX
21473 ## ---------------------------------------- ##
21474 ## Report this to pgsql-bugs@postgresql.org ##
21475 ## ---------------------------------------- ##
21476 _ASBOX
21477 ) | sed "s/^/$as_me: WARNING: /" >&2
21479 esac
21480 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21481 $as_echo_n "checking for syslog.h... " >&6; }
21482 if test "${ac_cv_header_syslog_h+set}" = set; then
21483 $as_echo_n "(cached) " >&6
21484 else
21485 ac_cv_header_syslog_h=$ac_header_preproc
21487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21488 $as_echo "$ac_cv_header_syslog_h" >&6; }
21491 if test "x$ac_cv_header_syslog_h" = x""yes; then
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_SYSLOG 1
21495 _ACEOF
21503 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21504 $as_echo_n "checking for opterr... " >&6; }
21505 if test "${pgac_cv_var_int_opterr+set}" = set; then
21506 $as_echo_n "(cached) " >&6
21507 else
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 #include <unistd.h>
21516 main ()
21518 extern int opterr; opterr = 1;
21520 return 0;
21522 _ACEOF
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531 (eval "$ac_link") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest$ac_exeext && {
21541 test "$cross_compiling" = yes ||
21542 $as_test_x conftest$ac_exeext
21543 }; then
21544 pgac_cv_var_int_opterr=yes
21545 else
21546 $as_echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 pgac_cv_var_int_opterr=no
21552 rm -rf conftest.dSYM
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554 conftest$ac_exeext conftest.$ac_ext
21556 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21557 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21558 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_INT_OPTERR 1
21562 _ACEOF
21566 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21567 $as_echo_n "checking for optreset... " >&6; }
21568 if test "${pgac_cv_var_int_optreset+set}" = set; then
21569 $as_echo_n "(cached) " >&6
21570 else
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <unistd.h>
21579 main ()
21581 extern int optreset; optreset = 1;
21583 return 0;
21585 _ACEOF
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21593 $as_echo "$ac_try_echo") >&5
21594 (eval "$ac_link") 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest$ac_exeext && {
21604 test "$cross_compiling" = yes ||
21605 $as_test_x conftest$ac_exeext
21606 }; then
21607 pgac_cv_var_int_optreset=yes
21608 else
21609 $as_echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 pgac_cv_var_int_optreset=no
21615 rm -rf conftest.dSYM
21616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21617 conftest$ac_exeext conftest.$ac_ext
21619 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21620 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21621 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21623 cat >>confdefs.h <<\_ACEOF
21624 #define HAVE_INT_OPTRESET 1
21625 _ACEOF
21631 for ac_func in strtoll strtoq
21633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21635 $as_echo_n "checking for $ac_func... " >&6; }
21636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21637 $as_echo_n "(cached) " >&6
21638 else
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21647 #define $ac_func innocuous_$ac_func
21649 /* System header to define __stub macros and hopefully few prototypes,
21650 which can conflict with char $ac_func (); below.
21651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21652 <limits.h> exists even on freestanding compilers. */
21654 #ifdef __STDC__
21655 # include <limits.h>
21656 #else
21657 # include <assert.h>
21658 #endif
21660 #undef $ac_func
21662 /* Override any GCC internal prototype to avoid an error.
21663 Use char because int might match the return type of a GCC
21664 builtin and then its argument prototype would still apply. */
21665 #ifdef __cplusplus
21666 extern "C"
21667 #endif
21668 char $ac_func ();
21669 /* The GNU C library defines this for functions which it implements
21670 to always fail with ENOSYS. Some functions are actually named
21671 something starting with __ and the normal name is an alias. */
21672 #if defined __stub_$ac_func || defined __stub___$ac_func
21673 choke me
21674 #endif
21677 main ()
21679 return $ac_func ();
21681 return 0;
21683 _ACEOF
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (ac_try="$ac_link"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689 esac
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692 (eval "$ac_link") 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest$ac_exeext && {
21702 test "$cross_compiling" = yes ||
21703 $as_test_x conftest$ac_exeext
21704 }; then
21705 eval "$as_ac_var=yes"
21706 else
21707 $as_echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 eval "$as_ac_var=no"
21713 rm -rf conftest.dSYM
21714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21715 conftest$ac_exeext conftest.$ac_ext
21717 ac_res=`eval 'as_val=${'$as_ac_var'}
21718 $as_echo "$as_val"'`
21719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21720 $as_echo "$ac_res" >&6; }
21721 as_val=`eval 'as_val=${'$as_ac_var'}
21722 $as_echo "$as_val"'`
21723 if test "x$as_val" = x""yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21726 _ACEOF
21727 break
21729 done
21733 for ac_func in strtoull strtouq
21735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21737 $as_echo_n "checking for $ac_func... " >&6; }
21738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21739 $as_echo_n "(cached) " >&6
21740 else
21741 cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h. */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21749 #define $ac_func innocuous_$ac_func
21751 /* System header to define __stub macros and hopefully few prototypes,
21752 which can conflict with char $ac_func (); below.
21753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21754 <limits.h> exists even on freestanding compilers. */
21756 #ifdef __STDC__
21757 # include <limits.h>
21758 #else
21759 # include <assert.h>
21760 #endif
21762 #undef $ac_func
21764 /* Override any GCC internal prototype to avoid an error.
21765 Use char because int might match the return type of a GCC
21766 builtin and then its argument prototype would still apply. */
21767 #ifdef __cplusplus
21768 extern "C"
21769 #endif
21770 char $ac_func ();
21771 /* The GNU C library defines this for functions which it implements
21772 to always fail with ENOSYS. Some functions are actually named
21773 something starting with __ and the normal name is an alias. */
21774 #if defined __stub_$ac_func || defined __stub___$ac_func
21775 choke me
21776 #endif
21779 main ()
21781 return $ac_func ();
21783 return 0;
21785 _ACEOF
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (ac_try="$ac_link"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794 (eval "$ac_link") 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest$ac_exeext && {
21804 test "$cross_compiling" = yes ||
21805 $as_test_x conftest$ac_exeext
21806 }; then
21807 eval "$as_ac_var=yes"
21808 else
21809 $as_echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 eval "$as_ac_var=no"
21815 rm -rf conftest.dSYM
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817 conftest$ac_exeext conftest.$ac_ext
21819 ac_res=`eval 'as_val=${'$as_ac_var'}
21820 $as_echo "$as_val"'`
21821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21822 $as_echo "$ac_res" >&6; }
21823 as_val=`eval 'as_val=${'$as_ac_var'}
21824 $as_echo "$as_val"'`
21825 if test "x$as_val" = x""yes; then
21826 cat >>confdefs.h <<_ACEOF
21827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21828 _ACEOF
21829 break
21831 done
21834 # Check for one of atexit() or on_exit()
21836 for ac_func in atexit
21838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21840 $as_echo_n "checking for $ac_func... " >&6; }
21841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21842 $as_echo_n "(cached) " >&6
21843 else
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h. */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21852 #define $ac_func innocuous_$ac_func
21854 /* System header to define __stub macros and hopefully few prototypes,
21855 which can conflict with char $ac_func (); below.
21856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21857 <limits.h> exists even on freestanding compilers. */
21859 #ifdef __STDC__
21860 # include <limits.h>
21861 #else
21862 # include <assert.h>
21863 #endif
21865 #undef $ac_func
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char $ac_func ();
21874 /* The GNU C library defines this for functions which it implements
21875 to always fail with ENOSYS. Some functions are actually named
21876 something starting with __ and the normal name is an alias. */
21877 #if defined __stub_$ac_func || defined __stub___$ac_func
21878 choke me
21879 #endif
21882 main ()
21884 return $ac_func ();
21886 return 0;
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21894 esac
21895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897 (eval "$ac_link") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext && {
21907 test "$cross_compiling" = yes ||
21908 $as_test_x conftest$ac_exeext
21909 }; then
21910 eval "$as_ac_var=yes"
21911 else
21912 $as_echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 eval "$as_ac_var=no"
21918 rm -rf conftest.dSYM
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920 conftest$ac_exeext conftest.$ac_ext
21922 ac_res=`eval 'as_val=${'$as_ac_var'}
21923 $as_echo "$as_val"'`
21924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21925 $as_echo "$ac_res" >&6; }
21926 as_val=`eval 'as_val=${'$as_ac_var'}
21927 $as_echo "$as_val"'`
21928 if test "x$as_val" = x""yes; then
21929 cat >>confdefs.h <<_ACEOF
21930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21931 _ACEOF
21933 else
21935 for ac_func in on_exit
21937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21939 $as_echo_n "checking for $ac_func... " >&6; }
21940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21941 $as_echo_n "(cached) " >&6
21942 else
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21951 #define $ac_func innocuous_$ac_func
21953 /* System header to define __stub macros and hopefully few prototypes,
21954 which can conflict with char $ac_func (); below.
21955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21956 <limits.h> exists even on freestanding compilers. */
21958 #ifdef __STDC__
21959 # include <limits.h>
21960 #else
21961 # include <assert.h>
21962 #endif
21964 #undef $ac_func
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21969 #ifdef __cplusplus
21970 extern "C"
21971 #endif
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976 #if defined __stub_$ac_func || defined __stub___$ac_func
21977 choke me
21978 #endif
21981 main ()
21983 return $ac_func ();
21985 return 0;
21987 _ACEOF
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21993 esac
21994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21995 $as_echo "$ac_try_echo") >&5
21996 (eval "$ac_link") 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest$ac_exeext && {
22006 test "$cross_compiling" = yes ||
22007 $as_test_x conftest$ac_exeext
22008 }; then
22009 eval "$as_ac_var=yes"
22010 else
22011 $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 eval "$as_ac_var=no"
22017 rm -rf conftest.dSYM
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22021 ac_res=`eval 'as_val=${'$as_ac_var'}
22022 $as_echo "$as_val"'`
22023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22024 $as_echo "$ac_res" >&6; }
22025 as_val=`eval 'as_val=${'$as_ac_var'}
22026 $as_echo "$as_val"'`
22027 if test "x$as_val" = x""yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 _ACEOF
22032 else
22033 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22034 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22035 { (exit 1); exit 1; }; }
22037 done
22040 done
22045 # Pthreads
22047 # For each platform, we need to know about any special compile and link
22048 # libraries, and whether the normal C function names are thread-safe.
22049 # See the comment at the top of src/port/thread.c for more information.
22050 # WIN32 doesn't need the pthread tests; it always uses threads
22051 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22055 ac_ext=c
22056 ac_cpp='$CPP $CPPFLAGS'
22057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22061 acx_pthread_ok=no
22063 # We used to check for pthread.h first, but this fails if pthread.h
22064 # requires special compiler flags (e.g. on True64 or Sequent).
22065 # It gets checked for in the link test anyway.
22067 # First of all, check if the user has set any of the PTHREAD_LIBS,
22068 # etcetera environment variables, and if threads linking works using
22069 # them:
22070 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22071 save_CFLAGS="$CFLAGS"
22072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22073 save_LIBS="$LIBS"
22074 LIBS="$PTHREAD_LIBS $LIBS"
22075 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22076 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22077 cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h. */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22084 /* Override any GCC internal prototype to avoid an error.
22085 Use char because int might match the return type of a GCC
22086 builtin and then its argument prototype would still apply. */
22087 #ifdef __cplusplus
22088 extern "C"
22089 #endif
22090 char pthread_join ();
22092 main ()
22094 return pthread_join ();
22096 return 0;
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107 (eval "$ac_link") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest$ac_exeext && {
22117 test "$cross_compiling" = yes ||
22118 $as_test_x conftest$ac_exeext
22119 }; then
22120 acx_pthread_ok=yes
22121 else
22122 $as_echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22128 rm -rf conftest.dSYM
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130 conftest$ac_exeext conftest.$ac_ext
22131 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22132 $as_echo "$acx_pthread_ok" >&6; }
22133 if test x"$acx_pthread_ok" = xno; then
22134 PTHREAD_LIBS=""
22135 PTHREAD_CFLAGS=""
22137 LIBS="$save_LIBS"
22138 CFLAGS="$save_CFLAGS"
22141 # We must check for the threads library under a number of different
22142 # names; the ordering is very important because some systems
22143 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22144 # libraries is broken (non-POSIX).
22146 # Create a list of thread flags to try. Items starting with a "-" are
22147 # C compiler flags, and other items are library names, except for "none"
22148 # which indicates that we try without any flags at all, and "pthread-config"
22149 # which is a program returning the flags for the Pth emulation library.
22151 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22153 # The ordering *is* (sometimes) important. Some notes on the
22154 # individual items follow:
22156 # pthreads: AIX (must check this before -lpthread)
22157 # none: in case threads are in libc; should be tried before -Kthread and
22158 # other compiler flags to prevent continual compiler warnings
22159 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22160 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22161 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22162 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22163 # -pthreads: Solaris/gcc
22164 # -mthreads: Mingw32/gcc, Lynx/gcc
22165 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22166 # doesn't hurt to check since this sometimes defines pthreads too;
22167 # also defines -D_REENTRANT)
22168 # pthread: Linux, etcetera
22169 # --thread-safe: KAI C++
22170 # pthread-config: use pthread-config program (for GNU Pth library)
22172 case "${host_cpu}-${host_os}" in
22173 *solaris*)
22175 # On Solaris (at least, for some versions), libc contains stubbed
22176 # (non-functional) versions of the pthreads routines, so link-based
22177 # tests will erroneously succeed. (We need to link with -pthread or
22178 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22179 # a function called by this macro, so we could check for that, but
22180 # who knows whether they'll stub that too in a future libc.) So,
22181 # we'll just look for -pthreads and -lpthread first:
22183 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22185 esac
22187 if test x"$acx_pthread_ok" = xno; then
22188 for flag in $acx_pthread_flags; do
22190 tryPTHREAD_CFLAGS=""
22191 tryPTHREAD_LIBS=""
22192 case $flag in
22193 none)
22194 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22195 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22199 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22200 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22201 tryPTHREAD_CFLAGS="$flag"
22204 pthread-config)
22205 # skip this if we already have flags defined, for PostgreSQL
22206 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22207 # Extract the first word of "pthread-config", so it can be a program name with args.
22208 set dummy pthread-config; ac_word=$2
22209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22210 $as_echo_n "checking for $ac_word... " >&6; }
22211 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22212 $as_echo_n "(cached) " >&6
22213 else
22214 if test -n "$acx_pthread_config"; then
22215 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22216 else
22217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22220 IFS=$as_save_IFS
22221 test -z "$as_dir" && as_dir=.
22222 for ac_exec_ext in '' $ac_executable_extensions; do
22223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22224 ac_cv_prog_acx_pthread_config="yes"
22225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22226 break 2
22228 done
22229 done
22230 IFS=$as_save_IFS
22232 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22235 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22236 if test -n "$acx_pthread_config"; then
22237 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22238 $as_echo "$acx_pthread_config" >&6; }
22239 else
22240 { $as_echo "$as_me:$LINENO: result: no" >&5
22241 $as_echo "no" >&6; }
22245 if test x"$acx_pthread_config" = xno; then continue; fi
22246 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22247 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22251 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22252 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22253 tryPTHREAD_LIBS="-l$flag"
22255 esac
22257 save_LIBS="$LIBS"
22258 save_CFLAGS="$CFLAGS"
22259 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22260 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22262 # Check for various functions. We must include pthread.h,
22263 # since some functions may be macros. (On the Sequent, we
22264 # need a special flag -Kthread to make this header compile.)
22265 # We check for pthread_join because it is in -lpthread on IRIX
22266 # while pthread_create is in libc. We check for pthread_attr_init
22267 # due to DEC craziness with -lpthreads. We check for
22268 # pthread_cleanup_push because it is one of the few pthread
22269 # functions on Solaris that doesn't have a non-functional libc stub.
22270 # We try pthread_create on general principles.
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #include <pthread.h>
22279 main ()
22281 pthread_t th; pthread_join(th, 0);
22282 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22283 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22285 return 0;
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296 (eval "$ac_link") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest$ac_exeext && {
22306 test "$cross_compiling" = yes ||
22307 $as_test_x conftest$ac_exeext
22308 }; then
22309 acx_pthread_ok=yes
22310 else
22311 $as_echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 acx_pthread_ok=no
22317 rm -rf conftest.dSYM
22318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22319 conftest$ac_exeext conftest.$ac_ext
22321 if test "x$acx_pthread_ok" = xyes; then
22322 # Don't use options that are ignored by the compiler.
22323 # We find them by checking stderror.
22324 cat >conftest.$ac_ext <<_ACEOF
22326 main (int argc, char **argv)
22328 (void) argc;
22329 (void) argv;
22330 return 0;
22332 _ACEOF
22333 rm -f conftest.$ac_objext conftest$ac_exeext
22334 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22335 # we continue with more flags because Linux needs -lpthread
22336 # for libpq builds on PostgreSQL. The test above only
22337 # tests for building binaries, not shared libraries.
22338 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22339 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22340 else acx_pthread_ok=no
22344 LIBS="$save_LIBS"
22345 CFLAGS="$save_CFLAGS"
22347 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22348 $as_echo "$acx_pthread_ok" >&6; }
22349 done
22352 # Various other checks:
22353 if test "x$acx_pthread_ok" = xyes; then
22354 save_LIBS="$LIBS"
22355 LIBS="$PTHREAD_LIBS $LIBS"
22356 save_CFLAGS="$CFLAGS"
22357 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22359 # Detect AIX lossage: threads are created detached by default
22360 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22361 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22362 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22363 cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 #include <pthread.h>
22371 main ()
22373 int attr=PTHREAD_CREATE_JOINABLE;
22375 return 0;
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_link") 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext && {
22396 test "$cross_compiling" = yes ||
22397 $as_test_x conftest$ac_exeext
22398 }; then
22399 ok=PTHREAD_CREATE_JOINABLE
22400 else
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ok=unknown
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22410 if test x"$ok" = xunknown; then
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <pthread.h>
22419 main ()
22421 int attr=PTHREAD_CREATE_UNDETACHED;
22423 return 0;
22425 _ACEOF
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (ac_try="$ac_link"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431 esac
22432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22433 $as_echo "$ac_try_echo") >&5
22434 (eval "$ac_link") 2>conftest.er1
22435 ac_status=$?
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
22439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest$ac_exeext && {
22444 test "$cross_compiling" = yes ||
22445 $as_test_x conftest$ac_exeext
22446 }; then
22447 ok=PTHREAD_CREATE_UNDETACHED
22448 else
22449 $as_echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ok=unknown
22455 rm -rf conftest.dSYM
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457 conftest$ac_exeext conftest.$ac_ext
22459 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22461 cat >>confdefs.h <<\_ACEOF
22462 #define PTHREAD_CREATE_JOINABLE $ok
22463 _ACEOF
22466 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22467 $as_echo "${ok}" >&6; }
22468 if test x"$ok" = xunknown; then
22469 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22470 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22473 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22474 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22475 flag=no
22476 # We always add these in PostgreSQL
22477 # case "${host_cpu}-${host_os}" in
22478 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22479 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22480 # esac
22481 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22482 $as_echo "${flag}" >&6; }
22483 if test "x$flag" != xno; then
22484 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22487 LIBS="$save_LIBS"
22488 CFLAGS="$save_CFLAGS"
22490 # Supporting cc_r would require a special CC in all places that
22491 # use libpq, and that is ugly, so we don't do it. Users can still
22492 # define their compiler as cc_r to do thread builds of everything.
22493 # More AIX lossage: must compile with cc_r
22494 # Extract the first word of "cc_r", so it can be a program name with args.
22495 set dummy cc_r; ac_word=$2
22496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22497 $as_echo_n "checking for $ac_word... " >&6; }
22498 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22499 $as_echo_n "(cached) " >&6
22500 else
22501 if test -n "$PTHREAD_CC"; then
22502 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22503 else
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22507 IFS=$as_save_IFS
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511 ac_cv_prog_PTHREAD_CC="cc_r"
22512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22513 break 2
22515 done
22516 done
22517 IFS=$as_save_IFS
22519 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22522 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22523 if test -n "$PTHREAD_CC"; then
22524 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22525 $as_echo "$PTHREAD_CC" >&6; }
22526 else
22527 { $as_echo "$as_me:$LINENO: result: no" >&5
22528 $as_echo "no" >&6; }
22532 else
22533 PTHREAD_CC="$CC"
22540 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22541 if test x"$acx_pthread_ok" = xyes; then
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_PTHREAD 1
22545 _ACEOF
22548 else
22549 acx_pthread_ok=no
22552 ac_ext=c
22553 ac_cpp='$CPP $CPPFLAGS'
22554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558 # set thread flags
22560 # Some platforms use these, so just define them. They can't hurt if they
22561 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22562 # enables 5-arg getpwuid_r, among other things.
22563 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22566 # At this point, we don't want to muck with the compiler name for threading.
22567 # Let's see who fails, perhaps AIX. 2004-04-23
22568 if test "$PTHREAD_CC" != "$CC"; then
22569 { { $as_echo "$as_me:$LINENO: error:
22570 PostgreSQL does not support platforms that require a special compiler
22571 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22572 $as_echo "$as_me: error:
22573 PostgreSQL does not support platforms that require a special compiler
22574 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22575 { (exit 1); exit 1; }; }
22578 # Check for *_r functions
22579 _CFLAGS="$CFLAGS"
22580 _LIBS="$LIBS"
22581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22582 LIBS="$LIBS $PTHREAD_LIBS"
22584 if test "$PORTNAME" != "win32"; then
22585 if test "${ac_cv_header_pthread_h+set}" = set; then
22586 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22587 $as_echo_n "checking for pthread.h... " >&6; }
22588 if test "${ac_cv_header_pthread_h+set}" = set; then
22589 $as_echo_n "(cached) " >&6
22591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22592 $as_echo "$ac_cv_header_pthread_h" >&6; }
22593 else
22594 # Is the header compilable?
22595 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22596 $as_echo_n "checking pthread.h usability... " >&6; }
22597 cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h. */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 $ac_includes_default
22604 #include <pthread.h>
22605 _ACEOF
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22611 esac
22612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22613 $as_echo "$ac_try_echo") >&5
22614 (eval "$ac_compile") 2>conftest.er1
22615 ac_status=$?
22616 grep -v '^ *+' conftest.er1 >conftest.err
22617 rm -f conftest.er1
22618 cat conftest.err >&5
22619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } && {
22621 test -z "$ac_c_werror_flag" ||
22622 test ! -s conftest.err
22623 } && test -s conftest.$ac_objext; then
22624 ac_header_compiler=yes
22625 else
22626 $as_echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ac_header_compiler=no
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22634 $as_echo "$ac_header_compiler" >&6; }
22636 # Is the header present?
22637 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22638 $as_echo_n "checking pthread.h presence... " >&6; }
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h. */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 #include <pthread.h>
22646 _ACEOF
22647 if { (ac_try="$ac_cpp conftest.$ac_ext"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22651 esac
22652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } >/dev/null && {
22661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 }; then
22664 ac_header_preproc=yes
22665 else
22666 $as_echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 ac_header_preproc=no
22672 rm -f conftest.err conftest.$ac_ext
22673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22674 $as_echo "$ac_header_preproc" >&6; }
22676 # So? What about this header?
22677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22678 yes:no: )
22679 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22680 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22681 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22682 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22683 ac_header_preproc=yes
22685 no:yes:* )
22686 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22687 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22688 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22689 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22690 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22691 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22692 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22693 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22695 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22696 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22697 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22698 ( cat <<\_ASBOX
22699 ## ---------------------------------------- ##
22700 ## Report this to pgsql-bugs@postgresql.org ##
22701 ## ---------------------------------------- ##
22702 _ASBOX
22703 ) | sed "s/^/$as_me: WARNING: /" >&2
22705 esac
22706 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22707 $as_echo_n "checking for pthread.h... " >&6; }
22708 if test "${ac_cv_header_pthread_h+set}" = set; then
22709 $as_echo_n "(cached) " >&6
22710 else
22711 ac_cv_header_pthread_h=$ac_header_preproc
22713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22714 $as_echo "$ac_cv_header_pthread_h" >&6; }
22717 if test "x$ac_cv_header_pthread_h" = x""yes; then
22719 else
22720 { { $as_echo "$as_me:$LINENO: error:
22721 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22722 $as_echo "$as_me: error:
22723 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22724 { (exit 1); exit 1; }; }
22733 for ac_func in strerror_r getpwuid_r gethostbyname_r
22735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22737 $as_echo_n "checking for $ac_func... " >&6; }
22738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22739 $as_echo_n "(cached) " >&6
22740 else
22741 cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h. */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22749 #define $ac_func innocuous_$ac_func
22751 /* System header to define __stub macros and hopefully few prototypes,
22752 which can conflict with char $ac_func (); below.
22753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22754 <limits.h> exists even on freestanding compilers. */
22756 #ifdef __STDC__
22757 # include <limits.h>
22758 #else
22759 # include <assert.h>
22760 #endif
22762 #undef $ac_func
22764 /* Override any GCC internal prototype to avoid an error.
22765 Use char because int might match the return type of a GCC
22766 builtin and then its argument prototype would still apply. */
22767 #ifdef __cplusplus
22768 extern "C"
22769 #endif
22770 char $ac_func ();
22771 /* The GNU C library defines this for functions which it implements
22772 to always fail with ENOSYS. Some functions are actually named
22773 something starting with __ and the normal name is an alias. */
22774 #if defined __stub_$ac_func || defined __stub___$ac_func
22775 choke me
22776 #endif
22779 main ()
22781 return $ac_func ();
22783 return 0;
22785 _ACEOF
22786 rm -f conftest.$ac_objext conftest$ac_exeext
22787 if { (ac_try="$ac_link"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22791 esac
22792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22793 $as_echo "$ac_try_echo") >&5
22794 (eval "$ac_link") 2>conftest.er1
22795 ac_status=$?
22796 grep -v '^ *+' conftest.er1 >conftest.err
22797 rm -f conftest.er1
22798 cat conftest.err >&5
22799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest$ac_exeext && {
22804 test "$cross_compiling" = yes ||
22805 $as_test_x conftest$ac_exeext
22806 }; then
22807 eval "$as_ac_var=yes"
22808 else
22809 $as_echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 eval "$as_ac_var=no"
22815 rm -rf conftest.dSYM
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22819 ac_res=`eval 'as_val=${'$as_ac_var'}
22820 $as_echo "$as_val"'`
22821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22822 $as_echo "$ac_res" >&6; }
22823 as_val=`eval 'as_val=${'$as_ac_var'}
22824 $as_echo "$as_val"'`
22825 if test "x$as_val" = x""yes; then
22826 cat >>confdefs.h <<_ACEOF
22827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22828 _ACEOF
22831 done
22834 # Do test here with the proper thread flags
22835 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22836 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22837 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22838 $as_echo_n "(cached) " >&6
22839 else
22840 cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h. */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <sys/types.h>
22847 #include <pwd.h>
22849 main ()
22851 uid_t uid;
22852 struct passwd *space;
22853 char *buf;
22854 size_t bufsize;
22855 struct passwd **result;
22856 getpwuid_r(uid, space, buf, bufsize, result);
22858 return 0;
22860 _ACEOF
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22868 $as_echo "$ac_try_echo") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22870 ac_status=$?
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
22874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22879 pgac_cv_func_getpwuid_r_5arg=yes
22880 else
22881 $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 pgac_cv_func_getpwuid_r_5arg=no
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22890 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22891 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define GETPWUID_R_5ARG /**/
22895 _ACEOF
22899 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22900 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22901 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22902 $as_echo_n "(cached) " >&6
22903 else
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h. */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #include <string.h>
22912 main ()
22914 #ifndef _AIX
22915 int strerror_r(int, char *, size_t);
22916 #else
22917 /* Older AIX has 'int' for the third argument so we don't test the args. */
22918 int strerror_r();
22919 #endif
22921 return 0;
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22933 ac_status=$?
22934 grep -v '^ *+' conftest.er1 >conftest.err
22935 rm -f conftest.er1
22936 cat conftest.err >&5
22937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22942 pgac_cv_func_strerror_r_int=yes
22943 else
22944 $as_echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 pgac_cv_func_strerror_r_int=no
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22953 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22954 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22956 cat >>confdefs.h <<\_ACEOF
22957 #define STRERROR_R_INT /**/
22958 _ACEOF
22963 CFLAGS="$_CFLAGS"
22964 LIBS="$_LIBS"
22966 else
22967 # do not use values from template file
22968 PTHREAD_CFLAGS=
22969 PTHREAD_LIBS=
22976 # We can test for libldap_r only after we know PTHREAD_LIBS
22977 if test "$with_ldap" = yes ; then
22978 _LIBS="$LIBS"
22979 if test "$PORTNAME" != "win32"; then
22981 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22982 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
22983 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22984 $as_echo_n "(cached) " >&6
22985 else
22986 ac_check_lib_save_LIBS=$LIBS
22987 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22988 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h. */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22995 /* Override any GCC internal prototype to avoid an error.
22996 Use char because int might match the return type of a GCC
22997 builtin and then its argument prototype would still apply. */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 char ldap_bind ();
23003 main ()
23005 return ldap_bind ();
23007 return 0;
23009 _ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015 esac
23016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23017 $as_echo "$ac_try_echo") >&5
23018 (eval "$ac_link") 2>conftest.er1
23019 ac_status=$?
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
23023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest$ac_exeext && {
23028 test "$cross_compiling" = yes ||
23029 $as_test_x conftest$ac_exeext
23030 }; then
23031 ac_cv_lib_ldap_ldap_bind=yes
23032 else
23033 $as_echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_cv_lib_ldap_ldap_bind=no
23039 rm -rf conftest.dSYM
23040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23041 conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23045 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23046 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23047 cat >>confdefs.h <<_ACEOF
23048 #define HAVE_LIBLDAP 1
23049 _ACEOF
23051 LIBS="-lldap $LIBS"
23053 else
23054 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23055 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23056 { (exit 1); exit 1; }; }
23059 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23060 if test "$enable_thread_safety" = yes; then
23061 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23063 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23064 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23065 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23066 $as_echo_n "(cached) " >&6
23067 else
23068 ac_check_lib_save_LIBS=$LIBS
23069 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23070 cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h. */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23077 /* Override any GCC internal prototype to avoid an error.
23078 Use char because int might match the return type of a GCC
23079 builtin and then its argument prototype would still apply. */
23080 #ifdef __cplusplus
23081 extern "C"
23082 #endif
23083 char ldap_simple_bind ();
23085 main ()
23087 return ldap_simple_bind ();
23089 return 0;
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_link") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest$ac_exeext && {
23110 test "$cross_compiling" = yes ||
23111 $as_test_x conftest$ac_exeext
23112 }; then
23113 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23114 else
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_lib_ldap_r_ldap_simple_bind=no
23121 rm -rf conftest.dSYM
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123 conftest$ac_exeext conftest.$ac_ext
23124 LIBS=$ac_check_lib_save_LIBS
23126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23127 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23128 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_LIBLDAP_R 1
23131 _ACEOF
23133 LIBS="-lldap_r $LIBS"
23135 else
23136 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23137 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23138 { (exit 1); exit 1; }; }
23141 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23142 else
23143 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23145 else
23147 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23148 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23149 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23150 $as_echo_n "(cached) " >&6
23151 else
23152 ac_check_lib_save_LIBS=$LIBS
23153 LIBS="-lwldap32 $LIBS"
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h. */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 /* Override any GCC internal prototype to avoid an error.
23162 Use char because int might match the return type of a GCC
23163 builtin and then its argument prototype would still apply. */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 char ldap_bind ();
23169 main ()
23171 return ldap_bind ();
23173 return 0;
23175 _ACEOF
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (ac_try="$ac_link"
23178 case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23181 esac
23182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23183 $as_echo "$ac_try_echo") >&5
23184 (eval "$ac_link") 2>conftest.er1
23185 ac_status=$?
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
23189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest$ac_exeext && {
23194 test "$cross_compiling" = yes ||
23195 $as_test_x conftest$ac_exeext
23196 }; then
23197 ac_cv_lib_wldap32_ldap_bind=yes
23198 else
23199 $as_echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 ac_cv_lib_wldap32_ldap_bind=no
23205 rm -rf conftest.dSYM
23206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23207 conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23211 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23212 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_LIBWLDAP32 1
23215 _ACEOF
23217 LIBS="-lwldap32 $LIBS"
23219 else
23220 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23221 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23222 { (exit 1); exit 1; }; }
23225 LDAP_LIBS_FE="-lwldap32"
23226 LDAP_LIBS_BE="-lwldap32"
23228 LIBS="$_LIBS"
23234 # This test makes sure that run tests work at all. Sometimes a shared
23235 # library is found by the linker, but the runtime linker can't find it.
23236 # This check should come after all modifications of compiler or linker
23237 # variables, and before any other run tests.
23238 { $as_echo "$as_me:$LINENO: checking test program" >&5
23239 $as_echo_n "checking test program... " >&6; }
23240 if test "$cross_compiling" = yes; then
23241 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23242 $as_echo "cross-compiling" >&6; }
23243 else
23244 cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h. */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 int main() { return 0; }
23251 _ACEOF
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257 esac
23258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267 esac
23268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23269 $as_echo "$ac_try_echo") >&5
23270 (eval "$ac_try") 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 { $as_echo "$as_me:$LINENO: result: ok" >&5
23275 $as_echo "ok" >&6; }
23276 else
23277 $as_echo "$as_me: program exited with status $ac_status" >&5
23278 $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ( exit $ac_status )
23282 { $as_echo "$as_me:$LINENO: result: failed" >&5
23283 $as_echo "failed" >&6; }
23284 { { $as_echo "$as_me:$LINENO: error:
23285 Could not execute a simple test program. This may be a problem
23286 related to locating shared libraries. Check the file 'config.log'
23287 for the exact reason." >&5
23288 $as_echo "$as_me: error:
23289 Could not execute a simple test program. This may be a problem
23290 related to locating shared libraries. Check the file 'config.log'
23291 for the exact reason." >&2;}
23292 { (exit 1); exit 1; }; }
23294 rm -rf conftest.dSYM
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23300 # --------------------
23301 # Run tests below here
23302 # --------------------
23304 # Force use of our snprintf if system's doesn't do arg control
23305 # See comment above at snprintf test for details.
23306 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23307 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23308 $as_echo_n "checking whether printf supports argument control... " >&6; }
23309 if test "${pgac_cv_printf_arg_control+set}" = set; then
23310 $as_echo_n "(cached) " >&6
23311 else
23312 if test "$cross_compiling" = yes; then
23313 pgac_cv_printf_arg_control=cross
23314 else
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 #include <stdio.h>
23322 #include <string.h>
23324 int main()
23326 char buf[100];
23328 /* can it swap arguments? */
23329 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23330 if (strcmp(buf, "4 3") != 0)
23331 return 1;
23332 return 0;
23334 _ACEOF
23335 rm -f conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340 esac
23341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23342 $as_echo "$ac_try_echo") >&5
23343 (eval "$ac_link") 2>&5
23344 ac_status=$?
23345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347 { (case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23350 esac
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353 (eval "$ac_try") 2>&5
23354 ac_status=$?
23355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 pgac_cv_printf_arg_control=yes
23358 else
23359 $as_echo "$as_me: program exited with status $ac_status" >&5
23360 $as_echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ( exit $ac_status )
23364 pgac_cv_printf_arg_control=no
23366 rm -rf conftest.dSYM
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23374 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23376 if test $pgac_cv_printf_arg_control != yes ; then
23377 pgac_need_repl_snprintf=yes
23384 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23385 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23386 if test "${pgac_cv_type_long_int_64+set}" = set; then
23387 $as_echo_n "(cached) " >&6
23388 else
23389 if test "$cross_compiling" = yes; then
23390 # If cross-compiling, check the size reported by the compiler and
23391 # trust that the arithmetic works.
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23400 main ()
23402 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23403 test_array [0] = 0
23406 return 0;
23408 _ACEOF
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414 esac
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417 (eval "$ac_compile") 2>conftest.er1
23418 ac_status=$?
23419 grep -v '^ *+' conftest.er1 >conftest.err
23420 rm -f conftest.er1
23421 cat conftest.err >&5
23422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest.$ac_objext; then
23427 pgac_cv_type_long_int_64=yes
23428 else
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 pgac_cv_type_long_int_64=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436 else
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 typedef long int ac_int64;
23446 * These are globals to discourage the compiler from folding all the
23447 * arithmetic tests down to compile-time constants.
23449 ac_int64 a = 20000001;
23450 ac_int64 b = 40000005;
23452 int does_int64_work()
23454 ac_int64 c,d;
23456 if (sizeof(ac_int64) != 8)
23457 return 0; /* definitely not the right size */
23459 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23460 c = a * b;
23461 d = (c + b) / b;
23462 if (d != a+1)
23463 return 0;
23464 return 1;
23466 main() {
23467 exit(! does_int64_work());
23469 _ACEOF
23470 rm -f conftest$ac_exeext
23471 if { (ac_try="$ac_link"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_link") 2>&5
23479 ac_status=$?
23480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23482 { (case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23485 esac
23486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23487 $as_echo "$ac_try_echo") >&5
23488 (eval "$ac_try") 2>&5
23489 ac_status=$?
23490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 pgac_cv_type_long_int_64=yes
23493 else
23494 $as_echo "$as_me: program exited with status $ac_status" >&5
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ( exit $ac_status )
23499 pgac_cv_type_long_int_64=no
23501 rm -rf conftest.dSYM
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23507 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23508 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23510 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23511 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_LONG_INT_64 1
23515 _ACEOF
23520 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23521 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23522 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23523 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23524 $as_echo_n "(cached) " >&6
23525 else
23526 if test "$cross_compiling" = yes; then
23527 # If cross-compiling, check the size reported by the compiler and
23528 # trust that the arithmetic works.
23529 cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h. */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23537 main ()
23539 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23540 test_array [0] = 0
23543 return 0;
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23551 esac
23552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23553 $as_echo "$ac_try_echo") >&5
23554 (eval "$ac_compile") 2>conftest.er1
23555 ac_status=$?
23556 grep -v '^ *+' conftest.er1 >conftest.err
23557 rm -f conftest.er1
23558 cat conftest.err >&5
23559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && {
23561 test -z "$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 } && test -s conftest.$ac_objext; then
23564 pgac_cv_type_long_long_int_64=yes
23565 else
23566 $as_echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 pgac_cv_type_long_long_int_64=no
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573 else
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 typedef long long int ac_int64;
23583 * These are globals to discourage the compiler from folding all the
23584 * arithmetic tests down to compile-time constants.
23586 ac_int64 a = 20000001;
23587 ac_int64 b = 40000005;
23589 int does_int64_work()
23591 ac_int64 c,d;
23593 if (sizeof(ac_int64) != 8)
23594 return 0; /* definitely not the right size */
23596 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23597 c = a * b;
23598 d = (c + b) / b;
23599 if (d != a+1)
23600 return 0;
23601 return 1;
23603 main() {
23604 exit(! does_int64_work());
23606 _ACEOF
23607 rm -f conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23612 esac
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_link") 2>&5
23616 ac_status=$?
23617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23619 { (case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622 esac
23623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23624 $as_echo "$ac_try_echo") >&5
23625 (eval "$ac_try") 2>&5
23626 ac_status=$?
23627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 pgac_cv_type_long_long_int_64=yes
23630 else
23631 $as_echo "$as_me: program exited with status $ac_status" >&5
23632 $as_echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ( exit $ac_status )
23636 pgac_cv_type_long_long_int_64=no
23638 rm -rf conftest.dSYM
23639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23644 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23645 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23647 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23648 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23650 cat >>confdefs.h <<\_ACEOF
23651 #define HAVE_LONG_LONG_INT_64 1
23652 _ACEOF
23656 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23657 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23658 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23659 { (exit 1); exit 1; }; }
23665 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h. */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23673 #define INT64CONST(x) x##LL
23674 long long int foo = INT64CONST(0x1234567890123456);
23677 main ()
23681 return 0;
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_LL_CONSTANTS 1
23705 _ACEOF
23707 else
23708 $as_echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 # If we found "long int" is 64 bits, assume snprintf handles it. If
23719 # we found we need to use "long long int", better check. We cope with
23720 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23721 # work, fall back to our own snprintf emulation (which we know uses %lld).
23723 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23724 if test $pgac_need_repl_snprintf = no; then
23725 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23726 $as_echo_n "checking snprintf format for long long int... " >&6; }
23727 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23728 $as_echo_n "(cached) " >&6
23729 else
23730 for pgac_format in '%lld' '%qd' '%I64d'; do
23731 if test "$cross_compiling" = yes; then
23732 pgac_cv_snprintf_long_long_int_format=cross; break
23733 else
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h. */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23740 #include <stdio.h>
23741 typedef long long int ac_int64;
23742 #define INT64_FORMAT "$pgac_format"
23744 ac_int64 a = 20000001;
23745 ac_int64 b = 40000005;
23747 int does_int64_snprintf_work()
23749 ac_int64 c;
23750 char buf[100];
23752 if (sizeof(ac_int64) != 8)
23753 return 0; /* doesn't look like the right size */
23755 c = a * b;
23756 snprintf(buf, 100, INT64_FORMAT, c);
23757 if (strcmp(buf, "800000140000005") != 0)
23758 return 0; /* either multiply or snprintf is busted */
23759 return 1;
23761 main() {
23762 exit(! does_int64_snprintf_work());
23764 _ACEOF
23765 rm -f conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23770 esac
23771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23772 $as_echo "$ac_try_echo") >&5
23773 (eval "$ac_link") 2>&5
23774 ac_status=$?
23775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23777 { (case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780 esac
23781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782 $as_echo "$ac_try_echo") >&5
23783 (eval "$ac_try") 2>&5
23784 ac_status=$?
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23788 else
23789 $as_echo "$as_me: program exited with status $ac_status" >&5
23790 $as_echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23794 rm -rf conftest.dSYM
23795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23799 done
23802 LONG_LONG_INT_FORMAT=''
23804 case $pgac_cv_snprintf_long_long_int_format in
23805 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23806 $as_echo "cannot test (not on host machine)" >&6; };;
23807 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23808 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23809 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23810 *) { $as_echo "$as_me:$LINENO: result: none" >&5
23811 $as_echo "none" >&6; };;
23812 esac
23813 if test "$LONG_LONG_INT_FORMAT" = ""; then
23814 # Force usage of our own snprintf, since system snprintf is broken
23815 pgac_need_repl_snprintf=yes
23816 LONG_LONG_INT_FORMAT='%lld'
23818 else
23819 # Here if we previously decided we needed to use our own snprintf
23820 LONG_LONG_INT_FORMAT='%lld'
23822 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23823 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23824 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23825 else
23826 # Here if we are not using 'long long int' at all
23827 INT64_FORMAT='"%ld"'
23828 UINT64_FORMAT='"%lu"'
23832 cat >>confdefs.h <<_ACEOF
23833 #define INT64_FORMAT $INT64_FORMAT
23834 _ACEOF
23838 cat >>confdefs.h <<_ACEOF
23839 #define UINT64_FORMAT $UINT64_FORMAT
23840 _ACEOF
23843 # Now we have checked all the reasons to replace snprintf
23844 if test $pgac_need_repl_snprintf = yes; then
23846 cat >>confdefs.h <<\_ACEOF
23847 #define USE_REPL_SNPRINTF 1
23848 _ACEOF
23850 case " $LIBOBJS " in
23851 *" snprintf.$ac_objext "* ) ;;
23852 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23854 esac
23858 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23859 # The cast to long int works around a bug in the HP C Compiler
23860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23862 # This bug is HP SR number 8606223364.
23863 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23864 $as_echo_n "checking size of void *... " >&6; }
23865 if test "${ac_cv_sizeof_void_p+set}" = set; then
23866 $as_echo_n "(cached) " >&6
23867 else
23868 if test "$cross_compiling" = yes; then
23869 # Depending upon the size, compute the lo and hi bounds.
23870 cat >conftest.$ac_ext <<_ACEOF
23871 /* confdefs.h. */
23872 _ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 $ac_includes_default
23878 main ()
23880 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23881 test_array [0] = 0
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23894 $as_echo "$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 $as_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_lo=0 ac_mid=0
23906 while :; do
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h. */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23915 main ()
23917 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23918 test_array [0] = 0
23921 return 0;
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929 esac
23930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23931 $as_echo "$ac_try_echo") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23933 ac_status=$?
23934 grep -v '^ *+' conftest.er1 >conftest.err
23935 rm -f conftest.er1
23936 cat conftest.err >&5
23937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_hi=$ac_mid; break
23943 else
23944 $as_echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ac_lo=`expr $ac_mid + 1`
23948 if test $ac_lo -le $ac_mid; then
23949 ac_lo= ac_hi=
23950 break
23952 ac_mid=`expr 2 '*' $ac_mid + 1`
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956 done
23957 else
23958 $as_echo "$as_me: failed program was:" >&5
23959 sed 's/^/| /' conftest.$ac_ext >&5
23961 cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h. */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 $ac_includes_default
23969 main ()
23971 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23972 test_array [0] = 0
23975 return 0;
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23983 esac
23984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23985 $as_echo "$ac_try_echo") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23987 ac_status=$?
23988 grep -v '^ *+' conftest.er1 >conftest.err
23989 rm -f conftest.er1
23990 cat conftest.err >&5
23991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && {
23993 test -z "$ac_c_werror_flag" ||
23994 test ! -s conftest.err
23995 } && test -s conftest.$ac_objext; then
23996 ac_hi=-1 ac_mid=-1
23997 while :; do
23998 cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h. */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 $ac_includes_default
24006 main ()
24008 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24009 test_array [0] = 0
24012 return 0;
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24020 esac
24021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24024 ac_status=$?
24025 grep -v '^ *+' conftest.er1 >conftest.err
24026 rm -f conftest.er1
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 ac_lo=$ac_mid; break
24034 else
24035 $as_echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 ac_hi=`expr '(' $ac_mid ')' - 1`
24039 if test $ac_mid -le $ac_hi; then
24040 ac_lo= ac_hi=
24041 break
24043 ac_mid=`expr 2 '*' $ac_mid`
24046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 done
24048 else
24049 $as_echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24052 ac_lo= ac_hi=
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 # Binary search between lo and hi bounds.
24060 while test "x$ac_lo" != "x$ac_hi"; do
24061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h. */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 $ac_includes_default
24070 main ()
24072 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24073 test_array [0] = 0
24076 return 0;
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24084 esac
24085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24086 $as_echo "$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 $as_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_hi=$ac_mid
24098 else
24099 $as_echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ac_lo=`expr '(' $ac_mid ')' + 1`
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106 done
24107 case $ac_lo in
24108 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24109 '') if test "$ac_cv_type_void_p" = yes; then
24110 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24113 See \`config.log' for more details." >&5
24114 $as_echo "$as_me: error: cannot compute sizeof (void *)
24115 See \`config.log' for more details." >&2;}
24116 { (exit 77); exit 77; }; }; }
24117 else
24118 ac_cv_sizeof_void_p=0
24119 fi ;;
24120 esac
24121 else
24122 cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h. */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 $ac_includes_default
24129 static long int longval () { return (long int) (sizeof (void *)); }
24130 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24131 #include <stdio.h>
24132 #include <stdlib.h>
24134 main ()
24137 FILE *f = fopen ("conftest.val", "w");
24138 if (! f)
24139 return 1;
24140 if (((long int) (sizeof (void *))) < 0)
24142 long int i = longval ();
24143 if (i != ((long int) (sizeof (void *))))
24144 return 1;
24145 fprintf (f, "%ld", i);
24147 else
24149 unsigned long int i = ulongval ();
24150 if (i != ((long int) (sizeof (void *))))
24151 return 1;
24152 fprintf (f, "%lu", i);
24154 /* Do not output a trailing newline, as this causes \r\n confusion
24155 on some platforms. */
24156 return ferror (f) || fclose (f) != 0;
24159 return 0;
24161 _ACEOF
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167 esac
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_link") 2>&5
24171 ac_status=$?
24172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24174 { (case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24177 esac
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180 (eval "$ac_try") 2>&5
24181 ac_status=$?
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 ac_cv_sizeof_void_p=`cat conftest.val`
24185 else
24186 $as_echo "$as_me: program exited with status $ac_status" >&5
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ( exit $ac_status )
24191 if test "$ac_cv_type_void_p" = yes; then
24192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24194 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24195 See \`config.log' for more details." >&5
24196 $as_echo "$as_me: error: cannot compute sizeof (void *)
24197 See \`config.log' for more details." >&2;}
24198 { (exit 77); exit 77; }; }; }
24199 else
24200 ac_cv_sizeof_void_p=0
24203 rm -rf conftest.dSYM
24204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 rm -f conftest.val
24208 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24209 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24213 cat >>confdefs.h <<_ACEOF
24214 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24215 _ACEOF
24218 # The cast to long int works around a bug in the HP C Compiler
24219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24221 # This bug is HP SR number 8606223364.
24222 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24223 $as_echo_n "checking size of size_t... " >&6; }
24224 if test "${ac_cv_sizeof_size_t+set}" = set; then
24225 $as_echo_n "(cached) " >&6
24226 else
24227 if test "$cross_compiling" = yes; then
24228 # Depending upon the size, compute the lo and hi bounds.
24229 cat >conftest.$ac_ext <<_ACEOF
24230 /* confdefs.h. */
24231 _ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h. */
24235 $ac_includes_default
24237 main ()
24239 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24240 test_array [0] = 0
24243 return 0;
24245 _ACEOF
24246 rm -f conftest.$ac_objext
24247 if { (ac_try="$ac_compile"
24248 case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24251 esac
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254 (eval "$ac_compile") 2>conftest.er1
24255 ac_status=$?
24256 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1
24258 cat conftest.err >&5
24259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && {
24261 test -z "$ac_c_werror_flag" ||
24262 test ! -s conftest.err
24263 } && test -s conftest.$ac_objext; then
24264 ac_lo=0 ac_mid=0
24265 while :; do
24266 cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h. */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24274 main ()
24276 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24277 test_array [0] = 0
24280 return 0;
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (ac_try="$ac_compile"
24285 case "(($ac_try" in
24286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287 *) ac_try_echo=$ac_try;;
24288 esac
24289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291 (eval "$ac_compile") 2>conftest.er1
24292 ac_status=$?
24293 grep -v '^ *+' conftest.er1 >conftest.err
24294 rm -f conftest.er1
24295 cat conftest.err >&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest.$ac_objext; then
24301 ac_hi=$ac_mid; break
24302 else
24303 $as_echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24306 ac_lo=`expr $ac_mid + 1`
24307 if test $ac_lo -le $ac_mid; then
24308 ac_lo= ac_hi=
24309 break
24311 ac_mid=`expr 2 '*' $ac_mid + 1`
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24315 done
24316 else
24317 $as_echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24320 cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h. */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24328 main ()
24330 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24331 test_array [0] = 0
24334 return 0;
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24355 ac_hi=-1 ac_mid=-1
24356 while :; do
24357 cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h. */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 $ac_includes_default
24365 main ()
24367 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24368 test_array [0] = 0
24371 return 0;
24373 _ACEOF
24374 rm -f conftest.$ac_objext
24375 if { (ac_try="$ac_compile"
24376 case "(($ac_try" in
24377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24378 *) ac_try_echo=$ac_try;;
24379 esac
24380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24381 $as_echo "$ac_try_echo") >&5
24382 (eval "$ac_compile") 2>conftest.er1
24383 ac_status=$?
24384 grep -v '^ *+' conftest.er1 >conftest.err
24385 rm -f conftest.er1
24386 cat conftest.err >&5
24387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } && {
24389 test -z "$ac_c_werror_flag" ||
24390 test ! -s conftest.err
24391 } && test -s conftest.$ac_objext; then
24392 ac_lo=$ac_mid; break
24393 else
24394 $as_echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 ac_hi=`expr '(' $ac_mid ')' - 1`
24398 if test $ac_mid -le $ac_hi; then
24399 ac_lo= ac_hi=
24400 break
24402 ac_mid=`expr 2 '*' $ac_mid`
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 done
24407 else
24408 $as_echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 ac_lo= ac_hi=
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24418 # Binary search between lo and hi bounds.
24419 while test "x$ac_lo" != "x$ac_hi"; do
24420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h. */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24429 main ()
24431 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24432 test_array [0] = 0
24435 return 0;
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443 esac
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24447 ac_status=$?
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
24451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24456 ac_hi=$ac_mid
24457 else
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ac_lo=`expr '(' $ac_mid ')' + 1`
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 done
24466 case $ac_lo in
24467 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24468 '') if test "$ac_cv_type_size_t" = yes; then
24469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24472 See \`config.log' for more details." >&5
24473 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24474 See \`config.log' for more details." >&2;}
24475 { (exit 77); exit 77; }; }; }
24476 else
24477 ac_cv_sizeof_size_t=0
24478 fi ;;
24479 esac
24480 else
24481 cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h. */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 $ac_includes_default
24488 static long int longval () { return (long int) (sizeof (size_t)); }
24489 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24490 #include <stdio.h>
24491 #include <stdlib.h>
24493 main ()
24496 FILE *f = fopen ("conftest.val", "w");
24497 if (! f)
24498 return 1;
24499 if (((long int) (sizeof (size_t))) < 0)
24501 long int i = longval ();
24502 if (i != ((long int) (sizeof (size_t))))
24503 return 1;
24504 fprintf (f, "%ld", i);
24506 else
24508 unsigned long int i = ulongval ();
24509 if (i != ((long int) (sizeof (size_t))))
24510 return 1;
24511 fprintf (f, "%lu", i);
24513 /* Do not output a trailing newline, as this causes \r\n confusion
24514 on some platforms. */
24515 return ferror (f) || fclose (f) != 0;
24518 return 0;
24520 _ACEOF
24521 rm -f conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24526 esac
24527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24528 $as_echo "$ac_try_echo") >&5
24529 (eval "$ac_link") 2>&5
24530 ac_status=$?
24531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24533 { (case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24536 esac
24537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24538 $as_echo "$ac_try_echo") >&5
24539 (eval "$ac_try") 2>&5
24540 ac_status=$?
24541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 ac_cv_sizeof_size_t=`cat conftest.val`
24544 else
24545 $as_echo "$as_me: program exited with status $ac_status" >&5
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.$ac_ext >&5
24549 ( exit $ac_status )
24550 if test "$ac_cv_type_size_t" = yes; then
24551 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24553 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24554 See \`config.log' for more details." >&5
24555 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24556 See \`config.log' for more details." >&2;}
24557 { (exit 77); exit 77; }; }; }
24558 else
24559 ac_cv_sizeof_size_t=0
24562 rm -rf conftest.dSYM
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24565 rm -f conftest.val
24567 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24568 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24572 cat >>confdefs.h <<_ACEOF
24573 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24574 _ACEOF
24577 # The cast to long int works around a bug in the HP C Compiler
24578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24580 # This bug is HP SR number 8606223364.
24581 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24582 $as_echo_n "checking size of long... " >&6; }
24583 if test "${ac_cv_sizeof_long+set}" = set; then
24584 $as_echo_n "(cached) " >&6
24585 else
24586 if test "$cross_compiling" = yes; then
24587 # Depending upon the size, compute the lo and hi bounds.
24588 cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h. */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 $ac_includes_default
24596 main ()
24598 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24599 test_array [0] = 0
24602 return 0;
24604 _ACEOF
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24610 esac
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24614 ac_status=$?
24615 grep -v '^ *+' conftest.er1 >conftest.err
24616 rm -f conftest.er1
24617 cat conftest.err >&5
24618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } && {
24620 test -z "$ac_c_werror_flag" ||
24621 test ! -s conftest.err
24622 } && test -s conftest.$ac_objext; then
24623 ac_lo=0 ac_mid=0
24624 while :; do
24625 cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h. */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 $ac_includes_default
24633 main ()
24635 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24636 test_array [0] = 0
24639 return 0;
24641 _ACEOF
24642 rm -f conftest.$ac_objext
24643 if { (ac_try="$ac_compile"
24644 case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647 esac
24648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24649 $as_echo "$ac_try_echo") >&5
24650 (eval "$ac_compile") 2>conftest.er1
24651 ac_status=$?
24652 grep -v '^ *+' conftest.er1 >conftest.err
24653 rm -f conftest.er1
24654 cat conftest.err >&5
24655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } && {
24657 test -z "$ac_c_werror_flag" ||
24658 test ! -s conftest.err
24659 } && test -s conftest.$ac_objext; then
24660 ac_hi=$ac_mid; break
24661 else
24662 $as_echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 ac_lo=`expr $ac_mid + 1`
24666 if test $ac_lo -le $ac_mid; then
24667 ac_lo= ac_hi=
24668 break
24670 ac_mid=`expr 2 '*' $ac_mid + 1`
24673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674 done
24675 else
24676 $as_echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h. */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24687 main ()
24689 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24690 test_array [0] = 0
24693 return 0;
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24701 esac
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24705 ac_status=$?
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
24709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest.$ac_objext; then
24714 ac_hi=-1 ac_mid=-1
24715 while :; do
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h. */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 $ac_includes_default
24724 main ()
24726 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24727 test_array [0] = 0
24730 return 0;
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24738 esac
24739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24740 $as_echo "$ac_try_echo") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 ac_lo=$ac_mid; break
24752 else
24753 $as_echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_hi=`expr '(' $ac_mid ')' - 1`
24757 if test $ac_mid -le $ac_hi; then
24758 ac_lo= ac_hi=
24759 break
24761 ac_mid=`expr 2 '*' $ac_mid`
24764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24765 done
24766 else
24767 $as_echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_lo= ac_hi=
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 # Binary search between lo and hi bounds.
24778 while test "x$ac_lo" != "x$ac_hi"; do
24779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h. */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24788 main ()
24790 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24791 test_array [0] = 0
24794 return 0;
24796 _ACEOF
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801 *) ac_try_echo=$ac_try;;
24802 esac
24803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24804 $as_echo "$ac_try_echo") >&5
24805 (eval "$ac_compile") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest.$ac_objext; then
24815 ac_hi=$ac_mid
24816 else
24817 $as_echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_lo=`expr '(' $ac_mid ')' + 1`
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 done
24825 case $ac_lo in
24826 ?*) ac_cv_sizeof_long=$ac_lo;;
24827 '') if test "$ac_cv_type_long" = yes; then
24828 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24830 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24831 See \`config.log' for more details." >&5
24832 $as_echo "$as_me: error: cannot compute sizeof (long)
24833 See \`config.log' for more details." >&2;}
24834 { (exit 77); exit 77; }; }; }
24835 else
24836 ac_cv_sizeof_long=0
24837 fi ;;
24838 esac
24839 else
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h. */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 $ac_includes_default
24847 static long int longval () { return (long int) (sizeof (long)); }
24848 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24849 #include <stdio.h>
24850 #include <stdlib.h>
24852 main ()
24855 FILE *f = fopen ("conftest.val", "w");
24856 if (! f)
24857 return 1;
24858 if (((long int) (sizeof (long))) < 0)
24860 long int i = longval ();
24861 if (i != ((long int) (sizeof (long))))
24862 return 1;
24863 fprintf (f, "%ld", i);
24865 else
24867 unsigned long int i = ulongval ();
24868 if (i != ((long int) (sizeof (long))))
24869 return 1;
24870 fprintf (f, "%lu", i);
24872 /* Do not output a trailing newline, as this causes \r\n confusion
24873 on some platforms. */
24874 return ferror (f) || fclose (f) != 0;
24877 return 0;
24879 _ACEOF
24880 rm -f conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24885 esac
24886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24887 $as_echo "$ac_try_echo") >&5
24888 (eval "$ac_link") 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24892 { (case "(($ac_try" in
24893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24895 esac
24896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24897 $as_echo "$ac_try_echo") >&5
24898 (eval "$ac_try") 2>&5
24899 ac_status=$?
24900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_sizeof_long=`cat conftest.val`
24903 else
24904 $as_echo "$as_me: program exited with status $ac_status" >&5
24905 $as_echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 ( exit $ac_status )
24909 if test "$ac_cv_type_long" = yes; then
24910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24912 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24913 See \`config.log' for more details." >&5
24914 $as_echo "$as_me: error: cannot compute sizeof (long)
24915 See \`config.log' for more details." >&2;}
24916 { (exit 77); exit 77; }; }; }
24917 else
24918 ac_cv_sizeof_long=0
24921 rm -rf conftest.dSYM
24922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24924 rm -f conftest.val
24926 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24927 $as_echo "$ac_cv_sizeof_long" >&6; }
24931 cat >>confdefs.h <<_ACEOF
24932 #define SIZEOF_LONG $ac_cv_sizeof_long
24933 _ACEOF
24937 # Decide whether float4 is passed by value: user-selectable, enabled by default
24938 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24939 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24942 # Check whether --enable-float4-byval was given.
24943 if test "${enable_float4_byval+set}" = set; then
24944 enableval=$enable_float4_byval;
24945 case $enableval in
24946 yes)
24948 cat >>confdefs.h <<\_ACEOF
24949 #define USE_FLOAT4_BYVAL 1
24950 _ACEOF
24952 float4passbyval=true
24955 float4passbyval=false
24958 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24959 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24960 { (exit 1); exit 1; }; }
24962 esac
24964 else
24965 enable_float4_byval=yes
24967 cat >>confdefs.h <<\_ACEOF
24968 #define USE_FLOAT4_BYVAL 1
24969 _ACEOF
24971 float4passbyval=true
24975 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24976 $as_echo "$enable_float4_byval" >&6; }
24978 cat >>confdefs.h <<_ACEOF
24979 #define FLOAT4PASSBYVAL $float4passbyval
24980 _ACEOF
24983 # Decide whether float8 is passed by value.
24984 # Note: this setting also controls int8 and related types such as timestamp.
24985 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24986 # If not, trying to select it is an error.
24987 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24988 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24989 if test $ac_cv_sizeof_void_p -ge 8 ; then
24992 # Check whether --enable-float8-byval was given.
24993 if test "${enable_float8_byval+set}" = set; then
24994 enableval=$enable_float8_byval;
24995 case $enableval in
24996 yes)
25003 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25004 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25005 { (exit 1); exit 1; }; }
25007 esac
25009 else
25010 enable_float8_byval=yes
25015 else
25018 # Check whether --enable-float8-byval was given.
25019 if test "${enable_float8_byval+set}" = set; then
25020 enableval=$enable_float8_byval;
25021 case $enableval in
25022 yes)
25029 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25030 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25031 { (exit 1); exit 1; }; }
25033 esac
25035 else
25036 enable_float8_byval=no
25041 if test "$enable_float8_byval" = yes ; then
25042 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25043 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25044 { (exit 1); exit 1; }; }
25047 if test "$enable_float8_byval" = yes ; then
25049 cat >>confdefs.h <<\_ACEOF
25050 #define USE_FLOAT8_BYVAL 1
25051 _ACEOF
25053 float8passbyval=true
25054 else
25055 float8passbyval=false
25057 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25058 $as_echo "$enable_float8_byval" >&6; }
25060 cat >>confdefs.h <<_ACEOF
25061 #define FLOAT8PASSBYVAL $float8passbyval
25062 _ACEOF
25065 # Determine memory alignment requirements for the basic C data types.
25067 # The cast to long int works around a bug in the HP C Compiler,
25068 # see AC_CHECK_SIZEOF for more information.
25069 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25070 $as_echo_n "checking alignment of short... " >&6; }
25071 if test "${ac_cv_alignof_short+set}" = set; then
25072 $as_echo_n "(cached) " >&6
25073 else
25074 if test "$cross_compiling" = yes; then
25075 # Depending upon the size, compute the lo and hi bounds.
25076 cat >conftest.$ac_ext <<_ACEOF
25077 /* confdefs.h. */
25078 _ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h. */
25082 $ac_includes_default
25083 #ifndef offsetof
25084 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25085 #endif
25086 typedef struct { char x; short y; } ac__type_alignof_;
25088 main ()
25090 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25091 test_array [0] = 0
25094 return 0;
25096 _ACEOF
25097 rm -f conftest.$ac_objext
25098 if { (ac_try="$ac_compile"
25099 case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25102 esac
25103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25104 $as_echo "$ac_try_echo") >&5
25105 (eval "$ac_compile") 2>conftest.er1
25106 ac_status=$?
25107 grep -v '^ *+' conftest.er1 >conftest.err
25108 rm -f conftest.er1
25109 cat conftest.err >&5
25110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest.$ac_objext; then
25115 ac_lo=0 ac_mid=0
25116 while :; do
25117 cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h. */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 $ac_includes_default
25124 #ifndef offsetof
25125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25126 #endif
25127 typedef struct { char x; short y; } ac__type_alignof_;
25129 main ()
25131 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25132 test_array [0] = 0
25135 return 0;
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25143 esac
25144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25145 $as_echo "$ac_try_echo") >&5
25146 (eval "$ac_compile") 2>conftest.er1
25147 ac_status=$?
25148 grep -v '^ *+' conftest.er1 >conftest.err
25149 rm -f conftest.er1
25150 cat conftest.err >&5
25151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } && {
25153 test -z "$ac_c_werror_flag" ||
25154 test ! -s conftest.err
25155 } && test -s conftest.$ac_objext; then
25156 ac_hi=$ac_mid; break
25157 else
25158 $as_echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ac_lo=`expr $ac_mid + 1`
25162 if test $ac_lo -le $ac_mid; then
25163 ac_lo= ac_hi=
25164 break
25166 ac_mid=`expr 2 '*' $ac_mid + 1`
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 done
25171 else
25172 $as_echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h. */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 $ac_includes_default
25182 #ifndef offsetof
25183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25184 #endif
25185 typedef struct { char x; short y; } ac__type_alignof_;
25187 main ()
25189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25190 test_array [0] = 0
25193 return 0;
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201 esac
25202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203 $as_echo "$ac_try_echo") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25205 ac_status=$?
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
25209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest.$ac_objext; then
25214 ac_hi=-1 ac_mid=-1
25215 while :; do
25216 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h. */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222 $ac_includes_default
25223 #ifndef offsetof
25224 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25225 #endif
25226 typedef struct { char x; short y; } ac__type_alignof_;
25228 main ()
25230 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25231 test_array [0] = 0
25234 return 0;
25236 _ACEOF
25237 rm -f conftest.$ac_objext
25238 if { (ac_try="$ac_compile"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25242 esac
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245 (eval "$ac_compile") 2>conftest.er1
25246 ac_status=$?
25247 grep -v '^ *+' conftest.er1 >conftest.err
25248 rm -f conftest.er1
25249 cat conftest.err >&5
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && {
25252 test -z "$ac_c_werror_flag" ||
25253 test ! -s conftest.err
25254 } && test -s conftest.$ac_objext; then
25255 ac_lo=$ac_mid; break
25256 else
25257 $as_echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 ac_hi=`expr '(' $ac_mid ')' - 1`
25261 if test $ac_mid -le $ac_hi; then
25262 ac_lo= ac_hi=
25263 break
25265 ac_mid=`expr 2 '*' $ac_mid`
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 done
25270 else
25271 $as_echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25274 ac_lo= ac_hi=
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 # Binary search between lo and hi bounds.
25282 while test "x$ac_lo" != "x$ac_hi"; do
25283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25284 cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h. */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 $ac_includes_default
25291 #ifndef offsetof
25292 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25293 #endif
25294 typedef struct { char x; short y; } ac__type_alignof_;
25296 main ()
25298 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25299 test_array [0] = 0
25302 return 0;
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25310 esac
25311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25312 $as_echo "$ac_try_echo") >&5
25313 (eval "$ac_compile") 2>conftest.er1
25314 ac_status=$?
25315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
25318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest.$ac_objext; then
25323 ac_hi=$ac_mid
25324 else
25325 $as_echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ac_lo=`expr '(' $ac_mid ')' + 1`
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 done
25333 case $ac_lo in
25334 ?*) ac_cv_alignof_short=$ac_lo;;
25335 '') if test "$ac_cv_type_short" = yes; then
25336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25338 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25339 See \`config.log' for more details." >&5
25340 $as_echo "$as_me: error: cannot compute alignment of short
25341 See \`config.log' for more details." >&2;}
25342 { (exit 77); exit 77; }; }; }
25343 else
25344 ac_cv_alignof_short=0
25345 fi ;;
25346 esac
25347 else
25348 cat >conftest.$ac_ext <<_ACEOF
25349 /* confdefs.h. */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 $ac_includes_default
25355 #ifndef offsetof
25356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25357 #endif
25358 typedef struct { char x; short y; } ac__type_alignof_;
25359 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25360 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25361 #include <stdio.h>
25362 #include <stdlib.h>
25364 main ()
25367 FILE *f = fopen ("conftest.val", "w");
25368 if (! f)
25369 return 1;
25370 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25372 long int i = longval ();
25373 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25374 return 1;
25375 fprintf (f, "%ld", i);
25377 else
25379 unsigned long int i = ulongval ();
25380 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25381 return 1;
25382 fprintf (f, "%lu", i);
25384 /* Do not output a trailing newline, as this causes \r\n confusion
25385 on some platforms. */
25386 return ferror (f) || fclose (f) != 0;
25389 return 0;
25391 _ACEOF
25392 rm -f conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25397 esac
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400 (eval "$ac_link") 2>&5
25401 ac_status=$?
25402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25404 { (case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25407 esac
25408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410 (eval "$ac_try") 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; }; then
25414 ac_cv_alignof_short=`cat conftest.val`
25415 else
25416 $as_echo "$as_me: program exited with status $ac_status" >&5
25417 $as_echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ( exit $ac_status )
25421 if test "$ac_cv_type_short" = yes; then
25422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25424 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25425 See \`config.log' for more details." >&5
25426 $as_echo "$as_me: error: cannot compute alignment of short
25427 See \`config.log' for more details." >&2;}
25428 { (exit 77); exit 77; }; }; }
25429 else
25430 ac_cv_alignof_short=0
25433 rm -rf conftest.dSYM
25434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25436 rm -f conftest.val
25438 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25439 $as_echo "$ac_cv_alignof_short" >&6; }
25443 cat >>confdefs.h <<_ACEOF
25444 #define ALIGNOF_SHORT $ac_cv_alignof_short
25445 _ACEOF
25448 # The cast to long int works around a bug in the HP C Compiler,
25449 # see AC_CHECK_SIZEOF for more information.
25450 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25451 $as_echo_n "checking alignment of int... " >&6; }
25452 if test "${ac_cv_alignof_int+set}" = set; then
25453 $as_echo_n "(cached) " >&6
25454 else
25455 if test "$cross_compiling" = yes; then
25456 # Depending upon the size, compute the lo and hi bounds.
25457 cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h. */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h. */
25463 $ac_includes_default
25464 #ifndef offsetof
25465 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25466 #endif
25467 typedef struct { char x; int y; } ac__type_alignof_;
25469 main ()
25471 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25472 test_array [0] = 0
25475 return 0;
25477 _ACEOF
25478 rm -f conftest.$ac_objext
25479 if { (ac_try="$ac_compile"
25480 case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25483 esac
25484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485 $as_echo "$ac_try_echo") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25487 ac_status=$?
25488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.$ac_objext; then
25496 ac_lo=0 ac_mid=0
25497 while :; do
25498 cat >conftest.$ac_ext <<_ACEOF
25499 /* confdefs.h. */
25500 _ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 $ac_includes_default
25505 #ifndef offsetof
25506 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25507 #endif
25508 typedef struct { char x; int y; } ac__type_alignof_;
25510 main ()
25512 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25513 test_array [0] = 0
25516 return 0;
25518 _ACEOF
25519 rm -f conftest.$ac_objext
25520 if { (ac_try="$ac_compile"
25521 case "(($ac_try" in
25522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25523 *) ac_try_echo=$ac_try;;
25524 esac
25525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25526 $as_echo "$ac_try_echo") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25528 ac_status=$?
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
25532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest.$ac_objext; then
25537 ac_hi=$ac_mid; break
25538 else
25539 $as_echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25542 ac_lo=`expr $ac_mid + 1`
25543 if test $ac_lo -le $ac_mid; then
25544 ac_lo= ac_hi=
25545 break
25547 ac_mid=`expr 2 '*' $ac_mid + 1`
25550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551 done
25552 else
25553 $as_echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25563 #ifndef offsetof
25564 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25565 #endif
25566 typedef struct { char x; int y; } ac__type_alignof_;
25568 main ()
25570 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25571 test_array [0] = 0
25574 return 0;
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25582 esac
25583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585 (eval "$ac_compile") 2>conftest.er1
25586 ac_status=$?
25587 grep -v '^ *+' conftest.er1 >conftest.err
25588 rm -f conftest.er1
25589 cat conftest.err >&5
25590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } && {
25592 test -z "$ac_c_werror_flag" ||
25593 test ! -s conftest.err
25594 } && test -s conftest.$ac_objext; then
25595 ac_hi=-1 ac_mid=-1
25596 while :; do
25597 cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h. */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 $ac_includes_default
25604 #ifndef offsetof
25605 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25606 #endif
25607 typedef struct { char x; int y; } ac__type_alignof_;
25609 main ()
25611 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25612 test_array [0] = 0
25615 return 0;
25617 _ACEOF
25618 rm -f conftest.$ac_objext
25619 if { (ac_try="$ac_compile"
25620 case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25623 esac
25624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25625 $as_echo "$ac_try_echo") >&5
25626 (eval "$ac_compile") 2>conftest.er1
25627 ac_status=$?
25628 grep -v '^ *+' conftest.er1 >conftest.err
25629 rm -f conftest.er1
25630 cat conftest.err >&5
25631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && {
25633 test -z "$ac_c_werror_flag" ||
25634 test ! -s conftest.err
25635 } && test -s conftest.$ac_objext; then
25636 ac_lo=$ac_mid; break
25637 else
25638 $as_echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25641 ac_hi=`expr '(' $ac_mid ')' - 1`
25642 if test $ac_mid -le $ac_hi; then
25643 ac_lo= ac_hi=
25644 break
25646 ac_mid=`expr 2 '*' $ac_mid`
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25650 done
25651 else
25652 $as_echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ac_lo= ac_hi=
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25662 # Binary search between lo and hi bounds.
25663 while test "x$ac_lo" != "x$ac_hi"; do
25664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h. */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25672 #ifndef offsetof
25673 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25674 #endif
25675 typedef struct { char x; int y; } ac__type_alignof_;
25677 main ()
25679 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25680 test_array [0] = 0
25683 return 0;
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (ac_try="$ac_compile"
25688 case "(($ac_try" in
25689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690 *) ac_try_echo=$ac_try;;
25691 esac
25692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25693 $as_echo "$ac_try_echo") >&5
25694 (eval "$ac_compile") 2>conftest.er1
25695 ac_status=$?
25696 grep -v '^ *+' conftest.er1 >conftest.err
25697 rm -f conftest.er1
25698 cat conftest.err >&5
25699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_c_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest.$ac_objext; then
25704 ac_hi=$ac_mid
25705 else
25706 $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25709 ac_lo=`expr '(' $ac_mid ')' + 1`
25712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 done
25714 case $ac_lo in
25715 ?*) ac_cv_alignof_int=$ac_lo;;
25716 '') if test "$ac_cv_type_int" = yes; then
25717 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25719 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25720 See \`config.log' for more details." >&5
25721 $as_echo "$as_me: error: cannot compute alignment of int
25722 See \`config.log' for more details." >&2;}
25723 { (exit 77); exit 77; }; }; }
25724 else
25725 ac_cv_alignof_int=0
25726 fi ;;
25727 esac
25728 else
25729 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h. */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 $ac_includes_default
25736 #ifndef offsetof
25737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25738 #endif
25739 typedef struct { char x; int y; } ac__type_alignof_;
25740 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25741 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25742 #include <stdio.h>
25743 #include <stdlib.h>
25745 main ()
25748 FILE *f = fopen ("conftest.val", "w");
25749 if (! f)
25750 return 1;
25751 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25753 long int i = longval ();
25754 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25755 return 1;
25756 fprintf (f, "%ld", i);
25758 else
25760 unsigned long int i = ulongval ();
25761 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25762 return 1;
25763 fprintf (f, "%lu", i);
25765 /* Do not output a trailing newline, as this causes \r\n confusion
25766 on some platforms. */
25767 return ferror (f) || fclose (f) != 0;
25770 return 0;
25772 _ACEOF
25773 rm -f conftest$ac_exeext
25774 if { (ac_try="$ac_link"
25775 case "(($ac_try" in
25776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777 *) ac_try_echo=$ac_try;;
25778 esac
25779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25780 $as_echo "$ac_try_echo") >&5
25781 (eval "$ac_link") 2>&5
25782 ac_status=$?
25783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25785 { (case "(($ac_try" in
25786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787 *) ac_try_echo=$ac_try;;
25788 esac
25789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25790 $as_echo "$ac_try_echo") >&5
25791 (eval "$ac_try") 2>&5
25792 ac_status=$?
25793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25795 ac_cv_alignof_int=`cat conftest.val`
25796 else
25797 $as_echo "$as_me: program exited with status $ac_status" >&5
25798 $as_echo "$as_me: failed program was:" >&5
25799 sed 's/^/| /' conftest.$ac_ext >&5
25801 ( exit $ac_status )
25802 if test "$ac_cv_type_int" = yes; then
25803 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25805 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25806 See \`config.log' for more details." >&5
25807 $as_echo "$as_me: error: cannot compute alignment of int
25808 See \`config.log' for more details." >&2;}
25809 { (exit 77); exit 77; }; }; }
25810 else
25811 ac_cv_alignof_int=0
25814 rm -rf conftest.dSYM
25815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25817 rm -f conftest.val
25819 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25820 $as_echo "$ac_cv_alignof_int" >&6; }
25824 cat >>confdefs.h <<_ACEOF
25825 #define ALIGNOF_INT $ac_cv_alignof_int
25826 _ACEOF
25829 # The cast to long int works around a bug in the HP C Compiler,
25830 # see AC_CHECK_SIZEOF for more information.
25831 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25832 $as_echo_n "checking alignment of long... " >&6; }
25833 if test "${ac_cv_alignof_long+set}" = set; then
25834 $as_echo_n "(cached) " >&6
25835 else
25836 if test "$cross_compiling" = yes; then
25837 # Depending upon the size, compute the lo and hi bounds.
25838 cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h. */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 $ac_includes_default
25845 #ifndef offsetof
25846 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25847 #endif
25848 typedef struct { char x; long y; } ac__type_alignof_;
25850 main ()
25852 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25853 test_array [0] = 0
25856 return 0;
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25864 esac
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_compile") 2>conftest.er1
25868 ac_status=$?
25869 grep -v '^ *+' conftest.er1 >conftest.err
25870 rm -f conftest.er1
25871 cat conftest.err >&5
25872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } && {
25874 test -z "$ac_c_werror_flag" ||
25875 test ! -s conftest.err
25876 } && test -s conftest.$ac_objext; then
25877 ac_lo=0 ac_mid=0
25878 while :; do
25879 cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h. */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 $ac_includes_default
25886 #ifndef offsetof
25887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25888 #endif
25889 typedef struct { char x; long y; } ac__type_alignof_;
25891 main ()
25893 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25894 test_array [0] = 0
25897 return 0;
25899 _ACEOF
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904 *) ac_try_echo=$ac_try;;
25905 esac
25906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25907 $as_echo "$ac_try_echo") >&5
25908 (eval "$ac_compile") 2>conftest.er1
25909 ac_status=$?
25910 grep -v '^ *+' conftest.er1 >conftest.err
25911 rm -f conftest.er1
25912 cat conftest.err >&5
25913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } && {
25915 test -z "$ac_c_werror_flag" ||
25916 test ! -s conftest.err
25917 } && test -s conftest.$ac_objext; then
25918 ac_hi=$ac_mid; break
25919 else
25920 $as_echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ac_lo=`expr $ac_mid + 1`
25924 if test $ac_lo -le $ac_mid; then
25925 ac_lo= ac_hi=
25926 break
25928 ac_mid=`expr 2 '*' $ac_mid + 1`
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 done
25933 else
25934 $as_echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25937 cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h. */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 $ac_includes_default
25944 #ifndef offsetof
25945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25946 #endif
25947 typedef struct { char x; long y; } ac__type_alignof_;
25949 main ()
25951 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25952 test_array [0] = 0
25955 return 0;
25957 _ACEOF
25958 rm -f conftest.$ac_objext
25959 if { (ac_try="$ac_compile"
25960 case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25963 esac
25964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25965 $as_echo "$ac_try_echo") >&5
25966 (eval "$ac_compile") 2>conftest.er1
25967 ac_status=$?
25968 grep -v '^ *+' conftest.er1 >conftest.err
25969 rm -f conftest.er1
25970 cat conftest.err >&5
25971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } && {
25973 test -z "$ac_c_werror_flag" ||
25974 test ! -s conftest.err
25975 } && test -s conftest.$ac_objext; then
25976 ac_hi=-1 ac_mid=-1
25977 while :; do
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h. */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984 $ac_includes_default
25985 #ifndef offsetof
25986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25987 #endif
25988 typedef struct { char x; long y; } ac__type_alignof_;
25990 main ()
25992 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25993 test_array [0] = 0
25996 return 0;
25998 _ACEOF
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26004 esac
26005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26006 $as_echo "$ac_try_echo") >&5
26007 (eval "$ac_compile") 2>conftest.er1
26008 ac_status=$?
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
26012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && {
26014 test -z "$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 } && test -s conftest.$ac_objext; then
26017 ac_lo=$ac_mid; break
26018 else
26019 $as_echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26022 ac_hi=`expr '(' $ac_mid ')' - 1`
26023 if test $ac_mid -le $ac_hi; then
26024 ac_lo= ac_hi=
26025 break
26027 ac_mid=`expr 2 '*' $ac_mid`
26030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031 done
26032 else
26033 $as_echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ac_lo= ac_hi=
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 # Binary search between lo and hi bounds.
26044 while test "x$ac_lo" != "x$ac_hi"; do
26045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26046 cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h. */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 $ac_includes_default
26053 #ifndef offsetof
26054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26055 #endif
26056 typedef struct { char x; long y; } ac__type_alignof_;
26058 main ()
26060 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26061 test_array [0] = 0
26064 return 0;
26066 _ACEOF
26067 rm -f conftest.$ac_objext
26068 if { (ac_try="$ac_compile"
26069 case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26072 esac
26073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26074 $as_echo "$ac_try_echo") >&5
26075 (eval "$ac_compile") 2>conftest.er1
26076 ac_status=$?
26077 grep -v '^ *+' conftest.er1 >conftest.err
26078 rm -f conftest.er1
26079 cat conftest.err >&5
26080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } && {
26082 test -z "$ac_c_werror_flag" ||
26083 test ! -s conftest.err
26084 } && test -s conftest.$ac_objext; then
26085 ac_hi=$ac_mid
26086 else
26087 $as_echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_lo=`expr '(' $ac_mid ')' + 1`
26093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26094 done
26095 case $ac_lo in
26096 ?*) ac_cv_alignof_long=$ac_lo;;
26097 '') if test "$ac_cv_type_long" = yes; then
26098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26100 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26101 See \`config.log' for more details." >&5
26102 $as_echo "$as_me: error: cannot compute alignment of long
26103 See \`config.log' for more details." >&2;}
26104 { (exit 77); exit 77; }; }; }
26105 else
26106 ac_cv_alignof_long=0
26107 fi ;;
26108 esac
26109 else
26110 cat >conftest.$ac_ext <<_ACEOF
26111 /* confdefs.h. */
26112 _ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 $ac_includes_default
26117 #ifndef offsetof
26118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26119 #endif
26120 typedef struct { char x; long y; } ac__type_alignof_;
26121 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26122 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26123 #include <stdio.h>
26124 #include <stdlib.h>
26126 main ()
26129 FILE *f = fopen ("conftest.val", "w");
26130 if (! f)
26131 return 1;
26132 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26134 long int i = longval ();
26135 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26136 return 1;
26137 fprintf (f, "%ld", i);
26139 else
26141 unsigned long int i = ulongval ();
26142 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26143 return 1;
26144 fprintf (f, "%lu", i);
26146 /* Do not output a trailing newline, as this causes \r\n confusion
26147 on some platforms. */
26148 return ferror (f) || fclose (f) != 0;
26151 return 0;
26153 _ACEOF
26154 rm -f conftest$ac_exeext
26155 if { (ac_try="$ac_link"
26156 case "(($ac_try" in
26157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26158 *) ac_try_echo=$ac_try;;
26159 esac
26160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26161 $as_echo "$ac_try_echo") >&5
26162 (eval "$ac_link") 2>&5
26163 ac_status=$?
26164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26166 { (case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26169 esac
26170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171 $as_echo "$ac_try_echo") >&5
26172 (eval "$ac_try") 2>&5
26173 ac_status=$?
26174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
26176 ac_cv_alignof_long=`cat conftest.val`
26177 else
26178 $as_echo "$as_me: program exited with status $ac_status" >&5
26179 $as_echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ( exit $ac_status )
26183 if test "$ac_cv_type_long" = yes; then
26184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26186 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26187 See \`config.log' for more details." >&5
26188 $as_echo "$as_me: error: cannot compute alignment of long
26189 See \`config.log' for more details." >&2;}
26190 { (exit 77); exit 77; }; }; }
26191 else
26192 ac_cv_alignof_long=0
26195 rm -rf conftest.dSYM
26196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26198 rm -f conftest.val
26200 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26201 $as_echo "$ac_cv_alignof_long" >&6; }
26205 cat >>confdefs.h <<_ACEOF
26206 #define ALIGNOF_LONG $ac_cv_alignof_long
26207 _ACEOF
26210 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26211 # The cast to long int works around a bug in the HP C Compiler,
26212 # see AC_CHECK_SIZEOF for more information.
26213 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26214 $as_echo_n "checking alignment of long long int... " >&6; }
26215 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26216 $as_echo_n "(cached) " >&6
26217 else
26218 if test "$cross_compiling" = yes; then
26219 # Depending upon the size, compute the lo and hi bounds.
26220 cat >conftest.$ac_ext <<_ACEOF
26221 /* confdefs.h. */
26222 _ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h. */
26226 $ac_includes_default
26227 #ifndef offsetof
26228 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26229 #endif
26230 typedef struct { char x; long long int y; } ac__type_alignof_;
26232 main ()
26234 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26235 test_array [0] = 0
26238 return 0;
26240 _ACEOF
26241 rm -f conftest.$ac_objext
26242 if { (ac_try="$ac_compile"
26243 case "(($ac_try" in
26244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26246 esac
26247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26248 $as_echo "$ac_try_echo") >&5
26249 (eval "$ac_compile") 2>conftest.er1
26250 ac_status=$?
26251 grep -v '^ *+' conftest.er1 >conftest.err
26252 rm -f conftest.er1
26253 cat conftest.err >&5
26254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } && {
26256 test -z "$ac_c_werror_flag" ||
26257 test ! -s conftest.err
26258 } && test -s conftest.$ac_objext; then
26259 ac_lo=0 ac_mid=0
26260 while :; do
26261 cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h. */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26267 $ac_includes_default
26268 #ifndef offsetof
26269 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26270 #endif
26271 typedef struct { char x; long long int y; } ac__type_alignof_;
26273 main ()
26275 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26276 test_array [0] = 0
26279 return 0;
26281 _ACEOF
26282 rm -f conftest.$ac_objext
26283 if { (ac_try="$ac_compile"
26284 case "(($ac_try" in
26285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26286 *) ac_try_echo=$ac_try;;
26287 esac
26288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26289 $as_echo "$ac_try_echo") >&5
26290 (eval "$ac_compile") 2>conftest.er1
26291 ac_status=$?
26292 grep -v '^ *+' conftest.er1 >conftest.err
26293 rm -f conftest.er1
26294 cat conftest.err >&5
26295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } && {
26297 test -z "$ac_c_werror_flag" ||
26298 test ! -s conftest.err
26299 } && test -s conftest.$ac_objext; then
26300 ac_hi=$ac_mid; break
26301 else
26302 $as_echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26305 ac_lo=`expr $ac_mid + 1`
26306 if test $ac_lo -le $ac_mid; then
26307 ac_lo= ac_hi=
26308 break
26310 ac_mid=`expr 2 '*' $ac_mid + 1`
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314 done
26315 else
26316 $as_echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26319 cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h. */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 $ac_includes_default
26326 #ifndef offsetof
26327 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26328 #endif
26329 typedef struct { char x; long long int y; } ac__type_alignof_;
26331 main ()
26333 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26334 test_array [0] = 0
26337 return 0;
26339 _ACEOF
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26345 esac
26346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348 (eval "$ac_compile") 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } && {
26355 test -z "$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 } && test -s conftest.$ac_objext; then
26358 ac_hi=-1 ac_mid=-1
26359 while :; do
26360 cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h. */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26366 $ac_includes_default
26367 #ifndef offsetof
26368 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26369 #endif
26370 typedef struct { char x; long long int y; } ac__type_alignof_;
26372 main ()
26374 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26375 test_array [0] = 0
26378 return 0;
26380 _ACEOF
26381 rm -f conftest.$ac_objext
26382 if { (ac_try="$ac_compile"
26383 case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26386 esac
26387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26388 $as_echo "$ac_try_echo") >&5
26389 (eval "$ac_compile") 2>conftest.er1
26390 ac_status=$?
26391 grep -v '^ *+' conftest.er1 >conftest.err
26392 rm -f conftest.er1
26393 cat conftest.err >&5
26394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); } && {
26396 test -z "$ac_c_werror_flag" ||
26397 test ! -s conftest.err
26398 } && test -s conftest.$ac_objext; then
26399 ac_lo=$ac_mid; break
26400 else
26401 $as_echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26404 ac_hi=`expr '(' $ac_mid ')' - 1`
26405 if test $ac_mid -le $ac_hi; then
26406 ac_lo= ac_hi=
26407 break
26409 ac_mid=`expr 2 '*' $ac_mid`
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413 done
26414 else
26415 $as_echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26418 ac_lo= ac_hi=
26421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26425 # Binary search between lo and hi bounds.
26426 while test "x$ac_lo" != "x$ac_hi"; do
26427 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26428 cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h. */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26434 $ac_includes_default
26435 #ifndef offsetof
26436 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26437 #endif
26438 typedef struct { char x; long long int y; } ac__type_alignof_;
26440 main ()
26442 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26443 test_array [0] = 0
26446 return 0;
26448 _ACEOF
26449 rm -f conftest.$ac_objext
26450 if { (ac_try="$ac_compile"
26451 case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26454 esac
26455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26456 $as_echo "$ac_try_echo") >&5
26457 (eval "$ac_compile") 2>conftest.er1
26458 ac_status=$?
26459 grep -v '^ *+' conftest.er1 >conftest.err
26460 rm -f conftest.er1
26461 cat conftest.err >&5
26462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest.$ac_objext; then
26467 ac_hi=$ac_mid
26468 else
26469 $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 ac_lo=`expr '(' $ac_mid ')' + 1`
26475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26476 done
26477 case $ac_lo in
26478 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26479 '') if test "$ac_cv_type_long_long_int" = yes; then
26480 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26482 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26483 See \`config.log' for more details." >&5
26484 $as_echo "$as_me: error: cannot compute alignment of long long int
26485 See \`config.log' for more details." >&2;}
26486 { (exit 77); exit 77; }; }; }
26487 else
26488 ac_cv_alignof_long_long_int=0
26489 fi ;;
26490 esac
26491 else
26492 cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h. */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 $ac_includes_default
26499 #ifndef offsetof
26500 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26501 #endif
26502 typedef struct { char x; long long int y; } ac__type_alignof_;
26503 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26504 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26505 #include <stdio.h>
26506 #include <stdlib.h>
26508 main ()
26511 FILE *f = fopen ("conftest.val", "w");
26512 if (! f)
26513 return 1;
26514 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26516 long int i = longval ();
26517 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26518 return 1;
26519 fprintf (f, "%ld", i);
26521 else
26523 unsigned long int i = ulongval ();
26524 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26525 return 1;
26526 fprintf (f, "%lu", i);
26528 /* Do not output a trailing newline, as this causes \r\n confusion
26529 on some platforms. */
26530 return ferror (f) || fclose (f) != 0;
26533 return 0;
26535 _ACEOF
26536 rm -f conftest$ac_exeext
26537 if { (ac_try="$ac_link"
26538 case "(($ac_try" in
26539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540 *) ac_try_echo=$ac_try;;
26541 esac
26542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26543 $as_echo "$ac_try_echo") >&5
26544 (eval "$ac_link") 2>&5
26545 ac_status=$?
26546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26548 { (case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26551 esac
26552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26553 $as_echo "$ac_try_echo") >&5
26554 (eval "$ac_try") 2>&5
26555 ac_status=$?
26556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_alignof_long_long_int=`cat conftest.val`
26559 else
26560 $as_echo "$as_me: program exited with status $ac_status" >&5
26561 $as_echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ( exit $ac_status )
26565 if test "$ac_cv_type_long_long_int" = yes; then
26566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26568 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26569 See \`config.log' for more details." >&5
26570 $as_echo "$as_me: error: cannot compute alignment of long long int
26571 See \`config.log' for more details." >&2;}
26572 { (exit 77); exit 77; }; }; }
26573 else
26574 ac_cv_alignof_long_long_int=0
26577 rm -rf conftest.dSYM
26578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26580 rm -f conftest.val
26582 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26583 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26587 cat >>confdefs.h <<_ACEOF
26588 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26589 _ACEOF
26593 # The cast to long int works around a bug in the HP C Compiler,
26594 # see AC_CHECK_SIZEOF for more information.
26595 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26596 $as_echo_n "checking alignment of double... " >&6; }
26597 if test "${ac_cv_alignof_double+set}" = set; then
26598 $as_echo_n "(cached) " >&6
26599 else
26600 if test "$cross_compiling" = yes; then
26601 # Depending upon the size, compute the lo and hi bounds.
26602 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h. */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26608 $ac_includes_default
26609 #ifndef offsetof
26610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26611 #endif
26612 typedef struct { char x; double y; } ac__type_alignof_;
26614 main ()
26616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26617 test_array [0] = 0
26620 return 0;
26622 _ACEOF
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627 *) ac_try_echo=$ac_try;;
26628 esac
26629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26630 $as_echo "$ac_try_echo") >&5
26631 (eval "$ac_compile") 2>conftest.er1
26632 ac_status=$?
26633 grep -v '^ *+' conftest.er1 >conftest.err
26634 rm -f conftest.er1
26635 cat conftest.err >&5
26636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest.$ac_objext; then
26641 ac_lo=0 ac_mid=0
26642 while :; do
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h. */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649 $ac_includes_default
26650 #ifndef offsetof
26651 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26652 #endif
26653 typedef struct { char x; double y; } ac__type_alignof_;
26655 main ()
26657 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26658 test_array [0] = 0
26661 return 0;
26663 _ACEOF
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26669 esac
26670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26671 $as_echo "$ac_try_echo") >&5
26672 (eval "$ac_compile") 2>conftest.er1
26673 ac_status=$?
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
26677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } && {
26679 test -z "$ac_c_werror_flag" ||
26680 test ! -s conftest.err
26681 } && test -s conftest.$ac_objext; then
26682 ac_hi=$ac_mid; break
26683 else
26684 $as_echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26687 ac_lo=`expr $ac_mid + 1`
26688 if test $ac_lo -le $ac_mid; then
26689 ac_lo= ac_hi=
26690 break
26692 ac_mid=`expr 2 '*' $ac_mid + 1`
26695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696 done
26697 else
26698 $as_echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h. */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 $ac_includes_default
26708 #ifndef offsetof
26709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26710 #endif
26711 typedef struct { char x; double y; } ac__type_alignof_;
26713 main ()
26715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26716 test_array [0] = 0
26719 return 0;
26721 _ACEOF
26722 rm -f conftest.$ac_objext
26723 if { (ac_try="$ac_compile"
26724 case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26727 esac
26728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26729 $as_echo "$ac_try_echo") >&5
26730 (eval "$ac_compile") 2>conftest.er1
26731 ac_status=$?
26732 grep -v '^ *+' conftest.er1 >conftest.err
26733 rm -f conftest.er1
26734 cat conftest.err >&5
26735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } && {
26737 test -z "$ac_c_werror_flag" ||
26738 test ! -s conftest.err
26739 } && test -s conftest.$ac_objext; then
26740 ac_hi=-1 ac_mid=-1
26741 while :; do
26742 cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h. */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 $ac_includes_default
26749 #ifndef offsetof
26750 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26751 #endif
26752 typedef struct { char x; double y; } ac__type_alignof_;
26754 main ()
26756 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26757 test_array [0] = 0
26760 return 0;
26762 _ACEOF
26763 rm -f conftest.$ac_objext
26764 if { (ac_try="$ac_compile"
26765 case "(($ac_try" in
26766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767 *) ac_try_echo=$ac_try;;
26768 esac
26769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26770 $as_echo "$ac_try_echo") >&5
26771 (eval "$ac_compile") 2>conftest.er1
26772 ac_status=$?
26773 grep -v '^ *+' conftest.er1 >conftest.err
26774 rm -f conftest.er1
26775 cat conftest.err >&5
26776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } && {
26778 test -z "$ac_c_werror_flag" ||
26779 test ! -s conftest.err
26780 } && test -s conftest.$ac_objext; then
26781 ac_lo=$ac_mid; break
26782 else
26783 $as_echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26786 ac_hi=`expr '(' $ac_mid ')' - 1`
26787 if test $ac_mid -le $ac_hi; then
26788 ac_lo= ac_hi=
26789 break
26791 ac_mid=`expr 2 '*' $ac_mid`
26794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795 done
26796 else
26797 $as_echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26800 ac_lo= ac_hi=
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 # Binary search between lo and hi bounds.
26808 while test "x$ac_lo" != "x$ac_hi"; do
26809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h. */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 $ac_includes_default
26817 #ifndef offsetof
26818 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26819 #endif
26820 typedef struct { char x; double y; } ac__type_alignof_;
26822 main ()
26824 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26825 test_array [0] = 0
26828 return 0;
26830 _ACEOF
26831 rm -f conftest.$ac_objext
26832 if { (ac_try="$ac_compile"
26833 case "(($ac_try" in
26834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835 *) ac_try_echo=$ac_try;;
26836 esac
26837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26838 $as_echo "$ac_try_echo") >&5
26839 (eval "$ac_compile") 2>conftest.er1
26840 ac_status=$?
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
26844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } && {
26846 test -z "$ac_c_werror_flag" ||
26847 test ! -s conftest.err
26848 } && test -s conftest.$ac_objext; then
26849 ac_hi=$ac_mid
26850 else
26851 $as_echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26854 ac_lo=`expr '(' $ac_mid ')' + 1`
26857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26858 done
26859 case $ac_lo in
26860 ?*) ac_cv_alignof_double=$ac_lo;;
26861 '') if test "$ac_cv_type_double" = yes; then
26862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26864 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26865 See \`config.log' for more details." >&5
26866 $as_echo "$as_me: error: cannot compute alignment of double
26867 See \`config.log' for more details." >&2;}
26868 { (exit 77); exit 77; }; }; }
26869 else
26870 ac_cv_alignof_double=0
26871 fi ;;
26872 esac
26873 else
26874 cat >conftest.$ac_ext <<_ACEOF
26875 /* confdefs.h. */
26876 _ACEOF
26877 cat confdefs.h >>conftest.$ac_ext
26878 cat >>conftest.$ac_ext <<_ACEOF
26879 /* end confdefs.h. */
26880 $ac_includes_default
26881 #ifndef offsetof
26882 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26883 #endif
26884 typedef struct { char x; double y; } ac__type_alignof_;
26885 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26886 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26887 #include <stdio.h>
26888 #include <stdlib.h>
26890 main ()
26893 FILE *f = fopen ("conftest.val", "w");
26894 if (! f)
26895 return 1;
26896 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26898 long int i = longval ();
26899 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26900 return 1;
26901 fprintf (f, "%ld", i);
26903 else
26905 unsigned long int i = ulongval ();
26906 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26907 return 1;
26908 fprintf (f, "%lu", i);
26910 /* Do not output a trailing newline, as this causes \r\n confusion
26911 on some platforms. */
26912 return ferror (f) || fclose (f) != 0;
26915 return 0;
26917 _ACEOF
26918 rm -f conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26923 esac
26924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26925 $as_echo "$ac_try_echo") >&5
26926 (eval "$ac_link") 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26930 { (case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933 esac
26934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26935 $as_echo "$ac_try_echo") >&5
26936 (eval "$ac_try") 2>&5
26937 ac_status=$?
26938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; }; then
26940 ac_cv_alignof_double=`cat conftest.val`
26941 else
26942 $as_echo "$as_me: program exited with status $ac_status" >&5
26943 $as_echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ( exit $ac_status )
26947 if test "$ac_cv_type_double" = yes; then
26948 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26950 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26951 See \`config.log' for more details." >&5
26952 $as_echo "$as_me: error: cannot compute alignment of double
26953 See \`config.log' for more details." >&2;}
26954 { (exit 77); exit 77; }; }; }
26955 else
26956 ac_cv_alignof_double=0
26959 rm -rf conftest.dSYM
26960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26962 rm -f conftest.val
26964 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26965 $as_echo "$ac_cv_alignof_double" >&6; }
26969 cat >>confdefs.h <<_ACEOF
26970 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26971 _ACEOF
26975 # Compute maximum alignment of any basic type.
26976 # We assume long's alignment is at least as strong as char, short, or int;
26977 # but we must check long long (if it exists) and double.
26979 MAX_ALIGNOF=$ac_cv_alignof_long
26980 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26981 MAX_ALIGNOF=$ac_cv_alignof_double
26983 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26984 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26987 cat >>confdefs.h <<_ACEOF
26988 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26989 _ACEOF
26993 # Some platforms predefine the types int8, int16, etc. Only check
26994 # a (hopefully) representative subset.
26995 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26996 $as_echo_n "checking for int8... " >&6; }
26997 if test "${ac_cv_type_int8+set}" = set; then
26998 $as_echo_n "(cached) " >&6
26999 else
27000 ac_cv_type_int8=no
27001 cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h. */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27007 #include <stdio.h>
27008 #ifdef HAVE_SUPPORTDEFS_H
27009 #include <SupportDefs.h>
27010 #endif
27013 main ()
27015 if (sizeof (int8))
27016 return 0;
27018 return 0;
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026 esac
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029 (eval "$ac_compile") 2>conftest.er1
27030 ac_status=$?
27031 grep -v '^ *+' conftest.er1 >conftest.err
27032 rm -f conftest.er1
27033 cat conftest.err >&5
27034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } && {
27036 test -z "$ac_c_werror_flag" ||
27037 test ! -s conftest.err
27038 } && test -s conftest.$ac_objext; then
27039 cat >conftest.$ac_ext <<_ACEOF
27040 /* confdefs.h. */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h. */
27045 #include <stdio.h>
27046 #ifdef HAVE_SUPPORTDEFS_H
27047 #include <SupportDefs.h>
27048 #endif
27051 main ()
27053 if (sizeof ((int8)))
27054 return 0;
27056 return 0;
27058 _ACEOF
27059 rm -f conftest.$ac_objext
27060 if { (ac_try="$ac_compile"
27061 case "(($ac_try" in
27062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27064 esac
27065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27066 $as_echo "$ac_try_echo") >&5
27067 (eval "$ac_compile") 2>conftest.er1
27068 ac_status=$?
27069 grep -v '^ *+' conftest.er1 >conftest.err
27070 rm -f conftest.er1
27071 cat conftest.err >&5
27072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } && {
27074 test -z "$ac_c_werror_flag" ||
27075 test ! -s conftest.err
27076 } && test -s conftest.$ac_objext; then
27078 else
27079 $as_echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ac_cv_type_int8=yes
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27086 else
27087 $as_echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27096 $as_echo "$ac_cv_type_int8" >&6; }
27097 if test "x$ac_cv_type_int8" = x""yes; then
27099 cat >>confdefs.h <<_ACEOF
27100 #define HAVE_INT8 1
27101 _ACEOF
27105 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27106 $as_echo_n "checking for uint8... " >&6; }
27107 if test "${ac_cv_type_uint8+set}" = set; then
27108 $as_echo_n "(cached) " >&6
27109 else
27110 ac_cv_type_uint8=no
27111 cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h. */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27117 #include <stdio.h>
27118 #ifdef HAVE_SUPPORTDEFS_H
27119 #include <SupportDefs.h>
27120 #endif
27123 main ()
27125 if (sizeof (uint8))
27126 return 0;
27128 return 0;
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (ac_try="$ac_compile"
27133 case "(($ac_try" in
27134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135 *) ac_try_echo=$ac_try;;
27136 esac
27137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27138 $as_echo "$ac_try_echo") >&5
27139 (eval "$ac_compile") 2>conftest.er1
27140 ac_status=$?
27141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
27144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest.$ac_objext; then
27149 cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h. */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h. */
27155 #include <stdio.h>
27156 #ifdef HAVE_SUPPORTDEFS_H
27157 #include <SupportDefs.h>
27158 #endif
27161 main ()
27163 if (sizeof ((uint8)))
27164 return 0;
27166 return 0;
27168 _ACEOF
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27174 esac
27175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27176 $as_echo "$ac_try_echo") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27178 ac_status=$?
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
27182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27188 else
27189 $as_echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_cv_type_uint8=yes
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 else
27197 $as_echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27206 $as_echo "$ac_cv_type_uint8" >&6; }
27207 if test "x$ac_cv_type_uint8" = x""yes; then
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_UINT8 1
27211 _ACEOF
27215 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27216 $as_echo_n "checking for int64... " >&6; }
27217 if test "${ac_cv_type_int64+set}" = set; then
27218 $as_echo_n "(cached) " >&6
27219 else
27220 ac_cv_type_int64=no
27221 cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h. */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27227 #include <stdio.h>
27228 #ifdef HAVE_SUPPORTDEFS_H
27229 #include <SupportDefs.h>
27230 #endif
27233 main ()
27235 if (sizeof (int64))
27236 return 0;
27238 return 0;
27240 _ACEOF
27241 rm -f conftest.$ac_objext
27242 if { (ac_try="$ac_compile"
27243 case "(($ac_try" in
27244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245 *) ac_try_echo=$ac_try;;
27246 esac
27247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249 (eval "$ac_compile") 2>conftest.er1
27250 ac_status=$?
27251 grep -v '^ *+' conftest.er1 >conftest.err
27252 rm -f conftest.er1
27253 cat conftest.err >&5
27254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } && {
27256 test -z "$ac_c_werror_flag" ||
27257 test ! -s conftest.err
27258 } && test -s conftest.$ac_objext; then
27259 cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h. */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27265 #include <stdio.h>
27266 #ifdef HAVE_SUPPORTDEFS_H
27267 #include <SupportDefs.h>
27268 #endif
27271 main ()
27273 if (sizeof ((int64)))
27274 return 0;
27276 return 0;
27278 _ACEOF
27279 rm -f conftest.$ac_objext
27280 if { (ac_try="$ac_compile"
27281 case "(($ac_try" in
27282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27283 *) ac_try_echo=$ac_try;;
27284 esac
27285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27286 $as_echo "$ac_try_echo") >&5
27287 (eval "$ac_compile") 2>conftest.er1
27288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest.$ac_objext; then
27298 else
27299 $as_echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27302 ac_cv_type_int64=yes
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306 else
27307 $as_echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27316 $as_echo "$ac_cv_type_int64" >&6; }
27317 if test "x$ac_cv_type_int64" = x""yes; then
27319 cat >>confdefs.h <<_ACEOF
27320 #define HAVE_INT64 1
27321 _ACEOF
27325 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27326 $as_echo_n "checking for uint64... " >&6; }
27327 if test "${ac_cv_type_uint64+set}" = set; then
27328 $as_echo_n "(cached) " >&6
27329 else
27330 ac_cv_type_uint64=no
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h. */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <stdio.h>
27338 #ifdef HAVE_SUPPORTDEFS_H
27339 #include <SupportDefs.h>
27340 #endif
27343 main ()
27345 if (sizeof (uint64))
27346 return 0;
27348 return 0;
27350 _ACEOF
27351 rm -f conftest.$ac_objext
27352 if { (ac_try="$ac_compile"
27353 case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27356 esac
27357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27358 $as_echo "$ac_try_echo") >&5
27359 (eval "$ac_compile") 2>conftest.er1
27360 ac_status=$?
27361 grep -v '^ *+' conftest.er1 >conftest.err
27362 rm -f conftest.er1
27363 cat conftest.err >&5
27364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && {
27366 test -z "$ac_c_werror_flag" ||
27367 test ! -s conftest.err
27368 } && test -s conftest.$ac_objext; then
27369 cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h. */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h. */
27375 #include <stdio.h>
27376 #ifdef HAVE_SUPPORTDEFS_H
27377 #include <SupportDefs.h>
27378 #endif
27381 main ()
27383 if (sizeof ((uint64)))
27384 return 0;
27386 return 0;
27388 _ACEOF
27389 rm -f conftest.$ac_objext
27390 if { (ac_try="$ac_compile"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394 esac
27395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396 $as_echo "$ac_try_echo") >&5
27397 (eval "$ac_compile") 2>conftest.er1
27398 ac_status=$?
27399 grep -v '^ *+' conftest.er1 >conftest.err
27400 rm -f conftest.er1
27401 cat conftest.err >&5
27402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } && {
27404 test -z "$ac_c_werror_flag" ||
27405 test ! -s conftest.err
27406 } && test -s conftest.$ac_objext; then
27408 else
27409 $as_echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_cv_type_uint64=yes
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 else
27417 $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27425 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27426 $as_echo "$ac_cv_type_uint64" >&6; }
27427 if test "x$ac_cv_type_uint64" = x""yes; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_UINT64 1
27431 _ACEOF
27437 # We also check for sig_atomic_t, which *should* be defined per ANSI
27438 # C, but is missing on some old platforms.
27439 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27440 $as_echo_n "checking for sig_atomic_t... " >&6; }
27441 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27442 $as_echo_n "(cached) " >&6
27443 else
27444 ac_cv_type_sig_atomic_t=no
27445 cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h. */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 #include <signal.h>
27454 main ()
27456 if (sizeof (sig_atomic_t))
27457 return 0;
27459 return 0;
27461 _ACEOF
27462 rm -f conftest.$ac_objext
27463 if { (ac_try="$ac_compile"
27464 case "(($ac_try" in
27465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466 *) ac_try_echo=$ac_try;;
27467 esac
27468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27469 $as_echo "$ac_try_echo") >&5
27470 (eval "$ac_compile") 2>conftest.er1
27471 ac_status=$?
27472 grep -v '^ *+' conftest.er1 >conftest.err
27473 rm -f conftest.er1
27474 cat conftest.err >&5
27475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } && {
27477 test -z "$ac_c_werror_flag" ||
27478 test ! -s conftest.err
27479 } && test -s conftest.$ac_objext; then
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h. */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 #include <signal.h>
27489 main ()
27491 if (sizeof ((sig_atomic_t)))
27492 return 0;
27494 return 0;
27496 _ACEOF
27497 rm -f conftest.$ac_objext
27498 if { (ac_try="$ac_compile"
27499 case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27502 esac
27503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27504 $as_echo "$ac_try_echo") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27506 ac_status=$?
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
27510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_c_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest.$ac_objext; then
27516 else
27517 $as_echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27520 ac_cv_type_sig_atomic_t=yes
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524 else
27525 $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27534 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27535 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27537 cat >>confdefs.h <<_ACEOF
27538 #define HAVE_SIG_ATOMIC_T 1
27539 _ACEOF
27546 if test "$PORTNAME" != "win32"
27547 then
27548 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27549 $as_echo_n "checking for POSIX signal interface... " >&6; }
27550 if test "${pgac_cv_func_posix_signals+set}" = set; then
27551 $as_echo_n "(cached) " >&6
27552 else
27553 cat >conftest.$ac_ext <<_ACEOF
27554 /* confdefs.h. */
27555 _ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h. */
27559 #include <signal.h>
27562 main ()
27564 struct sigaction act, oact;
27565 sigemptyset(&act.sa_mask);
27566 act.sa_flags = SA_RESTART;
27567 sigaction(0, &act, &oact);
27569 return 0;
27571 _ACEOF
27572 rm -f conftest.$ac_objext conftest$ac_exeext
27573 if { (ac_try="$ac_link"
27574 case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27577 esac
27578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27579 $as_echo "$ac_try_echo") >&5
27580 (eval "$ac_link") 2>conftest.er1
27581 ac_status=$?
27582 grep -v '^ *+' conftest.er1 >conftest.err
27583 rm -f conftest.er1
27584 cat conftest.err >&5
27585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); } && {
27587 test -z "$ac_c_werror_flag" ||
27588 test ! -s conftest.err
27589 } && test -s conftest$ac_exeext && {
27590 test "$cross_compiling" = yes ||
27591 $as_test_x conftest$ac_exeext
27592 }; then
27593 pgac_cv_func_posix_signals=yes
27594 else
27595 $as_echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27598 pgac_cv_func_posix_signals=no
27601 rm -rf conftest.dSYM
27602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27603 conftest$ac_exeext conftest.$ac_ext
27605 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27606 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27607 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27609 cat >>confdefs.h <<\_ACEOF
27610 #define HAVE_POSIX_SIGNALS /**/
27611 _ACEOF
27614 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27616 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27617 { { $as_echo "$as_me:$LINENO: error:
27618 Thread-safety requires POSIX signals, which are not supported by this
27619 operating system; use --disable-thread-safety to disable thread safety." >&5
27620 $as_echo "$as_me: error:
27621 Thread-safety requires POSIX signals, which are not supported by this
27622 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27623 { (exit 1); exit 1; }; }
27627 # SunOS doesn't handle negative byte comparisons properly with +/- return
27628 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27629 $as_echo_n "checking for working memcmp... " >&6; }
27630 if test "${ac_cv_func_memcmp_working+set}" = set; then
27631 $as_echo_n "(cached) " >&6
27632 else
27633 if test "$cross_compiling" = yes; then
27634 ac_cv_func_memcmp_working=no
27635 else
27636 cat >conftest.$ac_ext <<_ACEOF
27637 /* confdefs.h. */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27642 $ac_includes_default
27644 main ()
27647 /* Some versions of memcmp are not 8-bit clean. */
27648 char c0 = '\100', c1 = '\200', c2 = '\201';
27649 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27650 return 1;
27652 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27653 or more and with at least one buffer not starting on a 4-byte boundary.
27654 William Lewis provided this test program. */
27656 char foo[21];
27657 char bar[21];
27658 int i;
27659 for (i = 0; i < 4; i++)
27661 char *a = foo + i;
27662 char *b = bar + i;
27663 strcpy (a, "--------01111111");
27664 strcpy (b, "--------10000000");
27665 if (memcmp (a, b, 16) >= 0)
27666 return 1;
27668 return 0;
27672 return 0;
27674 _ACEOF
27675 rm -f conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680 esac
27681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27682 $as_echo "$ac_try_echo") >&5
27683 (eval "$ac_link") 2>&5
27684 ac_status=$?
27685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27687 { (case "(($ac_try" in
27688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689 *) ac_try_echo=$ac_try;;
27690 esac
27691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27692 $as_echo "$ac_try_echo") >&5
27693 (eval "$ac_try") 2>&5
27694 ac_status=$?
27695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 ac_cv_func_memcmp_working=yes
27698 else
27699 $as_echo "$as_me: program exited with status $ac_status" >&5
27700 $as_echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27703 ( exit $ac_status )
27704 ac_cv_func_memcmp_working=no
27706 rm -rf conftest.dSYM
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27712 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27713 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27714 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27715 *" memcmp.$ac_objext "* ) ;;
27716 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27718 esac
27723 # Select semaphore implementation type.
27724 if test "$PORTNAME" != "win32"; then
27725 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27727 cat >>confdefs.h <<\_ACEOF
27728 #define USE_NAMED_POSIX_SEMAPHORES 1
27729 _ACEOF
27731 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27732 else
27733 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27735 cat >>confdefs.h <<\_ACEOF
27736 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27737 _ACEOF
27739 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27740 else
27742 cat >>confdefs.h <<\_ACEOF
27743 #define USE_SYSV_SEMAPHORES 1
27744 _ACEOF
27746 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27749 else
27751 cat >>confdefs.h <<\_ACEOF
27752 #define USE_WIN32_SEMAPHORES 1
27753 _ACEOF
27755 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27759 # Select shared-memory implementation type.
27760 if test "$PORTNAME" != "win32"; then
27762 cat >>confdefs.h <<\_ACEOF
27763 #define USE_SYSV_SHARED_MEMORY 1
27764 _ACEOF
27766 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27767 else
27769 cat >>confdefs.h <<\_ACEOF
27770 #define USE_WIN32_SHARED_MEMORY 1
27771 _ACEOF
27773 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27776 # If not set in template file, set bytes to use libc memset()
27777 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27778 MEMSET_LOOP_LIMIT=1024
27781 cat >>confdefs.h <<_ACEOF
27782 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27783 _ACEOF
27787 if test "$enable_nls" = yes ; then
27789 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27790 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27791 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27792 $as_echo_n "(cached) " >&6
27793 else
27794 ac_func_search_save_LIBS=$LIBS
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h. */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27802 /* Override any GCC internal prototype to avoid an error.
27803 Use char because int might match the return type of a GCC
27804 builtin and then its argument prototype would still apply. */
27805 #ifdef __cplusplus
27806 extern "C"
27807 #endif
27808 char bind_textdomain_codeset ();
27810 main ()
27812 return bind_textdomain_codeset ();
27814 return 0;
27816 _ACEOF
27817 for ac_lib in '' intl; do
27818 if test -z "$ac_lib"; then
27819 ac_res="none required"
27820 else
27821 ac_res=-l$ac_lib
27822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27824 rm -f conftest.$ac_objext conftest$ac_exeext
27825 if { (ac_try="$ac_link"
27826 case "(($ac_try" in
27827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27828 *) ac_try_echo=$ac_try;;
27829 esac
27830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27831 $as_echo "$ac_try_echo") >&5
27832 (eval "$ac_link") 2>conftest.er1
27833 ac_status=$?
27834 grep -v '^ *+' conftest.er1 >conftest.err
27835 rm -f conftest.er1
27836 cat conftest.err >&5
27837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); } && {
27839 test -z "$ac_c_werror_flag" ||
27840 test ! -s conftest.err
27841 } && test -s conftest$ac_exeext && {
27842 test "$cross_compiling" = yes ||
27843 $as_test_x conftest$ac_exeext
27844 }; then
27845 ac_cv_search_bind_textdomain_codeset=$ac_res
27846 else
27847 $as_echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27853 rm -rf conftest.dSYM
27854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27855 conftest$ac_exeext
27856 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27857 break
27859 done
27860 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27862 else
27863 ac_cv_search_bind_textdomain_codeset=no
27865 rm conftest.$ac_ext
27866 LIBS=$ac_func_search_save_LIBS
27868 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27869 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27870 ac_res=$ac_cv_search_bind_textdomain_codeset
27871 if test "$ac_res" != no; then
27872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27874 else
27875 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27876 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27877 { (exit 1); exit 1; }; }
27880 if test "${ac_cv_header_libintl_h+set}" = set; then
27881 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27882 $as_echo_n "checking for libintl.h... " >&6; }
27883 if test "${ac_cv_header_libintl_h+set}" = set; then
27884 $as_echo_n "(cached) " >&6
27886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27887 $as_echo "$ac_cv_header_libintl_h" >&6; }
27888 else
27889 # Is the header compilable?
27890 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27891 $as_echo_n "checking libintl.h usability... " >&6; }
27892 cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h. */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 $ac_includes_default
27899 #include <libintl.h>
27900 _ACEOF
27901 rm -f conftest.$ac_objext
27902 if { (ac_try="$ac_compile"
27903 case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27906 esac
27907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27908 $as_echo "$ac_try_echo") >&5
27909 (eval "$ac_compile") 2>conftest.er1
27910 ac_status=$?
27911 grep -v '^ *+' conftest.er1 >conftest.err
27912 rm -f conftest.er1
27913 cat conftest.err >&5
27914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } && {
27916 test -z "$ac_c_werror_flag" ||
27917 test ! -s conftest.err
27918 } && test -s conftest.$ac_objext; then
27919 ac_header_compiler=yes
27920 else
27921 $as_echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27924 ac_header_compiler=no
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27929 $as_echo "$ac_header_compiler" >&6; }
27931 # Is the header present?
27932 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27933 $as_echo_n "checking libintl.h presence... " >&6; }
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h. */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 #include <libintl.h>
27941 _ACEOF
27942 if { (ac_try="$ac_cpp conftest.$ac_ext"
27943 case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27946 esac
27947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27948 $as_echo "$ac_try_echo") >&5
27949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27950 ac_status=$?
27951 grep -v '^ *+' conftest.er1 >conftest.err
27952 rm -f conftest.er1
27953 cat conftest.err >&5
27954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } >/dev/null && {
27956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27957 test ! -s conftest.err
27958 }; then
27959 ac_header_preproc=yes
27960 else
27961 $as_echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27964 ac_header_preproc=no
27967 rm -f conftest.err conftest.$ac_ext
27968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27969 $as_echo "$ac_header_preproc" >&6; }
27971 # So? What about this header?
27972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27973 yes:no: )
27974 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27975 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27976 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27977 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27978 ac_header_preproc=yes
27980 no:yes:* )
27981 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27982 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27983 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27984 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27985 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27986 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27987 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27988 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27989 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27990 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27991 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27992 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27993 ( cat <<\_ASBOX
27994 ## ---------------------------------------- ##
27995 ## Report this to pgsql-bugs@postgresql.org ##
27996 ## ---------------------------------------- ##
27997 _ASBOX
27998 ) | sed "s/^/$as_me: WARNING: /" >&2
28000 esac
28001 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28002 $as_echo_n "checking for libintl.h... " >&6; }
28003 if test "${ac_cv_header_libintl_h+set}" = set; then
28004 $as_echo_n "(cached) " >&6
28005 else
28006 ac_cv_header_libintl_h=$ac_header_preproc
28008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28009 $as_echo "$ac_cv_header_libintl_h" >&6; }
28012 if test "x$ac_cv_header_libintl_h" = x""yes; then
28014 else
28015 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28016 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28017 { (exit 1); exit 1; }; }
28021 for ac_prog in msgfmt
28023 # Extract the first word of "$ac_prog", so it can be a program name with args.
28024 set dummy $ac_prog; ac_word=$2
28025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28026 $as_echo_n "checking for $ac_word... " >&6; }
28027 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28028 $as_echo_n "(cached) " >&6
28029 else
28030 if test -n "$MSGFMT"; then
28031 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28032 else
28033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28034 for as_dir in $PATH
28036 IFS=$as_save_IFS
28037 test -z "$as_dir" && as_dir=.
28038 for ac_exec_ext in '' $ac_executable_extensions; do
28039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28040 ac_cv_prog_MSGFMT="$ac_prog"
28041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28042 break 2
28044 done
28045 done
28046 IFS=$as_save_IFS
28050 MSGFMT=$ac_cv_prog_MSGFMT
28051 if test -n "$MSGFMT"; then
28052 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28053 $as_echo "$MSGFMT" >&6; }
28054 else
28055 { $as_echo "$as_me:$LINENO: result: no" >&5
28056 $as_echo "no" >&6; }
28060 test -n "$MSGFMT" && break
28061 done
28063 if test -z "$MSGFMT"; then
28064 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28065 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28066 { (exit 1); exit 1; }; }
28068 for ac_prog in msgmerge
28070 # Extract the first word of "$ac_prog", so it can be a program name with args.
28071 set dummy $ac_prog; ac_word=$2
28072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28073 $as_echo_n "checking for $ac_word... " >&6; }
28074 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28075 $as_echo_n "(cached) " >&6
28076 else
28077 if test -n "$MSGMERGE"; then
28078 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28079 else
28080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28081 for as_dir in $PATH
28083 IFS=$as_save_IFS
28084 test -z "$as_dir" && as_dir=.
28085 for ac_exec_ext in '' $ac_executable_extensions; do
28086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28087 ac_cv_prog_MSGMERGE="$ac_prog"
28088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28089 break 2
28091 done
28092 done
28093 IFS=$as_save_IFS
28097 MSGMERGE=$ac_cv_prog_MSGMERGE
28098 if test -n "$MSGMERGE"; then
28099 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28100 $as_echo "$MSGMERGE" >&6; }
28101 else
28102 { $as_echo "$as_me:$LINENO: result: no" >&5
28103 $as_echo "no" >&6; }
28107 test -n "$MSGMERGE" && break
28108 done
28110 for ac_prog in xgettext
28112 # Extract the first word of "$ac_prog", so it can be a program name with args.
28113 set dummy $ac_prog; ac_word=$2
28114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28115 $as_echo_n "checking for $ac_word... " >&6; }
28116 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28117 $as_echo_n "(cached) " >&6
28118 else
28119 if test -n "$XGETTEXT"; then
28120 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28121 else
28122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28123 for as_dir in $PATH
28125 IFS=$as_save_IFS
28126 test -z "$as_dir" && as_dir=.
28127 for ac_exec_ext in '' $ac_executable_extensions; do
28128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28129 ac_cv_prog_XGETTEXT="$ac_prog"
28130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28131 break 2
28133 done
28134 done
28135 IFS=$as_save_IFS
28139 XGETTEXT=$ac_cv_prog_XGETTEXT
28140 if test -n "$XGETTEXT"; then
28141 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28142 $as_echo "$XGETTEXT" >&6; }
28143 else
28144 { $as_echo "$as_me:$LINENO: result: no" >&5
28145 $as_echo "no" >&6; }
28149 test -n "$XGETTEXT" && break
28150 done
28155 # Check for Tcl configuration script tclConfig.sh
28156 if test "$with_tcl" = yes; then
28157 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28159 # Extract the first word of "$ac_prog", so it can be a program name with args.
28160 set dummy $ac_prog; ac_word=$2
28161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28162 $as_echo_n "checking for $ac_word... " >&6; }
28163 if test "${ac_cv_path_TCLSH+set}" = set; then
28164 $as_echo_n "(cached) " >&6
28165 else
28166 case $TCLSH in
28167 [\\/]* | ?:[\\/]*)
28168 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28172 for as_dir in $PATH
28174 IFS=$as_save_IFS
28175 test -z "$as_dir" && as_dir=.
28176 for ac_exec_ext in '' $ac_executable_extensions; do
28177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28178 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28180 break 2
28182 done
28183 done
28184 IFS=$as_save_IFS
28187 esac
28189 TCLSH=$ac_cv_path_TCLSH
28190 if test -n "$TCLSH"; then
28191 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28192 $as_echo "$TCLSH" >&6; }
28193 else
28194 { $as_echo "$as_me:$LINENO: result: no" >&5
28195 $as_echo "no" >&6; }
28199 test -n "$TCLSH" && break
28200 done
28202 if test x"$TCLSH" = x""; then
28203 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28204 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28205 { (exit 1); exit 1; }; }
28208 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28209 $as_echo_n "checking for tclConfig.sh... " >&6; }
28210 # Let user override test
28211 if test -z "$TCL_CONFIG_SH"; then
28212 pgac_test_dirs="$with_tclconfig"
28214 set X $pgac_test_dirs; shift
28215 if test $# -eq 0; then
28216 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28217 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28218 { (exit 1); exit 1; }; }
28219 set X `echo 'puts $auto_path' | $TCLSH`; shift
28222 for pgac_dir do
28223 if test -r "$pgac_dir/tclConfig.sh"; then
28224 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28225 break
28227 done
28230 if test -z "$TCL_CONFIG_SH"; then
28231 { $as_echo "$as_me:$LINENO: result: no" >&5
28232 $as_echo "no" >&6; }
28233 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28234 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28235 { (exit 1); exit 1; }; }
28236 else
28237 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28238 $as_echo "$TCL_CONFIG_SH" >&6; }
28243 . "$TCL_CONFIG_SH"
28244 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28245 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28246 eval TCL_LIBS=\"$TCL_LIBS\"
28247 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28248 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28250 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28251 ac_save_CPPFLAGS=$CPPFLAGS
28252 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28253 if test "${ac_cv_header_tcl_h+set}" = set; then
28254 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28255 $as_echo_n "checking for tcl.h... " >&6; }
28256 if test "${ac_cv_header_tcl_h+set}" = set; then
28257 $as_echo_n "(cached) " >&6
28259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28260 $as_echo "$ac_cv_header_tcl_h" >&6; }
28261 else
28262 # Is the header compilable?
28263 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28264 $as_echo_n "checking tcl.h usability... " >&6; }
28265 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h. */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28271 $ac_includes_default
28272 #include <tcl.h>
28273 _ACEOF
28274 rm -f conftest.$ac_objext
28275 if { (ac_try="$ac_compile"
28276 case "(($ac_try" in
28277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28278 *) ac_try_echo=$ac_try;;
28279 esac
28280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28281 $as_echo "$ac_try_echo") >&5
28282 (eval "$ac_compile") 2>conftest.er1
28283 ac_status=$?
28284 grep -v '^ *+' conftest.er1 >conftest.err
28285 rm -f conftest.er1
28286 cat conftest.err >&5
28287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); } && {
28289 test -z "$ac_c_werror_flag" ||
28290 test ! -s conftest.err
28291 } && test -s conftest.$ac_objext; then
28292 ac_header_compiler=yes
28293 else
28294 $as_echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 ac_header_compiler=no
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28302 $as_echo "$ac_header_compiler" >&6; }
28304 # Is the header present?
28305 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28306 $as_echo_n "checking tcl.h presence... " >&6; }
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h. */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28313 #include <tcl.h>
28314 _ACEOF
28315 if { (ac_try="$ac_cpp conftest.$ac_ext"
28316 case "(($ac_try" in
28317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28318 *) ac_try_echo=$ac_try;;
28319 esac
28320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28321 $as_echo "$ac_try_echo") >&5
28322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28323 ac_status=$?
28324 grep -v '^ *+' conftest.er1 >conftest.err
28325 rm -f conftest.er1
28326 cat conftest.err >&5
28327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } >/dev/null && {
28329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28331 }; then
28332 ac_header_preproc=yes
28333 else
28334 $as_echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28337 ac_header_preproc=no
28340 rm -f conftest.err conftest.$ac_ext
28341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28342 $as_echo "$ac_header_preproc" >&6; }
28344 # So? What about this header?
28345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28346 yes:no: )
28347 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28348 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28349 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28350 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28351 ac_header_preproc=yes
28353 no:yes:* )
28354 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28355 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28356 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28357 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28358 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28359 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28360 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28361 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28362 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28363 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28364 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28365 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28366 ( cat <<\_ASBOX
28367 ## ---------------------------------------- ##
28368 ## Report this to pgsql-bugs@postgresql.org ##
28369 ## ---------------------------------------- ##
28370 _ASBOX
28371 ) | sed "s/^/$as_me: WARNING: /" >&2
28373 esac
28374 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28375 $as_echo_n "checking for tcl.h... " >&6; }
28376 if test "${ac_cv_header_tcl_h+set}" = set; then
28377 $as_echo_n "(cached) " >&6
28378 else
28379 ac_cv_header_tcl_h=$ac_header_preproc
28381 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28382 $as_echo "$ac_cv_header_tcl_h" >&6; }
28385 if test "x$ac_cv_header_tcl_h" = x""yes; then
28387 else
28388 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28389 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28390 { (exit 1); exit 1; }; }
28394 CPPFLAGS=$ac_save_CPPFLAGS
28398 # Check for DocBook and tools
28400 for ac_prog in onsgmls nsgmls
28402 # Extract the first word of "$ac_prog", so it can be a program name with args.
28403 set dummy $ac_prog; ac_word=$2
28404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28405 $as_echo_n "checking for $ac_word... " >&6; }
28406 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28407 $as_echo_n "(cached) " >&6
28408 else
28409 if test -n "$NSGMLS"; then
28410 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28411 else
28412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28413 for as_dir in $PATH
28415 IFS=$as_save_IFS
28416 test -z "$as_dir" && as_dir=.
28417 for ac_exec_ext in '' $ac_executable_extensions; do
28418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28419 ac_cv_prog_NSGMLS="$ac_prog"
28420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28421 break 2
28423 done
28424 done
28425 IFS=$as_save_IFS
28429 NSGMLS=$ac_cv_prog_NSGMLS
28430 if test -n "$NSGMLS"; then
28431 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28432 $as_echo "$NSGMLS" >&6; }
28433 else
28434 { $as_echo "$as_me:$LINENO: result: no" >&5
28435 $as_echo "no" >&6; }
28439 test -n "$NSGMLS" && break
28440 done
28442 for ac_prog in openjade jade
28444 # Extract the first word of "$ac_prog", so it can be a program name with args.
28445 set dummy $ac_prog; ac_word=$2
28446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28447 $as_echo_n "checking for $ac_word... " >&6; }
28448 if test "${ac_cv_prog_JADE+set}" = set; then
28449 $as_echo_n "(cached) " >&6
28450 else
28451 if test -n "$JADE"; then
28452 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28453 else
28454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28455 for as_dir in $PATH
28457 IFS=$as_save_IFS
28458 test -z "$as_dir" && as_dir=.
28459 for ac_exec_ext in '' $ac_executable_extensions; do
28460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28461 ac_cv_prog_JADE="$ac_prog"
28462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28463 break 2
28465 done
28466 done
28467 IFS=$as_save_IFS
28471 JADE=$ac_cv_prog_JADE
28472 if test -n "$JADE"; then
28473 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28474 $as_echo "$JADE" >&6; }
28475 else
28476 { $as_echo "$as_me:$LINENO: result: no" >&5
28477 $as_echo "no" >&6; }
28481 test -n "$JADE" && break
28482 done
28485 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28486 $as_echo_n "checking for DocBook V4.2... " >&6; }
28487 if test "${pgac_cv_check_docbook+set}" = set; then
28488 $as_echo_n "(cached) " >&6
28489 else
28490 cat >conftest.sgml <<EOF
28491 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28492 <book>
28493 <title>test</title>
28494 <chapter>
28495 <title>random</title>
28496 <sect1>
28497 <title>testsect</title>
28498 <para>text</para>
28499 </sect1>
28500 </chapter>
28501 </book>
28504 pgac_cv_check_docbook=no
28506 if test -n "$NSGMLS"; then
28507 $NSGMLS -s conftest.sgml 1>&5 2>&1
28508 if test $? -eq 0; then
28509 pgac_cv_check_docbook=yes
28512 rm -f conftest.sgml
28514 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28515 $as_echo "$pgac_cv_check_docbook" >&6; }
28517 have_docbook=$pgac_cv_check_docbook
28520 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28521 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28522 if test "${pgac_cv_path_stylesheets+set}" = set; then
28523 $as_echo_n "(cached) " >&6
28524 else
28525 if test -n "$DOCBOOKSTYLE"; then
28526 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28527 else
28528 for pgac_prefix in /usr /usr/local /opt /sw; do
28529 for pgac_infix in share lib; do
28530 for pgac_postfix in \
28531 sgml/stylesheets/nwalsh-modular \
28532 sgml/stylesheets/docbook \
28533 sgml/stylesheets/dsssl/docbook \
28534 sgml/docbook-dsssl \
28535 sgml/docbook/dsssl/modular \
28536 sgml/docbook/stylesheet/dsssl/modular \
28537 sgml/docbook/dsssl-stylesheets \
28538 sgml/dsssl/docbook-dsssl-nwalsh
28540 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28541 if test -r "$pgac_candidate/html/docbook.dsl" \
28542 && test -r "$pgac_candidate/print/docbook.dsl"
28543 then
28544 pgac_cv_path_stylesheets=$pgac_candidate
28545 break 3
28547 done
28548 done
28549 done
28553 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28555 if test -n "$DOCBOOKSTYLE"; then
28556 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28557 $as_echo "$DOCBOOKSTYLE" >&6; }
28558 else
28559 { $as_echo "$as_me:$LINENO: result: no" >&5
28560 $as_echo "no" >&6; }
28562 if test -n "$DOCBOOKSTYLE"; then
28563 for ac_prog in collateindex.pl
28565 # Extract the first word of "$ac_prog", so it can be a program name with args.
28566 set dummy $ac_prog; ac_word=$2
28567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28568 $as_echo_n "checking for $ac_word... " >&6; }
28569 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28570 $as_echo_n "(cached) " >&6
28571 else
28572 case $COLLATEINDEX in
28573 [\\/]* | ?:[\\/]*)
28574 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578 for as_dir in $DOCBOOKSTYLE/bin $PATH
28580 IFS=$as_save_IFS
28581 test -z "$as_dir" && as_dir=.
28582 for ac_exec_ext in '' $ac_executable_extensions; do
28583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28584 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28586 break 2
28588 done
28589 done
28590 IFS=$as_save_IFS
28593 esac
28595 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28596 if test -n "$COLLATEINDEX"; then
28597 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28598 $as_echo "$COLLATEINDEX" >&6; }
28599 else
28600 { $as_echo "$as_me:$LINENO: result: no" >&5
28601 $as_echo "no" >&6; }
28605 test -n "$COLLATEINDEX" && break
28606 done
28608 else
28609 for ac_prog in collateindex.pl
28611 # Extract the first word of "$ac_prog", so it can be a program name with args.
28612 set dummy $ac_prog; ac_word=$2
28613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28614 $as_echo_n "checking for $ac_word... " >&6; }
28615 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28616 $as_echo_n "(cached) " >&6
28617 else
28618 case $COLLATEINDEX in
28619 [\\/]* | ?:[\\/]*)
28620 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28624 for as_dir in $PATH
28626 IFS=$as_save_IFS
28627 test -z "$as_dir" && as_dir=.
28628 for ac_exec_ext in '' $ac_executable_extensions; do
28629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28630 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28632 break 2
28634 done
28635 done
28636 IFS=$as_save_IFS
28639 esac
28641 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28642 if test -n "$COLLATEINDEX"; then
28643 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28644 $as_echo "$COLLATEINDEX" >&6; }
28645 else
28646 { $as_echo "$as_me:$LINENO: result: no" >&5
28647 $as_echo "no" >&6; }
28651 test -n "$COLLATEINDEX" && break
28652 done
28655 for ac_prog in xsltproc
28657 # Extract the first word of "$ac_prog", so it can be a program name with args.
28658 set dummy $ac_prog; ac_word=$2
28659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 $as_echo_n "checking for $ac_word... " >&6; }
28661 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28662 $as_echo_n "(cached) " >&6
28663 else
28664 if test -n "$XSLTPROC"; then
28665 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28666 else
28667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28668 for as_dir in $PATH
28670 IFS=$as_save_IFS
28671 test -z "$as_dir" && as_dir=.
28672 for ac_exec_ext in '' $ac_executable_extensions; do
28673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28674 ac_cv_prog_XSLTPROC="$ac_prog"
28675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28676 break 2
28678 done
28679 done
28680 IFS=$as_save_IFS
28684 XSLTPROC=$ac_cv_prog_XSLTPROC
28685 if test -n "$XSLTPROC"; then
28686 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28687 $as_echo "$XSLTPROC" >&6; }
28688 else
28689 { $as_echo "$as_me:$LINENO: result: no" >&5
28690 $as_echo "no" >&6; }
28694 test -n "$XSLTPROC" && break
28695 done
28697 for ac_prog in osx sgml2xml sx
28699 # Extract the first word of "$ac_prog", so it can be a program name with args.
28700 set dummy $ac_prog; ac_word=$2
28701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28702 $as_echo_n "checking for $ac_word... " >&6; }
28703 if test "${ac_cv_prog_OSX+set}" = set; then
28704 $as_echo_n "(cached) " >&6
28705 else
28706 if test -n "$OSX"; then
28707 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28708 else
28709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28710 for as_dir in $PATH
28712 IFS=$as_save_IFS
28713 test -z "$as_dir" && as_dir=.
28714 for ac_exec_ext in '' $ac_executable_extensions; do
28715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28716 ac_cv_prog_OSX="$ac_prog"
28717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28718 break 2
28720 done
28721 done
28722 IFS=$as_save_IFS
28726 OSX=$ac_cv_prog_OSX
28727 if test -n "$OSX"; then
28728 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28729 $as_echo "$OSX" >&6; }
28730 else
28731 { $as_echo "$as_me:$LINENO: result: no" >&5
28732 $as_echo "no" >&6; }
28736 test -n "$OSX" && break
28737 done
28740 # Thread testing
28742 # We have to run the thread test near the end so we have all our symbols
28743 # defined. Cross compiling throws a warning.
28745 if test "$enable_thread_safety" = yes; then
28746 if test "$PORTNAME" != "win32"
28747 then
28748 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28749 $as_echo_n "checking thread safety of required library functions... " >&6; }
28751 _CFLAGS="$CFLAGS"
28752 _LIBS="$LIBS"
28753 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28754 LIBS="$LIBS $PTHREAD_LIBS"
28755 if test "$cross_compiling" = yes; then
28756 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28757 $as_echo "maybe" >&6; }
28758 { $as_echo "$as_me:$LINENO: WARNING:
28759 *** Skipping thread test program because of cross-compile build.
28760 *** Run the program in src/test/thread on the target machine.
28761 " >&5
28762 $as_echo "$as_me: WARNING:
28763 *** Skipping thread test program because of cross-compile build.
28764 *** Run the program in src/test/thread on the target machine.
28765 " >&2;}
28766 else
28767 cat >conftest.$ac_ext <<_ACEOF
28768 /* confdefs.h. */
28769 _ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h. */
28773 #include "$srcdir/src/test/thread/thread_test.c"
28774 _ACEOF
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780 esac
28781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782 $as_echo "$ac_try_echo") >&5
28783 (eval "$ac_link") 2>&5
28784 ac_status=$?
28785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28790 esac
28791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28792 $as_echo "$ac_try_echo") >&5
28793 (eval "$ac_try") 2>&5
28794 ac_status=$?
28795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 { $as_echo "$as_me:$LINENO: result: yes" >&5
28798 $as_echo "yes" >&6; }
28799 else
28800 $as_echo "$as_me: program exited with status $ac_status" >&5
28801 $as_echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28804 ( exit $ac_status )
28805 { $as_echo "$as_me:$LINENO: result: no" >&5
28806 $as_echo "no" >&6; }
28807 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28808 This platform is not thread-safe. Check the file 'config.log' or compile
28809 and run src/test/thread/thread_test for the exact reason.
28810 Use --disable-thread-safety to disable thread safety." >&5
28811 $as_echo "$as_me: error: thread test program failed
28812 This platform is not thread-safe. Check the file 'config.log' or compile
28813 and run src/test/thread/thread_test for the exact reason.
28814 Use --disable-thread-safety to disable thread safety." >&2;}
28815 { (exit 1); exit 1; }; }
28817 rm -rf conftest.dSYM
28818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28822 CFLAGS="$_CFLAGS"
28823 LIBS="$_LIBS"
28824 else
28825 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28826 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28830 # If compiler will take -Wl,--as-needed (or various platform-specific
28831 # spellings thereof) then add that to LDFLAGS. This is much easier than
28832 # trying to filter LIBS to the minimum for each executable.
28833 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28834 # libreadline; therefore we postpone testing it until we know what library
28835 # dependencies readline has. The test code will try to link with $LIBS.
28836 if test "$with_readline" = yes; then
28837 link_test_func=readline
28838 else
28839 link_test_func=exit
28842 if test "$PORTNAME" = "darwin"; then
28843 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28844 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28845 pgac_save_LDFLAGS=$LDFLAGS
28846 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28847 if test "$cross_compiling" = yes; then
28848 LDFLAGS="$pgac_save_LDFLAGS"
28849 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28850 $as_echo "assuming no" >&6; }
28851 else
28852 cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h. */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28860 main ()
28864 return 0;
28866 _ACEOF
28867 rm -f conftest$ac_exeext
28868 if { (ac_try="$ac_link"
28869 case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28872 esac
28873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28874 $as_echo "$ac_try_echo") >&5
28875 (eval "$ac_link") 2>&5
28876 ac_status=$?
28877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882 esac
28883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28884 $as_echo "$ac_try_echo") >&5
28885 (eval "$ac_try") 2>&5
28886 ac_status=$?
28887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
28889 { $as_echo "$as_me:$LINENO: result: yes" >&5
28890 $as_echo "yes" >&6; }
28891 else
28892 $as_echo "$as_me: program exited with status $ac_status" >&5
28893 $as_echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28896 ( exit $ac_status )
28897 LDFLAGS="$pgac_save_LDFLAGS"
28898 { $as_echo "$as_me:$LINENO: result: no" >&5
28899 $as_echo "no" >&6; }
28901 rm -rf conftest.dSYM
28902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28907 elif test "$PORTNAME" = "openbsd"; then
28908 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28909 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28910 pgac_save_LDFLAGS=$LDFLAGS
28911 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28912 if test "$cross_compiling" = yes; then
28913 LDFLAGS="$pgac_save_LDFLAGS"
28914 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28915 $as_echo "assuming no" >&6; }
28916 else
28917 cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h. */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28923 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28925 main ()
28929 return 0;
28931 _ACEOF
28932 rm -f conftest$ac_exeext
28933 if { (ac_try="$ac_link"
28934 case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937 esac
28938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28939 $as_echo "$ac_try_echo") >&5
28940 (eval "$ac_link") 2>&5
28941 ac_status=$?
28942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28944 { (case "(($ac_try" in
28945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946 *) ac_try_echo=$ac_try;;
28947 esac
28948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28949 $as_echo "$ac_try_echo") >&5
28950 (eval "$ac_try") 2>&5
28951 ac_status=$?
28952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 { $as_echo "$as_me:$LINENO: result: yes" >&5
28955 $as_echo "yes" >&6; }
28956 else
28957 $as_echo "$as_me: program exited with status $ac_status" >&5
28958 $as_echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ( exit $ac_status )
28962 LDFLAGS="$pgac_save_LDFLAGS"
28963 { $as_echo "$as_me:$LINENO: result: no" >&5
28964 $as_echo "no" >&6; }
28966 rm -rf conftest.dSYM
28967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28972 else
28973 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28974 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28975 pgac_save_LDFLAGS=$LDFLAGS
28976 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28977 if test "$cross_compiling" = yes; then
28978 LDFLAGS="$pgac_save_LDFLAGS"
28979 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28980 $as_echo "assuming no" >&6; }
28981 else
28982 cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h. */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28988 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28990 main ()
28994 return 0;
28996 _ACEOF
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29002 esac
29003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29004 $as_echo "$ac_try_echo") >&5
29005 (eval "$ac_link") 2>&5
29006 ac_status=$?
29007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29009 { (case "(($ac_try" in
29010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011 *) ac_try_echo=$ac_try;;
29012 esac
29013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29014 $as_echo "$ac_try_echo") >&5
29015 (eval "$ac_try") 2>&5
29016 ac_status=$?
29017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 { $as_echo "$as_me:$LINENO: result: yes" >&5
29020 $as_echo "yes" >&6; }
29021 else
29022 $as_echo "$as_me: program exited with status $ac_status" >&5
29023 $as_echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026 ( exit $ac_status )
29027 LDFLAGS="$pgac_save_LDFLAGS"
29028 { $as_echo "$as_me:$LINENO: result: no" >&5
29029 $as_echo "no" >&6; }
29031 rm -rf conftest.dSYM
29032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29040 # Begin output steps
29042 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29043 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29044 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29045 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29046 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29047 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29049 # Create compiler version string
29050 if test x"$GCC" = x"yes" ; then
29051 cc_string="GCC `${CC} --version | sed q`"
29052 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29053 cc_string=`${CC} -V 2>&1 | sed q`
29054 else
29055 cc_string=$CC
29059 cat >>confdefs.h <<_ACEOF
29060 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29061 _ACEOF
29064 # Supply a numeric version string for use by 3rd party add-ons
29065 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29066 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29067 tr '.' ' ' |
29068 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29070 cat >>confdefs.h <<_ACEOF
29071 #define PG_VERSION_NUM $PG_VERSION_NUM
29072 _ACEOF
29076 # prepare build tree if outside source tree
29077 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29078 # Note 2: /bin/pwd might be better than shell's built-in at getting
29079 # a symlink-free name.
29080 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29081 vpath_build=no
29082 else
29083 vpath_build=yes
29084 if test "$no_create" != yes; then
29085 $as_echo_n "preparing build tree... " >&6
29086 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29087 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29088 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29089 $as_echo "$as_me: error: failed" >&2;}
29090 { (exit 1); exit 1; }; }
29091 { $as_echo "$as_me:$LINENO: result: done" >&5
29092 $as_echo "done" >&6; }
29098 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29101 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}"
29104 if test "$PORTNAME" = "win32"; then
29105 ac_config_commands="$ac_config_commands check_win32_symlinks"
29109 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29112 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29115 cat >confcache <<\_ACEOF
29116 # This file is a shell script that caches the results of configure
29117 # tests run on this system so they can be shared between configure
29118 # scripts and configure runs, see configure's option --config-cache.
29119 # It is not useful on other systems. If it contains results you don't
29120 # want to keep, you may remove or edit it.
29122 # config.status only pays attention to the cache file if you give it
29123 # the --recheck option to rerun configure.
29125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29127 # following values.
29129 _ACEOF
29131 # The following way of writing the cache mishandles newlines in values,
29132 # but we know of no workaround that is simple, portable, and efficient.
29133 # So, we kill variables containing newlines.
29134 # Ultrix sh set writes to stderr and can't be redirected directly,
29135 # and sets the high bit in the cache file unless we assign to the vars.
29137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29138 eval ac_val=\$$ac_var
29139 case $ac_val in #(
29140 *${as_nl}*)
29141 case $ac_var in #(
29142 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29144 esac
29145 case $ac_var in #(
29146 _ | IFS | as_nl) ;; #(
29147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29148 *) $as_unset $ac_var ;;
29149 esac ;;
29150 esac
29151 done
29153 (set) 2>&1 |
29154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29155 *${as_nl}ac_space=\ *)
29156 # `set' does not quote correctly, so add quotes (double-quote
29157 # substitution turns \\\\ into \\, and sed turns \\ into \).
29158 sed -n \
29159 "s/'/'\\\\''/g;
29160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29161 ;; #(
29163 # `set' quotes correctly as required by POSIX, so do not add quotes.
29164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29166 esac |
29167 sort
29169 sed '
29170 /^ac_cv_env_/b end
29171 t clear
29172 :clear
29173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29174 t end
29175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29176 :end' >>confcache
29177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29178 if test -w "$cache_file"; then
29179 test "x$cache_file" != "x/dev/null" &&
29180 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29181 $as_echo "$as_me: updating cache $cache_file" >&6;}
29182 cat confcache >$cache_file
29183 else
29184 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29188 rm -f confcache
29190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29191 # Let make expand exec_prefix.
29192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29194 DEFS=-DHAVE_CONFIG_H
29196 ac_libobjs=
29197 ac_ltlibobjs=
29198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29199 # 1. Remove the extension, and $U if already installed.
29200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29203 # will be set to the directory where LIBOBJS objects are built.
29204 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29205 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29206 done
29207 LIBOBJS=$ac_libobjs
29209 LTLIBOBJS=$ac_ltlibobjs
29214 : ${CONFIG_STATUS=./config.status}
29215 ac_write_fail=0
29216 ac_clean_files_save=$ac_clean_files
29217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29218 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29219 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29220 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29221 #! $SHELL
29222 # Generated by $as_me.
29223 # Run this file to recreate the current configuration.
29224 # Compiler output produced by configure, useful for debugging
29225 # configure, is in config.log if it exists.
29227 debug=false
29228 ac_cs_recheck=false
29229 ac_cs_silent=false
29230 SHELL=\${CONFIG_SHELL-$SHELL}
29231 _ACEOF
29233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29234 ## --------------------- ##
29235 ## M4sh Initialization. ##
29236 ## --------------------- ##
29238 # Be more Bourne compatible
29239 DUALCASE=1; export DUALCASE # for MKS sh
29240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29241 emulate sh
29242 NULLCMD=:
29243 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29244 # is contrary to our usage. Disable this feature.
29245 alias -g '${1+"$@"}'='"$@"'
29246 setopt NO_GLOB_SUBST
29247 else
29248 case `(set -o) 2>/dev/null` in
29249 *posix*) set -o posix ;;
29250 esac
29257 # PATH needs CR
29258 # Avoid depending upon Character Ranges.
29259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29262 as_cr_digits='0123456789'
29263 as_cr_alnum=$as_cr_Letters$as_cr_digits
29265 as_nl='
29267 export as_nl
29268 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29269 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29272 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29273 as_echo='printf %s\n'
29274 as_echo_n='printf %s'
29275 else
29276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29278 as_echo_n='/usr/ucb/echo -n'
29279 else
29280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29281 as_echo_n_body='eval
29282 arg=$1;
29283 case $arg in
29284 *"$as_nl"*)
29285 expr "X$arg" : "X\\(.*\\)$as_nl";
29286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29287 esac;
29288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29290 export as_echo_n_body
29291 as_echo_n='sh -c $as_echo_n_body as_echo'
29293 export as_echo_body
29294 as_echo='sh -c $as_echo_body as_echo'
29297 # The user is always right.
29298 if test "${PATH_SEPARATOR+set}" != set; then
29299 PATH_SEPARATOR=:
29300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29302 PATH_SEPARATOR=';'
29306 # Support unset when possible.
29307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29308 as_unset=unset
29309 else
29310 as_unset=false
29314 # IFS
29315 # We need space, tab and new line, in precisely that order. Quoting is
29316 # there to prevent editors from complaining about space-tab.
29317 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29318 # splitting by setting IFS to empty value.)
29319 IFS=" "" $as_nl"
29321 # Find who we are. Look in the path if we contain no directory separator.
29322 case $0 in
29323 *[\\/]* ) as_myself=$0 ;;
29324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29325 for as_dir in $PATH
29327 IFS=$as_save_IFS
29328 test -z "$as_dir" && as_dir=.
29329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29330 done
29331 IFS=$as_save_IFS
29334 esac
29335 # We did not find ourselves, most probably we were run as `sh COMMAND'
29336 # in which case we are not to be found in the path.
29337 if test "x$as_myself" = x; then
29338 as_myself=$0
29340 if test ! -f "$as_myself"; then
29341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29342 { (exit 1); exit 1; }
29345 # Work around bugs in pre-3.0 UWIN ksh.
29346 for as_var in ENV MAIL MAILPATH
29347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29348 done
29349 PS1='$ '
29350 PS2='> '
29351 PS4='+ '
29353 # NLS nuisances.
29354 LC_ALL=C
29355 export LC_ALL
29356 LANGUAGE=C
29357 export LANGUAGE
29359 # Required to use basename.
29360 if expr a : '\(a\)' >/dev/null 2>&1 &&
29361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29362 as_expr=expr
29363 else
29364 as_expr=false
29367 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29368 as_basename=basename
29369 else
29370 as_basename=false
29374 # Name of the executable.
29375 as_me=`$as_basename -- "$0" ||
29376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29377 X"$0" : 'X\(//\)$' \| \
29378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29379 $as_echo X/"$0" |
29380 sed '/^.*\/\([^/][^/]*\)\/*$/{
29381 s//\1/
29384 /^X\/\(\/\/\)$/{
29385 s//\1/
29388 /^X\/\(\/\).*/{
29389 s//\1/
29392 s/.*/./; q'`
29394 # CDPATH.
29395 $as_unset CDPATH
29399 as_lineno_1=$LINENO
29400 as_lineno_2=$LINENO
29401 test "x$as_lineno_1" != "x$as_lineno_2" &&
29402 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29404 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29405 # uniformly replaced by the line number. The first 'sed' inserts a
29406 # line-number line after each line using $LINENO; the second 'sed'
29407 # does the real work. The second script uses 'N' to pair each
29408 # line-number line with the line containing $LINENO, and appends
29409 # trailing '-' during substitution so that $LINENO is not a special
29410 # case at line end.
29411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29412 # scripts with optimization help from Paolo Bonzini. Blame Lee
29413 # E. McMahon (1931-1989) for sed's syntax. :-)
29414 sed -n '
29416 /[$]LINENO/=
29417 ' <$as_myself |
29418 sed '
29419 s/[$]LINENO.*/&-/
29420 t lineno
29422 :lineno
29424 :loop
29425 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29426 t loop
29427 s/-\n.*//
29428 ' >$as_me.lineno &&
29429 chmod +x "$as_me.lineno" ||
29430 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29431 { (exit 1); exit 1; }; }
29433 # Don't try to exec as it changes $[0], causing all sort of problems
29434 # (the dirname of $[0] is not the place where we might find the
29435 # original and so on. Autoconf is especially sensitive to this).
29436 . "./$as_me.lineno"
29437 # Exit status is that of the last command.
29438 exit
29442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29443 as_dirname=dirname
29444 else
29445 as_dirname=false
29448 ECHO_C= ECHO_N= ECHO_T=
29449 case `echo -n x` in
29450 -n*)
29451 case `echo 'x\c'` in
29452 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29453 *) ECHO_C='\c';;
29454 esac;;
29456 ECHO_N='-n';;
29457 esac
29458 if expr a : '\(a\)' >/dev/null 2>&1 &&
29459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29460 as_expr=expr
29461 else
29462 as_expr=false
29465 rm -f conf$$ conf$$.exe conf$$.file
29466 if test -d conf$$.dir; then
29467 rm -f conf$$.dir/conf$$.file
29468 else
29469 rm -f conf$$.dir
29470 mkdir conf$$.dir 2>/dev/null
29472 if (echo >conf$$.file) 2>/dev/null; then
29473 if ln -s conf$$.file conf$$ 2>/dev/null; then
29474 as_ln_s='ln -s'
29475 # ... but there are two gotchas:
29476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29478 # In both cases, we have to default to `cp -p'.
29479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29480 as_ln_s='cp -p'
29481 elif ln conf$$.file conf$$ 2>/dev/null; then
29482 as_ln_s=ln
29483 else
29484 as_ln_s='cp -p'
29486 else
29487 as_ln_s='cp -p'
29489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29490 rmdir conf$$.dir 2>/dev/null
29492 if mkdir -p . 2>/dev/null; then
29493 as_mkdir_p=:
29494 else
29495 test -d ./-p && rmdir ./-p
29496 as_mkdir_p=false
29499 if test -x / >/dev/null 2>&1; then
29500 as_test_x='test -x'
29501 else
29502 if ls -dL / >/dev/null 2>&1; then
29503 as_ls_L_option=L
29504 else
29505 as_ls_L_option=
29507 as_test_x='
29508 eval sh -c '\''
29509 if test -d "$1"; then
29510 test -d "$1/.";
29511 else
29512 case $1 in
29513 -*)set "./$1";;
29514 esac;
29515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29516 ???[sx]*):;;*)false;;esac;fi
29517 '\'' sh
29520 as_executable_p=$as_test_x
29522 # Sed expression to map a string onto a valid CPP name.
29523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29525 # Sed expression to map a string onto a valid variable name.
29526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29529 exec 6>&1
29531 # Save the log message, to keep $[0] and so on meaningful, and to
29532 # report actual input values of CONFIG_FILES etc. instead of their
29533 # values after options handling.
29534 ac_log="
29535 This file was extended by PostgreSQL $as_me 9.1devel, which was
29536 generated by GNU Autoconf 2.63. Invocation command line was
29538 CONFIG_FILES = $CONFIG_FILES
29539 CONFIG_HEADERS = $CONFIG_HEADERS
29540 CONFIG_LINKS = $CONFIG_LINKS
29541 CONFIG_COMMANDS = $CONFIG_COMMANDS
29542 $ $0 $@
29544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29547 _ACEOF
29549 case $ac_config_files in *"
29550 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29551 esac
29553 case $ac_config_headers in *"
29554 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29555 esac
29558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29559 # Files that config.status was made for.
29560 config_files="$ac_config_files"
29561 config_headers="$ac_config_headers"
29562 config_links="$ac_config_links"
29563 config_commands="$ac_config_commands"
29565 _ACEOF
29567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29568 ac_cs_usage="\
29569 \`$as_me' instantiates files from templates according to the
29570 current configuration.
29572 Usage: $0 [OPTION]... [FILE]...
29574 -h, --help print this help, then exit
29575 -V, --version print version number and configuration settings, then exit
29576 -q, --quiet, --silent
29577 do not print progress messages
29578 -d, --debug don't remove temporary files
29579 --recheck update $as_me by reconfiguring in the same conditions
29580 --file=FILE[:TEMPLATE]
29581 instantiate the configuration file FILE
29582 --header=FILE[:TEMPLATE]
29583 instantiate the configuration header FILE
29585 Configuration files:
29586 $config_files
29588 Configuration headers:
29589 $config_headers
29591 Configuration links:
29592 $config_links
29594 Configuration commands:
29595 $config_commands
29597 Report bugs to <bug-autoconf@gnu.org>."
29599 _ACEOF
29600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29601 ac_cs_version="\\
29602 PostgreSQL config.status 9.1devel
29603 configured by $0, generated by GNU Autoconf 2.63,
29604 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29606 Copyright (C) 2008 Free Software Foundation, Inc.
29607 This config.status script is free software; the Free Software Foundation
29608 gives unlimited permission to copy, distribute and modify it."
29610 ac_pwd='$ac_pwd'
29611 srcdir='$srcdir'
29612 MKDIR_P='$MKDIR_P'
29613 AWK='$AWK'
29614 test -n "\$AWK" || AWK=awk
29615 _ACEOF
29617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29618 # The default lists apply if the user does not specify any file.
29619 ac_need_defaults=:
29620 while test $# != 0
29622 case $1 in
29623 --*=*)
29624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29626 ac_shift=:
29629 ac_option=$1
29630 ac_optarg=$2
29631 ac_shift=shift
29633 esac
29635 case $ac_option in
29636 # Handling of the options.
29637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29638 ac_cs_recheck=: ;;
29639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29640 $as_echo "$ac_cs_version"; exit ;;
29641 --debug | --debu | --deb | --de | --d | -d )
29642 debug=: ;;
29643 --file | --fil | --fi | --f )
29644 $ac_shift
29645 case $ac_optarg in
29646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29647 esac
29648 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29649 ac_need_defaults=false;;
29650 --header | --heade | --head | --hea )
29651 $ac_shift
29652 case $ac_optarg in
29653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29654 esac
29655 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29656 ac_need_defaults=false;;
29657 --he | --h)
29658 # Conflict between --help and --header
29659 { $as_echo "$as_me: error: ambiguous option: $1
29660 Try \`$0 --help' for more information." >&2
29661 { (exit 1); exit 1; }; };;
29662 --help | --hel | -h )
29663 $as_echo "$ac_cs_usage"; exit ;;
29664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29666 ac_cs_silent=: ;;
29668 # This is an error.
29669 -*) { $as_echo "$as_me: error: unrecognized option: $1
29670 Try \`$0 --help' for more information." >&2
29671 { (exit 1); exit 1; }; } ;;
29673 *) ac_config_targets="$ac_config_targets $1"
29674 ac_need_defaults=false ;;
29676 esac
29677 shift
29678 done
29680 ac_configure_extra_args=
29682 if $ac_cs_silent; then
29683 exec 6>/dev/null
29684 ac_configure_extra_args="$ac_configure_extra_args --silent"
29687 _ACEOF
29688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29689 if \$ac_cs_recheck; then
29690 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29691 shift
29692 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29693 CONFIG_SHELL='$SHELL'
29694 export CONFIG_SHELL
29695 exec "\$@"
29698 _ACEOF
29699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29700 exec 5>>config.log
29702 echo
29703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29704 ## Running $as_me. ##
29705 _ASBOX
29706 $as_echo "$ac_log"
29707 } >&5
29709 _ACEOF
29710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29711 _ACEOF
29713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29715 # Handling of arguments.
29716 for ac_config_target in $ac_config_targets
29718 case $ac_config_target in
29719 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29720 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29721 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29722 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29723 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29724 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29725 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29726 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29727 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29728 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29729 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29730 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29732 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29733 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29734 { (exit 1); exit 1; }; };;
29735 esac
29736 done
29739 # If the user did not use the arguments to specify the items to instantiate,
29740 # then the envvar interface is used. Set only those that are not.
29741 # We use the long form for the default assignment because of an extremely
29742 # bizarre bug on SunOS 4.1.3.
29743 if $ac_need_defaults; then
29744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29746 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29747 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29750 # Have a temporary directory for convenience. Make it in the build tree
29751 # simply because there is no reason against having it here, and in addition,
29752 # creating and moving files from /tmp can sometimes cause problems.
29753 # Hook for its removal unless debugging.
29754 # Note that there is a small window in which the directory will not be cleaned:
29755 # after its creation but before its name has been assigned to `$tmp'.
29756 $debug ||
29758 tmp=
29759 trap 'exit_status=$?
29760 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29762 trap '{ (exit 1); exit 1; }' 1 2 13 15
29764 # Create a (secure) tmp directory for tmp files.
29767 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29768 test -n "$tmp" && test -d "$tmp"
29769 } ||
29771 tmp=./conf$$-$RANDOM
29772 (umask 077 && mkdir "$tmp")
29773 } ||
29775 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29776 { (exit 1); exit 1; }
29779 # Set up the scripts for CONFIG_FILES section.
29780 # No need to generate them if there are no CONFIG_FILES.
29781 # This happens for instance with `./config.status config.h'.
29782 if test -n "$CONFIG_FILES"; then
29785 ac_cr=' '
29786 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29787 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29788 ac_cs_awk_cr='\\r'
29789 else
29790 ac_cs_awk_cr=$ac_cr
29793 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29794 _ACEOF
29798 echo "cat >conf$$subs.awk <<_ACEOF" &&
29799 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29800 echo "_ACEOF"
29801 } >conf$$subs.sh ||
29802 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29803 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29804 { (exit 1); exit 1; }; }
29805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29806 ac_delim='%!_!# '
29807 for ac_last_try in false false false false false :; do
29808 . ./conf$$subs.sh ||
29809 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29810 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29811 { (exit 1); exit 1; }; }
29813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29814 if test $ac_delim_n = $ac_delim_num; then
29815 break
29816 elif $ac_last_try; then
29817 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29818 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29819 { (exit 1); exit 1; }; }
29820 else
29821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29823 done
29824 rm -f conf$$subs.sh
29826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29827 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29828 _ACEOF
29829 sed -n '
29831 s/^/S["/; s/!.*/"]=/
29834 s/^[^!]*!//
29835 :repl
29836 t repl
29837 s/'"$ac_delim"'$//
29838 t delim
29841 s/\(.\{148\}\).*/\1/
29842 t more1
29843 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29846 b repl
29847 :more1
29848 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29851 s/.\{148\}//
29852 t nl
29853 :delim
29855 s/\(.\{148\}\).*/\1/
29856 t more2
29857 s/["\\]/\\&/g; s/^/"/; s/$/"/
29860 :more2
29861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29864 s/.\{148\}//
29865 t delim
29866 ' <conf$$subs.awk | sed '
29867 /^[^""]/{
29869 s/\n//
29871 ' >>$CONFIG_STATUS || ac_write_fail=1
29872 rm -f conf$$subs.awk
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29874 _ACAWK
29875 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29876 for (key in S) S_is_set[key] = 1
29877 FS = "\a"
29881 line = $ 0
29882 nfields = split(line, field, "@")
29883 substed = 0
29884 len = length(field[1])
29885 for (i = 2; i < nfields; i++) {
29886 key = field[i]
29887 keylen = length(key)
29888 if (S_is_set[key]) {
29889 value = S[key]
29890 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29891 len += length(value) + length(field[++i])
29892 substed = 1
29893 } else
29894 len += 1 + keylen
29897 print line
29900 _ACAWK
29901 _ACEOF
29902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29903 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29905 else
29907 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29908 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29909 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29910 { (exit 1); exit 1; }; }
29911 _ACEOF
29913 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29914 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29915 # trailing colons and then remove the whole line if VPATH becomes empty
29916 # (actually we leave an empty line to preserve line numbers).
29917 if test "x$srcdir" = x.; then
29918 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29919 s/:*\$(srcdir):*/:/
29920 s/:*\${srcdir}:*/:/
29921 s/:*@srcdir@:*/:/
29922 s/^\([^=]*=[ ]*\):*/\1/
29923 s/:*$//
29924 s/^[^=]*=[ ]*$//
29928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29929 fi # test -n "$CONFIG_FILES"
29931 # Set up the scripts for CONFIG_HEADERS section.
29932 # No need to generate them if there are no CONFIG_HEADERS.
29933 # This happens for instance with `./config.status Makefile'.
29934 if test -n "$CONFIG_HEADERS"; then
29935 cat >"$tmp/defines.awk" <<\_ACAWK ||
29936 BEGIN {
29937 _ACEOF
29939 # Transform confdefs.h into an awk script `defines.awk', embedded as
29940 # here-document in config.status, that substitutes the proper values into
29941 # config.h.in to produce config.h.
29943 # Create a delimiter string that does not exist in confdefs.h, to ease
29944 # handling of long lines.
29945 ac_delim='%!_!# '
29946 for ac_last_try in false false :; do
29947 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29948 if test -z "$ac_t"; then
29949 break
29950 elif $ac_last_try; then
29951 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29952 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29953 { (exit 1); exit 1; }; }
29954 else
29955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29957 done
29959 # For the awk script, D is an array of macro values keyed by name,
29960 # likewise P contains macro parameters if any. Preserve backslash
29961 # newline sequences.
29963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29964 sed -n '
29965 s/.\{148\}/&'"$ac_delim"'/g
29966 t rset
29967 :rset
29968 s/^[ ]*#[ ]*define[ ][ ]*/ /
29969 t def
29971 :def
29972 s/\\$//
29973 t bsnl
29974 s/["\\]/\\&/g
29975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29976 D["\1"]=" \3"/p
29977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29979 :bsnl
29980 s/["\\]/\\&/g
29981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29982 D["\1"]=" \3\\\\\\n"\\/p
29983 t cont
29984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29985 t cont
29987 :cont
29989 s/.\{148\}/&'"$ac_delim"'/g
29990 t clear
29991 :clear
29992 s/\\$//
29993 t bsnlc
29994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29996 :bsnlc
29997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29998 b cont
29999 ' <confdefs.h | sed '
30000 s/'"$ac_delim"'/"\\\
30001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30004 for (key in D) D_is_set[key] = 1
30005 FS = "\a"
30007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30008 line = \$ 0
30009 split(line, arg, " ")
30010 if (arg[1] == "#") {
30011 defundef = arg[2]
30012 mac1 = arg[3]
30013 } else {
30014 defundef = substr(arg[1], 2)
30015 mac1 = arg[2]
30017 split(mac1, mac2, "(") #)
30018 macro = mac2[1]
30019 prefix = substr(line, 1, index(line, defundef) - 1)
30020 if (D_is_set[macro]) {
30021 # Preserve the white space surrounding the "#".
30022 print prefix "define", macro P[macro] D[macro]
30023 next
30024 } else {
30025 # Replace #undef with comments. This is necessary, for example,
30026 # in the case of _POSIX_SOURCE, which is predefined and required
30027 # on some systems where configure will not decide to define it.
30028 if (defundef == "undef") {
30029 print "/*", prefix defundef, macro, "*/"
30030 next
30034 { print }
30035 _ACAWK
30036 _ACEOF
30037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30038 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30039 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30040 { (exit 1); exit 1; }; }
30041 fi # test -n "$CONFIG_HEADERS"
30044 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30045 shift
30046 for ac_tag
30048 case $ac_tag in
30049 :[FHLC]) ac_mode=$ac_tag; continue;;
30050 esac
30051 case $ac_mode$ac_tag in
30052 :[FHL]*:*);;
30053 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30054 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30055 { (exit 1); exit 1; }; };;
30056 :[FH]-) ac_tag=-:-;;
30057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30058 esac
30059 ac_save_IFS=$IFS
30060 IFS=:
30061 set x $ac_tag
30062 IFS=$ac_save_IFS
30063 shift
30064 ac_file=$1
30065 shift
30067 case $ac_mode in
30068 :L) ac_source=$1;;
30069 :[FH])
30070 ac_file_inputs=
30071 for ac_f
30073 case $ac_f in
30074 -) ac_f="$tmp/stdin";;
30075 *) # Look for the file first in the build tree, then in the source tree
30076 # (if the path is not absolute). The absolute path cannot be DOS-style,
30077 # because $ac_f cannot contain `:'.
30078 test -f "$ac_f" ||
30079 case $ac_f in
30080 [\\/$]*) false;;
30081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30082 esac ||
30083 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30084 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30085 { (exit 1); exit 1; }; };;
30086 esac
30087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30088 ac_file_inputs="$ac_file_inputs '$ac_f'"
30089 done
30091 # Let's still pretend it is `configure' which instantiates (i.e., don't
30092 # use $as_me), people would be surprised to read:
30093 # /* config.h. Generated by config.status. */
30094 configure_input='Generated from '`
30095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30096 `' by configure.'
30097 if test x"$ac_file" != x-; then
30098 configure_input="$ac_file. $configure_input"
30099 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30100 $as_echo "$as_me: creating $ac_file" >&6;}
30102 # Neutralize special characters interpreted by sed in replacement strings.
30103 case $configure_input in #(
30104 *\&* | *\|* | *\\* )
30105 ac_sed_conf_input=`$as_echo "$configure_input" |
30106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30107 *) ac_sed_conf_input=$configure_input;;
30108 esac
30110 case $ac_tag in
30111 *:-:* | *:-) cat >"$tmp/stdin" \
30112 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30113 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30114 { (exit 1); exit 1; }; } ;;
30115 esac
30117 esac
30119 ac_dir=`$as_dirname -- "$ac_file" ||
30120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30121 X"$ac_file" : 'X\(//\)[^/]' \| \
30122 X"$ac_file" : 'X\(//\)$' \| \
30123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30124 $as_echo X"$ac_file" |
30125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30126 s//\1/
30129 /^X\(\/\/\)[^/].*/{
30130 s//\1/
30133 /^X\(\/\/\)$/{
30134 s//\1/
30137 /^X\(\/\).*/{
30138 s//\1/
30141 s/.*/./; q'`
30142 { as_dir="$ac_dir"
30143 case $as_dir in #(
30144 -*) as_dir=./$as_dir;;
30145 esac
30146 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30147 as_dirs=
30148 while :; do
30149 case $as_dir in #(
30150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30151 *) as_qdir=$as_dir;;
30152 esac
30153 as_dirs="'$as_qdir' $as_dirs"
30154 as_dir=`$as_dirname -- "$as_dir" ||
30155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30156 X"$as_dir" : 'X\(//\)[^/]' \| \
30157 X"$as_dir" : 'X\(//\)$' \| \
30158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30159 $as_echo X"$as_dir" |
30160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30161 s//\1/
30164 /^X\(\/\/\)[^/].*/{
30165 s//\1/
30168 /^X\(\/\/\)$/{
30169 s//\1/
30172 /^X\(\/\).*/{
30173 s//\1/
30176 s/.*/./; q'`
30177 test -d "$as_dir" && break
30178 done
30179 test -z "$as_dirs" || eval "mkdir $as_dirs"
30180 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30181 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30182 { (exit 1); exit 1; }; }; }
30183 ac_builddir=.
30185 case "$ac_dir" in
30186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30188 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30189 # A ".." for each directory in $ac_dir_suffix.
30190 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30191 case $ac_top_builddir_sub in
30192 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30193 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30194 esac ;;
30195 esac
30196 ac_abs_top_builddir=$ac_pwd
30197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30198 # for backward compatibility:
30199 ac_top_builddir=$ac_top_build_prefix
30201 case $srcdir in
30202 .) # We are building in place.
30203 ac_srcdir=.
30204 ac_top_srcdir=$ac_top_builddir_sub
30205 ac_abs_top_srcdir=$ac_pwd ;;
30206 [\\/]* | ?:[\\/]* ) # Absolute name.
30207 ac_srcdir=$srcdir$ac_dir_suffix;
30208 ac_top_srcdir=$srcdir
30209 ac_abs_top_srcdir=$srcdir ;;
30210 *) # Relative name.
30211 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30212 ac_top_srcdir=$ac_top_build_prefix$srcdir
30213 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30214 esac
30215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30218 case $ac_mode in
30221 # CONFIG_FILE
30224 ac_MKDIR_P=$MKDIR_P
30225 case $MKDIR_P in
30226 [\\/$]* | ?:[\\/]* ) ;;
30227 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30228 esac
30229 _ACEOF
30231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30232 # If the template does not know about datarootdir, expand it.
30233 # FIXME: This hack should be removed a few years after 2.60.
30234 ac_datarootdir_hack=; ac_datarootdir_seen=
30236 ac_sed_dataroot='
30237 /datarootdir/ {
30241 /@datadir@/p
30242 /@docdir@/p
30243 /@infodir@/p
30244 /@localedir@/p
30245 /@mandir@/p
30247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30248 *datarootdir*) ac_datarootdir_seen=yes;;
30249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30250 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30252 _ACEOF
30253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30254 ac_datarootdir_hack='
30255 s&@datadir@&$datadir&g
30256 s&@docdir@&$docdir&g
30257 s&@infodir@&$infodir&g
30258 s&@localedir@&$localedir&g
30259 s&@mandir@&$mandir&g
30260 s&\\\${datarootdir}&$datarootdir&g' ;;
30261 esac
30262 _ACEOF
30264 # Neutralize VPATH when `$srcdir' = `.'.
30265 # Shell code in configure.ac might set extrasub.
30266 # FIXME: do we really want to maintain this feature?
30267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30268 ac_sed_extra="$ac_vpsub
30269 $extrasub
30270 _ACEOF
30271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30274 s|@configure_input@|$ac_sed_conf_input|;t t
30275 s&@top_builddir@&$ac_top_builddir_sub&;t t
30276 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30277 s&@srcdir@&$ac_srcdir&;t t
30278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30279 s&@top_srcdir@&$ac_top_srcdir&;t t
30280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30281 s&@builddir@&$ac_builddir&;t t
30282 s&@abs_builddir@&$ac_abs_builddir&;t t
30283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30284 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30285 $ac_datarootdir_hack
30287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30288 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30289 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30290 { (exit 1); exit 1; }; }
30292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30295 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30296 which seems to be undefined. Please make sure it is defined." >&5
30297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30298 which seems to be undefined. Please make sure it is defined." >&2;}
30300 rm -f "$tmp/stdin"
30301 case $ac_file in
30302 -) cat "$tmp/out" && rm -f "$tmp/out";;
30303 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30304 esac \
30305 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30306 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30307 { (exit 1); exit 1; }; }
30311 # CONFIG_HEADER
30313 if test x"$ac_file" != x-; then
30315 $as_echo "/* $configure_input */" \
30316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30317 } >"$tmp/config.h" \
30318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30320 { (exit 1); exit 1; }; }
30321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30322 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30324 else
30325 rm -f "$ac_file"
30326 mv "$tmp/config.h" "$ac_file" \
30327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30329 { (exit 1); exit 1; }; }
30331 else
30332 $as_echo "/* $configure_input */" \
30333 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30334 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30335 $as_echo "$as_me: error: could not create -" >&2;}
30336 { (exit 1); exit 1; }; }
30341 # CONFIG_LINK
30344 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30346 else
30347 # Prefer the file from the source tree if names are identical.
30348 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30349 ac_source=$srcdir/$ac_source
30352 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30353 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30355 if test ! -r "$ac_source"; then
30356 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30357 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30358 { (exit 1); exit 1; }; }
30360 rm -f "$ac_file"
30362 # Try a relative symlink, then a hard link, then a copy.
30363 case $srcdir in
30364 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30365 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30366 esac
30367 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30368 ln "$ac_source" "$ac_file" 2>/dev/null ||
30369 cp -p "$ac_source" "$ac_file" ||
30370 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30371 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30372 { (exit 1); exit 1; }; }
30375 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30376 $as_echo "$as_me: executing $ac_file commands" >&6;}
30378 esac
30381 case $ac_file$ac_mode in
30382 "check_win32_symlinks":C)
30383 # Links sometimes fail undetected on Mingw -
30384 # so here we detect it and warn the user
30385 for FILE in $CONFIG_LINKS
30387 # test -e works for symlinks in the MinGW console
30388 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30389 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30390 done
30392 "src/include/pg_config.h":H)
30393 # Update timestamp for pg_config.h (see Makefile.global)
30394 echo >src/include/stamp-h
30396 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30398 esac
30399 done # for ac_tag
30402 { (exit 0); exit 0; }
30403 _ACEOF
30404 chmod +x $CONFIG_STATUS
30405 ac_clean_files=$ac_clean_files_save
30407 test $ac_write_fail = 0 ||
30408 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30409 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30410 { (exit 1); exit 1; }; }
30413 # configure is writing to config.log, and then calls config.status.
30414 # config.status does its own redirection, appending to config.log.
30415 # Unfortunately, on DOS this fails, as config.log is still kept open
30416 # by configure, so config.status won't be able to write to it; its
30417 # output is simply discarded. So we exec the FD to /dev/null,
30418 # effectively closing config.log, so it can be properly (re)opened and
30419 # appended to by config.status. When coming back to configure, we
30420 # need to make the FD available again.
30421 if test "$no_create" != yes; then
30422 ac_cs_success=:
30423 ac_config_status_args=
30424 test "$silent" = yes &&
30425 ac_config_status_args="$ac_config_status_args --quiet"
30426 exec 5>/dev/null
30427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30428 exec 5>>config.log
30429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30430 # would make configure fail if this is the last instruction.
30431 $ac_cs_success || { (exit 1); exit 1; }
30433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30434 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}