Stamp HEAD as 8.4devel.
[PostgreSQL.git] / configure
blobb0d2be20ef9ca3422a71e08c18c3f54a7331b3ad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30 as_unset=unset
31 else
32 as_unset=false
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
42 # NLS nuisances.
43 for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
53 done
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58 else
59 as_expr=false
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64 else
65 as_basename=false
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
100 rm -f conf$$.sh
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156 done
158 esac
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200 else
201 as_expr=false
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217 else
218 as_ln_s='cp -p'
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224 else
225 test -d ./-p && rmdir ./-p
226 as_mkdir_p=false
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
242 IFS=" $as_nl"
244 # CDPATH.
245 $as_unset CDPATH
248 # Name of the host.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 exec 6>&1
256 # Initializations.
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
260 cross_compiling=no
261 subdirs=
262 MFLAGS=
263 MAKEFLAGS=
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.4devel'
275 PACKAGE_STRING='PostgreSQL 8.4devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 # include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 # include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_gssapi with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt with_system_tzdata with_zlib EGREP ELF_SYS LDFLAGS_SL LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB TAR LN_S AWK YACC YFLAGS FLEX FLEXFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs OSSP_UUID_LIBS HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
318 ac_subst_files=''
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 ac_prev=
359 for ac_option
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
372 case $ac_option in
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
391 --config-cache | -C)
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 esac
655 done
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684 done
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
730 else
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
793 cat <<_ACEOF
794 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
803 Configuration:
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 _ACEOF
816 cat <<_ACEOF
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
819 [$ac_default_prefix]
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
821 [PREFIX]
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
843 _ACEOF
845 cat <<\_ACEOF
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 _ACEOF
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
856 esac
857 cat <<\_ACEOF
859 Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-profiling build with profiling enabled
869 --enable-dtrace build with DTrace support
870 --enable-depend turn on automatic dependency tracking
871 --enable-cassert enable assertion checks (for debugging)
872 --enable-thread-safety make client libraries thread-safe
873 --enable-thread-safety-force force thread-safety despite thread test failure
874 --disable-largefile omit support for large files
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
881 --without-docdir do not install the documentation
882 --with-includes=DIRS look for additional header files in DIRS
883 --with-libraries=DIRS look for additional libraries in DIRS
884 --with-libs=DIRS alternative spelling of --with-libraries
885 --with-pgport=PORTNUM change default port number [5432]
886 --with-tcl build Tcl modules (PL/Tcl)
887 --with-tclconfig=DIR tclConfig.sh is in DIR
888 --with-perl build Perl modules (PL/Perl)
889 --with-python build Python modules (PL/Python)
890 --with-gssapi build with GSSAPI support
891 --with-krb5 build with Kerberos 5 support
892 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
893 --with-pam build with PAM support
894 --with-ldap build with LDAP support
895 --with-bonjour build with Bonjour support
896 --with-openssl build with OpenSSL support
897 --without-readline do not use GNU Readline nor BSD Libedit for editing
898 --with-libedit-preferred prefer BSD Libedit over GNU Readline
899 --with-ossp-uuid use OSSP UUID library when building contrib/uuid-ossp
900 --with-libxml build with XML support
901 --with-libxslt use XSLT support when building contrib/xml2
902 --with-system-tzdata=DIR use system time zone data in DIR
903 --without-zlib do not use Zlib
904 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CPP C preprocessor
914 LDFLAGS_SL
915 DOCBOOKSTYLE
916 location of DocBook stylesheets
918 Use these variables to override the choices made by `configure' or to help
919 it to find libraries and programs with nonstandard names/locations.
921 Report bugs to <pgsql-bugs@postgresql.org>.
922 _ACEOF
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
927 ac_popdir=`pwd`
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
930 ac_builddir=.
932 if test "$ac_dir" != .; then
933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937 ac_dir_suffix= ac_top_builddir=
940 case $srcdir in
941 .) # No --srcdir option. We are building in place.
942 ac_srcdir=.
943 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=.
945 else
946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947 fi ;;
948 [\\/]* | ?:[\\/]* ) # Absolute path.
949 ac_srcdir=$srcdir$ac_dir_suffix;
950 ac_top_srcdir=$srcdir ;;
951 *) # Relative path.
952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
961 case "$ac_dir" in
962 .) ac_abs_builddir=`pwd`;;
963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
970 case ${ac_top_builddir}. in
971 .) ac_abs_top_builddir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
979 case $ac_srcdir in
980 .) ac_abs_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
988 case $ac_top_srcdir in
989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 esac;;
993 esac
995 cd $ac_dir
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu; then
998 echo
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
1001 echo
1002 $SHELL $ac_srcdir/configure --help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1005 echo
1006 $ac_configure --help
1007 else
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 cd $ac_popdir
1011 done
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016 cat <<\_ACEOF
1017 PostgreSQL configure 8.4devel
1018 generated by GNU Autoconf 2.59
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1024 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1025 _ACEOF
1026 exit 0
1028 exec 5>config.log
1029 cat >&5 <<_ACEOF
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1033 It was created by PostgreSQL $as_me 8.4devel, which was
1034 generated by GNU Autoconf 2.59. Invocation command line was
1036 $ $0 $@
1038 _ACEOF
1040 cat <<_ASUNAME
1041 ## --------- ##
1042 ## Platform. ##
1043 ## --------- ##
1045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1057 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062 _ASUNAME
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1065 for as_dir in $PATH
1067 IFS=$as_save_IFS
1068 test -z "$as_dir" && as_dir=.
1069 echo "PATH: $as_dir"
1070 done
1072 } >&5
1074 cat >&5 <<_ACEOF
1077 ## ----------- ##
1078 ## Core tests. ##
1079 ## ----------- ##
1081 _ACEOF
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1089 ac_configure_args=
1090 ac_configure_args0=
1091 ac_configure_args1=
1092 ac_sep=
1093 ac_must_keep_next=false
1094 for ac_pass in 1 2
1096 for ac_arg
1098 case $ac_arg in
1099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 continue ;;
1103 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105 esac
1106 case $ac_pass in
1107 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1109 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110 if test $ac_must_keep_next = true; then
1111 ac_must_keep_next=false # Got value, back to normal.
1112 else
1113 case $ac_arg in
1114 *=* | --config-cache | -C | -disable-* | --disable-* \
1115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117 | -with-* | --with-* | -without-* | --without-* | --x)
1118 case "$ac_configure_args0 " in
1119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120 esac
1122 -* ) ac_must_keep_next=true ;;
1123 esac
1125 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126 # Get rid of the leading space.
1127 ac_sep=" "
1129 esac
1130 done
1131 done
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log. We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close' the trap.
1140 trap 'exit_status=$?
1141 # Save into config.log some information that might help in debugging.
1143 echo
1145 cat <<\_ASBOX
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1149 _ASBOX
1150 echo
1151 # The following way of writing the cache mishandles newlines in values,
1153 (set) 2>&1 |
1154 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155 *ac_space=\ *)
1156 sed -n \
1157 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1161 sed -n \
1162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1164 esac;
1166 echo
1168 cat <<\_ASBOX
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1172 _ASBOX
1173 echo
1174 for ac_var in $ac_subst_vars
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1178 done | sort
1179 echo
1181 if test -n "$ac_subst_files"; then
1182 cat <<\_ASBOX
1183 ## ------------- ##
1184 ## Output files. ##
1185 ## ------------- ##
1186 _ASBOX
1187 echo
1188 for ac_var in $ac_subst_files
1190 eval ac_val=$`echo $ac_var`
1191 echo "$ac_var='"'"'$ac_val'"'"'"
1192 done | sort
1193 echo
1196 if test -s confdefs.h; then
1197 cat <<\_ASBOX
1198 ## ----------- ##
1199 ## confdefs.h. ##
1200 ## ----------- ##
1201 _ASBOX
1202 echo
1203 sed "/^$/d" confdefs.h | sort
1204 echo
1206 test "$ac_signal" != 0 &&
1207 echo "$as_me: caught signal $ac_signal"
1208 echo "$as_me: exit $exit_status"
1209 } >&5
1210 rm -f core *.core &&
1211 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212 exit $exit_status
1214 for ac_signal in 1 2 13 15; do
1215 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1216 done
1217 ac_signal=0
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222 echo >confdefs.h
1224 # Predefined preprocessor variables.
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1228 _ACEOF
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1233 _ACEOF
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1238 _ACEOF
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1243 _ACEOF
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1248 _ACEOF
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254 if test "x$prefix" != xNONE; then
1255 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1256 else
1257 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260 for ac_site_file in $CONFIG_SITE; do
1261 if test -r "$ac_site_file"; then
1262 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264 sed 's/^/| /' "$ac_site_file" >&5
1265 . "$ac_site_file"
1267 done
1269 if test -r "$cache_file"; then
1270 # Some versions of bash will fail to source /dev/null (special
1271 # files actually), so we avoid doing that.
1272 if test -f "$cache_file"; then
1273 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1275 case $cache_file in
1276 [\\/]* | ?:[\\/]* ) . $cache_file;;
1277 *) . ./$cache_file;;
1278 esac
1280 else
1281 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1283 >$cache_file
1286 # Check that the precious variables saved in the cache have kept the same
1287 # value.
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1291 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292 eval ac_new_set=\$ac_env_${ac_var}_set
1293 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294 eval ac_new_val="\$ac_env_${ac_var}_value"
1295 case $ac_old_set,$ac_new_set in
1296 set,)
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1300 ,set)
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1304 ,);;
1306 if test "x$ac_old_val" != "x$ac_new_val"; then
1307 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1308 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1309 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1310 echo "$as_me: former value: $ac_old_val" >&2;}
1311 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1312 echo "$as_me: current value: $ac_new_val" >&2;}
1313 ac_cache_corrupted=:
1314 fi;;
1315 esac
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1318 case $ac_new_val in
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1322 esac
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326 esac
1328 done
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 ac_aux_dir=
1374 for ac_dir in config $srcdir/config; do
1375 if test -f $ac_dir/install-sh; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1378 break
1379 elif test -f $ac_dir/install.sh; then
1380 ac_aux_dir=$ac_dir
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1382 break
1383 elif test -f $ac_dir/shtool; then
1384 ac_aux_dir=$ac_dir
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1386 break
1388 done
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399 configure_args=$ac_configure_args
1403 cat >>confdefs.h <<_ACEOF
1404 #define PG_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421 ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425 { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1434 build=$ac_cv_build
1435 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447 ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1456 host=$ac_cv_host
1457 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463 template=
1464 echo "$as_me:$LINENO: checking which template to use" >&5
1465 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1468 pgac_args="$pgac_args with_template"
1471 # Check whether --with-template or --without-template was given.
1472 if test "${with_template+set}" = set; then
1473 withval="$with_template"
1475 case $withval in
1476 yes)
1477 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1478 echo "$as_me: error: argument required for --with-template option" >&2;}
1479 { (exit 1); exit 1; }; }
1482 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1483 echo "$as_me: error: argument required for --with-template option" >&2;}
1484 { (exit 1); exit 1; }; }
1488 case $withval in
1489 list) echo; ls "$srcdir/src/template"; exit;;
1490 *) if test -f "$srcdir/src/template/$with_template" ; then
1491 template=$withval
1492 else
1493 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1494 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1495 { (exit 1); exit 1; }; }
1496 fi;;
1497 esac
1500 esac
1502 else
1504 # --with-template not given
1506 case $host_os in
1507 aix*) template=aix ;;
1508 bsdi*) template=bsdi ;;
1509 cygwin*) template=cygwin ;;
1510 darwin*) template=darwin ;;
1511 dgux*) template=dgux ;;
1512 freebsd*) template=freebsd ;;
1513 hpux*) template=hpux ;;
1514 irix*) template=irix ;;
1515 linux*|gnu*|k*bsd*-gnu)
1516 template=linux ;;
1517 mingw*) template=win32 ;;
1518 netbsd*) template=netbsd ;;
1519 nextstep*) template=nextstep ;;
1520 openbsd*) template=openbsd ;;
1521 osf*) template=osf ;;
1522 sco*) template=sco ;;
1523 solaris*) template=solaris ;;
1524 sunos*) template=sunos4 ;;
1525 sysv4.2*)
1526 case $host_vendor in
1527 univel) template=univel ;;
1528 esac ;;
1529 sysv4*) template=svr4 ;;
1530 sysv5*) template=unixware ;;
1531 ultrix*) template=ultrix4 ;;
1532 esac
1534 if test x"$template" = x"" ; then
1535 { { echo "$as_me:$LINENO: error:
1536 *******************************************************************
1537 PostgreSQL has apparently not been ported to your platform yet.
1538 To try a manual configuration, look into the src/template directory
1539 for a similar platform and use the '--with-template=' option.
1541 Please also contact <pgsql-ports@postgresql.org> to see about
1542 rectifying this. Include the above 'checking host system type...'
1543 line.
1544 *******************************************************************
1545 " >&5
1546 echo "$as_me: error:
1547 *******************************************************************
1548 PostgreSQL has apparently not been ported to your platform yet.
1549 To try a manual configuration, look into the src/template directory
1550 for a similar platform and use the '--with-template=' option.
1552 Please also contact <pgsql-ports@postgresql.org> to see about
1553 rectifying this. Include the above 'checking host system type...'
1554 line.
1555 *******************************************************************
1556 " >&2;}
1557 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $template" >&5
1565 echo "${ECHO_T}$template" >&6
1567 PORTNAME=$template
1570 # Initialize default assumption that we do not need separate assembly code
1571 # for TAS (test-and-set). This can be overridden by the template file
1572 # when it's executed.
1573 need_tas=no
1574 tas_file=dummy.s
1579 ## Command line options
1583 # Installation directory for documentation
1586 pgac_args="$pgac_args with_docdir"
1589 # Check whether --with-docdir or --without-docdir was given.
1590 if test "${with_docdir+set}" = set; then
1591 withval="$with_docdir"
1593 case $withval in
1594 yes)
1595 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1596 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1597 { (exit 1); exit 1; }; }
1600 docdir=
1603 docdir=$withval
1605 esac
1607 else
1608 docdir='${prefix}/doc'
1615 # Add non-standard directories to the include path
1618 pgac_args="$pgac_args with_includes"
1621 # Check whether --with-includes or --without-includes was given.
1622 if test "${with_includes+set}" = set; then
1623 withval="$with_includes"
1625 case $withval in
1626 yes)
1627 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1628 echo "$as_me: error: argument required for --with-includes option" >&2;}
1629 { (exit 1); exit 1; }; }
1632 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1633 echo "$as_me: error: argument required for --with-includes option" >&2;}
1634 { (exit 1); exit 1; }; }
1639 esac
1646 # Add non-standard directories to the library search path
1649 pgac_args="$pgac_args with_libraries"
1652 # Check whether --with-libraries or --without-libraries was given.
1653 if test "${with_libraries+set}" = set; then
1654 withval="$with_libraries"
1656 case $withval in
1657 yes)
1658 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1659 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1660 { (exit 1); exit 1; }; }
1663 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1664 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1665 { (exit 1); exit 1; }; }
1668 LIBRARY_DIRS=$withval
1670 esac
1676 pgac_args="$pgac_args with_libs"
1679 # Check whether --with-libs or --without-libs was given.
1680 if test "${with_libs+set}" = set; then
1681 withval="$with_libs"
1683 case $withval in
1684 yes)
1685 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1686 echo "$as_me: error: argument required for --with-libs option" >&2;}
1687 { (exit 1); exit 1; }; }
1690 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1691 echo "$as_me: error: argument required for --with-libs option" >&2;}
1692 { (exit 1); exit 1; }; }
1695 LIBRARY_DIRS=$withval
1697 esac
1704 # 64-bit integer date/time storage (--enable-integer-datetimes)
1706 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1707 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1709 pgac_args="$pgac_args enable_integer_datetimes"
1711 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1712 if test "${enable_integer_datetimes+set}" = set; then
1713 enableval="$enable_integer_datetimes"
1715 case $enableval in
1716 yes)
1718 cat >>confdefs.h <<\_ACEOF
1719 #define USE_INTEGER_DATETIMES 1
1720 _ACEOF
1727 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1728 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1729 { (exit 1); exit 1; }; }
1731 esac
1733 else
1734 enable_integer_datetimes=no
1738 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1739 echo "${ECHO_T}$enable_integer_datetimes" >&6
1743 # NLS
1745 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1746 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1748 pgac_args="$pgac_args enable_nls"
1750 # Check whether --enable-nls or --disable-nls was given.
1751 if test "${enable_nls+set}" = set; then
1752 enableval="$enable_nls"
1754 case $enableval in
1755 yes)
1762 enable_nls=yes
1763 WANTED_LANGUAGES=$enableval
1765 esac
1767 else
1768 enable_nls=no
1772 if test "$enable_nls" = yes; then
1774 cat >>confdefs.h <<\_ACEOF
1775 #define ENABLE_NLS 1
1776 _ACEOF
1780 echo "$as_me:$LINENO: result: $enable_nls" >&5
1781 echo "${ECHO_T}$enable_nls" >&6
1786 # Default port number (--with-pgport), default 5432
1788 echo "$as_me:$LINENO: checking for default port number" >&5
1789 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1791 pgac_args="$pgac_args with_pgport"
1794 # Check whether --with-pgport or --without-pgport was given.
1795 if test "${with_pgport+set}" = set; then
1796 withval="$with_pgport"
1798 case $withval in
1799 yes)
1800 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1801 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1802 { (exit 1); exit 1; }; }
1805 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1806 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1807 { (exit 1); exit 1; }; }
1810 default_port=$withval
1812 esac
1814 else
1815 default_port=5432
1818 echo "$as_me:$LINENO: result: $default_port" >&5
1819 echo "${ECHO_T}$default_port" >&6
1820 # Need both of these because some places want an integer and some a string
1822 cat >>confdefs.h <<_ACEOF
1823 #define DEF_PGPORT ${default_port}
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define DEF_PGPORT_STR "${default_port}"
1829 _ACEOF
1834 # Option to disable shared libraries
1837 pgac_args="$pgac_args enable_shared"
1839 # Check whether --enable-shared or --disable-shared was given.
1840 if test "${enable_shared+set}" = set; then
1841 enableval="$enable_shared"
1843 case $enableval in
1844 yes)
1851 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1852 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1853 { (exit 1); exit 1; }; }
1855 esac
1857 else
1858 enable_shared=yes
1865 # '-rpath'-like feature can be disabled
1868 pgac_args="$pgac_args enable_rpath"
1870 # Check whether --enable-rpath or --disable-rpath was given.
1871 if test "${enable_rpath+set}" = set; then
1872 enableval="$enable_rpath"
1874 case $enableval in
1875 yes)
1882 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1883 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1884 { (exit 1); exit 1; }; }
1886 esac
1888 else
1889 enable_rpath=yes
1896 # Spinlocks
1899 pgac_args="$pgac_args enable_spinlocks"
1901 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1902 if test "${enable_spinlocks+set}" = set; then
1903 enableval="$enable_spinlocks"
1905 case $enableval in
1906 yes)
1913 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1914 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1915 { (exit 1); exit 1; }; }
1917 esac
1919 else
1920 enable_spinlocks=yes
1926 # --enable-debug adds -g to compiler flags
1929 pgac_args="$pgac_args enable_debug"
1931 # Check whether --enable-debug or --disable-debug was given.
1932 if test "${enable_debug+set}" = set; then
1933 enableval="$enable_debug"
1935 case $enableval in
1936 yes)
1943 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1944 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1945 { (exit 1); exit 1; }; }
1947 esac
1949 else
1950 enable_debug=no
1957 # --enable-profiling enables gcc profiling
1960 pgac_args="$pgac_args enable_profiling"
1962 # Check whether --enable-profiling or --disable-profiling was given.
1963 if test "${enable_profiling+set}" = set; then
1964 enableval="$enable_profiling"
1966 case $enableval in
1967 yes)
1974 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1975 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1976 { (exit 1); exit 1; }; }
1978 esac
1980 else
1981 enable_profiling=no
1988 # DTrace
1991 pgac_args="$pgac_args enable_dtrace"
1993 # Check whether --enable-dtrace or --disable-dtrace was given.
1994 if test "${enable_dtrace+set}" = set; then
1995 enableval="$enable_dtrace"
1997 case $enableval in
1998 yes)
2000 cat >>confdefs.h <<\_ACEOF
2001 #define ENABLE_DTRACE 1
2002 _ACEOF
2004 for ac_prog in dtrace
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_DTRACE+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$DTRACE"; then
2014 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_DTRACE="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 DTRACE=$ac_cv_prog_DTRACE
2033 if test -n "$DTRACE"; then
2034 echo "$as_me:$LINENO: result: $DTRACE" >&5
2035 echo "${ECHO_T}$DTRACE" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2041 test -n "$DTRACE" && break
2042 done
2044 if test -z "$DTRACE"; then
2045 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2046 echo "$as_me: error: dtrace not found" >&2;}
2047 { (exit 1); exit 1; }; }
2055 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2056 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2057 { (exit 1); exit 1; }; }
2059 esac
2061 else
2062 enable_dtrace=no
2069 # C compiler
2072 # For historical reasons you can also use --with-CC to specify the C compiler
2073 # to use, although the standard way to do this is to set the CC environment
2074 # variable.
2076 pgac_args="$pgac_args with_CC"
2079 # Check whether --with-CC or --without-CC was given.
2080 if test "${with_CC+set}" = set; then
2081 withval="$with_CC"
2083 case $withval in
2084 yes)
2085 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2086 echo "$as_me: error: argument required for --with-CC option" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2091 echo "$as_me: error: argument required for --with-CC option" >&2;}
2092 { (exit 1); exit 1; }; }
2095 CC=$with_CC
2097 esac
2102 case $template in
2103 aix) pgac_cc_list="gcc xlc";;
2104 irix) pgac_cc_list="cc";; # no gcc
2105 *) pgac_cc_list="gcc cc";;
2106 esac
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 for ac_prog in $pgac_cc_list
2116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 break 2
2137 done
2138 done
2142 CC=$ac_cv_prog_CC
2143 if test -n "$CC"; then
2144 echo "$as_me:$LINENO: result: $CC" >&5
2145 echo "${ECHO_T}$CC" >&6
2146 else
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 test -n "$CC" && break
2152 done
2154 if test -z "$CC"; then
2155 ac_ct_CC=$CC
2156 for ac_prog in $pgac_cc_list
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 if test -n "$ac_ct_CC"; then
2166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_ac_ct_CC="$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2179 done
2180 done
2184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 echo "${ECHO_T}$ac_ct_CC" >&6
2188 else
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2193 test -n "$ac_ct_CC" && break
2194 done
2196 CC=$ac_ct_CC
2200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: no acceptable C compiler found in \$PATH
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2206 # Provide some information about the compiler.
2207 echo "$as_me:$LINENO:" \
2208 "checking for C compiler version" >&5
2209 ac_compiler=`set X $ac_compile; echo $2`
2210 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2211 (eval $ac_compiler --version </dev/null >&5) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2215 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2216 (eval $ac_compiler -v </dev/null >&5) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }
2220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2221 (eval $ac_compiler -V </dev/null >&5) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2226 cat >conftest.$ac_ext <<_ACEOF
2227 /* confdefs.h. */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2234 main ()
2238 return 0;
2240 _ACEOF
2241 ac_clean_files_save=$ac_clean_files
2242 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2243 # Try to create an executable without -o first, disregard a.out.
2244 # It will help us diagnose broken compilers, and finding out an intuition
2245 # of exeext.
2246 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2248 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2250 (eval $ac_link_default) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # Find the output, starting from the most likely. This scheme is
2255 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2256 # resort.
2258 # Be careful to initialize this variable, since it used to be cached.
2259 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2260 ac_cv_exeext=
2261 # b.out is created by i960 compilers.
2262 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2264 test -f "$ac_file" || continue
2265 case $ac_file in
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2268 conftest.$ac_ext )
2269 # This is the source file.
2271 [ab].out )
2272 # We found the default executable, but exeext='' is most
2273 # certainly right.
2274 break;;
2275 *.* )
2276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 # FIXME: I believe we export ac_cv_exeext for Libtool,
2278 # but it would be cool to find out if it's true. Does anybody
2279 # maintain Libtool? --akim.
2280 export ac_cv_exeext
2281 break;;
2283 break;;
2284 esac
2285 done
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: C compiler cannot create executables
2293 See \`config.log' for more details." >&2;}
2294 { (exit 77); exit 77; }; }
2297 ac_exeext=$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6
2301 # Check the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2304 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2305 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2306 # If not cross compiling, check that we can run a simple program.
2307 if test "$cross_compiling" != yes; then
2308 if { ac_try='./$ac_file'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 cross_compiling=no
2315 else
2316 if test "$cross_compiling" = maybe; then
2317 cross_compiling=yes
2318 else
2319 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2329 echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6
2332 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2333 ac_clean_files=$ac_clean_files_save
2334 # Check the compiler produces executables we can run. If not, either
2335 # the compiler is broken, or we cross compile.
2336 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2337 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2338 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2339 echo "${ECHO_T}$cross_compiling" >&6
2341 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2342 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344 (eval $ac_link) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2350 # work properly (i.e., refer to `conftest.exe'), while it won't with
2351 # `rm'.
2352 for ac_file in conftest.exe conftest conftest.*; do
2353 test -f "$ac_file" || continue
2354 case $ac_file in
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2356 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357 export ac_cv_exeext
2358 break;;
2359 * ) break;;
2360 esac
2361 done
2362 else
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest$ac_cv_exeext
2371 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2376 ac_exeext=$EXEEXT
2377 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379 if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2390 main ()
2394 return 0;
2396 _ACEOF
2397 rm -f conftest.o conftest.obj
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2407 break;;
2408 esac
2409 done
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424 echo "${ECHO_T}$ac_cv_objext" >&6
2425 OBJEXT=$ac_cv_objext
2426 ac_objext=$OBJEXT
2427 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2442 #ifndef __GNUC__
2443 choke me
2444 #endif
2447 return 0;
2449 _ACEOF
2450 rm -f conftest.$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_compiler_gnu=yes
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 ac_compiler_gnu=no
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485 GCC=`test $ac_compiler_gnu = yes && echo yes`
2486 ac_test_CFLAGS=${CFLAGS+set}
2487 ac_save_CFLAGS=$CFLAGS
2488 CFLAGS="-g"
2489 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_g+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 main ()
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_cv_prog_cc_g=yes
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 ac_cv_prog_cc_g=no
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542 if test "$ac_test_CFLAGS" = set; then
2543 CFLAGS=$ac_save_CFLAGS
2544 elif test $ac_cv_prog_cc_g = yes; then
2545 if test "$GCC" = yes; then
2546 CFLAGS="-g -O2"
2547 else
2548 CFLAGS="-g"
2550 else
2551 if test "$GCC" = yes; then
2552 CFLAGS="-O2"
2553 else
2554 CFLAGS=
2557 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 ac_cv_prog_cc_stdc=no
2563 ac_save_CC=$CC
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2570 #include <stdarg.h>
2571 #include <stdio.h>
2572 #include <sys/types.h>
2573 #include <sys/stat.h>
2574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2575 struct buf { int x; };
2576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577 static char *e (p, i)
2578 char **p;
2579 int i;
2581 return p[i];
2583 static char *f (char * (*g) (char **, int), char **p, ...)
2585 char *s;
2586 va_list v;
2587 va_start (v,p);
2588 s = g (p, va_arg (v,int));
2589 va_end (v);
2590 return s;
2593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2594 function prototypes and stuff, but not '\xHH' hex character constants.
2595 These don't provoke an error unfortunately, instead are silently treated
2596 as 'x'. The following induces an error, until -std1 is added to get
2597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2598 array size at least. It's necessary to write '\x00'==0 to get something
2599 that's true only with -std1. */
2600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2606 int argc;
2607 char **argv;
2609 main ()
2611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2613 return 0;
2615 _ACEOF
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX -qlanglvl=ansi
2619 # Ultrix and OSF/1 -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions -Aa -D_HPUX_SOURCE
2622 # SVR4 -Xc -D__EXTENSIONS__
2623 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 CC="$ac_save_CC $ac_arg"
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cc_stdc=$ac_arg
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.err conftest.$ac_objext
2656 done
2657 rm -f conftest.$ac_ext conftest.$ac_objext
2658 CC=$ac_save_CC
2662 case "x$ac_cv_prog_cc_stdc" in
2663 x|xno)
2664 echo "$as_me:$LINENO: result: none needed" >&5
2665 echo "${ECHO_T}none needed" >&6 ;;
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669 CC="$CC $ac_cv_prog_cc_stdc" ;;
2670 esac
2672 # Some people use a C++ compiler to compile C. Since we use `exit',
2673 # in C++ we need to declare it. In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #ifndef __cplusplus
2678 choke me
2679 #endif
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 for ac_declaration in \
2704 '' \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2709 'void exit (int);'
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2717 $ac_declaration
2718 #include <stdlib.h>
2720 main ()
2722 exit (42);
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 continue
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 $ac_declaration
2765 main ()
2767 exit (42);
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 break
2795 else
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
2823 # but has idiosyncrasies of its own. We assume icc will define
2824 # __INTEL_COMPILER regardless of CFLAGS.
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2834 main ()
2836 #ifndef __INTEL_COMPILER
2837 choke me
2838 #endif
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ICC=yes
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 ICC=no
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874 unset CFLAGS
2877 # Read the template
2879 . "$srcdir/src/template/$template" || exit
2881 # CFLAGS are selected so:
2882 # If the user specifies something in the environment, that is used.
2883 # else: If the template file set something, that is used.
2884 # else: If the compiler is GCC, then we use -O2.
2885 # else: If the compiler is something else, then we use -0.
2887 if test "$ac_env_CFLAGS_set" = set; then
2888 CFLAGS=$ac_env_CFLAGS_value
2889 elif test "${CFLAGS+set}" = set; then
2890 : # (keep what template set)
2891 elif test "$GCC" = yes; then
2892 CFLAGS="-O2"
2893 else
2894 # if the user selected debug mode, don't use -O
2895 if test "$enable_debug" != yes; then
2896 CFLAGS="-O"
2900 # Some versions of GCC support some additional useful warning flags.
2901 # Check whether they are supported, and add them to CFLAGS if so.
2902 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2904 if test "$GCC" = yes -a "$ICC" = no; then
2905 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2906 # These work in some but not all gcc versions
2907 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2908 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2909 pgac_save_CFLAGS=$CFLAGS
2910 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2919 main ()
2923 return 0;
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 CFLAGS="$pgac_save_CFLAGS"
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2961 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2962 pgac_save_CFLAGS=$CFLAGS
2963 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 CFLAGS="$pgac_save_CFLAGS"
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Disable strict-aliasing rules; needed for gcc 3.3+
3014 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3015 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3016 pgac_save_CFLAGS=$CFLAGS
3017 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3026 main ()
3030 return 0;
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 CFLAGS="$pgac_save_CFLAGS"
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 elif test "$ICC" = yes; then
3068 # Intel's compiler has a bug/misoptimization in checking for
3069 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3070 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3071 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3072 pgac_save_CFLAGS=$CFLAGS
3073 CFLAGS="$pgac_save_CFLAGS -mp1"
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 CFLAGS="$pgac_save_CFLAGS"
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3123 # Make sure strict aliasing is off (though this is said to be the default)
3124 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3125 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3126 pgac_save_CFLAGS=$CFLAGS
3127 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3136 main ()
3140 return 0;
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 CFLAGS="$pgac_save_CFLAGS"
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 elif test x"${CC}" = x"xlc"; then
3178 # AIX xlc has to have strict aliasing turned off too
3179 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3180 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3181 pgac_save_CFLAGS=$CFLAGS
3182 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 echo "$as_me:$LINENO: result: yes" >&5
3221 echo "${ECHO_T}yes" >&6
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 CFLAGS="$pgac_save_CFLAGS"
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234 # supply -g if --enable-debug
3235 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3236 CFLAGS="$CFLAGS -g"
3239 # enable profiling if --enable-profiling
3240 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3241 if test "$GCC" = yes; then
3243 cat >>confdefs.h <<\_ACEOF
3244 #define PROFILE_PID_DIR 1
3245 _ACEOF
3247 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3248 else
3249 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3250 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3251 { (exit 1); exit 1; }; }
3255 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3256 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3258 # We already have this in Makefile.win32, but configure needs it too
3259 if test "$PORTNAME" = "win32"; then
3260 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3263 # Check if the compiler still works with the template settings
3264 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3265 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3274 main ()
3276 return 0;
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283 (eval $ac_link) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest$ac_exeext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3312 echo "$as_me: error: cannot proceed" >&2;}
3313 { (exit 1); exit 1; }; }
3315 rm -f conftest.err conftest.$ac_objext \
3316 conftest$ac_exeext conftest.$ac_ext
3318 # Defend against gcc -ffast-math
3319 if test "$GCC" = yes; then
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3328 main ()
3330 #ifdef __FAST_MATH__
3331 choke me
3332 #endif
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_c_werror_flag"
3347 || test ! -s conftest.err'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3365 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3366 { (exit 1); exit 1; }; }
3368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409 Syntax error
3410 _ACEOF
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 else
3423 ac_cpp_err=
3425 else
3426 ac_cpp_err=yes
3428 if test -z "$ac_cpp_err"; then
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3435 continue
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3463 else
3464 ac_cpp_err=yes
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3468 continue
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3477 rm -f conftest.err conftest.$ac_ext
3479 done
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.$ac_ext
3482 if $ac_preproc_ok; then
3483 break
3486 done
3487 ac_cv_prog_CPP=$CPP
3490 CPP=$ac_cv_prog_CPP
3491 else
3492 ac_cv_prog_CPP=$CPP
3494 echo "$as_me:$LINENO: result: $CPP" >&5
3495 echo "${ECHO_T}$CPP" >&6
3496 ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #ifdef __STDC__
3512 # include <limits.h>
3513 #else
3514 # include <assert.h>
3515 #endif
3516 Syntax error
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3529 else
3530 ac_cpp_err=
3532 else
3533 ac_cpp_err=yes
3535 if test -z "$ac_cpp_err"; then
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Broken: fails on valid input.
3542 continue
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether non-existent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3570 else
3571 ac_cpp_err=yes
3573 if test -z "$ac_cpp_err"; then
3574 # Broken: success on invalid input.
3575 continue
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Passes both tests.
3581 ac_preproc_ok=:
3582 break
3584 rm -f conftest.err conftest.$ac_ext
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3591 else
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 # Create compiler version string
3608 if test x"$GCC" = x"yes" ; then
3609 cc_string="GCC `${CC} --version | sed q`"
3610 else
3611 cc_string=$CC
3614 cat >>confdefs.h <<_ACEOF
3615 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3616 _ACEOF
3621 # Set up TAS assembly code if needed; the template file has now had its
3622 # chance to request this.
3624 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3627 if test "$need_tas" = yes ; then
3628 TAS=tas.o
3629 else
3630 TAS=""
3636 # Automatic dependency tracking
3639 pgac_args="$pgac_args enable_depend"
3641 # Check whether --enable-depend or --disable-depend was given.
3642 if test "${enable_depend+set}" = set; then
3643 enableval="$enable_depend"
3645 case $enableval in
3646 yes)
3647 autodepend=yes
3653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3654 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3655 { (exit 1); exit 1; }; }
3657 esac
3659 else
3660 enable_depend=no
3668 # Enable assert checks
3671 pgac_args="$pgac_args enable_cassert"
3673 # Check whether --enable-cassert or --disable-cassert was given.
3674 if test "${enable_cassert+set}" = set; then
3675 enableval="$enable_cassert"
3677 case $enableval in
3678 yes)
3680 cat >>confdefs.h <<\_ACEOF
3681 #define USE_ASSERT_CHECKING 1
3682 _ACEOF
3689 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3690 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3691 { (exit 1); exit 1; }; }
3693 esac
3695 else
3696 enable_cassert=no
3703 # Include directories
3705 ac_save_IFS=$IFS
3706 IFS="${IFS}${PATH_SEPARATOR}"
3707 # SRCH_INC comes from the template file
3708 for dir in $with_includes $SRCH_INC; do
3709 if test -d "$dir"; then
3710 INCLUDES="$INCLUDES -I$dir"
3711 else
3712 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3713 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3715 done
3716 IFS=$ac_save_IFS
3721 # Library directories
3723 ac_save_IFS=$IFS
3724 IFS="${IFS}${PATH_SEPARATOR}"
3725 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3726 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3727 if test -d "$dir"; then
3728 LIBDIRS="$LIBDIRS -L$dir"
3729 else
3730 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3731 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3733 done
3734 IFS=$ac_save_IFS
3737 # Enable thread-safe client libraries
3739 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3740 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3741 if test "$PORTNAME" != "win32"; then
3743 pgac_args="$pgac_args enable_thread_safety"
3745 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3746 if test "${enable_thread_safety+set}" = set; then
3747 enableval="$enable_thread_safety"
3749 case $enableval in
3750 yes)
3757 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3758 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3759 { (exit 1); exit 1; }; }
3761 esac
3763 else
3764 enable_thread_safety=no
3768 else
3769 # Win32 should always use threads
3771 pgac_args="$pgac_args enable_thread_safety"
3773 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3774 if test "${enable_thread_safety+set}" = set; then
3775 enableval="$enable_thread_safety"
3777 case $enableval in
3778 yes)
3785 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3786 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3787 { (exit 1); exit 1; }; }
3789 esac
3791 else
3792 enable_thread_safety=yes
3799 pgac_args="$pgac_args enable_thread_safety_force"
3801 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3802 if test "${enable_thread_safety_force+set}" = set; then
3803 enableval="$enable_thread_safety_force"
3805 case $enableval in
3806 yes)
3813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3814 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3815 { (exit 1); exit 1; }; }
3817 esac
3819 else
3820 enable_thread_safety_force=no
3824 if test "$enable_thread_safety" = yes -o \
3825 "$enable_thread_safety_force" = yes; then
3826 enable_thread_safety="yes" # for 'force'
3828 cat >>confdefs.h <<\_ACEOF
3829 #define ENABLE_THREAD_SAFETY 1
3830 _ACEOF
3833 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3834 echo "${ECHO_T}$enable_thread_safety" >&6
3838 # Optionally build Tcl modules (PL/Tcl)
3840 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3841 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3843 pgac_args="$pgac_args with_tcl"
3846 # Check whether --with-tcl or --without-tcl was given.
3847 if test "${with_tcl+set}" = set; then
3848 withval="$with_tcl"
3850 case $withval in
3851 yes)
3858 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3859 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3860 { (exit 1); exit 1; }; }
3862 esac
3864 else
3865 with_tcl=no
3869 echo "$as_me:$LINENO: result: $with_tcl" >&5
3870 echo "${ECHO_T}$with_tcl" >&6
3873 # We see if the path to the Tcl/Tk configuration scripts is specified.
3874 # This will override the use of tclsh to find the paths to search.
3877 pgac_args="$pgac_args with_tclconfig"
3880 # Check whether --with-tclconfig or --without-tclconfig was given.
3881 if test "${with_tclconfig+set}" = set; then
3882 withval="$with_tclconfig"
3884 case $withval in
3885 yes)
3886 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3887 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3888 { (exit 1); exit 1; }; }
3891 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3893 { (exit 1); exit 1; }; }
3898 esac
3904 # Optionally build Perl modules (PL/Perl)
3906 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3907 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3909 pgac_args="$pgac_args with_perl"
3912 # Check whether --with-perl or --without-perl was given.
3913 if test "${with_perl+set}" = set; then
3914 withval="$with_perl"
3916 case $withval in
3917 yes)
3924 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3925 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3926 { (exit 1); exit 1; }; }
3928 esac
3930 else
3931 with_perl=no
3935 echo "$as_me:$LINENO: result: $with_perl" >&5
3936 echo "${ECHO_T}$with_perl" >&6
3940 # Optionally build Python modules (PL/Python)
3942 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3943 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3945 pgac_args="$pgac_args with_python"
3948 # Check whether --with-python or --without-python was given.
3949 if test "${with_python+set}" = set; then
3950 withval="$with_python"
3952 case $withval in
3953 yes)
3960 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3961 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3962 { (exit 1); exit 1; }; }
3964 esac
3966 else
3967 with_python=no
3971 echo "$as_me:$LINENO: result: $with_python" >&5
3972 echo "${ECHO_T}$with_python" >&6
3976 # GSSAPI
3978 echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
3979 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6
3981 pgac_args="$pgac_args with_gssapi"
3984 # Check whether --with-gssapi or --without-gssapi was given.
3985 if test "${with_gssapi+set}" = set; then
3986 withval="$with_gssapi"
3988 case $withval in
3989 yes)
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GSS 1
3994 _ACEOF
3996 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4003 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4004 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4005 { (exit 1); exit 1; }; }
4007 esac
4009 else
4010 with_gssapi=no
4014 echo "$as_me:$LINENO: result: $with_gssapi" >&5
4015 echo "${ECHO_T}$with_gssapi" >&6
4019 # Kerberos 5
4021 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4022 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
4024 pgac_args="$pgac_args with_krb5"
4027 # Check whether --with-krb5 or --without-krb5 was given.
4028 if test "${with_krb5+set}" = set; then
4029 withval="$with_krb5"
4031 case $withval in
4032 yes)
4035 cat >>confdefs.h <<\_ACEOF
4036 #define KRB5 1
4037 _ACEOF
4039 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4046 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4047 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4048 { (exit 1); exit 1; }; }
4050 esac
4052 else
4053 with_krb5=no
4057 echo "$as_me:$LINENO: result: $with_krb5" >&5
4058 echo "${ECHO_T}$with_krb5" >&6
4066 # Kerberos configuration parameters
4069 pgac_args="$pgac_args with_krb_srvnam"
4072 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
4073 if test "${with_krb_srvnam+set}" = set; then
4074 withval="$with_krb_srvnam"
4076 case $withval in
4077 yes)
4078 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4079 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4080 { (exit 1); exit 1; }; }
4083 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4084 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4085 { (exit 1); exit 1; }; }
4090 esac
4092 else
4093 with_krb_srvnam="postgres"
4097 cat >>confdefs.h <<_ACEOF
4098 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4099 _ACEOF
4104 # PAM
4106 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4107 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4109 pgac_args="$pgac_args with_pam"
4112 # Check whether --with-pam or --without-pam was given.
4113 if test "${with_pam+set}" = set; then
4114 withval="$with_pam"
4116 case $withval in
4117 yes)
4119 cat >>confdefs.h <<\_ACEOF
4120 #define USE_PAM 1
4121 _ACEOF
4128 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4129 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4130 { (exit 1); exit 1; }; }
4132 esac
4134 else
4135 with_pam=no
4139 echo "$as_me:$LINENO: result: $with_pam" >&5
4140 echo "${ECHO_T}$with_pam" >&6
4145 # LDAP
4147 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4148 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4150 pgac_args="$pgac_args with_ldap"
4153 # Check whether --with-ldap or --without-ldap was given.
4154 if test "${with_ldap+set}" = set; then
4155 withval="$with_ldap"
4157 case $withval in
4158 yes)
4160 cat >>confdefs.h <<\_ACEOF
4161 #define USE_LDAP 1
4162 _ACEOF
4169 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4170 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4171 { (exit 1); exit 1; }; }
4173 esac
4175 else
4176 with_ldap=no
4180 echo "$as_me:$LINENO: result: $with_ldap" >&5
4181 echo "${ECHO_T}$with_ldap" >&6
4186 # Bonjour
4188 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4189 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4191 pgac_args="$pgac_args with_bonjour"
4194 # Check whether --with-bonjour or --without-bonjour was given.
4195 if test "${with_bonjour+set}" = set; then
4196 withval="$with_bonjour"
4198 case $withval in
4199 yes)
4201 cat >>confdefs.h <<\_ACEOF
4202 #define USE_BONJOUR 1
4203 _ACEOF
4210 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4211 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4212 { (exit 1); exit 1; }; }
4214 esac
4216 else
4217 with_bonjour=no
4221 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4222 echo "${ECHO_T}$with_bonjour" >&6
4227 # OpenSSL
4229 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4230 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4232 pgac_args="$pgac_args with_openssl"
4235 # Check whether --with-openssl or --without-openssl was given.
4236 if test "${with_openssl+set}" = set; then
4237 withval="$with_openssl"
4239 case $withval in
4240 yes)
4242 cat >>confdefs.h <<\_ACEOF
4243 #define USE_SSL 1
4244 _ACEOF
4251 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4252 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4253 { (exit 1); exit 1; }; }
4255 esac
4257 else
4258 with_openssl=no
4262 echo "$as_me:$LINENO: result: $with_openssl" >&5
4263 echo "${ECHO_T}$with_openssl" >&6
4268 # Readline
4271 pgac_args="$pgac_args with_readline"
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276 withval="$with_readline"
4278 case $withval in
4279 yes)
4286 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4287 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4288 { (exit 1); exit 1; }; }
4290 esac
4292 else
4293 with_readline=yes
4297 # readline on MinGW has problems with backslashes in psql and other bugs.
4298 # This is particularly a problem with non-US code pages.
4299 # Therefore disable its use until we understand the cause. 2004-07-20
4300 if test "$PORTNAME" = "win32"; then
4301 if test "$with_readline" = yes; then
4302 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4303 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4304 with_readline=no
4310 # Prefer libedit
4313 pgac_args="$pgac_args with_libedit_preferred"
4316 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4317 if test "${with_libedit_preferred+set}" = set; then
4318 withval="$with_libedit_preferred"
4320 case $withval in
4321 yes)
4328 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4329 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4330 { (exit 1); exit 1; }; }
4332 esac
4334 else
4335 with_libedit_preferred=no
4342 # OSSP UUID library
4345 pgac_args="$pgac_args with_ossp_uuid"
4348 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4349 if test "${with_ossp_uuid+set}" = set; then
4350 withval="$with_ossp_uuid"
4352 case $withval in
4353 yes)
4360 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4361 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4362 { (exit 1); exit 1; }; }
4364 esac
4366 else
4367 with_ossp_uuid=no
4375 # XML
4378 pgac_args="$pgac_args with_libxml"
4381 # Check whether --with-libxml or --without-libxml was given.
4382 if test "${with_libxml+set}" = set; then
4383 withval="$with_libxml"
4385 case $withval in
4386 yes)
4388 cat >>confdefs.h <<\_ACEOF
4389 #define USE_LIBXML 1
4390 _ACEOF
4397 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4398 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4399 { (exit 1); exit 1; }; }
4401 esac
4403 else
4404 with_libxml=no
4409 if test "$with_libxml" = yes ; then
4410 for ac_prog in xml2-config
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 if test -n "$XML2_CONFIG"; then
4420 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_XML2_CONFIG="$ac_prog"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4438 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4439 if test -n "$XML2_CONFIG"; then
4440 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4441 echo "${ECHO_T}$XML2_CONFIG" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4447 test -n "$XML2_CONFIG" && break
4448 done
4450 if test -n "$XML2_CONFIG"; then
4451 for pgac_option in `$XML2_CONFIG --cflags`; do
4452 case $pgac_option in
4453 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4454 esac
4455 done
4456 for pgac_option in `$XML2_CONFIG --libs`; do
4457 case $pgac_option in
4458 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4459 esac
4460 done
4467 # XSLT
4470 pgac_args="$pgac_args with_libxslt"
4473 # Check whether --with-libxslt or --without-libxslt was given.
4474 if test "${with_libxslt+set}" = set; then
4475 withval="$with_libxslt"
4477 case $withval in
4478 yes)
4480 cat >>confdefs.h <<\_ACEOF
4481 #define USE_LIBXSLT 1
4482 _ACEOF
4489 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4490 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4491 { (exit 1); exit 1; }; }
4493 esac
4495 else
4496 with_libxslt=no
4505 # tzdata
4508 pgac_args="$pgac_args with_system_tzdata"
4511 # Check whether --with-system-tzdata or --without-system-tzdata was given.
4512 if test "${with_system_tzdata+set}" = set; then
4513 withval="$with_system_tzdata"
4515 case $withval in
4516 yes)
4517 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4518 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4519 { (exit 1); exit 1; }; }
4522 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4523 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4524 { (exit 1); exit 1; }; }
4529 esac
4536 # Zlib
4539 pgac_args="$pgac_args with_zlib"
4542 # Check whether --with-zlib or --without-zlib was given.
4543 if test "${with_zlib+set}" = set; then
4544 withval="$with_zlib"
4546 case $withval in
4547 yes)
4554 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4555 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4556 { (exit 1); exit 1; }; }
4558 esac
4560 else
4561 with_zlib=yes
4568 # Elf
4571 # Assume system is ELF if it predefines __ELF__ as 1,
4572 # otherwise believe host_os based default.
4573 case $host_os in
4574 freebsd1*|freebsd2*) elf=no;;
4575 freebsd3*|freebsd4*) elf=yes;;
4576 esac
4579 echo "$as_me:$LINENO: checking for egrep" >&5
4580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4581 if test "${ac_cv_prog_egrep+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4585 then ac_cv_prog_egrep='grep -E'
4586 else ac_cv_prog_egrep='egrep'
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4591 EGREP=$ac_cv_prog_egrep
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #if __ELF__
4602 #endif
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "yes" >/dev/null 2>&1; then
4607 ELF_SYS=true
4608 else
4609 if test "X$elf" = "Xyes" ; then
4610 ELF_SYS=true
4611 else
4612 ELF_SYS=
4615 rm -f conftest*
4620 # Assignments
4623 CPPFLAGS="$CPPFLAGS $INCLUDES"
4624 LDFLAGS="$LDFLAGS $LIBDIRS"
4626 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4627 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4628 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4629 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636 withval="$with_gnu_ld"
4637 test "$withval" = no || with_gnu_ld=yes
4638 else
4639 with_gnu_ld=no
4641 ac_prog=ld
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4645 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4646 case $host in
4647 *-*-mingw*)
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652 esac
4653 case "$ac_prog" in
4654 # Accept absolute paths.
4655 [\\/]* | [A-Za-z]:[\\/]*)
4656 re_direlt='/[^/][^/]*/\.\./'
4657 # Canonicalize the path of ld
4658 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4659 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4661 done
4662 test -z "$LD" && LD="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4666 ac_prog=ld
4669 # If it is relative, then search for the first ld in PATH.
4670 with_gnu_ld=unknown
4672 esac
4673 elif test "$with_gnu_ld" = yes; then
4674 echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4676 else
4677 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4680 if test "${ac_cv_path_LD+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -z "$LD"; then
4684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4685 for ac_dir in $PATH; do
4686 test -z "$ac_dir" && ac_dir=.
4687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4688 ac_cv_path_LD="$ac_dir/$ac_prog"
4689 # Check to see if the program is GNU ld. I'd rather use --version,
4690 # but apparently some GNU ld's only accept -v.
4691 # Break only if it was the GNU/non-GNU ld that we prefer.
4692 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4693 test "$with_gnu_ld" != no && break
4694 else
4695 test "$with_gnu_ld" != yes && break
4698 done
4699 IFS="$ac_save_ifs"
4700 else
4701 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4705 LD="$ac_cv_path_LD"
4706 if test -n "$LD"; then
4707 echo "$as_me:$LINENO: result: $LD" >&5
4708 echo "${ECHO_T}$LD" >&6
4709 else
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4715 { (exit 1); exit 1; }; }
4716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4718 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4722 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4723 ac_cv_prog_gnu_ld=yes
4724 else
4725 ac_cv_prog_gnu_ld=no
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4729 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4730 with_gnu_ld=$ac_cv_prog_gnu_ld
4735 case $host_os in sysv5*)
4736 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4737 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4738 if test "${pgac_cv_prog_ld_R+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4742 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4751 main ()
4755 return 0;
4757 _ACEOF
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 pgac_cv_prog_ld_R=yes
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 pgac_cv_prog_ld_R=no
4787 rm -f conftest.err conftest.$ac_objext \
4788 conftest$ac_exeext conftest.$ac_ext
4789 LDFLAGS=$pgac_save_LDFLAGS
4792 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4793 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4794 ld_R_works=$pgac_cv_prog_ld_R
4796 esac
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_RANLIB+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$RANLIB"; then
4806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 RANLIB=$ac_cv_prog_RANLIB
4825 if test -n "$RANLIB"; then
4826 echo "$as_me:$LINENO: result: $RANLIB" >&5
4827 echo "${ECHO_T}$RANLIB" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4834 if test -z "$ac_cv_prog_RANLIB"; then
4835 ac_ct_RANLIB=$RANLIB
4836 # Extract the first word of "ranlib", so it can be a program name with args.
4837 set dummy ranlib; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 if test -n "$ac_ct_RANLIB"; then
4844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_RANLIB="ranlib"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4860 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4864 if test -n "$ac_ct_RANLIB"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4867 else
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 RANLIB=$ac_ct_RANLIB
4873 else
4874 RANLIB="$ac_cv_prog_RANLIB"
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}strip; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_STRIP+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 if test -n "$STRIP"; then
4887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4905 STRIP=$ac_cv_prog_STRIP
4906 if test -n "$STRIP"; then
4907 echo "$as_me:$LINENO: result: $STRIP" >&5
4908 echo "${ECHO_T}$STRIP" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4915 if test -z "$ac_cv_prog_STRIP"; then
4916 ac_ct_STRIP=$STRIP
4917 # Extract the first word of "strip", so it can be a program name with args.
4918 set dummy strip; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 if test -n "$ac_ct_STRIP"; then
4925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_STRIP="strip"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4941 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4944 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4945 if test -n "$ac_ct_STRIP"; then
4946 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4947 echo "${ECHO_T}$ac_ct_STRIP" >&6
4948 else
4949 echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4953 STRIP=$ac_ct_STRIP
4954 else
4955 STRIP="$ac_cv_prog_STRIP"
4959 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4960 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4961 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4962 STRIP_STATIC_LIB="$STRIP -x"
4963 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4966 else
4967 STRIP_STATIC_LIB=:
4968 STRIP_SHARED_LIB=:
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4976 # Extract the first word of "tar", so it can be a program name with args.
4977 set dummy tar; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_TAR+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 case $TAR in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5003 esac
5005 TAR=$ac_cv_path_TAR
5007 if test -n "$TAR"; then
5008 echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5017 LN_S=$as_ln_s
5018 if test "$LN_S" = "ln -s"; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 else
5022 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 echo "${ECHO_T}no, using $LN_S" >&6
5026 for ac_prog in gawk mawk nawk awk
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_AWK+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test -n "$AWK"; then
5036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_AWK="$ac_prog"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5054 AWK=$ac_cv_prog_AWK
5055 if test -n "$AWK"; then
5056 echo "$as_me:$LINENO: result: $AWK" >&5
5057 echo "${ECHO_T}$AWK" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5063 test -n "$AWK" && break
5064 done
5067 # Let the user override the search
5068 if test -z "$YACC"; then
5069 for ac_prog in 'bison -y'
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 if test -n "$YACC"; then
5079 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_YACC="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5097 YACC=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099 echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5101 else
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$YACC" && break
5107 done
5111 if test "$YACC"; then
5112 pgac_yacc_version=`$YACC --version 2>/dev/null | sed q`
5113 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5114 echo "$as_me: using $pgac_yacc_version" >&6;}
5115 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5116 then
5117 { echo "$as_me:$LINENO: WARNING:
5118 *** The installed version of Bison is too old to use with PostgreSQL.
5119 *** Bison version 1.875 or later is required." >&5
5120 echo "$as_me: WARNING:
5121 *** The installed version of Bison is too old to use with PostgreSQL.
5122 *** Bison version 1.875 or later is required." >&2;}
5123 YACC=""
5127 if test -z "$YACC"; then
5128 { echo "$as_me:$LINENO: WARNING:
5129 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5130 *** change any of the parser definition files. You can obtain Bison from
5131 *** a GNU mirror site. (If you are using the official distribution of
5132 *** PostgreSQL then you do not need to worry about this, because the Bison
5133 *** output is pre-generated.) To use a different yacc program (possible,
5134 *** but not recommended), set the environment variable YACC before running
5135 *** 'configure'." >&5
5136 echo "$as_me: WARNING:
5137 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5138 *** change any of the parser definition files. You can obtain Bison from
5139 *** a GNU mirror site. (If you are using the official distribution of
5140 *** PostgreSQL then you do not need to worry about this, because the Bison
5141 *** output is pre-generated.) To use a different yacc program (possible,
5142 *** but not recommended), set the environment variable YACC before running
5143 *** 'configure'." >&2;}
5145 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5148 echo "$as_me:$LINENO: checking for flex" >&5
5149 echo $ECHO_N "checking for flex... $ECHO_C" >&6
5150 if test "${pgac_cv_path_flex+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 # Let the user override the test
5154 if test -n "$FLEX"; then
5155 pgac_cv_path_flex=$FLEX
5156 else
5157 pgac_save_IFS=$IFS
5158 IFS=$PATH_SEPARATOR
5159 for pgac_dir in $PATH; do
5160 IFS=$pgac_save_IFS
5161 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5162 pgac_dir=`pwd`
5164 for pgac_prog in flex lex; do
5165 pgac_candidate="$pgac_dir/$pgac_prog"
5166 if test -f "$pgac_candidate" \
5167 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5168 then
5169 echo '%%' > conftest.l
5170 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5171 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5172 pgac_broken_flex=$pgac_candidate
5173 continue
5176 pgac_cv_path_flex=$pgac_candidate
5177 break 2
5180 done
5181 done
5182 rm -f conftest.l lex.yy.c
5183 : ${pgac_cv_path_flex=no}
5187 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5188 echo "${ECHO_T}$pgac_cv_path_flex" >&6
5189 if test x"$pgac_cv_path_flex" = x"no"; then
5190 if test -n "$pgac_broken_flex"; then
5191 { echo "$as_me:$LINENO: WARNING:
5192 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5193 *** should get version 2.5.4 or later." >&5
5194 echo "$as_me: WARNING:
5195 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5196 *** should get version 2.5.4 or later." >&2;}
5199 { echo "$as_me:$LINENO: WARNING:
5200 *** Without Flex you will not be able to build PostgreSQL from CVS or
5201 *** change any of the scanner definition files. You can obtain Flex from
5202 *** a GNU mirror site. (If you are using the official distribution of
5203 *** PostgreSQL then you do not need to worry about this because the Flex
5204 *** output is pre-generated.)" >&5
5205 echo "$as_me: WARNING:
5206 *** Without Flex you will not be able to build PostgreSQL from CVS or
5207 *** change any of the scanner definition files. You can obtain Flex from
5208 *** a GNU mirror site. (If you are using the official distribution of
5209 *** PostgreSQL then you do not need to worry about this because the Flex
5210 *** output is pre-generated.)" >&2;}
5212 FLEX=
5213 else
5214 FLEX=$pgac_cv_path_flex
5215 pgac_flex_version=`$FLEX -V 2>/dev/null`
5216 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5217 echo "$as_me: using $pgac_flex_version" >&6;}
5224 # Extract the first word of "perl", so it can be a program name with args.
5225 set dummy perl; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_PERL+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 case $PERL in
5232 [\\/]* | ?:[\\/]*)
5233 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5251 esac
5253 PERL=$ac_cv_path_PERL
5255 if test -n "$PERL"; then
5256 echo "$as_me:$LINENO: result: $PERL" >&5
5257 echo "${ECHO_T}$PERL" >&6
5258 else
5259 echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5263 if test "$with_perl" = yes; then
5265 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5266 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5267 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5268 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5269 echo "${ECHO_T}$perl_archlibexp" >&6
5270 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5271 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5272 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5273 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5274 echo "${ECHO_T}$perl_privlibexp" >&6
5275 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5276 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5277 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5278 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5279 echo "${ECHO_T}$perl_useshrplib" >&6
5281 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5282 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5283 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5284 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5285 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5286 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5287 echo "${ECHO_T}$perl_embed_ldflags" >&6
5290 if test "$with_python" = yes; then
5291 # Extract the first word of "python", so it can be a program name with args.
5292 set dummy python; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_path_PYTHON+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 case $PYTHON in
5299 [\\/]* | ?:[\\/]*)
5300 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5318 esac
5320 PYTHON=$ac_cv_path_PYTHON
5322 if test -n "$PYTHON"; then
5323 echo "$as_me:$LINENO: result: $PYTHON" >&5
5324 echo "${ECHO_T}$PYTHON" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5330 if test x"$PYTHON" = x""; then
5331 { { echo "$as_me:$LINENO: error: Python not found" >&5
5332 echo "$as_me: error: Python not found" >&2;}
5333 { (exit 1); exit 1; }; }
5337 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5338 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5339 if "${PYTHON}" 2>&- -c 'import distutils'
5340 then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5347 echo "$as_me: error: distutils module not found" >&2;}
5348 { (exit 1); exit 1; }; }
5350 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5351 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5352 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5353 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')"`
5354 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5356 # This should be enough of a message.
5357 echo "$as_me:$LINENO: result: $python_configdir" >&5
5358 echo "${ECHO_T}$python_configdir" >&6
5361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5364 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5365 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5366 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5367 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5369 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5370 then
5371 # New way: use the official shared library
5372 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5373 python_libspec="-L${python_libdir} -l${ldlibrary}"
5374 else
5375 # Old way: use libpython from python_configdir
5376 python_libdir="${python_configdir}"
5377 python_libspec="-L${python_libdir} -lpython${python_version}"
5380 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5382 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5383 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5386 # threaded python is not supported on bsd's
5387 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5388 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5389 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5390 if test "$pythreads" = "1"; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6
5393 case $host_os in
5394 openbsd*|freebsd*)
5395 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5396 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5397 { (exit 1); exit 1; }; }
5399 esac
5400 else
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5408 # Supply a numeric version string for use by 3rd party add-ons
5409 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5410 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
5411 tr '.' ' ' |
5412 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
5414 cat >>confdefs.h <<_ACEOF
5415 #define PG_VERSION_NUM $PG_VERSION_NUM
5416 _ACEOF
5420 ## Libraries
5422 ## Most libraries are included only if they demonstrably provide a function
5423 ## we need, but libm is an exception: always include it, because there are
5424 ## too many compilers that play cute optimization games that will break
5425 ## probes for standard functions such as pow().
5429 echo "$as_me:$LINENO: checking for main in -lm" >&5
5430 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5431 if test "${ac_cv_lib_m_main+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 ac_check_lib_save_LIBS=$LIBS
5435 LIBS="-lm $LIBS"
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5445 main ()
5447 main ();
5449 return 0;
5451 _ACEOF
5452 rm -f conftest.$ac_objext conftest$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_lib_m_main=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cv_lib_m_main=no
5481 rm -f conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5486 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5487 if test $ac_cv_lib_m_main = yes; then
5488 cat >>confdefs.h <<_ACEOF
5489 #define HAVE_LIBM 1
5490 _ACEOF
5492 LIBS="-lm $LIBS"
5496 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5497 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5498 if test "${ac_cv_search_setproctitle+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 ac_func_search_save_LIBS=$LIBS
5502 ac_cv_search_setproctitle=no
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 #ifdef __cplusplus
5512 extern "C"
5513 #endif
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char setproctitle ();
5518 main ()
5520 setproctitle ();
5522 return 0;
5524 _ACEOF
5525 rm -f conftest.$ac_objext conftest$ac_exeext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 (eval $ac_try) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_search_setproctitle="none required"
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5553 rm -f conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 if test "$ac_cv_search_setproctitle" = no; then
5556 for ac_lib in util; do
5557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5566 #ifdef __cplusplus
5567 extern "C"
5568 #endif
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571 char setproctitle ();
5573 main ()
5575 setproctitle ();
5577 return 0;
5579 _ACEOF
5580 rm -f conftest.$ac_objext conftest$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_search_setproctitle="-l$ac_lib"
5603 break
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5609 rm -f conftest.err conftest.$ac_objext \
5610 conftest$ac_exeext conftest.$ac_ext
5611 done
5613 LIBS=$ac_func_search_save_LIBS
5615 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5616 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5617 if test "$ac_cv_search_setproctitle" != no; then
5618 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5622 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5623 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5624 if test "${ac_cv_search_dlopen+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 ac_func_search_save_LIBS=$LIBS
5628 ac_cv_search_dlopen=no
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5637 #ifdef __cplusplus
5638 extern "C"
5639 #endif
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5642 char dlopen ();
5644 main ()
5646 dlopen ();
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_dlopen="none required"
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5679 rm -f conftest.err conftest.$ac_objext \
5680 conftest$ac_exeext conftest.$ac_ext
5681 if test "$ac_cv_search_dlopen" = no; then
5682 for ac_lib in dl; do
5683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 /* Override any gcc2 internal prototype to avoid an error. */
5692 #ifdef __cplusplus
5693 extern "C"
5694 #endif
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5697 char dlopen ();
5699 main ()
5701 dlopen ();
5703 return 0;
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag"
5716 || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_search_dlopen="-l$ac_lib"
5729 break
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f conftest.err conftest.$ac_objext \
5736 conftest$ac_exeext conftest.$ac_ext
5737 done
5739 LIBS=$ac_func_search_save_LIBS
5741 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5742 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5743 if test "$ac_cv_search_dlopen" != no; then
5744 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5748 echo "$as_me:$LINENO: checking for library containing socket" >&5
5749 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5750 if test "${ac_cv_search_socket+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 ac_func_search_save_LIBS=$LIBS
5754 ac_cv_search_socket=no
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 /* Override any gcc2 internal prototype to avoid an error. */
5763 #ifdef __cplusplus
5764 extern "C"
5765 #endif
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5768 char socket ();
5770 main ()
5772 socket ();
5774 return 0;
5776 _ACEOF
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest$ac_exeext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_search_socket="none required"
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5805 rm -f conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 if test "$ac_cv_search_socket" = no; then
5808 for ac_lib in socket wsock32; do
5809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5823 char socket ();
5825 main ()
5827 socket ();
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_search_socket="-l$ac_lib"
5855 break
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863 done
5865 LIBS=$ac_func_search_save_LIBS
5867 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5868 echo "${ECHO_T}$ac_cv_search_socket" >&6
5869 if test "$ac_cv_search_socket" != no; then
5870 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5874 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5875 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5876 if test "${ac_cv_search_shl_load+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 ac_func_search_save_LIBS=$LIBS
5880 ac_cv_search_shl_load=no
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char shl_load ();
5896 main ()
5898 shl_load ();
5900 return 0;
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_search_shl_load="none required"
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 if test "$ac_cv_search_shl_load" = no; then
5934 for ac_lib in dld; do
5935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5943 /* Override any gcc2 internal prototype to avoid an error. */
5944 #ifdef __cplusplus
5945 extern "C"
5946 #endif
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5949 char shl_load ();
5951 main ()
5953 shl_load ();
5955 return 0;
5957 _ACEOF
5958 rm -f conftest.$ac_objext conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag"
5968 || test ! -s conftest.err'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try='test -s conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_search_shl_load="-l$ac_lib"
5981 break
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5987 rm -f conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5989 done
5991 LIBS=$ac_func_search_save_LIBS
5993 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5994 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5995 if test "$ac_cv_search_shl_load" != no; then
5996 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
6000 # We only use libld in port/dynloader/aix.c
6001 case $host_os in
6002 aix*)
6003 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6004 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
6005 if test "${ac_cv_search_ldopen+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 ac_func_search_save_LIBS=$LIBS
6009 ac_cv_search_ldopen=no
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6017 /* Override any gcc2 internal prototype to avoid an error. */
6018 #ifdef __cplusplus
6019 extern "C"
6020 #endif
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6023 char ldopen ();
6025 main ()
6027 ldopen ();
6029 return 0;
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_search_ldopen="none required"
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_ldopen" = no; then
6063 for ac_lib in ld; do
6064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 /* Override any gcc2 internal prototype to avoid an error. */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6078 char ldopen ();
6080 main ()
6082 ldopen ();
6084 return 0;
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag"
6097 || test ! -s conftest.err'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest$ac_exeext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_cv_search_ldopen="-l$ac_lib"
6110 break
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6116 rm -f conftest.err conftest.$ac_objext \
6117 conftest$ac_exeext conftest.$ac_ext
6118 done
6120 LIBS=$ac_func_search_save_LIBS
6122 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6123 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
6124 if test "$ac_cv_search_ldopen" != no; then
6125 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
6130 esac
6131 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6132 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6133 if test "${ac_cv_search_getopt_long+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 ac_func_search_save_LIBS=$LIBS
6137 ac_cv_search_getopt_long=no
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 #ifdef __cplusplus
6147 extern "C"
6148 #endif
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char getopt_long ();
6153 main ()
6155 getopt_long ();
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_getopt_long="none required"
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6190 if test "$ac_cv_search_getopt_long" = no; then
6191 for ac_lib in getopt gnugetopt; do
6192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6206 char getopt_long ();
6208 main ()
6210 getopt_long ();
6212 return 0;
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_cv_search_getopt_long="-l$ac_lib"
6238 break
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6244 rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246 done
6248 LIBS=$ac_func_search_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6251 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6252 if test "$ac_cv_search_getopt_long" != no; then
6253 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6257 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6258 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6259 if test "${ac_cv_search_crypt+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 ac_func_search_save_LIBS=$LIBS
6263 ac_cv_search_crypt=no
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6277 char crypt ();
6279 main ()
6281 crypt ();
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_search_crypt="none required"
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6314 rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6316 if test "$ac_cv_search_crypt" = no; then
6317 for ac_lib in crypt; do
6318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6332 char crypt ();
6334 main ()
6336 crypt ();
6338 return 0;
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_search_crypt="-l$ac_lib"
6364 break
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6370 rm -f conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 done
6374 LIBS=$ac_func_search_save_LIBS
6376 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6377 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6378 if test "$ac_cv_search_crypt" != no; then
6379 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6383 # Solaris:
6384 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6385 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6386 if test "${ac_cv_search_fdatasync+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 ac_func_search_save_LIBS=$LIBS
6390 ac_cv_search_fdatasync=no
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 #ifdef __cplusplus
6400 extern "C"
6401 #endif
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6404 char fdatasync ();
6406 main ()
6408 fdatasync ();
6410 return 0;
6412 _ACEOF
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_fdatasync="none required"
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f conftest.err conftest.$ac_objext \
6442 conftest$ac_exeext conftest.$ac_ext
6443 if test "$ac_cv_search_fdatasync" = no; then
6444 for ac_lib in rt posix4; do
6445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 #ifdef __cplusplus
6455 extern "C"
6456 #endif
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6459 char fdatasync ();
6461 main ()
6463 fdatasync ();
6465 return 0;
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_search_fdatasync="-l$ac_lib"
6491 break
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6497 rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 done
6501 LIBS=$ac_func_search_save_LIBS
6503 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6504 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6505 if test "$ac_cv_search_fdatasync" != no; then
6506 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6510 # Cygwin:
6511 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6512 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6513 if test "${ac_cv_search_shmget+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 ac_func_search_save_LIBS=$LIBS
6517 ac_cv_search_shmget=no
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 #ifdef __cplusplus
6527 extern "C"
6528 #endif
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6531 char shmget ();
6533 main ()
6535 shmget ();
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_search_shmget="none required"
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 if test "$ac_cv_search_shmget" = no; then
6571 for ac_lib in cygipc; do
6572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6581 #ifdef __cplusplus
6582 extern "C"
6583 #endif
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char shmget ();
6588 main ()
6590 shmget ();
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_search_shmget="-l$ac_lib"
6618 break
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 done
6628 LIBS=$ac_func_search_save_LIBS
6630 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6631 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6632 if test "$ac_cv_search_shmget" != no; then
6633 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6638 if test "$with_readline" = yes; then
6641 if test "${pgac_cv_check_readline+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 pgac_cv_check_readline=no
6645 pgac_save_LIBS=$LIBS
6646 if test x"$with_libedit_preferred" != x"yes"
6647 then READLINE_ORDER="-lreadline -ledit"
6648 else READLINE_ORDER="-ledit -lreadline"
6650 for pgac_rllib in $READLINE_ORDER ; do
6651 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6652 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6653 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6654 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h. */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 #ifdef __cplusplus
6664 extern "C"
6665 #endif
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6668 char readline ();
6670 main ()
6672 readline ();
6674 return 0;
6676 _ACEOF
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6700 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6701 # recognize dependent libraries; assume curses is needed if we didn't
6702 # find any dependency.
6703 case $host_os in
6704 netbsd* | openbsd* | irix*)
6705 if test x"$pgac_lib" = x"" ; then
6706 pgac_lib=" -lcurses"
6707 fi ;;
6708 esac
6710 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6711 break
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6718 rm -f conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 done
6721 if test "$pgac_cv_check_readline" != no ; then
6722 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6723 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6724 break
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6729 done
6730 LIBS=$pgac_save_LIBS
6734 if test "$pgac_cv_check_readline" != no ; then
6735 LIBS="$pgac_cv_check_readline $LIBS"
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_LIBREADLINE 1
6739 _ACEOF
6744 if test x"$pgac_cv_check_readline" = x"no"; then
6745 { { echo "$as_me:$LINENO: error: readline library not found
6746 If you have readline already installed, see config.log for details on the
6747 failure. It is possible the compiler isn't looking in the proper directory.
6748 Use --without-readline to disable readline support." >&5
6749 echo "$as_me: error: readline library not found
6750 If you have readline already installed, see config.log for details on the
6751 failure. It is possible the compiler isn't looking in the proper directory.
6752 Use --without-readline to disable readline support." >&2;}
6753 { (exit 1); exit 1; }; }
6757 if test "$with_zlib" = yes; then
6759 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6760 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6761 if test "${ac_cv_lib_z_inflate+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 ac_check_lib_save_LIBS=$LIBS
6765 LIBS="-lz $LIBS"
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6779 char inflate ();
6781 main ()
6783 inflate ();
6785 return 0;
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_lib_z_inflate=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_cv_lib_z_inflate=no
6817 rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6822 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6823 if test $ac_cv_lib_z_inflate = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_LIBZ 1
6826 _ACEOF
6828 LIBS="-lz $LIBS"
6830 else
6831 { { echo "$as_me:$LINENO: error: zlib library not found
6832 If you have zlib already installed, see config.log for details on the
6833 failure. It is possible the compiler isn't looking in the proper directory.
6834 Use --without-zlib to disable zlib support." >&5
6835 echo "$as_me: error: zlib library not found
6836 If you have zlib already installed, see config.log for details on the
6837 failure. It is possible the compiler isn't looking in the proper directory.
6838 Use --without-zlib to disable zlib support." >&2;}
6839 { (exit 1); exit 1; }; }
6844 if test "$enable_spinlocks" = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_SPINLOCKS 1
6848 _ACEOF
6850 else
6851 { echo "$as_me:$LINENO: WARNING:
6852 *** Not using spinlocks will cause poor performance." >&5
6853 echo "$as_me: WARNING:
6854 *** Not using spinlocks will cause poor performance." >&2;}
6857 if test "$with_gssapi" = yes ; then
6858 if test "$PORTNAME" != "win32"; then
6859 echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
6860 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6
6861 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 ac_func_search_save_LIBS=$LIBS
6865 ac_cv_search_gss_init_sec_context=no
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char gss_init_sec_context ();
6881 main ()
6883 gss_init_sec_context ();
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest$ac_exeext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_search_gss_init_sec_context="none required"
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6916 rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 if test "$ac_cv_search_gss_init_sec_context" = no; then
6919 for ac_lib in gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
6920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char gss_init_sec_context ();
6936 main ()
6938 gss_init_sec_context ();
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_search_gss_init_sec_context="-l$ac_lib"
6966 break
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6972 rm -f conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 done
6976 LIBS=$ac_func_search_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
6979 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6
6980 if test "$ac_cv_search_gss_init_sec_context" != no; then
6981 test "$ac_cv_search_gss_init_sec_context" = "none required" || LIBS="$ac_cv_search_gss_init_sec_context $LIBS"
6983 else
6984 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
6985 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
6986 { (exit 1); exit 1; }; }
6989 else
6990 LIBS="$LIBS -lgssapi32"
6994 if test "$with_krb5" = yes ; then
6995 if test "$PORTNAME" != "win32"; then
6996 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6997 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6998 if test "${ac_cv_search_com_err+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 ac_func_search_save_LIBS=$LIBS
7002 ac_cv_search_com_err=no
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 #ifdef __cplusplus
7012 extern "C"
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char com_err ();
7018 main ()
7020 com_err ();
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_search_com_err="none required"
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 if test "$ac_cv_search_com_err" = no; then
7056 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071 char com_err ();
7073 main ()
7075 com_err ();
7077 return 0;
7079 _ACEOF
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -z "$ac_c_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_search_com_err="-l$ac_lib"
7103 break
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 rm -f conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 done
7113 LIBS=$ac_func_search_save_LIBS
7115 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7116 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7117 if test "$ac_cv_search_com_err" != no; then
7118 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7120 else
7121 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7122 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7123 { (exit 1); exit 1; }; }
7126 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7127 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7128 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 ac_func_search_save_LIBS=$LIBS
7132 ac_cv_search_krb5_sendauth=no
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 #ifdef __cplusplus
7142 extern "C"
7143 #endif
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char krb5_sendauth ();
7148 main ()
7150 krb5_sendauth ();
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_search_krb5_sendauth="none required"
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 if test "$ac_cv_search_krb5_sendauth" = no; then
7186 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7188 cat >conftest.$ac_ext <<_ACEOF
7189 /* confdefs.h. */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 #ifdef __cplusplus
7197 extern "C"
7198 #endif
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char krb5_sendauth ();
7203 main ()
7205 krb5_sendauth ();
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_search_krb5_sendauth="-l$ac_lib"
7233 break
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7239 rm -f conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 done
7243 LIBS=$ac_func_search_save_LIBS
7245 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7246 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7247 if test "$ac_cv_search_krb5_sendauth" != no; then
7248 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7250 else
7251 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7252 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7253 { (exit 1); exit 1; }; }
7256 else
7257 echo "$as_me:$LINENO: checking for library containing com_err" >&5
7258 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7259 if test "${ac_cv_search_com_err+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 ac_func_search_save_LIBS=$LIBS
7263 ac_cv_search_com_err=no
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 #ifdef __cplusplus
7273 extern "C"
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char com_err ();
7279 main ()
7281 com_err ();
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_search_com_err="none required"
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -f conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 if test "$ac_cv_search_com_err" = no; then
7317 for ac_lib in 'comerr32 -lkrb5_32'; do
7318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7332 char com_err ();
7334 main ()
7336 com_err ();
7338 return 0;
7340 _ACEOF
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_search_com_err="-l$ac_lib"
7364 break
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7370 rm -f conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7372 done
7374 LIBS=$ac_func_search_save_LIBS
7376 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7377 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7378 if test "$ac_cv_search_com_err" != no; then
7379 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7381 else
7382 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7383 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7384 { (exit 1); exit 1; }; }
7390 if test "$with_openssl" = yes ; then
7391 if test "$PORTNAME" != "win32"; then
7393 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7394 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7395 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 ac_check_lib_save_LIBS=$LIBS
7399 LIBS="-lcrypto $LIBS"
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 #ifdef __cplusplus
7409 extern "C"
7410 #endif
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char CRYPTO_new_ex_data ();
7415 main ()
7417 CRYPTO_new_ex_data ();
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424 (eval $ac_link) 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7451 rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
7453 LIBS=$ac_check_lib_save_LIBS
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7456 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7457 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define HAVE_LIBCRYPTO 1
7460 _ACEOF
7462 LIBS="-lcrypto $LIBS"
7464 else
7465 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7466 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7467 { (exit 1); exit 1; }; }
7471 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7472 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lssl $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char SSL_library_init ();
7493 main ()
7495 SSL_library_init ();
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_ssl_SSL_library_init=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_ssl_SSL_library_init=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7534 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7535 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7536 cat >>confdefs.h <<_ACEOF
7537 #define HAVE_LIBSSL 1
7538 _ACEOF
7540 LIBS="-lssl $LIBS"
7542 else
7543 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7544 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7545 { (exit 1); exit 1; }; }
7548 else
7550 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7551 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7552 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-leay32 $LIBS"
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char CRYPTO_new_ex_data ();
7572 main ()
7574 CRYPTO_new_ex_data ();
7576 return 0;
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -z "$ac_c_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7608 rm -f conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7613 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7614 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define HAVE_LIBEAY32 1
7617 _ACEOF
7619 LIBS="-leay32 $LIBS"
7621 else
7622 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7623 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7624 { (exit 1); exit 1; }; }
7628 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7629 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7630 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lssleay32 $LIBS"
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* Override any gcc2 internal prototype to avoid an error. */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char SSL_library_init ();
7650 main ()
7652 SSL_library_init ();
7654 return 0;
7656 _ACEOF
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_ssleay32_SSL_library_init=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_lib_ssleay32_SSL_library_init=no
7686 rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7691 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7692 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_LIBSSLEAY32 1
7695 _ACEOF
7697 LIBS="-lssleay32 $LIBS"
7699 else
7700 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7701 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7702 { (exit 1); exit 1; }; }
7708 if test "$with_pam" = yes ; then
7710 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7711 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7712 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lpam $LIBS"
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730 char pam_start ();
7732 main ()
7734 pam_start ();
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_pam_pam_start=yes
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_lib_pam_pam_start=no
7768 rm -f conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7773 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7774 if test $ac_cv_lib_pam_pam_start = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776 #define HAVE_LIBPAM 1
7777 _ACEOF
7779 LIBS="-lpam $LIBS"
7781 else
7782 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7783 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7784 { (exit 1); exit 1; }; }
7789 if test "$with_libxml" = yes ; then
7791 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7792 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7793 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lxml2 $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811 char xmlSaveToBuffer ();
7813 main ()
7815 xmlSaveToBuffer ();
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_lib_xml2_xmlSaveToBuffer=no
7849 rm -f conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7854 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7855 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define HAVE_LIBXML2 1
7858 _ACEOF
7860 LIBS="-lxml2 $LIBS"
7862 else
7863 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7864 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7865 { (exit 1); exit 1; }; }
7870 if test "$with_libxslt" = yes ; then
7872 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7873 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7874 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-lxslt $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char xsltLibxmlVersion ();
7894 main ()
7896 xsltLibxmlVersion ();
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_xslt_xsltLibxmlVersion=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_lib_xslt_xsltLibxmlVersion=no
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7935 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7936 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_LIBXSLT 1
7939 _ACEOF
7941 LIBS="-lxslt $LIBS"
7943 else
7944 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7945 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7946 { (exit 1); exit 1; }; }
7951 # for contrib/uuid-ossp
7952 if test "$with_ossp_uuid" = yes ; then
7953 echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
7954 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6
7955 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 ac_check_lib_save_LIBS=$LIBS
7959 LIBS="-lossp-uuid $LIBS"
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973 char uuid_export ();
7975 main ()
7977 uuid_export ();
7979 return 0;
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_lib_ossp_uuid_uuid_export=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_lib_ossp_uuid_uuid_export=no
8011 rm -f conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 LIBS=$ac_check_lib_save_LIBS
8015 echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8016 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6
8017 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8018 OSSP_UUID_LIBS="-lossp-uuid"
8019 else
8020 echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8021 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6
8022 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 ac_check_lib_save_LIBS=$LIBS
8026 LIBS="-luuid $LIBS"
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8034 /* Override any gcc2 internal prototype to avoid an error. */
8035 #ifdef __cplusplus
8036 extern "C"
8037 #endif
8038 /* We use char because int might match the return type of a gcc2
8039 builtin and then its argument prototype would still apply. */
8040 char uuid_export ();
8042 main ()
8044 uuid_export ();
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext conftest$ac_exeext
8050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8051 (eval $ac_link) 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_c_werror_flag"
8059 || test ! -s conftest.err'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; } &&
8065 { ac_try='test -s conftest$ac_exeext'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8071 ac_cv_lib_uuid_uuid_export=yes
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_cv_lib_uuid_uuid_export=no
8078 rm -f conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 LIBS=$ac_check_lib_save_LIBS
8082 echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8083 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6
8084 if test $ac_cv_lib_uuid_uuid_export = yes; then
8085 OSSP_UUID_LIBS="-luuid"
8086 else
8087 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8088 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8089 { (exit 1); exit 1; }; }
8099 ## Header files
8102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8104 if test "${ac_cv_header_stdc+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h. */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 #include <stdlib.h>
8114 #include <stdarg.h>
8115 #include <string.h>
8116 #include <float.h>
8119 main ()
8123 return 0;
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_cv_header_stdc=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_header_stdc=no
8155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157 if test $ac_cv_header_stdc = yes; then
8158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <string.h>
8167 _ACEOF
8168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8169 $EGREP "memchr" >/dev/null 2>&1; then
8171 else
8172 ac_cv_header_stdc=no
8174 rm -f conftest*
8178 if test $ac_cv_header_stdc = yes; then
8179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 #include <stdlib.h>
8188 _ACEOF
8189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8190 $EGREP "free" >/dev/null 2>&1; then
8192 else
8193 ac_cv_header_stdc=no
8195 rm -f conftest*
8199 if test $ac_cv_header_stdc = yes; then
8200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8201 if test "$cross_compiling" = yes; then
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 #include <ctype.h>
8211 #if ((' ' & 0x0FF) == 0x020)
8212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8214 #else
8215 # define ISLOWER(c) \
8216 (('a' <= (c) && (c) <= 'i') \
8217 || ('j' <= (c) && (c) <= 'r') \
8218 || ('s' <= (c) && (c) <= 'z'))
8219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8220 #endif
8222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8224 main ()
8226 int i;
8227 for (i = 0; i < 256; i++)
8228 if (XOR (islower (i), ISLOWER (i))
8229 || toupper (i) != TOUPPER (i))
8230 exit(2);
8231 exit (0);
8233 _ACEOF
8234 rm -f conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8246 else
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ( exit $ac_status )
8252 ac_cv_header_stdc=no
8254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8260 if test $ac_cv_header_stdc = yes; then
8262 cat >>confdefs.h <<\_ACEOF
8263 #define STDC_HEADERS 1
8264 _ACEOF
8268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8279 inttypes.h stdint.h unistd.h
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 $ac_includes_default
8295 #include <$ac_header>
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag"
8307 || test ! -s conftest.err'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 eval "$as_ac_Header=yes"
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 eval "$as_ac_Header=no"
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331 cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8333 _ACEOF
8337 done
8366 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
8368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8370 echo "$as_me:$LINENO: checking for $ac_header" >&5
8371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8377 else
8378 # Is the header compilable?
8379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #include <$ac_header>
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8392 (eval $ac_compile) 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag"
8400 || test ! -s conftest.err'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_header_compiler=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_header_compiler=no
8419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8421 echo "${ECHO_T}$ac_header_compiler" >&6
8423 # Is the header present?
8424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <$ac_header>
8433 _ACEOF
8434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } >/dev/null; then
8442 if test -s conftest.err; then
8443 ac_cpp_err=$ac_c_preproc_warn_flag
8444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8445 else
8446 ac_cpp_err=
8448 else
8449 ac_cpp_err=yes
8451 if test -z "$ac_cpp_err"; then
8452 ac_header_preproc=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_header_preproc=no
8459 rm -f conftest.err conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461 echo "${ECHO_T}$ac_header_preproc" >&6
8463 # So? What about this header?
8464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8465 yes:no: )
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8470 ac_header_preproc=yes
8472 no:yes:* )
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486 cat <<\_ASBOX
8487 ## ---------------------------------------- ##
8488 ## Report this to pgsql-bugs@postgresql.org ##
8489 ## ---------------------------------------- ##
8490 _ASBOX
8492 sed "s/^/$as_me: WARNING: /" >&2
8494 esac
8495 echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 eval "$as_ac_Header=\$ac_header_preproc"
8502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509 _ACEOF
8513 done
8516 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8517 # netinet/in.h is included first.
8519 for ac_header in netinet/in.h
8521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8523 echo "$as_me:$LINENO: checking for $ac_header" >&5
8524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 else
8531 # Is the header compilable?
8532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 #include <$ac_header>
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_header_compiler=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_header_compiler=no
8572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6
8576 # Is the header present?
8577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <$ac_header>
8586 _ACEOF
8587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8598 else
8599 ac_cpp_err=
8601 else
8602 ac_cpp_err=yes
8604 if test -z "$ac_cpp_err"; then
8605 ac_header_preproc=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_header_preproc=no
8612 rm -f conftest.err conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8614 echo "${ECHO_T}$ac_header_preproc" >&6
8616 # So? What about this header?
8617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8618 yes:no: )
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8623 ac_header_preproc=yes
8625 no:yes:* )
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8639 cat <<\_ASBOX
8640 ## ---------------------------------------- ##
8641 ## Report this to pgsql-bugs@postgresql.org ##
8642 ## ---------------------------------------- ##
8643 _ASBOX
8645 sed "s/^/$as_me: WARNING: /" >&2
8647 esac
8648 echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 eval "$as_ac_Header=\$ac_header_preproc"
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662 _ACEOF
8666 done
8669 for ac_header in netinet/tcp.h
8671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8672 echo "$as_me:$LINENO: checking for $ac_header" >&5
8673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #ifdef HAVE_NETINET_IN_H
8685 #include <netinet/in.h>
8686 #endif
8689 #include <$ac_header>
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693 (eval $ac_compile) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag"
8701 || test ! -s conftest.err'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 eval "$as_ac_Header=yes"
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 eval "$as_ac_Header=no"
8720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 _ACEOF
8731 done
8734 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8736 for ac_header in readline/readline.h
8738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747 else
8748 # Is the header compilable?
8749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 $ac_includes_default
8758 #include <$ac_header>
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 (eval $ac_compile) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest.$ac_objext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_header_compiler=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_header_compiler=no
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8791 echo "${ECHO_T}$ac_header_compiler" >&6
8793 # Is the header present?
8794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #include <$ac_header>
8803 _ACEOF
8804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } >/dev/null; then
8812 if test -s conftest.err; then
8813 ac_cpp_err=$ac_c_preproc_warn_flag
8814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8815 else
8816 ac_cpp_err=
8818 else
8819 ac_cpp_err=yes
8821 if test -z "$ac_cpp_err"; then
8822 ac_header_preproc=yes
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_header_preproc=no
8829 rm -f conftest.err conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8831 echo "${ECHO_T}$ac_header_preproc" >&6
8833 # So? What about this header?
8834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8835 yes:no: )
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8840 ac_header_preproc=yes
8842 no:yes:* )
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8856 cat <<\_ASBOX
8857 ## ---------------------------------------- ##
8858 ## Report this to pgsql-bugs@postgresql.org ##
8859 ## ---------------------------------------- ##
8860 _ASBOX
8862 sed "s/^/$as_me: WARNING: /" >&2
8864 esac
8865 echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 eval "$as_ac_Header=\$ac_header_preproc"
8872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8877 cat >>confdefs.h <<_ACEOF
8878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8879 _ACEOF
8881 else
8883 for ac_header in readline.h
8885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8887 echo "$as_me:$LINENO: checking for $ac_header" >&5
8888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894 else
8895 # Is the header compilable?
8896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 #include <$ac_header>
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_header_compiler=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_header_compiler=no
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8938 echo "${ECHO_T}$ac_header_compiler" >&6
8940 # Is the header present?
8941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 #include <$ac_header>
8950 _ACEOF
8951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } >/dev/null; then
8959 if test -s conftest.err; then
8960 ac_cpp_err=$ac_c_preproc_warn_flag
8961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8962 else
8963 ac_cpp_err=
8965 else
8966 ac_cpp_err=yes
8968 if test -z "$ac_cpp_err"; then
8969 ac_header_preproc=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_header_preproc=no
8976 rm -f conftest.err conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8978 echo "${ECHO_T}$ac_header_preproc" >&6
8980 # So? What about this header?
8981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8982 yes:no: )
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8987 ac_header_preproc=yes
8989 no:yes:* )
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9003 cat <<\_ASBOX
9004 ## ---------------------------------------- ##
9005 ## Report this to pgsql-bugs@postgresql.org ##
9006 ## ---------------------------------------- ##
9007 _ASBOX
9009 sed "s/^/$as_me: WARNING: /" >&2
9011 esac
9012 echo "$as_me:$LINENO: checking for $ac_header" >&5
9013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 eval "$as_ac_Header=\$ac_header_preproc"
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9026 _ACEOF
9028 else
9029 { { echo "$as_me:$LINENO: error: readline header not found
9030 If you have readline already installed, see config.log for details on the
9031 failure. It is possible the compiler isn't looking in the proper directory.
9032 Use --without-readline to disable readline support." >&5
9033 echo "$as_me: error: readline header not found
9034 If you have readline already installed, see config.log for details on the
9035 failure. It is possible the compiler isn't looking in the proper directory.
9036 Use --without-readline to disable readline support." >&2;}
9037 { (exit 1); exit 1; }; }
9040 done
9044 done
9047 for ac_header in readline/history.h
9049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9058 else
9059 # Is the header compilable?
9060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h. */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 $ac_includes_default
9069 #include <$ac_header>
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>conftest.er1
9074 ac_status=$?
9075 grep -v '^ *+' conftest.er1 >conftest.err
9076 rm -f conftest.er1
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_header_compiler=yes
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_header_compiler=no
9100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102 echo "${ECHO_T}$ac_header_compiler" >&6
9104 # Is the header present?
9105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <$ac_header>
9114 _ACEOF
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } >/dev/null; then
9123 if test -s conftest.err; then
9124 ac_cpp_err=$ac_c_preproc_warn_flag
9125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9126 else
9127 ac_cpp_err=
9129 else
9130 ac_cpp_err=yes
9132 if test -z "$ac_cpp_err"; then
9133 ac_header_preproc=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_header_preproc=no
9140 rm -f conftest.err conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142 echo "${ECHO_T}$ac_header_preproc" >&6
9144 # So? What about this header?
9145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146 yes:no: )
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9151 ac_header_preproc=yes
9153 no:yes:* )
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9167 cat <<\_ASBOX
9168 ## ---------------------------------------- ##
9169 ## Report this to pgsql-bugs@postgresql.org ##
9170 ## ---------------------------------------- ##
9171 _ASBOX
9173 sed "s/^/$as_me: WARNING: /" >&2
9175 esac
9176 echo "$as_me:$LINENO: checking for $ac_header" >&5
9177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 eval "$as_ac_Header=\$ac_header_preproc"
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9190 _ACEOF
9192 else
9194 for ac_header in history.h
9196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 else
9206 # Is the header compilable?
9207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 #include <$ac_header>
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220 (eval $ac_compile) 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_header_compiler=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_header_compiler=no
9247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9249 echo "${ECHO_T}$ac_header_compiler" >&6
9251 # Is the header present?
9252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 #include <$ac_header>
9261 _ACEOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev/null; then
9270 if test -s conftest.err; then
9271 ac_cpp_err=$ac_c_preproc_warn_flag
9272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9273 else
9274 ac_cpp_err=
9276 else
9277 ac_cpp_err=yes
9279 if test -z "$ac_cpp_err"; then
9280 ac_header_preproc=yes
9281 else
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 ac_header_preproc=no
9287 rm -f conftest.err conftest.$ac_ext
9288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9289 echo "${ECHO_T}$ac_header_preproc" >&6
9291 # So? What about this header?
9292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9293 yes:no: )
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9298 ac_header_preproc=yes
9300 no:yes:* )
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9314 cat <<\_ASBOX
9315 ## ---------------------------------------- ##
9316 ## Report this to pgsql-bugs@postgresql.org ##
9317 ## ---------------------------------------- ##
9318 _ASBOX
9320 sed "s/^/$as_me: WARNING: /" >&2
9322 esac
9323 echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 eval "$as_ac_Header=\$ac_header_preproc"
9330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9335 cat >>confdefs.h <<_ACEOF
9336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 _ACEOF
9339 else
9340 { { echo "$as_me:$LINENO: error: history header not found
9341 If you have readline already installed, see config.log for details on the
9342 failure. It is possible the compiler isn't looking in the proper directory.
9343 Use --without-readline to disable readline support." >&5
9344 echo "$as_me: error: history header not found
9345 If you have readline already installed, see config.log for details on the
9346 failure. It is possible the compiler isn't looking in the proper directory.
9347 Use --without-readline to disable readline support." >&2;}
9348 { (exit 1); exit 1; }; }
9351 done
9355 done
9359 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9360 # Some installations of libedit usurp /usr/include/readline/, which seems
9361 # bad practice, since in combined installations readline will have its headers
9362 # there. We might have to resort to AC_EGREP checks to make sure we found
9363 # the proper header...
9365 for ac_header in editline/readline.h
9367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9369 echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376 else
9377 # Is the header compilable?
9378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h. */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 $ac_includes_default
9387 #include <$ac_header>
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391 (eval $ac_compile) 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest.$ac_objext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_header_compiler=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_compiler=no
9418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420 echo "${ECHO_T}$ac_header_compiler" >&6
9422 # Is the header present?
9423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <$ac_header>
9432 _ACEOF
9433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } >/dev/null; then
9441 if test -s conftest.err; then
9442 ac_cpp_err=$ac_c_preproc_warn_flag
9443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444 else
9445 ac_cpp_err=
9447 else
9448 ac_cpp_err=yes
9450 if test -z "$ac_cpp_err"; then
9451 ac_header_preproc=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_header_preproc=no
9458 rm -f conftest.err conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460 echo "${ECHO_T}$ac_header_preproc" >&6
9462 # So? What about this header?
9463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464 yes:no: )
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469 ac_header_preproc=yes
9471 no:yes:* )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9485 cat <<\_ASBOX
9486 ## ---------------------------------------- ##
9487 ## Report this to pgsql-bugs@postgresql.org ##
9488 ## ---------------------------------------- ##
9489 _ASBOX
9491 sed "s/^/$as_me: WARNING: /" >&2
9493 esac
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 eval "$as_ac_Header=\$ac_header_preproc"
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9508 _ACEOF
9510 else
9512 for ac_header in readline.h
9514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo "$as_me:$LINENO: checking for $ac_header" >&5
9517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9523 else
9524 # Is the header compilable?
9525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <$ac_header>
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9558 ac_header_compiler=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_header_compiler=no
9565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9567 echo "${ECHO_T}$ac_header_compiler" >&6
9569 # Is the header present?
9570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <$ac_header>
9579 _ACEOF
9580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } >/dev/null; then
9588 if test -s conftest.err; then
9589 ac_cpp_err=$ac_c_preproc_warn_flag
9590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9591 else
9592 ac_cpp_err=
9594 else
9595 ac_cpp_err=yes
9597 if test -z "$ac_cpp_err"; then
9598 ac_header_preproc=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_header_preproc=no
9605 rm -f conftest.err conftest.$ac_ext
9606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9607 echo "${ECHO_T}$ac_header_preproc" >&6
9609 # So? What about this header?
9610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9611 yes:no: )
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9616 ac_header_preproc=yes
9618 no:yes:* )
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9632 cat <<\_ASBOX
9633 ## ---------------------------------------- ##
9634 ## Report this to pgsql-bugs@postgresql.org ##
9635 ## ---------------------------------------- ##
9636 _ASBOX
9638 sed "s/^/$as_me: WARNING: /" >&2
9640 esac
9641 echo "$as_me:$LINENO: checking for $ac_header" >&5
9642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 eval "$as_ac_Header=\$ac_header_preproc"
9648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9655 _ACEOF
9657 else
9659 for ac_header in readline/readline.h
9661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo "$as_me:$LINENO: checking for $ac_header" >&5
9664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9670 else
9671 # Is the header compilable?
9672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <$ac_header>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_header_compiler=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_header_compiler=no
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9714 echo "${ECHO_T}$ac_header_compiler" >&6
9716 # Is the header present?
9717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 #include <$ac_header>
9726 _ACEOF
9727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null; then
9735 if test -s conftest.err; then
9736 ac_cpp_err=$ac_c_preproc_warn_flag
9737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9738 else
9739 ac_cpp_err=
9741 else
9742 ac_cpp_err=yes
9744 if test -z "$ac_cpp_err"; then
9745 ac_header_preproc=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_header_preproc=no
9752 rm -f conftest.err conftest.$ac_ext
9753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9754 echo "${ECHO_T}$ac_header_preproc" >&6
9756 # So? What about this header?
9757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9758 yes:no: )
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9763 ac_header_preproc=yes
9765 no:yes:* )
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9779 cat <<\_ASBOX
9780 ## ---------------------------------------- ##
9781 ## Report this to pgsql-bugs@postgresql.org ##
9782 ## ---------------------------------------- ##
9783 _ASBOX
9785 sed "s/^/$as_me: WARNING: /" >&2
9787 esac
9788 echo "$as_me:$LINENO: checking for $ac_header" >&5
9789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 eval "$as_ac_Header=\$ac_header_preproc"
9795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9802 _ACEOF
9804 else
9805 { { echo "$as_me:$LINENO: error: readline header not found
9806 If you have libedit already installed, see config.log for details on the
9807 failure. It is possible the compiler isn't looking in the proper directory.
9808 Use --without-readline to disable libedit support." >&5
9809 echo "$as_me: error: readline header not found
9810 If you have libedit already installed, see config.log for details on the
9811 failure. It is possible the compiler isn't looking in the proper directory.
9812 Use --without-readline to disable libedit support." >&2;}
9813 { (exit 1); exit 1; }; }
9816 done
9820 done
9824 done
9826 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9827 # not be there at all. Hence, don't complain if not found. We must check
9828 # though, since in yet other versions it is an independent header.
9830 for ac_header in editline/history.h
9832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9841 else
9842 # Is the header compilable?
9843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9852 #include <$ac_header>
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_compiler=no
9883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <$ac_header>
9897 _ACEOF
9898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null; then
9906 if test -s conftest.err; then
9907 ac_cpp_err=$ac_c_preproc_warn_flag
9908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9909 else
9910 ac_cpp_err=
9912 else
9913 ac_cpp_err=yes
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_header_preproc=no
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929 yes:no: )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9934 ac_header_preproc=yes
9936 no:yes:* )
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9950 cat <<\_ASBOX
9951 ## ---------------------------------------- ##
9952 ## Report this to pgsql-bugs@postgresql.org ##
9953 ## ---------------------------------------- ##
9954 _ASBOX
9956 sed "s/^/$as_me: WARNING: /" >&2
9958 esac
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 eval "$as_ac_Header=\$ac_header_preproc"
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973 _ACEOF
9975 else
9977 for ac_header in history.h
9979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9981 echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9988 else
9989 # Is the header compilable?
9990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 #include <$ac_header>
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest.$ac_objext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_header_compiler=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_header_compiler=no
10030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10032 echo "${ECHO_T}$ac_header_compiler" >&6
10034 # Is the header present?
10035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 #include <$ac_header>
10044 _ACEOF
10045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } >/dev/null; then
10053 if test -s conftest.err; then
10054 ac_cpp_err=$ac_c_preproc_warn_flag
10055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10056 else
10057 ac_cpp_err=
10059 else
10060 ac_cpp_err=yes
10062 if test -z "$ac_cpp_err"; then
10063 ac_header_preproc=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_preproc=no
10070 rm -f conftest.err conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10072 echo "${ECHO_T}$ac_header_preproc" >&6
10074 # So? What about this header?
10075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10076 yes:no: )
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10081 ac_header_preproc=yes
10083 no:yes:* )
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10097 cat <<\_ASBOX
10098 ## ---------------------------------------- ##
10099 ## Report this to pgsql-bugs@postgresql.org ##
10100 ## ---------------------------------------- ##
10101 _ASBOX
10103 sed "s/^/$as_me: WARNING: /" >&2
10105 esac
10106 echo "$as_me:$LINENO: checking for $ac_header" >&5
10107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 eval "$as_ac_Header=\$ac_header_preproc"
10113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10118 cat >>confdefs.h <<_ACEOF
10119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10120 _ACEOF
10122 else
10124 for ac_header in readline/history.h
10126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10128 echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10135 else
10136 # Is the header compilable?
10137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 $ac_includes_default
10146 #include <$ac_header>
10147 _ACEOF
10148 rm -f conftest.$ac_objext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10150 (eval $ac_compile) 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest.$ac_objext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_header_compiler=yes
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_header_compiler=no
10177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10179 echo "${ECHO_T}$ac_header_compiler" >&6
10181 # Is the header present?
10182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <$ac_header>
10191 _ACEOF
10192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } >/dev/null; then
10200 if test -s conftest.err; then
10201 ac_cpp_err=$ac_c_preproc_warn_flag
10202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10203 else
10204 ac_cpp_err=
10206 else
10207 ac_cpp_err=yes
10209 if test -z "$ac_cpp_err"; then
10210 ac_header_preproc=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10215 ac_header_preproc=no
10217 rm -f conftest.err conftest.$ac_ext
10218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219 echo "${ECHO_T}$ac_header_preproc" >&6
10221 # So? What about this header?
10222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 yes:no: )
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10228 ac_header_preproc=yes
10230 no:yes:* )
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10244 cat <<\_ASBOX
10245 ## ---------------------------------------- ##
10246 ## Report this to pgsql-bugs@postgresql.org ##
10247 ## ---------------------------------------- ##
10248 _ASBOX
10250 sed "s/^/$as_me: WARNING: /" >&2
10252 esac
10253 echo "$as_me:$LINENO: checking for $ac_header" >&5
10254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 eval "$as_ac_Header=\$ac_header_preproc"
10260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10265 cat >>confdefs.h <<_ACEOF
10266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10267 _ACEOF
10271 done
10275 done
10279 done
10283 if test "$with_zlib" = yes; then
10284 if test "${ac_cv_header_zlib_h+set}" = set; then
10285 echo "$as_me:$LINENO: checking for zlib.h" >&5
10286 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10287 if test "${ac_cv_header_zlib_h+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10291 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10292 else
10293 # Is the header compilable?
10294 echo "$as_me:$LINENO: checking zlib.h usability" >&5
10295 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 $ac_includes_default
10303 #include <zlib.h>
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag"
10315 || test ! -s conftest.err'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest.$ac_objext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 ac_header_compiler=yes
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_header_compiler=no
10334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10336 echo "${ECHO_T}$ac_header_compiler" >&6
10338 # Is the header present?
10339 echo "$as_me:$LINENO: checking zlib.h presence" >&5
10340 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <zlib.h>
10348 _ACEOF
10349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } >/dev/null; then
10357 if test -s conftest.err; then
10358 ac_cpp_err=$ac_c_preproc_warn_flag
10359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10360 else
10361 ac_cpp_err=
10363 else
10364 ac_cpp_err=yes
10366 if test -z "$ac_cpp_err"; then
10367 ac_header_preproc=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_header_preproc=no
10374 rm -f conftest.err conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10376 echo "${ECHO_T}$ac_header_preproc" >&6
10378 # So? What about this header?
10379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10380 yes:no: )
10381 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10382 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10384 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10385 ac_header_preproc=yes
10387 no:yes:* )
10388 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10389 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10391 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10393 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10395 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10397 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10399 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10401 cat <<\_ASBOX
10402 ## ---------------------------------------- ##
10403 ## Report this to pgsql-bugs@postgresql.org ##
10404 ## ---------------------------------------- ##
10405 _ASBOX
10407 sed "s/^/$as_me: WARNING: /" >&2
10409 esac
10410 echo "$as_me:$LINENO: checking for zlib.h" >&5
10411 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10412 if test "${ac_cv_header_zlib_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 ac_cv_header_zlib_h=$ac_header_preproc
10417 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10418 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10421 if test $ac_cv_header_zlib_h = yes; then
10423 else
10424 { { echo "$as_me:$LINENO: error: zlib header not found
10425 If you have zlib already installed, see config.log for details on the
10426 failure. It is possible the compiler isn't looking in the proper directory.
10427 Use --without-zlib to disable zlib support." >&5
10428 echo "$as_me: error: zlib header not found
10429 If you have zlib already installed, see config.log for details on the
10430 failure. It is possible the compiler isn't looking in the proper directory.
10431 Use --without-zlib to disable zlib support." >&2;}
10432 { (exit 1); exit 1; }; }
10438 if test "$with_gssapi" = yes ; then
10440 for ac_header in gssapi/gssapi.h
10442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444 echo "$as_me:$LINENO: checking for $ac_header" >&5
10445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10451 else
10452 # Is the header compilable?
10453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 $ac_includes_default
10462 #include <$ac_header>
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466 (eval $ac_compile) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_header_compiler=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_header_compiler=no
10493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10495 echo "${ECHO_T}$ac_header_compiler" >&6
10497 # Is the header present?
10498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 #include <$ac_header>
10507 _ACEOF
10508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } >/dev/null; then
10516 if test -s conftest.err; then
10517 ac_cpp_err=$ac_c_preproc_warn_flag
10518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10519 else
10520 ac_cpp_err=
10522 else
10523 ac_cpp_err=yes
10525 if test -z "$ac_cpp_err"; then
10526 ac_header_preproc=yes
10527 else
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 ac_header_preproc=no
10533 rm -f conftest.err conftest.$ac_ext
10534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10535 echo "${ECHO_T}$ac_header_preproc" >&6
10537 # So? What about this header?
10538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10539 yes:no: )
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10544 ac_header_preproc=yes
10546 no:yes:* )
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10560 cat <<\_ASBOX
10561 ## ---------------------------------------- ##
10562 ## Report this to pgsql-bugs@postgresql.org ##
10563 ## ---------------------------------------- ##
10564 _ASBOX
10566 sed "s/^/$as_me: WARNING: /" >&2
10568 esac
10569 echo "$as_me:$LINENO: checking for $ac_header" >&5
10570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 eval "$as_ac_Header=\$ac_header_preproc"
10576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10581 cat >>confdefs.h <<_ACEOF
10582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10583 _ACEOF
10585 else
10587 for ac_header in gssapi.h
10589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10591 echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10598 else
10599 # Is the header compilable?
10600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 ac_header_compiler=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_header_compiler=no
10640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642 echo "${ECHO_T}$ac_header_compiler" >&6
10644 # Is the header present?
10645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 #include <$ac_header>
10654 _ACEOF
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10666 else
10667 ac_cpp_err=
10669 else
10670 ac_cpp_err=yes
10672 if test -z "$ac_cpp_err"; then
10673 ac_header_preproc=yes
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 ac_header_preproc=no
10680 rm -f conftest.err conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10682 echo "${ECHO_T}$ac_header_preproc" >&6
10684 # So? What about this header?
10685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10686 yes:no: )
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10691 ac_header_preproc=yes
10693 no:yes:* )
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10707 cat <<\_ASBOX
10708 ## ---------------------------------------- ##
10709 ## Report this to pgsql-bugs@postgresql.org ##
10710 ## ---------------------------------------- ##
10711 _ASBOX
10713 sed "s/^/$as_me: WARNING: /" >&2
10715 esac
10716 echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721 eval "$as_ac_Header=\$ac_header_preproc"
10723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730 _ACEOF
10732 else
10733 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10734 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10735 { (exit 1); exit 1; }; }
10738 done
10742 done
10746 if test "$with_krb5" = yes ; then
10747 if test "${ac_cv_header_krb5_h+set}" = set; then
10748 echo "$as_me:$LINENO: checking for krb5.h" >&5
10749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10750 if test "${ac_cv_header_krb5_h+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10754 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10755 else
10756 # Is the header compilable?
10757 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10758 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 $ac_includes_default
10766 #include <krb5.h>
10767 _ACEOF
10768 rm -f conftest.$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_header_compiler=yes
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_compiler=no
10797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799 echo "${ECHO_T}$ac_header_compiler" >&6
10801 # Is the header present?
10802 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10803 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <krb5.h>
10811 _ACEOF
10812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } >/dev/null; then
10820 if test -s conftest.err; then
10821 ac_cpp_err=$ac_c_preproc_warn_flag
10822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10823 else
10824 ac_cpp_err=
10826 else
10827 ac_cpp_err=yes
10829 if test -z "$ac_cpp_err"; then
10830 ac_header_preproc=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_header_preproc=no
10837 rm -f conftest.err conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10839 echo "${ECHO_T}$ac_header_preproc" >&6
10841 # So? What about this header?
10842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10843 yes:no: )
10844 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10845 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10847 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10848 ac_header_preproc=yes
10850 no:yes:* )
10851 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10852 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10854 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10856 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10858 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10860 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10862 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10864 cat <<\_ASBOX
10865 ## ---------------------------------------- ##
10866 ## Report this to pgsql-bugs@postgresql.org ##
10867 ## ---------------------------------------- ##
10868 _ASBOX
10870 sed "s/^/$as_me: WARNING: /" >&2
10872 esac
10873 echo "$as_me:$LINENO: checking for krb5.h" >&5
10874 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10875 if test "${ac_cv_header_krb5_h+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 ac_cv_header_krb5_h=$ac_header_preproc
10880 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10881 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10884 if test $ac_cv_header_krb5_h = yes; then
10886 else
10887 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10888 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10889 { (exit 1); exit 1; }; }
10895 if test "$with_openssl" = yes ; then
10896 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10897 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10898 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10899 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10903 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10904 else
10905 # Is the header compilable?
10906 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10907 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10915 #include <openssl/ssl.h>
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>conftest.er1
10920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -z "$ac_c_werror_flag"
10927 || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_header_compiler=yes
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_header_compiler=no
10946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 echo "${ECHO_T}$ac_header_compiler" >&6
10950 # Is the header present?
10951 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10952 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <openssl/ssl.h>
10960 _ACEOF
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev/null; then
10969 if test -s conftest.err; then
10970 ac_cpp_err=$ac_c_preproc_warn_flag
10971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10972 else
10973 ac_cpp_err=
10975 else
10976 ac_cpp_err=yes
10978 if test -z "$ac_cpp_err"; then
10979 ac_header_preproc=yes
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_header_preproc=no
10986 rm -f conftest.err conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6
10990 # So? What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992 yes:no: )
10993 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10997 ac_header_preproc=yes
10999 no:yes:* )
11000 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11013 cat <<\_ASBOX
11014 ## ---------------------------------------- ##
11015 ## Report this to pgsql-bugs@postgresql.org ##
11016 ## ---------------------------------------- ##
11017 _ASBOX
11019 sed "s/^/$as_me: WARNING: /" >&2
11021 esac
11022 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11023 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
11024 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11029 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
11033 if test $ac_cv_header_openssl_ssl_h = yes; then
11035 else
11036 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11037 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11038 { (exit 1); exit 1; }; }
11042 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11043 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11044 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
11045 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11049 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
11050 else
11051 # Is the header compilable?
11052 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11053 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 $ac_includes_default
11061 #include <openssl/err.h>
11062 _ACEOF
11063 rm -f conftest.$ac_objext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11065 (eval $ac_compile) 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest.$ac_objext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_header_compiler=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_compiler=no
11092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11094 echo "${ECHO_T}$ac_header_compiler" >&6
11096 # Is the header present?
11097 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11098 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 #include <openssl/err.h>
11106 _ACEOF
11107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } >/dev/null; then
11115 if test -s conftest.err; then
11116 ac_cpp_err=$ac_c_preproc_warn_flag
11117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11118 else
11119 ac_cpp_err=
11121 else
11122 ac_cpp_err=yes
11124 if test -z "$ac_cpp_err"; then
11125 ac_header_preproc=yes
11126 else
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ac_header_preproc=no
11132 rm -f conftest.err conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11134 echo "${ECHO_T}$ac_header_preproc" >&6
11136 # So? What about this header?
11137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11138 yes:no: )
11139 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11140 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11142 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11143 ac_header_preproc=yes
11145 no:yes:* )
11146 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11147 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11149 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11151 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11153 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11155 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11157 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11159 cat <<\_ASBOX
11160 ## ---------------------------------------- ##
11161 ## Report this to pgsql-bugs@postgresql.org ##
11162 ## ---------------------------------------- ##
11163 _ASBOX
11165 sed "s/^/$as_me: WARNING: /" >&2
11167 esac
11168 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11169 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
11170 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 ac_cv_header_openssl_err_h=$ac_header_preproc
11175 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11176 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
11179 if test $ac_cv_header_openssl_err_h = yes; then
11181 else
11182 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11183 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11184 { (exit 1); exit 1; }; }
11189 for ac_func in ERR_set_mark
11191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11194 if eval "test \"\${$as_ac_var+set}\" = set"; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11218 #undef $ac_func
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 #ifdef __cplusplus
11222 extern "C"
11224 #endif
11225 /* We use char because int might match the return type of a gcc2
11226 builtin and then its argument prototype would still apply. */
11227 char $ac_func ();
11228 /* The GNU C library defines this for functions which it implements
11229 to always fail with ENOSYS. Some functions are actually named
11230 something starting with __ and the normal name is an alias. */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11232 choke me
11233 #else
11234 char (*f) () = $ac_func;
11235 #endif
11236 #ifdef __cplusplus
11238 #endif
11241 main ()
11243 return f != $ac_func;
11245 return 0;
11247 _ACEOF
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>conftest.er1
11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -z "$ac_c_werror_flag"
11258 || test ! -s conftest.err'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest$ac_exeext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 eval "$as_ac_var=yes"
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 eval "$as_ac_var=no"
11277 rm -f conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11282 if test `eval echo '${'$as_ac_var'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11285 _ACEOF
11288 done
11292 if test "$with_pam" = yes ; then
11294 for ac_header in security/pam_appl.h
11296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11298 echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11305 else
11306 # Is the header compilable?
11307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 #include <$ac_header>
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_header_compiler=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_compiler=no
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6
11351 # Is the header present?
11352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11361 _ACEOF
11362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag
11372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11373 else
11374 ac_cpp_err=
11376 else
11377 ac_cpp_err=yes
11379 if test -z "$ac_cpp_err"; then
11380 ac_header_preproc=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_preproc=no
11387 rm -f conftest.err conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 echo "${ECHO_T}$ac_header_preproc" >&6
11391 # So? What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 yes:no: )
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11398 ac_header_preproc=yes
11400 no:yes:* )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414 cat <<\_ASBOX
11415 ## ---------------------------------------- ##
11416 ## Report this to pgsql-bugs@postgresql.org ##
11417 ## ---------------------------------------- ##
11418 _ASBOX
11420 sed "s/^/$as_me: WARNING: /" >&2
11422 esac
11423 echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 eval "$as_ac_Header=\$ac_header_preproc"
11430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11435 cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11437 _ACEOF
11439 else
11441 for ac_header in pam/pam_appl.h
11443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11445 echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11452 else
11453 # Is the header compilable?
11454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 #include <$ac_header>
11464 _ACEOF
11465 rm -f conftest.$ac_objext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest.$ac_objext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_header_compiler=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_header_compiler=no
11494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11496 echo "${ECHO_T}$ac_header_compiler" >&6
11498 # Is the header present?
11499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 #include <$ac_header>
11508 _ACEOF
11509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } >/dev/null; then
11517 if test -s conftest.err; then
11518 ac_cpp_err=$ac_c_preproc_warn_flag
11519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11520 else
11521 ac_cpp_err=
11523 else
11524 ac_cpp_err=yes
11526 if test -z "$ac_cpp_err"; then
11527 ac_header_preproc=yes
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_preproc=no
11534 rm -f conftest.err conftest.$ac_ext
11535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11547 no:yes:* )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561 cat <<\_ASBOX
11562 ## ---------------------------------------- ##
11563 ## Report this to pgsql-bugs@postgresql.org ##
11564 ## ---------------------------------------- ##
11565 _ASBOX
11567 sed "s/^/$as_me: WARNING: /" >&2
11569 esac
11570 echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575 eval "$as_ac_Header=\$ac_header_preproc"
11577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11584 _ACEOF
11586 else
11587 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11588 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11589 { (exit 1); exit 1; }; }
11592 done
11596 done
11600 if test "$with_libxml" = yes ; then
11601 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11602 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11603 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11604 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11608 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11609 else
11610 # Is the header compilable?
11611 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11612 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 $ac_includes_default
11620 #include <libxml/parser.h>
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11624 (eval $ac_compile) 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_header_compiler=yes
11645 else
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ac_header_compiler=no
11651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11653 echo "${ECHO_T}$ac_header_compiler" >&6
11655 # Is the header present?
11656 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11657 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 #include <libxml/parser.h>
11665 _ACEOF
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } >/dev/null; then
11674 if test -s conftest.err; then
11675 ac_cpp_err=$ac_c_preproc_warn_flag
11676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11677 else
11678 ac_cpp_err=
11680 else
11681 ac_cpp_err=yes
11683 if test -z "$ac_cpp_err"; then
11684 ac_header_preproc=yes
11685 else
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_header_preproc=no
11691 rm -f conftest.err conftest.$ac_ext
11692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11693 echo "${ECHO_T}$ac_header_preproc" >&6
11695 # So? What about this header?
11696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11697 yes:no: )
11698 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11699 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11701 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11702 ac_header_preproc=yes
11704 no:yes:* )
11705 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11706 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11708 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11710 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11712 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11714 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11716 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11718 cat <<\_ASBOX
11719 ## ---------------------------------------- ##
11720 ## Report this to pgsql-bugs@postgresql.org ##
11721 ## ---------------------------------------- ##
11722 _ASBOX
11724 sed "s/^/$as_me: WARNING: /" >&2
11726 esac
11727 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11728 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11729 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 ac_cv_header_libxml_parser_h=$ac_header_preproc
11734 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11735 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11738 if test $ac_cv_header_libxml_parser_h = yes; then
11740 else
11741 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11742 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11743 { (exit 1); exit 1; }; }
11749 if test "$with_libxslt" = yes ; then
11750 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11751 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11752 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11753 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11757 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11758 else
11759 # Is the header compilable?
11760 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11761 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 #include <libxslt/xslt.h>
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_header_compiler=yes
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ac_header_compiler=no
11800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6
11804 # Is the header present?
11805 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11806 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <libxslt/xslt.h>
11814 _ACEOF
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null; then
11823 if test -s conftest.err; then
11824 ac_cpp_err=$ac_c_preproc_warn_flag
11825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11826 else
11827 ac_cpp_err=
11829 else
11830 ac_cpp_err=yes
11832 if test -z "$ac_cpp_err"; then
11833 ac_header_preproc=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_preproc=no
11840 rm -f conftest.err conftest.$ac_ext
11841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6
11844 # So? What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846 yes:no: )
11847 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11851 ac_header_preproc=yes
11853 no:yes:* )
11854 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11867 cat <<\_ASBOX
11868 ## ---------------------------------------- ##
11869 ## Report this to pgsql-bugs@postgresql.org ##
11870 ## ---------------------------------------- ##
11871 _ASBOX
11873 sed "s/^/$as_me: WARNING: /" >&2
11875 esac
11876 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11877 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11878 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11883 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11884 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11887 if test $ac_cv_header_libxslt_xslt_h = yes; then
11889 else
11890 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11891 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11892 { (exit 1); exit 1; }; }
11898 if test "$with_ldap" = yes ; then
11899 if test "$PORTNAME" != "win32"; then
11901 for ac_header in ldap.h
11903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11905 echo "$as_me:$LINENO: checking for $ac_header" >&5
11906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11912 else
11913 # Is the header compilable?
11914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 $ac_includes_default
11923 #include <$ac_header>
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_header_compiler=yes
11948 else
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ac_header_compiler=no
11954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11956 echo "${ECHO_T}$ac_header_compiler" >&6
11958 # Is the header present?
11959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <$ac_header>
11968 _ACEOF
11969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } >/dev/null; then
11977 if test -s conftest.err; then
11978 ac_cpp_err=$ac_c_preproc_warn_flag
11979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11980 else
11981 ac_cpp_err=
11983 else
11984 ac_cpp_err=yes
11986 if test -z "$ac_cpp_err"; then
11987 ac_header_preproc=yes
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_header_preproc=no
11994 rm -f conftest.err conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11996 echo "${ECHO_T}$ac_header_preproc" >&6
11998 # So? What about this header?
11999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12000 yes:no: )
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12005 ac_header_preproc=yes
12007 no:yes:* )
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12021 cat <<\_ASBOX
12022 ## ---------------------------------------- ##
12023 ## Report this to pgsql-bugs@postgresql.org ##
12024 ## ---------------------------------------- ##
12025 _ASBOX
12027 sed "s/^/$as_me: WARNING: /" >&2
12029 esac
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 eval "$as_ac_Header=\$ac_header_preproc"
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12044 _ACEOF
12046 else
12047 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12048 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12049 { (exit 1); exit 1; }; }
12052 done
12054 else
12056 for ac_header in winldap.h
12058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059 echo "$as_me:$LINENO: checking for $ac_header" >&5
12060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 #include <windows.h>
12074 #include <$ac_header>
12075 _ACEOF
12076 rm -f conftest.$ac_objext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 eval "$as_ac_Header=yes"
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 eval "$as_ac_Header=no"
12105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12110 cat >>confdefs.h <<_ACEOF
12111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112 _ACEOF
12114 else
12115 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12116 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12117 { (exit 1); exit 1; }; }
12120 done
12125 if test "$with_bonjour" = yes ; then
12126 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12127 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12128 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12129 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12133 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12134 else
12135 # Is the header compilable?
12136 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12137 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 $ac_includes_default
12145 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12146 _ACEOF
12147 rm -f conftest.$ac_objext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try='test -s conftest.$ac_objext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_header_compiler=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_header_compiler=no
12176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12178 echo "${ECHO_T}$ac_header_compiler" >&6
12180 # Is the header present?
12181 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12182 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12190 _ACEOF
12191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev/null; then
12199 if test -s conftest.err; then
12200 ac_cpp_err=$ac_c_preproc_warn_flag
12201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12202 else
12203 ac_cpp_err=
12205 else
12206 ac_cpp_err=yes
12208 if test -z "$ac_cpp_err"; then
12209 ac_header_preproc=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_header_preproc=no
12216 rm -f conftest.err conftest.$ac_ext
12217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12218 echo "${ECHO_T}$ac_header_preproc" >&6
12220 # So? What about this header?
12221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12222 yes:no: )
12223 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12224 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12226 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12227 ac_header_preproc=yes
12229 no:yes:* )
12230 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12231 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12233 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12235 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12237 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12239 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12241 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12243 cat <<\_ASBOX
12244 ## ---------------------------------------- ##
12245 ## Report this to pgsql-bugs@postgresql.org ##
12246 ## ---------------------------------------- ##
12247 _ASBOX
12249 sed "s/^/$as_me: WARNING: /" >&2
12251 esac
12252 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12253 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12254 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12259 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12260 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12263 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12265 else
12266 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12267 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12268 { (exit 1); exit 1; }; }
12274 # for contrib/uuid-ossp
12275 if test "$with_ossp_uuid" = yes ; then
12277 for ac_header in ossp/uuid.h
12279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12281 echo "$as_me:$LINENO: checking for $ac_header" >&5
12282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12288 else
12289 # Is the header compilable?
12290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h. */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12298 $ac_includes_default
12299 #include <$ac_header>
12300 _ACEOF
12301 rm -f conftest.$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_header_compiler=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_header_compiler=no
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12332 echo "${ECHO_T}$ac_header_compiler" >&6
12334 # Is the header present?
12335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 #include <$ac_header>
12344 _ACEOF
12345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } >/dev/null; then
12353 if test -s conftest.err; then
12354 ac_cpp_err=$ac_c_preproc_warn_flag
12355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12356 else
12357 ac_cpp_err=
12359 else
12360 ac_cpp_err=yes
12362 if test -z "$ac_cpp_err"; then
12363 ac_header_preproc=yes
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_header_preproc=no
12370 rm -f conftest.err conftest.$ac_ext
12371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12372 echo "${ECHO_T}$ac_header_preproc" >&6
12374 # So? What about this header?
12375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12376 yes:no: )
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12381 ac_header_preproc=yes
12383 no:yes:* )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12397 cat <<\_ASBOX
12398 ## ---------------------------------------- ##
12399 ## Report this to pgsql-bugs@postgresql.org ##
12400 ## ---------------------------------------- ##
12401 _ASBOX
12403 sed "s/^/$as_me: WARNING: /" >&2
12405 esac
12406 echo "$as_me:$LINENO: checking for $ac_header" >&5
12407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 eval "$as_ac_Header=\$ac_header_preproc"
12413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12418 cat >>confdefs.h <<_ACEOF
12419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12420 _ACEOF
12422 else
12425 for ac_header in uuid.h
12427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12429 echo "$as_me:$LINENO: checking for $ac_header" >&5
12430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12436 else
12437 # Is the header compilable?
12438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12447 #include <$ac_header>
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try='test -z "$ac_c_werror_flag"
12459 || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_header_compiler=yes
12472 else
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_header_compiler=no
12478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12480 echo "${ECHO_T}$ac_header_compiler" >&6
12482 # Is the header present?
12483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 #include <$ac_header>
12492 _ACEOF
12493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } >/dev/null; then
12501 if test -s conftest.err; then
12502 ac_cpp_err=$ac_c_preproc_warn_flag
12503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12504 else
12505 ac_cpp_err=
12507 else
12508 ac_cpp_err=yes
12510 if test -z "$ac_cpp_err"; then
12511 ac_header_preproc=yes
12512 else
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_header_preproc=no
12518 rm -f conftest.err conftest.$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12520 echo "${ECHO_T}$ac_header_preproc" >&6
12522 # So? What about this header?
12523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12524 yes:no: )
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12529 ac_header_preproc=yes
12531 no:yes:* )
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12545 cat <<\_ASBOX
12546 ## ---------------------------------------- ##
12547 ## Report this to pgsql-bugs@postgresql.org ##
12548 ## ---------------------------------------- ##
12549 _ASBOX
12551 sed "s/^/$as_me: WARNING: /" >&2
12553 esac
12554 echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 eval "$as_ac_Header=\$ac_header_preproc"
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 _ACEOF
12570 else
12571 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12572 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12573 { (exit 1); exit 1; }; }
12576 done
12580 done
12586 ## Types, structures, compiler characteristics
12589 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12590 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12591 if test "${ac_cv_c_bigendian+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 # See if sys/param.h defines the BYTE_ORDER macro.
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <sys/types.h>
12602 #include <sys/param.h>
12605 main ()
12607 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12608 bogus endian macros
12609 #endif
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 # It does; now see whether it defined to BIG_ENDIAN or not.
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include <sys/types.h>
12645 #include <sys/param.h>
12648 main ()
12650 #if BYTE_ORDER != BIG_ENDIAN
12651 not big endian
12652 #endif
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_c_bigendian=yes
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_c_bigendian=no
12687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 # It does not; compile a test program.
12693 if test "$cross_compiling" = yes; then
12694 # try to guess the endianness by grepping values into an object file
12695 ac_cv_c_bigendian=unknown
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12703 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12704 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12705 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12706 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12707 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12709 main ()
12711 _ascii (); _ebcdic ();
12713 return 0;
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -z "$ac_c_werror_flag"
12726 || test ! -s conftest.err'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12739 ac_cv_c_bigendian=yes
12741 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12742 if test "$ac_cv_c_bigendian" = unknown; then
12743 ac_cv_c_bigendian=no
12744 else
12745 # finding both strings is unlikely to happen, but who knows?
12746 ac_cv_c_bigendian=unknown
12749 else
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 else
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 main ()
12765 /* Are we little or big endian? From Harbison&Steele. */
12766 union
12768 long l;
12769 char c[sizeof (long)];
12770 } u;
12771 u.l = 1;
12772 exit (u.c[sizeof (long) - 1] == 1);
12774 _ACEOF
12775 rm -f conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 ac_cv_c_bigendian=no
12787 else
12788 echo "$as_me: program exited with status $ac_status" >&5
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 ( exit $ac_status )
12793 ac_cv_c_bigendian=yes
12795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12801 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12802 case $ac_cv_c_bigendian in
12803 yes)
12805 cat >>confdefs.h <<\_ACEOF
12806 #define WORDS_BIGENDIAN 1
12807 _ACEOF
12812 { { echo "$as_me:$LINENO: error: unknown endianness
12813 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12814 echo "$as_me: error: unknown endianness
12815 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12816 { (exit 1); exit 1; }; } ;;
12817 esac
12819 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12820 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12821 if test "${ac_cv_c_const+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h. */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12832 main ()
12834 /* FIXME: Include the comments suggested by Paul. */
12835 #ifndef __cplusplus
12836 /* Ultrix mips cc rejects this. */
12837 typedef int charset[2];
12838 const charset x;
12839 /* SunOS 4.1.1 cc rejects this. */
12840 char const *const *ccp;
12841 char **p;
12842 /* NEC SVR4.0.2 mips cc rejects this. */
12843 struct point {int x, y;};
12844 static struct point const zero = {0,0};
12845 /* AIX XL C 1.02.0.0 rejects this.
12846 It does not let you subtract one const X* pointer from another in
12847 an arm of an if-expression whose if-part is not a constant
12848 expression */
12849 const char *g = "string";
12850 ccp = &g + (g ? g-g : 0);
12851 /* HPUX 7.0 cc rejects these. */
12852 ++ccp;
12853 p = (char**) ccp;
12854 ccp = (char const *const *) p;
12855 { /* SCO 3.2v4 cc rejects this. */
12856 char *t;
12857 char const *s = 0 ? (char *) 0 : (char const *) 0;
12859 *t++ = 0;
12861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12862 int x[] = {25, 17};
12863 const int *foo = &x[0];
12864 ++foo;
12866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12867 typedef const int *iptr;
12868 iptr p = 0;
12869 ++p;
12871 { /* AIX XL C 1.02.0.0 rejects this saying
12872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12873 struct s { int j; const int *ap[3]; };
12874 struct s *b; b->j = 5;
12876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12877 const int foo = 10;
12879 #endif
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887 (eval $ac_compile) 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag"
12895 || test ! -s conftest.err'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest.$ac_objext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_cv_c_const=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_cv_c_const=no
12914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12916 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12917 echo "${ECHO_T}$ac_cv_c_const" >&6
12918 if test $ac_cv_c_const = no; then
12920 cat >>confdefs.h <<\_ACEOF
12921 #define const
12922 _ACEOF
12927 echo "$as_me:$LINENO: checking for inline" >&5
12928 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12929 if test "${ac_cv_c_inline+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932 ac_cv_c_inline=no
12933 for ac_kw in inline __inline__ __inline; do
12934 cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 #ifndef __cplusplus
12941 typedef int foo_t;
12942 static $ac_kw foo_t static_foo () {return 0; }
12943 $ac_kw int foo () {return 0; }
12944 #endif
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag"
12957 || test ! -s conftest.err'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest.$ac_objext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_c_inline=$ac_kw; break
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12976 done
12979 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12980 echo "${ECHO_T}$ac_cv_c_inline" >&6
12981 case $ac_cv_c_inline in
12982 inline | yes) ;;
12984 cat >>confdefs.h <<\_ACEOF
12985 #define inline
12986 _ACEOF
12988 *) cat >>confdefs.h <<_ACEOF
12989 #define inline $ac_cv_c_inline
12990 _ACEOF
12992 esac
12994 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12995 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12996 if test "${ac_cv_c_stringize+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #define x(y) #y
13007 char *s = x(teststring);
13008 _ACEOF
13009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13010 $EGREP "#teststring" >/dev/null 2>&1; then
13011 ac_cv_c_stringize=no
13012 else
13013 ac_cv_c_stringize=yes
13015 rm -f conftest*
13018 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13019 echo "${ECHO_T}$ac_cv_c_stringize" >&6
13020 if test $ac_cv_c_stringize = yes; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_STRINGIZE 1
13024 _ACEOF
13028 echo "$as_me:$LINENO: checking for signed types" >&5
13029 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
13030 if test "${pgac_cv_c_signed+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13041 main ()
13043 signed char c; signed short s; signed int i;
13045 return 0;
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest.$ac_objext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 pgac_cv_c_signed=yes
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 pgac_cv_c_signed=no
13077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13080 echo "${ECHO_T}$pgac_cv_c_signed" >&6
13081 if test x"$pgac_cv_c_signed" = xno ; then
13083 cat >>confdefs.h <<\_ACEOF
13084 #define signed
13085 _ACEOF
13088 echo "$as_me:$LINENO: checking for working volatile" >&5
13089 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
13090 if test "${ac_cv_c_volatile+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h. */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13101 main ()
13104 volatile int x;
13105 int * volatile y;
13107 return 0;
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag"
13120 || test ! -s conftest.err'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest.$ac_objext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_c_volatile=yes
13133 else
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_cv_c_volatile=no
13139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13141 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13142 echo "${ECHO_T}$ac_cv_c_volatile" >&6
13143 if test $ac_cv_c_volatile = no; then
13145 cat >>confdefs.h <<\_ACEOF
13146 #define volatile
13147 _ACEOF
13151 echo "$as_me:$LINENO: checking for __func__" >&5
13152 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
13153 if test "${pgac_cv_funcname_func_support+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <stdio.h>
13164 main ()
13166 printf("%s\n", __func__);
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest.$ac_objext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 pgac_cv_funcname_func_support=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 pgac_cv_funcname_func_support=no
13200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13203 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
13204 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_FUNCNAME__FUNC 1
13208 _ACEOF
13210 else
13211 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13212 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
13213 if test "${pgac_cv_funcname_function_support+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h. */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <stdio.h>
13224 main ()
13226 printf("%s\n", __FUNCTION__);
13228 return 0;
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag"
13241 || test ! -s conftest.err'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 pgac_cv_funcname_function_support=yes
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 pgac_cv_funcname_function_support=no
13260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13263 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
13264 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13266 cat >>confdefs.h <<\_ACEOF
13267 #define HAVE_FUNCNAME__FUNCTION 1
13268 _ACEOF
13272 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13273 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13274 if test "${ac_cv_struct_tm+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 #include <sys/types.h>
13284 #include <time.h>
13287 main ()
13289 struct tm *tp; tp->tm_sec;
13291 return 0;
13293 _ACEOF
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_c_werror_flag"
13304 || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_struct_tm=time.h
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_cv_struct_tm=sys/time.h
13323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13326 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13327 if test $ac_cv_struct_tm = sys/time.h; then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define TM_IN_SYS_TIME 1
13331 _ACEOF
13335 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13336 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13337 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340 cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h. */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <sys/types.h>
13347 #include <$ac_cv_struct_tm>
13351 main ()
13353 static struct tm ac_aggr;
13354 if (ac_aggr.tm_zone)
13355 return 0;
13357 return 0;
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13362 (eval $ac_compile) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag"
13370 || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_member_struct_tm_tm_zone=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 #include <sys/types.h>
13394 #include <$ac_cv_struct_tm>
13398 main ()
13400 static struct tm ac_aggr;
13401 if (sizeof ac_aggr.tm_zone)
13402 return 0;
13404 return 0;
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag"
13417 || test ! -s conftest.err'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest.$ac_objext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_member_struct_tm_tm_zone=yes
13430 else
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_cv_member_struct_tm_tm_zone=no
13436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13441 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13442 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_STRUCT_TM_TM_ZONE 1
13446 _ACEOF
13451 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13453 cat >>confdefs.h <<\_ACEOF
13454 #define HAVE_TM_ZONE 1
13455 _ACEOF
13458 echo "$as_me:$LINENO: checking for tzname" >&5
13459 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13460 if test "${ac_cv_var_tzname+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 #include <time.h>
13470 #ifndef tzname /* For SGI. */
13471 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13472 #endif
13475 main ()
13477 atoi(*tzname);
13479 return 0;
13481 _ACEOF
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13484 (eval $ac_link) 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag"
13492 || test ! -s conftest.err'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_cv_var_tzname=yes
13505 else
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13509 ac_cv_var_tzname=no
13511 rm -f conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13515 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13516 if test $ac_cv_var_tzname = yes; then
13518 cat >>confdefs.h <<\_ACEOF
13519 #define HAVE_TZNAME 1
13520 _ACEOF
13524 echo "$as_me:$LINENO: checking for union semun" >&5
13525 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
13526 if test "${ac_cv_type_union_semun+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 #include <sys/types.h>
13536 #include <sys/ipc.h>
13537 #include <sys/sem.h>
13540 main ()
13542 if ((union semun *) 0)
13543 return 0;
13544 if (sizeof (union semun))
13545 return 0;
13547 return 0;
13549 _ACEOF
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_type_union_semun=yes
13573 else
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ac_cv_type_union_semun=no
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13582 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
13583 if test $ac_cv_type_union_semun = yes; then
13585 cat >>confdefs.h <<_ACEOF
13586 #define HAVE_UNION_SEMUN 1
13587 _ACEOF
13592 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13593 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
13594 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 else
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #include <sys/types.h>
13604 #ifdef HAVE_SYS_UN_H
13605 #include <sys/un.h>
13606 #endif
13610 main ()
13612 if ((struct sockaddr_un *) 0)
13613 return 0;
13614 if (sizeof (struct sockaddr_un))
13615 return 0;
13617 return 0;
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_type_struct_sockaddr_un=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_cv_type_struct_sockaddr_un=no
13649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13651 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13652 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
13653 if test $ac_cv_type_struct_sockaddr_un = yes; then
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_STRUCT_SOCKADDR_UN 1
13657 _ACEOF
13660 cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_UNIX_SOCKETS 1
13662 _ACEOF
13666 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13667 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13668 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include <sys/types.h>
13678 #ifdef HAVE_SYS_SOCKET_H
13679 #include <sys/socket.h>
13680 #endif
13684 main ()
13686 if ((struct sockaddr_storage *) 0)
13687 return 0;
13688 if (sizeof (struct sockaddr_storage))
13689 return 0;
13691 return 0;
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag"
13704 || test ! -s conftest.err'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_cv_type_struct_sockaddr_storage=yes
13717 else
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13721 ac_cv_type_struct_sockaddr_storage=no
13723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13726 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
13727 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13731 _ACEOF
13736 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13737 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
13738 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h. */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <sys/types.h>
13748 #ifdef HAVE_SYS_SOCKET_H
13749 #include <sys/socket.h>
13750 #endif
13754 main ()
13756 static struct sockaddr_storage ac_aggr;
13757 if (ac_aggr.ss_family)
13758 return 0;
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765 (eval $ac_compile) 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest.$ac_objext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include <sys/types.h>
13797 #ifdef HAVE_SYS_SOCKET_H
13798 #include <sys/socket.h>
13799 #endif
13803 main ()
13805 static struct sockaddr_storage ac_aggr;
13806 if (sizeof ac_aggr.ss_family)
13807 return 0;
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13835 else
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_cv_member_struct_sockaddr_storage_ss_family=no
13841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13846 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
13847 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13851 _ACEOF
13855 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13856 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
13857 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <sys/types.h>
13867 #ifdef HAVE_SYS_SOCKET_H
13868 #include <sys/socket.h>
13869 #endif
13873 main ()
13875 static struct sockaddr_storage ac_aggr;
13876 if (ac_aggr.__ss_family)
13877 return 0;
13879 return 0;
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag"
13892 || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13905 else
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h. */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include <sys/types.h>
13916 #ifdef HAVE_SYS_SOCKET_H
13917 #include <sys/socket.h>
13918 #endif
13922 main ()
13924 static struct sockaddr_storage ac_aggr;
13925 if (sizeof ac_aggr.__ss_family)
13926 return 0;
13928 return 0;
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>conftest.er1
13934 ac_status=$?
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -z "$ac_c_werror_flag"
13941 || test ! -s conftest.err'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13954 else
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_member_struct_sockaddr_storage___ss_family=no
13960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13965 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
13966 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13970 _ACEOF
13974 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13975 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
13976 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <sys/types.h>
13986 #ifdef HAVE_SYS_SOCKET_H
13987 #include <sys/socket.h>
13988 #endif
13992 main ()
13994 static struct sockaddr_storage ac_aggr;
13995 if (ac_aggr.ss_len)
13996 return 0;
13998 return 0;
14000 _ACEOF
14001 rm -f conftest.$ac_objext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003 (eval $ac_compile) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest.$ac_objext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14024 else
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 #include <sys/types.h>
14035 #ifdef HAVE_SYS_SOCKET_H
14036 #include <sys/socket.h>
14037 #endif
14041 main ()
14043 static struct sockaddr_storage ac_aggr;
14044 if (sizeof ac_aggr.ss_len)
14045 return 0;
14047 return 0;
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14052 (eval $ac_compile) 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag"
14060 || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_member_struct_sockaddr_storage_ss_len=no
14079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14084 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
14085 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14089 _ACEOF
14093 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14094 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
14095 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h. */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <sys/types.h>
14105 #ifdef HAVE_SYS_SOCKET_H
14106 #include <sys/socket.h>
14107 #endif
14111 main ()
14113 static struct sockaddr_storage ac_aggr;
14114 if (ac_aggr.__ss_len)
14115 return 0;
14117 return 0;
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 #include <sys/types.h>
14154 #ifdef HAVE_SYS_SOCKET_H
14155 #include <sys/socket.h>
14156 #endif
14160 main ()
14162 static struct sockaddr_storage ac_aggr;
14163 if (sizeof ac_aggr.__ss_len)
14164 return 0;
14166 return 0;
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 ac_cv_member_struct_sockaddr_storage___ss_len=no
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14203 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
14204 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14206 cat >>confdefs.h <<_ACEOF
14207 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14208 _ACEOF
14212 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14213 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
14214 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 #include <sys/types.h>
14224 #ifdef HAVE_SYS_SOCKET_H
14225 #include <sys/socket.h>
14226 #endif
14230 main ()
14232 static struct sockaddr ac_aggr;
14233 if (ac_aggr.sa_len)
14234 return 0;
14236 return 0;
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_member_struct_sockaddr_sa_len=yes
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 #include <sys/types.h>
14273 #ifdef HAVE_SYS_SOCKET_H
14274 #include <sys/socket.h>
14275 #endif
14279 main ()
14281 static struct sockaddr ac_aggr;
14282 if (sizeof ac_aggr.sa_len)
14283 return 0;
14285 return 0;
14287 _ACEOF
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_member_struct_sockaddr_sa_len=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_member_struct_sockaddr_sa_len=no
14317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14322 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
14323 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14327 _ACEOF
14332 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14333 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
14334 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14344 #include <sys/socket.h>
14345 #include <netdb.h>
14349 main ()
14351 if ((struct addrinfo *) 0)
14352 return 0;
14353 if (sizeof (struct addrinfo))
14354 return 0;
14356 return 0;
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try='test -z "$ac_c_werror_flag"
14369 || test ! -s conftest.err'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; } &&
14375 { ac_try='test -s conftest.$ac_objext'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_type_struct_addrinfo=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_type_struct_addrinfo=no
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14390 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14391 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
14392 if test $ac_cv_type_struct_addrinfo = yes; then
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_STRUCT_ADDRINFO 1
14396 _ACEOF
14402 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14403 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
14404 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h. */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/param.h>
14414 #include <sys/types.h>
14415 #include <sys/socket.h>
14416 #include <sys/ucred.h>
14419 main ()
14421 if ((struct cmsgcred *) 0)
14422 return 0;
14423 if (sizeof (struct cmsgcred))
14424 return 0;
14426 return 0;
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_cv_type_struct_cmsgcred=yes
14452 else
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_cv_type_struct_cmsgcred=no
14458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14461 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
14462 if test $ac_cv_type_struct_cmsgcred = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_STRUCT_CMSGCRED 1
14466 _ACEOF
14470 echo "$as_me:$LINENO: checking for struct fcred" >&5
14471 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
14472 if test "${ac_cv_type_struct_fcred+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 #include <sys/param.h>
14482 #include <sys/types.h>
14483 #include <sys/socket.h>
14484 #include <sys/ucred.h>
14487 main ()
14489 if ((struct fcred *) 0)
14490 return 0;
14491 if (sizeof (struct fcred))
14492 return 0;
14494 return 0;
14496 _ACEOF
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag"
14507 || test ! -s conftest.err'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 ac_cv_type_struct_fcred=yes
14520 else
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_cv_type_struct_fcred=no
14526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14528 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14529 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
14530 if test $ac_cv_type_struct_fcred = yes; then
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_STRUCT_FCRED 1
14534 _ACEOF
14538 echo "$as_me:$LINENO: checking for struct sockcred" >&5
14539 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
14540 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 #include <sys/param.h>
14550 #include <sys/types.h>
14551 #include <sys/socket.h>
14552 #include <sys/ucred.h>
14555 main ()
14557 if ((struct sockcred *) 0)
14558 return 0;
14559 if (sizeof (struct sockcred))
14560 return 0;
14562 return 0;
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_cv_type_struct_sockcred=yes
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 ac_cv_type_struct_sockcred=no
14594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14597 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
14598 if test $ac_cv_type_struct_sockcred = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define HAVE_STRUCT_SOCKCRED 1
14602 _ACEOF
14608 echo "$as_me:$LINENO: checking for struct option" >&5
14609 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
14610 if test "${ac_cv_type_struct_option+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 #ifdef HAVE_GETOPT_H
14620 #include <getopt.h>
14621 #endif
14624 main ()
14626 if ((struct option *) 0)
14627 return 0;
14628 if (sizeof (struct option))
14629 return 0;
14631 return 0;
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636 (eval $ac_compile) 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -z "$ac_c_werror_flag"
14644 || test ! -s conftest.err'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
14656 ac_cv_type_struct_option=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ac_cv_type_struct_option=no
14663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14665 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14666 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
14667 if test $ac_cv_type_struct_option = yes; then
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_STRUCT_OPTION 1
14671 _ACEOF
14677 if test "$with_zlib" = yes; then
14678 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14679 # did not). While we could work around the lack of z_streamp, it
14680 # seems unwise to encourage people to use such old zlib versions...
14681 echo "$as_me:$LINENO: checking for z_streamp" >&5
14682 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
14683 if test "${ac_cv_type_z_streamp+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686 cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h. */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 #include <zlib.h>
14695 main ()
14697 if ((z_streamp *) 0)
14698 return 0;
14699 if (sizeof (z_streamp))
14700 return 0;
14702 return 0;
14704 _ACEOF
14705 rm -f conftest.$ac_objext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_z_streamp=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_type_z_streamp=no
14734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14737 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
14738 if test $ac_cv_type_z_streamp = yes; then
14740 else
14741 { { echo "$as_me:$LINENO: error: zlib version is too old
14742 Use --without-zlib to disable zlib support." >&5
14743 echo "$as_me: error: zlib version is too old
14744 Use --without-zlib to disable zlib support." >&2;}
14745 { (exit 1); exit 1; }; }
14750 if test "$with_krb5" = yes; then
14751 # Check for differences between MIT and Heimdal (KTH) releases
14752 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14753 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
14754 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <krb5.h>
14766 main ()
14768 static krb5_ticket ac_aggr;
14769 if (ac_aggr.enc_part2)
14770 return 0;
14772 return 0;
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_member_krb5_ticket_enc_part2=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h. */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <krb5.h>
14811 main ()
14813 static krb5_ticket ac_aggr;
14814 if (sizeof ac_aggr.enc_part2)
14815 return 0;
14817 return 0;
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14822 (eval $ac_compile) 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag"
14830 || test ! -s conftest.err'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_cv_member_krb5_ticket_enc_part2=yes
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_cv_member_krb5_ticket_enc_part2=no
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14853 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14854 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
14855 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_KRB5_TICKET_ENC_PART2 1
14859 _ACEOF
14862 else
14863 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14864 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
14865 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 #include <krb5.h>
14877 main ()
14879 static krb5_ticket ac_aggr;
14880 if (ac_aggr.client)
14881 return 0;
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_member_krb5_ticket_client=yes
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <krb5.h>
14922 main ()
14924 static krb5_ticket ac_aggr;
14925 if (sizeof ac_aggr.client)
14926 return 0;
14928 return 0;
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933 (eval $ac_compile) 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag"
14941 || test ! -s conftest.err'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_cv_member_krb5_ticket_client=yes
14954 else
14955 echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14958 ac_cv_member_krb5_ticket_client=no
14960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14965 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
14966 if test $ac_cv_member_krb5_ticket_client = yes; then
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_KRB5_TICKET_CLIENT 1
14970 _ACEOF
14973 else
14974 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14975 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14976 { (exit 1); exit 1; }; }
14981 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14982 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
14983 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <krb5.h>
14995 main ()
14997 static krb5_error ac_aggr;
14998 if (ac_aggr.text.data)
14999 return 0;
15001 return 0;
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_member_krb5_error_text_data=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 #include <krb5.h>
15040 main ()
15042 static krb5_error ac_aggr;
15043 if (sizeof ac_aggr.text.data)
15044 return 0;
15046 return 0;
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag"
15059 || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_member_krb5_error_text_data=yes
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_cv_member_krb5_error_text_data=no
15078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15082 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15083 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
15084 if test $ac_cv_member_krb5_error_text_data = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15088 _ACEOF
15091 else
15092 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15093 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
15094 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <krb5.h>
15106 main ()
15108 static krb5_error ac_aggr;
15109 if (ac_aggr.e_data)
15110 return 0;
15112 return 0;
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -z "$ac_c_werror_flag"
15125 || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_member_krb5_error_e_data=yes
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 #include <krb5.h>
15151 main ()
15153 static krb5_error ac_aggr;
15154 if (sizeof ac_aggr.e_data)
15155 return 0;
15157 return 0;
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag"
15170 || test ! -s conftest.err'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 ac_cv_member_krb5_error_e_data=yes
15183 else
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15187 ac_cv_member_krb5_error_e_data=no
15189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15193 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15194 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
15195 if test $ac_cv_member_krb5_error_e_data = yes; then
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_KRB5_ERROR_E_DATA 1
15199 _ACEOF
15202 else
15203 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15204 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15205 { (exit 1); exit 1; }; }
15211 # Win32 requires headers to be loaded for __stdcall, so can't use
15212 # AC_CHECK_FUNCS here.
15213 echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15214 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221 #include <krb5.h>
15223 main ()
15225 krb5_free_unparsed_name(NULL,NULL);
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15255 _ACEOF
15257 echo "$as_me:$LINENO: result: yes" >&5
15258 echo "${ECHO_T}yes" >&6
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 echo "$as_me:$LINENO: result: no" >&5
15264 echo "${ECHO_T}no" >&6
15266 rm -f conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15272 ## Functions, global variables
15275 echo "$as_me:$LINENO: checking for int timezone" >&5
15276 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
15277 if test "${pgac_cv_var_int_timezone+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 #include <time.h>
15287 int res;
15289 main ()
15291 #ifndef __CYGWIN__
15292 res = timezone / 60;
15293 #else
15294 res = _timezone / 60;
15295 #endif
15297 return 0;
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302 (eval $ac_link) 2>conftest.er1
15303 ac_status=$?
15304 grep -v '^ *+' conftest.er1 >conftest.err
15305 rm -f conftest.er1
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 pgac_cv_var_int_timezone=yes
15323 else
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 pgac_cv_var_int_timezone=no
15329 rm -f conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15332 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15333 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
15334 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAVE_INT_TIMEZONE
15338 _ACEOF
15341 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15342 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
15343 if test "${ac_cv_func_accept_return+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346 if test "${ac_cv_func_accept_arg1+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 if test "${ac_cv_func_accept_arg2+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 if test "${ac_cv_func_accept_arg3+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15356 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15357 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15358 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #ifdef HAVE_SYS_TYPES_H
15366 #include <sys/types.h>
15367 #endif
15368 #ifdef HAVE_SYS_SOCKET_H
15369 #include <sys/socket.h>
15370 #endif
15371 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15373 main ()
15377 return 0;
15379 _ACEOF
15380 rm -f conftest.$ac_objext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15382 (eval $ac_compile) 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_not_found=no; break 4
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_not_found=yes
15409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15410 done
15411 done
15412 done
15413 done
15414 if test "$ac_not_found" = yes; then
15415 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15416 echo "$as_me: error: could not determine argument types" >&2;}
15417 { (exit 1); exit 1; }; }
15419 if test "$ac_cv_func_accept_arg3" = "void"; then
15420 ac_cv_func_accept_arg3=int
15430 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
15431 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
15433 cat >>confdefs.h <<_ACEOF
15434 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15435 _ACEOF
15438 cat >>confdefs.h <<_ACEOF
15439 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15440 _ACEOF
15443 cat >>confdefs.h <<_ACEOF
15444 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15445 _ACEOF
15448 cat >>confdefs.h <<_ACEOF
15449 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15450 _ACEOF
15453 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15454 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
15455 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <sys/time.h>
15466 main ()
15468 struct timeval *tp;
15469 struct timezone *tzp;
15470 gettimeofday(tp,tzp);
15472 return 0;
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 pgac_cv_func_gettimeofday_1arg=no
15498 else
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 pgac_cv_func_gettimeofday_1arg=yes
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15507 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
15508 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15510 cat >>confdefs.h <<\_ACEOF
15511 #define GETTIMEOFDAY_1ARG
15512 _ACEOF
15538 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 echo "$as_me:$LINENO: checking for $ac_func" >&5
15542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15543 if eval "test \"\${$as_ac_var+set}\" = set"; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15554 #define $ac_func innocuous_$ac_func
15556 /* System header to define __stub macros and hopefully few prototypes,
15557 which can conflict with char $ac_func (); below.
15558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15559 <limits.h> exists even on freestanding compilers. */
15561 #ifdef __STDC__
15562 # include <limits.h>
15563 #else
15564 # include <assert.h>
15565 #endif
15567 #undef $ac_func
15569 /* Override any gcc2 internal prototype to avoid an error. */
15570 #ifdef __cplusplus
15571 extern "C"
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15581 choke me
15582 #else
15583 char (*f) () = $ac_func;
15584 #endif
15585 #ifdef __cplusplus
15587 #endif
15590 main ()
15592 return f != $ac_func;
15594 return 0;
15596 _ACEOF
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>conftest.er1
15600 ac_status=$?
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -z "$ac_c_werror_flag"
15607 || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 eval "$as_ac_var=yes"
15620 else
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 eval "$as_ac_var=no"
15626 rm -f conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15634 _ACEOF
15637 done
15640 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15641 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
15642 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <unistd.h>
15654 main ()
15656 #ifndef fdatasync
15657 char *p = (char *) fdatasync;
15658 #endif
15661 return 0;
15663 _ACEOF
15664 rm -f conftest.$ac_objext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666 (eval $ac_compile) 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try='test -z "$ac_c_werror_flag"
15674 || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_have_decl_fdatasync=yes
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_have_decl_fdatasync=no
15693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15696 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
15697 if test $ac_cv_have_decl_fdatasync = yes; then
15699 cat >>confdefs.h <<_ACEOF
15700 #define HAVE_DECL_FDATASYNC 1
15701 _ACEOF
15704 else
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_DECL_FDATASYNC 0
15707 _ACEOF
15713 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15714 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
15715 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <fcntl.h>
15727 main ()
15729 #ifndef posix_fadvise
15730 char *p = (char *) posix_fadvise;
15731 #endif
15734 return 0;
15736 _ACEOF
15737 rm -f conftest.$ac_objext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15739 (eval $ac_compile) 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_have_decl_posix_fadvise=yes
15760 else
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_cv_have_decl_posix_fadvise=no
15766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15768 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15769 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
15770 if test $ac_cv_have_decl_posix_fadvise = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_DECL_POSIX_FADVISE 1
15774 _ACEOF
15777 else
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_DECL_POSIX_FADVISE 0
15780 _ACEOF
15786 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15787 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
15788 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 $ac_includes_default
15799 main ()
15801 #ifndef strlcat
15802 char *p = (char *) strlcat;
15803 #endif
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811 (eval $ac_compile) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_cv_have_decl_strlcat=yes
15832 else
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_cv_have_decl_strlcat=no
15838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15841 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
15842 if test $ac_cv_have_decl_strlcat = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define HAVE_DECL_STRLCAT 1
15846 _ACEOF
15849 else
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_DECL_STRLCAT 0
15852 _ACEOF
15856 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15857 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
15858 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 $ac_includes_default
15869 main ()
15871 #ifndef strlcpy
15872 char *p = (char *) strlcpy;
15873 #endif
15876 return 0;
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_have_decl_strlcpy=yes
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_cv_have_decl_strlcpy=no
15908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15911 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
15912 if test $ac_cv_have_decl_strlcpy = yes; then
15914 cat >>confdefs.h <<_ACEOF
15915 #define HAVE_DECL_STRLCPY 1
15916 _ACEOF
15919 else
15920 cat >>confdefs.h <<_ACEOF
15921 #define HAVE_DECL_STRLCPY 0
15922 _ACEOF
15928 # This is probably only present on Darwin, but may as well check always
15929 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15930 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
15931 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <fcntl.h>
15943 main ()
15945 #ifndef F_FULLFSYNC
15946 char *p = (char *) F_FULLFSYNC;
15947 #endif
15950 return 0;
15952 _ACEOF
15953 rm -f conftest.$ac_objext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955 (eval $ac_compile) 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest.$ac_objext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_cv_have_decl_F_FULLFSYNC=yes
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_cv_have_decl_F_FULLFSYNC=no
15982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15985 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
15986 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_DECL_F_FULLFSYNC 1
15990 _ACEOF
15993 else
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_DECL_F_FULLFSYNC 0
15996 _ACEOF
16003 HAVE_IPV6=no
16004 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16005 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
16006 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <netinet/in.h>
16019 main ()
16021 if ((struct sockaddr_in6 *) 0)
16022 return 0;
16023 if (sizeof (struct sockaddr_in6))
16024 return 0;
16026 return 0;
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031 (eval $ac_compile) 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag"
16039 || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_type_struct_sockaddr_in6=yes
16052 else
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_cv_type_struct_sockaddr_in6=no
16058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16061 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
16062 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_IPV6 1
16066 _ACEOF
16068 HAVE_IPV6=yes
16073 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16074 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
16075 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h. */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 #include <machine/vmparam.h>
16085 #include <sys/exec.h>
16088 main ()
16090 PS_STRINGS->ps_nargvstr = 1;
16091 PS_STRINGS->ps_argvstr = "foo";
16093 return 0;
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest$ac_exeext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 pgac_cv_var_PS_STRINGS=yes
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 pgac_cv_var_PS_STRINGS=no
16125 rm -f conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
16128 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16129 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
16130 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_PS_STRINGS
16134 _ACEOF
16139 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16140 # is missing. Yes, there are machines that have only one. We may
16141 # also decide to use snprintf.c if snprintf() is present but does not
16142 # have all the features we need --- see below.
16144 if test "$PORTNAME" = "win32"; then
16145 # Win32 gets snprintf.c built unconditionally.
16147 # To properly translate all NLS languages strings, we must support the
16148 # *printf() %$ format, which allows *printf() arguments to be selected
16149 # by position in the translated string.
16151 # libintl versions < 0.13 use the native *printf() functions, and Win32
16152 # *printf() doesn't understand %$, so we must use our /port versions,
16153 # which do understand %$. libintl versions >= 0.13 include their own
16154 # *printf versions on Win32. The libintl 0.13 release note text is:
16156 # C format strings with positions, as they arise when a translator
16157 # needs to reorder a sentence, are now supported on all platforms.
16158 # On those few platforms (NetBSD and Woe32) for which the native
16159 # printf()/fprintf()/... functions don't support such format
16160 # strings, replacements are provided through <libintl.h>.
16162 # We could use libintl >= 0.13's *printf() if we were sure that we had
16163 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16164 # to guarantee that, it is best to just use our own, so we are sure to
16165 # get %$ support. In include/port.h we disable the *printf() macros
16166 # that might have been defined by libintl.
16168 # We do this unconditionally whether NLS is used or not so we are sure
16169 # that all Win32 libraries and binaries behave the same.
16170 pgac_need_repl_snprintf=yes
16171 else
16172 pgac_need_repl_snprintf=no
16174 for ac_func in snprintf
16176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16177 echo "$as_me:$LINENO: checking for $ac_func" >&5
16178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_var+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16190 #define $ac_func innocuous_$ac_func
16192 /* System header to define __stub macros and hopefully few prototypes,
16193 which can conflict with char $ac_func (); below.
16194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16195 <limits.h> exists even on freestanding compilers. */
16197 #ifdef __STDC__
16198 # include <limits.h>
16199 #else
16200 # include <assert.h>
16201 #endif
16203 #undef $ac_func
16205 /* Override any gcc2 internal prototype to avoid an error. */
16206 #ifdef __cplusplus
16207 extern "C"
16209 #endif
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16212 char $ac_func ();
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16217 choke me
16218 #else
16219 char (*f) () = $ac_func;
16220 #endif
16221 #ifdef __cplusplus
16223 #endif
16226 main ()
16228 return f != $ac_func;
16230 return 0;
16232 _ACEOF
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16235 (eval $ac_link) 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest$ac_exeext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 eval "$as_ac_var=yes"
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 eval "$as_ac_var=no"
16262 rm -f conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16267 if test `eval echo '${'$as_ac_var'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16270 _ACEOF
16272 else
16273 pgac_need_repl_snprintf=yes
16275 done
16278 for ac_func in vsnprintf
16280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16281 echo "$as_me:$LINENO: checking for $ac_func" >&5
16282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_var+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16294 #define $ac_func innocuous_$ac_func
16296 /* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func (); below.
16298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16299 <limits.h> exists even on freestanding compilers. */
16301 #ifdef __STDC__
16302 # include <limits.h>
16303 #else
16304 # include <assert.h>
16305 #endif
16307 #undef $ac_func
16309 /* Override any gcc2 internal prototype to avoid an error. */
16310 #ifdef __cplusplus
16311 extern "C"
16313 #endif
16314 /* We use char because int might match the return type of a gcc2
16315 builtin and then its argument prototype would still apply. */
16316 char $ac_func ();
16317 /* The GNU C library defines this for functions which it implements
16318 to always fail with ENOSYS. Some functions are actually named
16319 something starting with __ and the normal name is an alias. */
16320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16321 choke me
16322 #else
16323 char (*f) () = $ac_func;
16324 #endif
16325 #ifdef __cplusplus
16327 #endif
16330 main ()
16332 return f != $ac_func;
16334 return 0;
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag"
16347 || test ! -s conftest.err'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 eval "$as_ac_var=yes"
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 eval "$as_ac_var=no"
16366 rm -f conftest.err conftest.$ac_objext \
16367 conftest$ac_exeext conftest.$ac_ext
16369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16371 if test `eval echo '${'$as_ac_var'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374 _ACEOF
16376 else
16377 pgac_need_repl_snprintf=yes
16379 done
16384 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16385 # include/c.h will provide declarations. Note this is a separate test
16386 # from whether the functions exist in the C library --- there are
16387 # systems that have the functions but don't bother to declare them :-(
16389 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16390 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16391 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16402 main ()
16404 #ifndef snprintf
16405 char *p = (char *) snprintf;
16406 #endif
16409 return 0;
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414 (eval $ac_compile) 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_cv_have_decl_snprintf=yes
16435 else
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_cv_have_decl_snprintf=no
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16444 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16445 if test $ac_cv_have_decl_snprintf = yes; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define HAVE_DECL_SNPRINTF 1
16449 _ACEOF
16452 else
16453 cat >>confdefs.h <<_ACEOF
16454 #define HAVE_DECL_SNPRINTF 0
16455 _ACEOF
16459 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16460 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16461 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h. */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16472 main ()
16474 #ifndef vsnprintf
16475 char *p = (char *) vsnprintf;
16476 #endif
16479 return 0;
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_have_decl_vsnprintf=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_have_decl_vsnprintf=no
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16513 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16514 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16515 if test $ac_cv_have_decl_vsnprintf = yes; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_DECL_VSNPRINTF 1
16519 _ACEOF
16522 else
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_DECL_VSNPRINTF 0
16525 _ACEOF
16533 echo "$as_me:$LINENO: checking for isinf" >&5
16534 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
16535 if test "${ac_cv_func_isinf+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h. */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 #include <math.h>
16546 double glob_double;
16549 main ()
16551 return isinf(glob_double) ? 0 : 1;
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_func_isinf=yes
16579 else
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_func_isinf=no
16585 rm -f conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16589 echo "${ECHO_T}$ac_cv_func_isinf" >&6
16591 if test $ac_cv_func_isinf = yes ; then
16593 cat >>confdefs.h <<\_ACEOF
16594 #define HAVE_ISINF 1
16595 _ACEOF
16597 else
16598 case $LIBOBJS in
16599 "isinf.$ac_objext" | \
16600 *" isinf.$ac_objext" | \
16601 "isinf.$ac_objext "* | \
16602 *" isinf.$ac_objext "* ) ;;
16603 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
16604 esac
16606 # Look for a way to implement a substitute for isinf()
16611 for ac_func in fpclass fp_class fp_class_d class
16613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16614 echo "$as_me:$LINENO: checking for $ac_func" >&5
16615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16616 if eval "test \"\${$as_ac_var+set}\" = set"; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16627 #define $ac_func innocuous_$ac_func
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func (); below.
16631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16632 <limits.h> exists even on freestanding compilers. */
16634 #ifdef __STDC__
16635 # include <limits.h>
16636 #else
16637 # include <assert.h>
16638 #endif
16640 #undef $ac_func
16642 /* Override any gcc2 internal prototype to avoid an error. */
16643 #ifdef __cplusplus
16644 extern "C"
16646 #endif
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649 char $ac_func ();
16650 /* The GNU C library defines this for functions which it implements
16651 to always fail with ENOSYS. Some functions are actually named
16652 something starting with __ and the normal name is an alias. */
16653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16654 choke me
16655 #else
16656 char (*f) () = $ac_func;
16657 #endif
16658 #ifdef __cplusplus
16660 #endif
16663 main ()
16665 return f != $ac_func;
16667 return 0;
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 eval "$as_ac_var=yes"
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 eval "$as_ac_var=no"
16699 rm -f conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16704 if test `eval echo '${'$as_ac_var'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16707 _ACEOF
16708 break
16710 done
16714 # Some versions of libedit contain strlcpy(); so disregard that library while
16715 # checking for these standard libc functions.
16716 pgac_save_LIBS="$LIBS"
16717 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16734 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16737 echo "$as_me:$LINENO: checking for $ac_func" >&5
16738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16739 if eval "test \"\${$as_ac_var+set}\" = set"; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h. */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16750 #define $ac_func innocuous_$ac_func
16752 /* System header to define __stub macros and hopefully few prototypes,
16753 which can conflict with char $ac_func (); below.
16754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16755 <limits.h> exists even on freestanding compilers. */
16757 #ifdef __STDC__
16758 # include <limits.h>
16759 #else
16760 # include <assert.h>
16761 #endif
16763 #undef $ac_func
16765 /* Override any gcc2 internal prototype to avoid an error. */
16766 #ifdef __cplusplus
16767 extern "C"
16769 #endif
16770 /* We use char because int might match the return type of a gcc2
16771 builtin and then its argument prototype would still apply. */
16772 char $ac_func ();
16773 /* The GNU C library defines this for functions which it implements
16774 to always fail with ENOSYS. Some functions are actually named
16775 something starting with __ and the normal name is an alias. */
16776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16777 choke me
16778 #else
16779 char (*f) () = $ac_func;
16780 #endif
16781 #ifdef __cplusplus
16783 #endif
16786 main ()
16788 return f != $ac_func;
16790 return 0;
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>conftest.er1
16796 ac_status=$?
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 eval "$as_ac_var=yes"
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 eval "$as_ac_var=no"
16822 rm -f conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16827 if test `eval echo '${'$as_ac_var'}'` = yes; then
16828 cat >>confdefs.h <<_ACEOF
16829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16830 _ACEOF
16832 else
16833 case $LIBOBJS in
16834 "$ac_func.$ac_objext" | \
16835 *" $ac_func.$ac_objext" | \
16836 "$ac_func.$ac_objext "* | \
16837 *" $ac_func.$ac_objext "* ) ;;
16838 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16839 esac
16842 done
16846 LIBS="$pgac_save_LIBS"
16848 # System's version of getaddrinfo(), if any, may be used only if we found
16849 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16850 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16851 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16852 # because we want to use our own getaddrinfo.c on Windows anyway.)
16853 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
16855 for ac_func in getaddrinfo
16857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16858 echo "$as_me:$LINENO: checking for $ac_func" >&5
16859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16860 if eval "test \"\${$as_ac_var+set}\" = set"; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16871 #define $ac_func innocuous_$ac_func
16873 /* System header to define __stub macros and hopefully few prototypes,
16874 which can conflict with char $ac_func (); below.
16875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16876 <limits.h> exists even on freestanding compilers. */
16878 #ifdef __STDC__
16879 # include <limits.h>
16880 #else
16881 # include <assert.h>
16882 #endif
16884 #undef $ac_func
16886 /* Override any gcc2 internal prototype to avoid an error. */
16887 #ifdef __cplusplus
16888 extern "C"
16890 #endif
16891 /* We use char because int might match the return type of a gcc2
16892 builtin and then its argument prototype would still apply. */
16893 char $ac_func ();
16894 /* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16898 choke me
16899 #else
16900 char (*f) () = $ac_func;
16901 #endif
16902 #ifdef __cplusplus
16904 #endif
16907 main ()
16909 return f != $ac_func;
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest$ac_exeext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 eval "$as_ac_var=yes"
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 eval "$as_ac_var=no"
16943 rm -f conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16948 if test `eval echo '${'$as_ac_var'}'` = yes; then
16949 cat >>confdefs.h <<_ACEOF
16950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16951 _ACEOF
16953 else
16954 case $LIBOBJS in
16955 "$ac_func.$ac_objext" | \
16956 *" $ac_func.$ac_objext" | \
16957 "$ac_func.$ac_objext "* | \
16958 *" $ac_func.$ac_objext "* ) ;;
16959 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16960 esac
16963 done
16966 else
16967 case $LIBOBJS in
16968 "getaddrinfo.$ac_objext" | \
16969 *" getaddrinfo.$ac_objext" | \
16970 "getaddrinfo.$ac_objext "* | \
16971 *" getaddrinfo.$ac_objext "* ) ;;
16972 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
16973 esac
16977 # similarly, use system's getopt_long() only if system provides struct option.
16978 if test x"$ac_cv_type_struct_option" = xyes ; then
16980 for ac_func in getopt_long
16982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983 echo "$as_me:$LINENO: checking for $ac_func" >&5
16984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16985 if eval "test \"\${$as_ac_var+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h. */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996 #define $ac_func innocuous_$ac_func
16998 /* System header to define __stub macros and hopefully few prototypes,
16999 which can conflict with char $ac_func (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17003 #ifdef __STDC__
17004 # include <limits.h>
17005 #else
17006 # include <assert.h>
17007 #endif
17009 #undef $ac_func
17011 /* Override any gcc2 internal prototype to avoid an error. */
17012 #ifdef __cplusplus
17013 extern "C"
17015 #endif
17016 /* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018 char $ac_func ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17023 choke me
17024 #else
17025 char (*f) () = $ac_func;
17026 #endif
17027 #ifdef __cplusplus
17029 #endif
17032 main ()
17034 return f != $ac_func;
17036 return 0;
17038 _ACEOF
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 eval "$as_ac_var=yes"
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 eval "$as_ac_var=no"
17068 rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17073 if test `eval echo '${'$as_ac_var'}'` = yes; then
17074 cat >>confdefs.h <<_ACEOF
17075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076 _ACEOF
17078 else
17079 case $LIBOBJS in
17080 "$ac_func.$ac_objext" | \
17081 *" $ac_func.$ac_objext" | \
17082 "$ac_func.$ac_objext "* | \
17083 *" $ac_func.$ac_objext "* ) ;;
17084 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17085 esac
17088 done
17091 else
17092 case $LIBOBJS in
17093 "getopt_long.$ac_objext" | \
17094 *" getopt_long.$ac_objext" | \
17095 "getopt_long.$ac_objext "* | \
17096 *" getopt_long.$ac_objext "* ) ;;
17097 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
17098 esac
17102 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
17103 # We override the previous test that said fseeko/ftello didn't exist
17104 # OS tests are also done in include/c.h and port/fseeko.c
17105 case $host_os in bsdi*|netbsd*)
17106 ac_cv_func_fseeko=yes
17107 esac
17109 # Win32 support
17110 if test "$PORTNAME" = "win32"; then
17112 for ac_func in gettimeofday
17114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115 echo "$as_me:$LINENO: checking for $ac_func" >&5
17116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17117 if eval "test \"\${$as_ac_var+set}\" = set"; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h. */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17128 #define $ac_func innocuous_$ac_func
17130 /* System header to define __stub macros and hopefully few prototypes,
17131 which can conflict with char $ac_func (); below.
17132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133 <limits.h> exists even on freestanding compilers. */
17135 #ifdef __STDC__
17136 # include <limits.h>
17137 #else
17138 # include <assert.h>
17139 #endif
17141 #undef $ac_func
17143 /* Override any gcc2 internal prototype to avoid an error. */
17144 #ifdef __cplusplus
17145 extern "C"
17147 #endif
17148 /* We use char because int might match the return type of a gcc2
17149 builtin and then its argument prototype would still apply. */
17150 char $ac_func ();
17151 /* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17155 choke me
17156 #else
17157 char (*f) () = $ac_func;
17158 #endif
17159 #ifdef __cplusplus
17161 #endif
17164 main ()
17166 return f != $ac_func;
17168 return 0;
17170 _ACEOF
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17173 (eval $ac_link) 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag"
17181 || test ! -s conftest.err'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; } &&
17187 { ac_try='test -s conftest$ac_exeext'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 eval "$as_ac_var=yes"
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 eval "$as_ac_var=no"
17200 rm -f conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17205 if test `eval echo '${'$as_ac_var'}'` = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17208 _ACEOF
17210 else
17211 case $LIBOBJS in
17212 "$ac_func.$ac_objext" | \
17213 *" $ac_func.$ac_objext" | \
17214 "$ac_func.$ac_objext "* | \
17215 *" $ac_func.$ac_objext "* ) ;;
17216 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17217 esac
17220 done
17223 case $LIBOBJS in
17224 "kill.$ac_objext" | \
17225 *" kill.$ac_objext" | \
17226 "kill.$ac_objext "* | \
17227 *" kill.$ac_objext "* ) ;;
17228 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
17229 esac
17231 case $LIBOBJS in
17232 "open.$ac_objext" | \
17233 *" open.$ac_objext" | \
17234 "open.$ac_objext "* | \
17235 *" open.$ac_objext "* ) ;;
17236 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
17237 esac
17239 case $LIBOBJS in
17240 "rand.$ac_objext" | \
17241 *" rand.$ac_objext" | \
17242 "rand.$ac_objext "* | \
17243 *" rand.$ac_objext "* ) ;;
17244 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
17245 esac
17247 case $LIBOBJS in
17248 "win32error.$ac_objext" | \
17249 *" win32error.$ac_objext" | \
17250 "win32error.$ac_objext "* | \
17251 *" win32error.$ac_objext "* ) ;;
17252 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
17253 esac
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_SYMLINK 1
17258 _ACEOF
17262 if test "$with_readline" = yes; then
17263 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17264 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h. */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 #include <stdio.h>
17272 #ifdef HAVE_READLINE_READLINE_H
17273 # include <readline/readline.h>
17274 #elif defined(HAVE_READLINE_H)
17275 # include <readline.h>
17276 #endif
17279 main ()
17281 rl_completion_append_character = 'x';
17283 return 0;
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288 (eval $ac_link) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 echo "$as_me:$LINENO: result: yes" >&5
17309 echo "${ECHO_T}yes" >&6
17311 cat >>confdefs.h <<\_ACEOF
17312 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17313 _ACEOF
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 echo "$as_me:$LINENO: result: no" >&5
17320 echo "${ECHO_T}no" >&6
17322 rm -f conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17326 for ac_func in rl_completion_matches rl_filename_completion_function
17328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17329 echo "$as_me:$LINENO: checking for $ac_func" >&5
17330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17331 if eval "test \"\${$as_ac_var+set}\" = set"; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17342 #define $ac_func innocuous_$ac_func
17344 /* System header to define __stub macros and hopefully few prototypes,
17345 which can conflict with char $ac_func (); below.
17346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347 <limits.h> exists even on freestanding compilers. */
17349 #ifdef __STDC__
17350 # include <limits.h>
17351 #else
17352 # include <assert.h>
17353 #endif
17355 #undef $ac_func
17357 /* Override any gcc2 internal prototype to avoid an error. */
17358 #ifdef __cplusplus
17359 extern "C"
17361 #endif
17362 /* We use char because int might match the return type of a gcc2
17363 builtin and then its argument prototype would still apply. */
17364 char $ac_func ();
17365 /* The GNU C library defines this for functions which it implements
17366 to always fail with ENOSYS. Some functions are actually named
17367 something starting with __ and the normal name is an alias. */
17368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17369 choke me
17370 #else
17371 char (*f) () = $ac_func;
17372 #endif
17373 #ifdef __cplusplus
17375 #endif
17378 main ()
17380 return f != $ac_func;
17382 return 0;
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 eval "$as_ac_var=yes"
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 eval "$as_ac_var=no"
17414 rm -f conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17419 if test `eval echo '${'$as_ac_var'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422 _ACEOF
17425 done
17428 for ac_func in replace_history_entry
17430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431 echo "$as_me:$LINENO: checking for $ac_func" >&5
17432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17433 if eval "test \"\${$as_ac_var+set}\" = set"; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17444 #define $ac_func innocuous_$ac_func
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17451 #ifdef __STDC__
17452 # include <limits.h>
17453 #else
17454 # include <assert.h>
17455 #endif
17457 #undef $ac_func
17459 /* Override any gcc2 internal prototype to avoid an error. */
17460 #ifdef __cplusplus
17461 extern "C"
17463 #endif
17464 /* We use char because int might match the return type of a gcc2
17465 builtin and then its argument prototype would still apply. */
17466 char $ac_func ();
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17471 choke me
17472 #else
17473 char (*f) () = $ac_func;
17474 #endif
17475 #ifdef __cplusplus
17477 #endif
17480 main ()
17482 return f != $ac_func;
17484 return 0;
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489 (eval $ac_link) 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag"
17497 || test ! -s conftest.err'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 eval "$as_ac_var=yes"
17510 else
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 eval "$as_ac_var=no"
17516 rm -f conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17521 if test `eval echo '${'$as_ac_var'}'` = yes; then
17522 cat >>confdefs.h <<_ACEOF
17523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17524 _ACEOF
17527 done
17532 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17533 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 #include <setjmp.h>
17542 main ()
17544 sigjmp_buf x; sigsetjmp(x, 1);
17546 return 0;
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17551 (eval $ac_link) 2>conftest.er1
17552 ac_status=$?
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17572 cat >>confdefs.h <<\_ACEOF
17573 #define HAVE_SIGSETJMP 1
17574 _ACEOF
17576 echo "$as_me:$LINENO: result: yes" >&5
17577 echo "${ECHO_T}yes" >&6
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 echo "$as_me:$LINENO: result: no" >&5
17583 echo "${ECHO_T}no" >&6
17585 rm -f conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17588 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17589 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
17590 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <signal.h>
17600 /* NetBSD declares sys_siglist in unistd.h. */
17601 #if HAVE_UNISTD_H
17602 # include <unistd.h>
17603 #endif
17607 main ()
17609 #ifndef sys_siglist
17610 char *p = (char *) sys_siglist;
17611 #endif
17614 return 0;
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17619 (eval $ac_compile) 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest.$ac_objext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_have_decl_sys_siglist=yes
17640 else
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_have_decl_sys_siglist=no
17646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17648 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17649 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
17650 if test $ac_cv_have_decl_sys_siglist = yes; then
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_DECL_SYS_SIGLIST 1
17654 _ACEOF
17657 else
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_DECL_SYS_SIGLIST 0
17660 _ACEOF
17668 echo "$as_me:$LINENO: checking for syslog" >&5
17669 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
17670 if test "${ac_cv_func_syslog+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define syslog innocuous_syslog
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char syslog (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17688 #ifdef __STDC__
17689 # include <limits.h>
17690 #else
17691 # include <assert.h>
17692 #endif
17694 #undef syslog
17696 /* Override any gcc2 internal prototype to avoid an error. */
17697 #ifdef __cplusplus
17698 extern "C"
17700 #endif
17701 /* We use char because int might match the return type of a gcc2
17702 builtin and then its argument prototype would still apply. */
17703 char syslog ();
17704 /* The GNU C library defines this for functions which it implements
17705 to always fail with ENOSYS. Some functions are actually named
17706 something starting with __ and the normal name is an alias. */
17707 #if defined (__stub_syslog) || defined (__stub___syslog)
17708 choke me
17709 #else
17710 char (*f) () = syslog;
17711 #endif
17712 #ifdef __cplusplus
17714 #endif
17717 main ()
17719 return f != syslog;
17721 return 0;
17723 _ACEOF
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17726 (eval $ac_link) 2>conftest.er1
17727 ac_status=$?
17728 grep -v '^ *+' conftest.er1 >conftest.err
17729 rm -f conftest.er1
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } &&
17733 { ac_try='test -z "$ac_c_werror_flag"
17734 || test ! -s conftest.err'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest$ac_exeext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_cv_func_syslog=yes
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_cv_func_syslog=no
17753 rm -f conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17756 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17757 echo "${ECHO_T}$ac_cv_func_syslog" >&6
17758 if test $ac_cv_func_syslog = yes; then
17759 if test "${ac_cv_header_syslog_h+set}" = set; then
17760 echo "$as_me:$LINENO: checking for syslog.h" >&5
17761 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17762 if test "${ac_cv_header_syslog_h+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17766 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17767 else
17768 # Is the header compilable?
17769 echo "$as_me:$LINENO: checking syslog.h usability" >&5
17770 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $ac_includes_default
17778 #include <syslog.h>
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17782 (eval $ac_compile) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_header_compiler=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 ac_header_compiler=no
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17811 echo "${ECHO_T}$ac_header_compiler" >&6
17813 # Is the header present?
17814 echo "$as_me:$LINENO: checking syslog.h presence" >&5
17815 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 #include <syslog.h>
17823 _ACEOF
17824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } >/dev/null; then
17832 if test -s conftest.err; then
17833 ac_cpp_err=$ac_c_preproc_warn_flag
17834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17835 else
17836 ac_cpp_err=
17838 else
17839 ac_cpp_err=yes
17841 if test -z "$ac_cpp_err"; then
17842 ac_header_preproc=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_header_preproc=no
17849 rm -f conftest.err conftest.$ac_ext
17850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17851 echo "${ECHO_T}$ac_header_preproc" >&6
17853 # So? What about this header?
17854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17855 yes:no: )
17856 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17857 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17859 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17860 ac_header_preproc=yes
17862 no:yes:* )
17863 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17864 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17866 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17868 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17870 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17872 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17874 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17876 cat <<\_ASBOX
17877 ## ---------------------------------------- ##
17878 ## Report this to pgsql-bugs@postgresql.org ##
17879 ## ---------------------------------------- ##
17880 _ASBOX
17882 sed "s/^/$as_me: WARNING: /" >&2
17884 esac
17885 echo "$as_me:$LINENO: checking for syslog.h" >&5
17886 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17887 if test "${ac_cv_header_syslog_h+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 ac_cv_header_syslog_h=$ac_header_preproc
17892 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17896 if test $ac_cv_header_syslog_h = yes; then
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_SYSLOG 1
17900 _ACEOF
17908 echo "$as_me:$LINENO: checking for optreset" >&5
17909 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
17910 if test "${pgac_cv_var_int_optreset+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 #include <unistd.h>
17921 main ()
17923 extern int optreset; optreset = 1;
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 pgac_cv_var_int_optreset=yes
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 pgac_cv_var_int_optreset=no
17957 rm -f conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17960 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17961 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
17962 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_INT_OPTRESET 1
17966 _ACEOF
17972 for ac_func in strtoll strtoq
17974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17977 if eval "test \"\${$as_ac_var+set}\" = set"; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988 #define $ac_func innocuous_$ac_func
17990 /* System header to define __stub macros and hopefully few prototypes,
17991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993 <limits.h> exists even on freestanding compilers. */
17995 #ifdef __STDC__
17996 # include <limits.h>
17997 #else
17998 # include <assert.h>
17999 #endif
18001 #undef $ac_func
18003 /* Override any gcc2 internal prototype to avoid an error. */
18004 #ifdef __cplusplus
18005 extern "C"
18007 #endif
18008 /* We use char because int might match the return type of a gcc2
18009 builtin and then its argument prototype would still apply. */
18010 char $ac_func ();
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18015 choke me
18016 #else
18017 char (*f) () = $ac_func;
18018 #endif
18019 #ifdef __cplusplus
18021 #endif
18024 main ()
18026 return f != $ac_func;
18028 return 0;
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 eval "$as_ac_var=yes"
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18060 rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 _ACEOF
18069 break
18071 done
18075 for ac_func in strtoull strtouq
18077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18078 echo "$as_me:$LINENO: checking for $ac_func" >&5
18079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_var+set}\" = set"; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18091 #define $ac_func innocuous_$ac_func
18093 /* System header to define __stub macros and hopefully few prototypes,
18094 which can conflict with char $ac_func (); below.
18095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096 <limits.h> exists even on freestanding compilers. */
18098 #ifdef __STDC__
18099 # include <limits.h>
18100 #else
18101 # include <assert.h>
18102 #endif
18104 #undef $ac_func
18106 /* Override any gcc2 internal prototype to avoid an error. */
18107 #ifdef __cplusplus
18108 extern "C"
18110 #endif
18111 /* We use char because int might match the return type of a gcc2
18112 builtin and then its argument prototype would still apply. */
18113 char $ac_func ();
18114 /* The GNU C library defines this for functions which it implements
18115 to always fail with ENOSYS. Some functions are actually named
18116 something starting with __ and the normal name is an alias. */
18117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18118 choke me
18119 #else
18120 char (*f) () = $ac_func;
18121 #endif
18122 #ifdef __cplusplus
18124 #endif
18127 main ()
18129 return f != $ac_func;
18131 return 0;
18133 _ACEOF
18134 rm -f conftest.$ac_objext conftest$ac_exeext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136 (eval $ac_link) 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 eval "$as_ac_var=yes"
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18163 rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18171 _ACEOF
18172 break
18174 done
18177 # Check for one of atexit() or on_exit()
18179 for ac_func in atexit
18181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18182 echo "$as_me:$LINENO: checking for $ac_func" >&5
18183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18184 if eval "test \"\${$as_ac_var+set}\" = set"; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18195 #define $ac_func innocuous_$ac_func
18197 /* System header to define __stub macros and hopefully few prototypes,
18198 which can conflict with char $ac_func (); below.
18199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18200 <limits.h> exists even on freestanding compilers. */
18202 #ifdef __STDC__
18203 # include <limits.h>
18204 #else
18205 # include <assert.h>
18206 #endif
18208 #undef $ac_func
18210 /* Override any gcc2 internal prototype to avoid an error. */
18211 #ifdef __cplusplus
18212 extern "C"
18214 #endif
18215 /* We use char because int might match the return type of a gcc2
18216 builtin and then its argument prototype would still apply. */
18217 char $ac_func ();
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18222 choke me
18223 #else
18224 char (*f) () = $ac_func;
18225 #endif
18226 #ifdef __cplusplus
18228 #endif
18231 main ()
18233 return f != $ac_func;
18235 return 0;
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240 (eval $ac_link) 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag"
18248 || test ! -s conftest.err'
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; } &&
18254 { ac_try='test -s conftest$ac_exeext'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 eval "$as_ac_var=yes"
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 eval "$as_ac_var=no"
18267 rm -f conftest.err conftest.$ac_objext \
18268 conftest$ac_exeext conftest.$ac_ext
18270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18272 if test `eval echo '${'$as_ac_var'}'` = yes; then
18273 cat >>confdefs.h <<_ACEOF
18274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18275 _ACEOF
18277 else
18279 for ac_func in on_exit
18281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18282 echo "$as_me:$LINENO: checking for $ac_func" >&5
18283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18284 if eval "test \"\${$as_ac_var+set}\" = set"; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h. */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18295 #define $ac_func innocuous_$ac_func
18297 /* System header to define __stub macros and hopefully few prototypes,
18298 which can conflict with char $ac_func (); below.
18299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18300 <limits.h> exists even on freestanding compilers. */
18302 #ifdef __STDC__
18303 # include <limits.h>
18304 #else
18305 # include <assert.h>
18306 #endif
18308 #undef $ac_func
18310 /* Override any gcc2 internal prototype to avoid an error. */
18311 #ifdef __cplusplus
18312 extern "C"
18314 #endif
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317 char $ac_func ();
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 choke me
18323 #else
18324 char (*f) () = $ac_func;
18325 #endif
18326 #ifdef __cplusplus
18328 #endif
18331 main ()
18333 return f != $ac_func;
18335 return 0;
18337 _ACEOF
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340 (eval $ac_link) 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 eval "$as_ac_var=yes"
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 eval "$as_ac_var=no"
18367 rm -f conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375 _ACEOF
18377 else
18378 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18379 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18380 { (exit 1); exit 1; }; }
18382 done
18385 done
18388 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18389 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18390 if test "${ac_cv_sys_largefile_source+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 while :; do
18394 ac_cv_sys_largefile_source=no
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <stdio.h>
18403 main ()
18405 return !fseeko;
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 break
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #define _LARGEFILE_SOURCE 1
18446 #include <stdio.h>
18448 main ()
18450 return !fseeko;
18452 return 0;
18454 _ACEOF
18455 rm -f conftest.$ac_objext
18456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18457 (eval $ac_compile) 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
18464 { ac_try='test -z "$ac_c_werror_flag"
18465 || test ! -s conftest.err'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_sys_largefile_source=1; break
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18484 break
18485 done
18487 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18488 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18489 if test "$ac_cv_sys_largefile_source" != no; then
18491 cat >>confdefs.h <<_ACEOF
18492 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18493 _ACEOF
18496 rm -f conftest*
18498 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18499 # in glibc 2.1.3, but that breaks too many other things.
18500 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18501 echo "$as_me:$LINENO: checking for fseeko" >&5
18502 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18503 if test "${ac_cv_func_fseeko+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <stdio.h>
18514 main ()
18516 return fseeko && fseeko (stdin, 0, 0);
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_func_fseeko=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_func_fseeko=no
18550 rm -f conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18554 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18555 if test $ac_cv_func_fseeko = yes; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_FSEEKO 1
18559 _ACEOF
18565 # Pthreads
18567 # For each platform, we need to know about any special compile and link
18568 # libraries, and whether the normal C function names are thread-safe.
18569 # See the comment at the top of src/port/thread.c for more information.
18570 # WIN32 doesn't need the pthread tests; it always uses threads
18571 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18576 ac_ext=c
18577 ac_cpp='$CPP $CPPFLAGS'
18578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18582 acx_pthread_ok=no
18584 # We used to check for pthread.h first, but this fails if pthread.h
18585 # requires special compiler flags (e.g. on True64 or Sequent).
18586 # It gets checked for in the link test anyway.
18588 # First of all, check if the user has set any of the PTHREAD_LIBS,
18589 # etcetera environment variables, and if threads linking works using
18590 # them:
18591 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18592 save_CFLAGS="$CFLAGS"
18593 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18594 save_LIBS="$LIBS"
18595 LIBS="$PTHREAD_LIBS $LIBS"
18596 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18597 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h. */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any gcc2 internal prototype to avoid an error. */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 /* We use char because int might match the return type of a gcc2
18610 builtin and then its argument prototype would still apply. */
18611 char pthread_join ();
18613 main ()
18615 pthread_join ();
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18622 (eval $ac_link) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag"
18630 || test ! -s conftest.err'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 acx_pthread_ok=yes
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18648 rm -f conftest.err conftest.$ac_objext \
18649 conftest$ac_exeext conftest.$ac_ext
18650 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18651 echo "${ECHO_T}$acx_pthread_ok" >&6
18652 if test x"$acx_pthread_ok" = xno; then
18653 PTHREAD_LIBS=""
18654 PTHREAD_CFLAGS=""
18656 LIBS="$save_LIBS"
18657 CFLAGS="$save_CFLAGS"
18660 # We must check for the threads library under a number of different
18661 # names; the ordering is very important because some systems
18662 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18663 # libraries is broken (non-POSIX).
18665 # Create a list of thread flags to try. Items starting with a "-" are
18666 # C compiler flags, and other items are library names, except for "none"
18667 # which indicates that we try without any flags at all, and "pthread-config"
18668 # which is a program returning the flags for the Pth emulation library.
18670 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18672 # The ordering *is* (sometimes) important. Some notes on the
18673 # individual items follow:
18675 # pthreads: AIX (must check this before -lpthread)
18676 # none: in case threads are in libc; should be tried before -Kthread and
18677 # other compiler flags to prevent continual compiler warnings
18678 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18679 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18680 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18681 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18682 # -pthreads: Solaris/gcc
18683 # -mthreads: Mingw32/gcc, Lynx/gcc
18684 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18685 # doesn't hurt to check since this sometimes defines pthreads too;
18686 # also defines -D_REENTRANT)
18687 # pthread: Linux, etcetera
18688 # --thread-safe: KAI C++
18689 # pthread-config: use pthread-config program (for GNU Pth library)
18691 case "${host_cpu}-${host_os}" in
18692 *solaris*)
18694 # On Solaris (at least, for some versions), libc contains stubbed
18695 # (non-functional) versions of the pthreads routines, so link-based
18696 # tests will erroneously succeed. (We need to link with -pthread or
18697 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18698 # a function called by this macro, so we could check for that, but
18699 # who knows whether they'll stub that too in a future libc.) So,
18700 # we'll just look for -pthreads and -lpthread first:
18702 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18704 esac
18706 if test x"$acx_pthread_ok" = xno; then
18707 for flag in $acx_pthread_flags; do
18709 tryPTHREAD_CFLAGS=""
18710 tryPTHREAD_LIBS=""
18711 case $flag in
18712 none)
18713 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18714 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
18718 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18719 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
18720 tryPTHREAD_CFLAGS="$flag"
18723 pthread-config)
18724 # skip this if we already have flags defined, for PostgreSQL
18725 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18726 # Extract the first word of "pthread-config", so it can be a program name with args.
18727 set dummy pthread-config; ac_word=$2
18728 echo "$as_me:$LINENO: checking for $ac_word" >&5
18729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18730 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733 if test -n "$acx_pthread_config"; then
18734 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18735 else
18736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18737 for as_dir in $PATH
18739 IFS=$as_save_IFS
18740 test -z "$as_dir" && as_dir=.
18741 for ac_exec_ext in '' $ac_executable_extensions; do
18742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18743 ac_cv_prog_acx_pthread_config="yes"
18744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18745 break 2
18747 done
18748 done
18750 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18753 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18754 if test -n "$acx_pthread_config"; then
18755 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18756 echo "${ECHO_T}$acx_pthread_config" >&6
18757 else
18758 echo "$as_me:$LINENO: result: no" >&5
18759 echo "${ECHO_T}no" >&6
18762 if test x"$acx_pthread_config" = xno; then continue; fi
18763 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18764 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18768 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18769 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
18770 tryPTHREAD_LIBS="-l$flag"
18772 esac
18774 save_LIBS="$LIBS"
18775 save_CFLAGS="$CFLAGS"
18776 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18779 # Check for various functions. We must include pthread.h,
18780 # since some functions may be macros. (On the Sequent, we
18781 # need a special flag -Kthread to make this header compile.)
18782 # We check for pthread_join because it is in -lpthread on IRIX
18783 # while pthread_create is in libc. We check for pthread_attr_init
18784 # due to DEC craziness with -lpthreads. We check for
18785 # pthread_cleanup_push because it is one of the few pthread
18786 # functions on Solaris that doesn't have a non-functional libc stub.
18787 # We try pthread_create on general principles.
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <pthread.h>
18796 main ()
18798 pthread_t th; pthread_join(th, 0);
18799 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18800 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18802 return 0;
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807 (eval $ac_link) 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 acx_pthread_ok=yes
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 acx_pthread_ok=no
18834 rm -f conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18837 if test "x$acx_pthread_ok" = xyes; then
18838 # Don't use options that are ignored by the compiler.
18839 # We find them by checking stderror.
18840 cat >conftest.$ac_ext <<_ACEOF
18842 main (int argc, char **argv)
18844 (void) argc;
18845 (void) argv;
18846 return 0;
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18851 # we continue with more flags because Linux needs -lpthread
18852 # for libpq builds on PostgreSQL. The test above only
18853 # tests for building binaries, not shared libraries.
18854 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18855 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18856 else acx_pthread_ok=no
18860 LIBS="$save_LIBS"
18861 CFLAGS="$save_CFLAGS"
18863 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18864 echo "${ECHO_T}$acx_pthread_ok" >&6
18865 done
18868 # Various other checks:
18869 if test "x$acx_pthread_ok" = xyes; then
18870 save_LIBS="$LIBS"
18871 LIBS="$PTHREAD_LIBS $LIBS"
18872 save_CFLAGS="$CFLAGS"
18873 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18875 # Detect AIX lossage: threads are created detached by default
18876 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18877 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18878 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18885 #include <pthread.h>
18887 main ()
18889 int attr=PTHREAD_CREATE_JOINABLE;
18891 return 0;
18893 _ACEOF
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18896 (eval $ac_link) 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag"
18904 || test ! -s conftest.err'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest$ac_exeext'
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 ok=PTHREAD_CREATE_JOINABLE
18917 else
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ok=unknown
18923 rm -f conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18925 if test x"$ok" = xunknown; then
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <pthread.h>
18934 main ()
18936 int attr=PTHREAD_CREATE_UNDETACHED;
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ok=PTHREAD_CREATE_UNDETACHED
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ok=unknown
18970 rm -f conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18973 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18975 cat >>confdefs.h <<\_ACEOF
18976 #define PTHREAD_CREATE_JOINABLE $ok
18977 _ACEOF
18980 echo "$as_me:$LINENO: result: ${ok}" >&5
18981 echo "${ECHO_T}${ok}" >&6
18982 if test x"$ok" = xunknown; then
18983 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18984 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18987 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18988 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
18989 flag=no
18990 # We always add these in PostgreSQL
18991 # case "${host_cpu}-${host_os}" in
18992 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18993 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18994 # esac
18995 echo "$as_me:$LINENO: result: ${flag}" >&5
18996 echo "${ECHO_T}${flag}" >&6
18997 if test "x$flag" != xno; then
18998 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19001 LIBS="$save_LIBS"
19002 CFLAGS="$save_CFLAGS"
19004 # Supporting cc_r would require a special CC in all places that
19005 # use libpq, and that is ugly, so we don't do it. Users can still
19006 # define their compiler as cc_r to do thread builds of everything.
19007 # More AIX lossage: must compile with cc_r
19008 # Extract the first word of "cc_r", so it can be a program name with args.
19009 set dummy cc_r; ac_word=$2
19010 echo "$as_me:$LINENO: checking for $ac_word" >&5
19011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015 if test -n "$PTHREAD_CC"; then
19016 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19017 else
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in $PATH
19021 IFS=$as_save_IFS
19022 test -z "$as_dir" && as_dir=.
19023 for ac_exec_ext in '' $ac_executable_extensions; do
19024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19025 ac_cv_prog_PTHREAD_CC="cc_r"
19026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19027 break 2
19029 done
19030 done
19032 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19035 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19036 if test -n "$PTHREAD_CC"; then
19037 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19038 echo "${ECHO_T}$PTHREAD_CC" >&6
19039 else
19040 echo "$as_me:$LINENO: result: no" >&5
19041 echo "${ECHO_T}no" >&6
19044 else
19045 PTHREAD_CC="$CC"
19052 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19053 if test x"$acx_pthread_ok" = xyes; then
19055 cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_PTHREAD 1
19057 _ACEOF
19060 else
19061 acx_pthread_ok=no
19064 ac_ext=c
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070 # set thread flags
19072 # Some platforms use these, so just defineed them. They can't hurt if they
19073 # are not supported.
19074 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19077 # At this point, we don't want to muck with the compiler name for threading.
19078 # Let's see who fails, perhaps AIX. 2004-04-23
19079 if test "$PTHREAD_CC" != "$CC"; then
19080 { { echo "$as_me:$LINENO: error:
19081 PostgreSQL does not support platforms that require a special compiler
19082 for thread safety." >&5
19083 echo "$as_me: error:
19084 PostgreSQL does not support platforms that require a special compiler
19085 for thread safety." >&2;}
19086 { (exit 1); exit 1; }; }
19089 if test "$THREAD_SUPPORT" = no; then
19090 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19091 This platform is known to not support thread-safe programs. For details,
19092 compile and run src/bin/pg_thread_test." >&5
19093 echo "$as_me: error: cannot enable threads on this platform
19094 This platform is known to not support thread-safe programs. For details,
19095 compile and run src/bin/pg_thread_test." >&2;}
19096 { (exit 1); exit 1; }; }
19099 # Check for *_r functions
19100 _CFLAGS="$CFLAGS"
19101 _LIBS="$LIBS"
19102 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19103 LIBS="$LIBS $PTHREAD_LIBS"
19105 if test "$PORTNAME" != "win32"; then
19106 if test "${ac_cv_header_pthread_h+set}" = set; then
19107 echo "$as_me:$LINENO: checking for pthread.h" >&5
19108 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
19109 if test "${ac_cv_header_pthread_h+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19113 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
19114 else
19115 # Is the header compilable?
19116 echo "$as_me:$LINENO: checking pthread.h usability" >&5
19117 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <pthread.h>
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest.$ac_objext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_header_compiler=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_header_compiler=no
19156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19158 echo "${ECHO_T}$ac_header_compiler" >&6
19160 # Is the header present?
19161 echo "$as_me:$LINENO: checking pthread.h presence" >&5
19162 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include <pthread.h>
19170 _ACEOF
19171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } >/dev/null; then
19179 if test -s conftest.err; then
19180 ac_cpp_err=$ac_c_preproc_warn_flag
19181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19182 else
19183 ac_cpp_err=
19185 else
19186 ac_cpp_err=yes
19188 if test -z "$ac_cpp_err"; then
19189 ac_header_preproc=yes
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_header_preproc=no
19196 rm -f conftest.err conftest.$ac_ext
19197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19198 echo "${ECHO_T}$ac_header_preproc" >&6
19200 # So? What about this header?
19201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19202 yes:no: )
19203 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19204 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19206 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19207 ac_header_preproc=yes
19209 no:yes:* )
19210 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19211 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19212 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19213 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19214 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19215 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19217 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19221 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19223 cat <<\_ASBOX
19224 ## ---------------------------------------- ##
19225 ## Report this to pgsql-bugs@postgresql.org ##
19226 ## ---------------------------------------- ##
19227 _ASBOX
19229 sed "s/^/$as_me: WARNING: /" >&2
19231 esac
19232 echo "$as_me:$LINENO: checking for pthread.h" >&5
19233 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
19234 if test "${ac_cv_header_pthread_h+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 ac_cv_header_pthread_h=$ac_header_preproc
19239 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19240 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
19243 if test $ac_cv_header_pthread_h = yes; then
19245 else
19246 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19247 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19248 { (exit 1); exit 1; }; }
19257 for ac_func in strerror_r getpwuid_r gethostbyname_r
19259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19260 echo "$as_me:$LINENO: checking for $ac_func" >&5
19261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19262 if eval "test \"\${$as_ac_var+set}\" = set"; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19273 #define $ac_func innocuous_$ac_func
19275 /* System header to define __stub macros and hopefully few prototypes,
19276 which can conflict with char $ac_func (); below.
19277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19278 <limits.h> exists even on freestanding compilers. */
19280 #ifdef __STDC__
19281 # include <limits.h>
19282 #else
19283 # include <assert.h>
19284 #endif
19286 #undef $ac_func
19288 /* Override any gcc2 internal prototype to avoid an error. */
19289 #ifdef __cplusplus
19290 extern "C"
19292 #endif
19293 /* We use char because int might match the return type of a gcc2
19294 builtin and then its argument prototype would still apply. */
19295 char $ac_func ();
19296 /* The GNU C library defines this for functions which it implements
19297 to always fail with ENOSYS. Some functions are actually named
19298 something starting with __ and the normal name is an alias. */
19299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19300 choke me
19301 #else
19302 char (*f) () = $ac_func;
19303 #endif
19304 #ifdef __cplusplus
19306 #endif
19309 main ()
19311 return f != $ac_func;
19313 return 0;
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318 (eval $ac_link) 2>conftest.er1
19319 ac_status=$?
19320 grep -v '^ *+' conftest.er1 >conftest.err
19321 rm -f conftest.er1
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 eval "$as_ac_var=yes"
19339 else
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 eval "$as_ac_var=no"
19345 rm -f conftest.err conftest.$ac_objext \
19346 conftest$ac_exeext conftest.$ac_ext
19348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19350 if test `eval echo '${'$as_ac_var'}'` = yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19353 _ACEOF
19356 done
19359 # Do test here with the proper thread flags
19360 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19361 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
19362 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 #include <sys/types.h>
19372 #include <pwd.h>
19374 main ()
19376 uid_t uid;
19377 struct passwd *space;
19378 char *buf;
19379 size_t bufsize;
19380 struct passwd **result;
19381 getpwuid_r(uid, space, buf, bufsize, result);
19383 return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19388 (eval $ac_compile) 2>conftest.er1
19389 ac_status=$?
19390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try='test -z "$ac_c_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest.$ac_objext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 pgac_func_getpwuid_r_5arg=yes
19409 else
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 pgac_func_getpwuid_r_5arg=no
19415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19418 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
19419 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19421 cat >>confdefs.h <<\_ACEOF
19422 #define GETPWUID_R_5ARG
19423 _ACEOF
19427 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19428 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
19429 if test "${pgac_func_strerror_r_int+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h. */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 #include <string.h>
19440 main ()
19442 #ifndef _AIX
19443 int strerror_r(int, char *, size_t);
19444 #else
19445 /* Older AIX has 'int' for the third argument so we don't test the args. */
19446 int strerror_r();
19447 #endif
19449 return 0;
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 pgac_func_strerror_r_int=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 pgac_func_strerror_r_int=no
19481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19484 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
19485 if test x"$pgac_func_strerror_r_int" = xyes ; then
19487 cat >>confdefs.h <<\_ACEOF
19488 #define STRERROR_R_INT
19489 _ACEOF
19494 CFLAGS="$_CFLAGS"
19495 LIBS="$_LIBS"
19497 else
19498 # do not use values from template file
19499 PTHREAD_CFLAGS=
19500 PTHREAD_LIBS=
19507 # We can test for libldap_r only after we know PTHREAD_LIBS
19508 if test "$with_ldap" = yes ; then
19509 _LIBS="$LIBS"
19510 if test "$PORTNAME" != "win32"; then
19512 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19513 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
19514 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517 ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any gcc2 internal prototype to avoid an error. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19532 char ldap_bind ();
19534 main ()
19536 ldap_bind ();
19538 return 0;
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_ldap_ldap_bind=yes
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_lib_ldap_ldap_bind=no
19570 rm -f conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19574 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19575 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
19576 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE_LIBLDAP 1
19579 _ACEOF
19581 LIBS="-lldap $LIBS"
19583 else
19584 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19585 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19586 { (exit 1); exit 1; }; }
19589 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19590 if test "$enable_thread_safety" = yes; then
19591 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19593 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19594 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
19595 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h. */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19607 /* Override any gcc2 internal prototype to avoid an error. */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 /* We use char because int might match the return type of a gcc2
19612 builtin and then its argument prototype would still apply. */
19613 char ldap_simple_bind ();
19615 main ()
19617 ldap_simple_bind ();
19619 return 0;
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624 (eval $ac_link) 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_lib_ldap_r_ldap_simple_bind=yes
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_cv_lib_ldap_r_ldap_simple_bind=no
19651 rm -f conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19655 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19656 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
19657 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_LIBLDAP_R 1
19660 _ACEOF
19662 LIBS="-lldap_r $LIBS"
19664 else
19665 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19666 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19667 { (exit 1); exit 1; }; }
19670 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19671 else
19672 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19674 else
19676 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19677 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
19678 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681 ac_check_lib_save_LIBS=$LIBS
19682 LIBS="-lwldap32 $LIBS"
19683 cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h. */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h. */
19690 /* Override any gcc2 internal prototype to avoid an error. */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19696 char ldap_bind ();
19698 main ()
19700 ldap_bind ();
19702 return 0;
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest$ac_exeext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_lib_wldap32_ldap_bind=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_lib_wldap32_ldap_bind=no
19734 rm -f conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19739 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
19740 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBWLDAP32 1
19743 _ACEOF
19745 LIBS="-lwldap32 $LIBS"
19747 else
19748 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19749 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19750 { (exit 1); exit 1; }; }
19753 LDAP_LIBS_FE="-lwldap32"
19754 LDAP_LIBS_BE="-lwldap32"
19756 LIBS="$_LIBS"
19762 # This test makes sure that run tests work at all. Sometimes a shared
19763 # library is found by the linker, but the runtime linker can't find it.
19764 # This check should come after all modifications of compiler or linker
19765 # variables, and before any other run tests.
19766 echo "$as_me:$LINENO: checking test program" >&5
19767 echo $ECHO_N "checking test program... $ECHO_C" >&6
19768 if test "$cross_compiling" = yes; then
19769 echo "$as_me:$LINENO: result: cross-compiling" >&5
19770 echo "${ECHO_T}cross-compiling" >&6
19771 else
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 int main() { return 0; }
19779 _ACEOF
19780 rm -f conftest$ac_exeext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19782 (eval $ac_link) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 echo "$as_me:$LINENO: result: ok" >&5
19792 echo "${ECHO_T}ok" >&6
19793 else
19794 echo "$as_me: program exited with status $ac_status" >&5
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ( exit $ac_status )
19799 echo "$as_me:$LINENO: result: failed" >&5
19800 echo "${ECHO_T}failed" >&6
19801 { { echo "$as_me:$LINENO: error:
19802 Could not execute a simple test program. This may be a problem
19803 related to locating shared libraries. Check the file 'config.log'
19804 for the exact reason." >&5
19805 echo "$as_me: error:
19806 Could not execute a simple test program. This may be a problem
19807 related to locating shared libraries. Check the file 'config.log'
19808 for the exact reason." >&2;}
19809 { (exit 1); exit 1; }; }
19811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19814 # --------------------
19815 # Run tests below here
19816 # --------------------
19818 # Force use of our snprintf if system's doesn't do arg control
19819 # See comment above at snprintf test for details.
19820 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19821 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19822 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
19823 if test "${pgac_cv_printf_arg_control+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19826 if test "$cross_compiling" = yes; then
19827 pgac_cv_printf_arg_control=cross
19828 else
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 #include <stdio.h>
19836 #include <string.h>
19838 int main()
19840 char buf[100];
19842 /* can it swap arguments? */
19843 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19844 if (strcmp(buf, "4 3") != 0)
19845 return 1;
19846 return 0;
19848 _ACEOF
19849 rm -f conftest$ac_exeext
19850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19851 (eval $ac_link) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 pgac_cv_printf_arg_control=yes
19861 else
19862 echo "$as_me: program exited with status $ac_status" >&5
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ( exit $ac_status )
19867 pgac_cv_printf_arg_control=no
19869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19873 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19874 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
19876 if test $pgac_cv_printf_arg_control != yes ; then
19877 pgac_need_repl_snprintf=yes
19883 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19884 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
19885 if test "${pgac_cv_type_long_int_64+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888 if test "$cross_compiling" = yes; then
19889 # If cross-compiling, check the size reported by the compiler and
19890 # trust that the arithmetic works.
19891 cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h. */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19899 main ()
19901 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19902 test_array [0] = 0
19905 return 0;
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 pgac_cv_type_long_int_64=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 pgac_cv_type_long_int_64=no
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 else
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 typedef long int ac_int64;
19948 * These are globals to discourage the compiler from folding all the
19949 * arithmetic tests down to compile-time constants.
19951 ac_int64 a = 20000001;
19952 ac_int64 b = 40000005;
19954 int does_int64_work()
19956 ac_int64 c,d;
19958 if (sizeof(ac_int64) != 8)
19959 return 0; /* definitely not the right size */
19961 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19962 c = a * b;
19963 d = (c + b) / b;
19964 if (d != a+1)
19965 return 0;
19966 return 1;
19968 main() {
19969 exit(! does_int64_work());
19971 _ACEOF
19972 rm -f conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974 (eval $ac_link) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 pgac_cv_type_long_int_64=yes
19984 else
19985 echo "$as_me: program exited with status $ac_status" >&5
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ( exit $ac_status )
19990 pgac_cv_type_long_int_64=no
19992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19995 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19996 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
19998 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
19999 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20001 cat >>confdefs.h <<\_ACEOF
20002 #define HAVE_LONG_INT_64
20003 _ACEOF
20008 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20009 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20010 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
20011 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 if test "$cross_compiling" = yes; then
20015 # If cross-compiling, check the size reported by the compiler and
20016 # trust that the arithmetic works.
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h. */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20025 main ()
20027 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20028 test_array [0] = 0
20031 return 0;
20033 _ACEOF
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 pgac_cv_type_long_long_int_64=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 pgac_cv_type_long_long_int_64=no
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064 else
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 typedef long long int ac_int64;
20074 * These are globals to discourage the compiler from folding all the
20075 * arithmetic tests down to compile-time constants.
20077 ac_int64 a = 20000001;
20078 ac_int64 b = 40000005;
20080 int does_int64_work()
20082 ac_int64 c,d;
20084 if (sizeof(ac_int64) != 8)
20085 return 0; /* definitely not the right size */
20087 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20088 c = a * b;
20089 d = (c + b) / b;
20090 if (d != a+1)
20091 return 0;
20092 return 1;
20094 main() {
20095 exit(! does_int64_work());
20097 _ACEOF
20098 rm -f conftest$ac_exeext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100 (eval $ac_link) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 pgac_cv_type_long_long_int_64=yes
20110 else
20111 echo "$as_me: program exited with status $ac_status" >&5
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ( exit $ac_status )
20116 pgac_cv_type_long_long_int_64=no
20118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20121 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20122 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
20124 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20125 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE_LONG_LONG_INT_64
20129 _ACEOF
20137 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20138 cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h. */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20145 #define INT64CONST(x) x##LL
20146 long long int foo = INT64CONST(0x1234567890123456);
20149 main ()
20153 return 0;
20155 _ACEOF
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 cat >>confdefs.h <<\_ACEOF
20180 #define HAVE_LL_CONSTANTS 1
20181 _ACEOF
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20192 # If we found "long int" is 64 bits, assume snprintf handles it. If
20193 # we found we need to use "long long int", better check. We cope with
20194 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20195 # work, fall back to our own snprintf emulation (which we know uses %lld).
20197 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20198 if test $pgac_need_repl_snprintf = no; then
20199 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20200 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
20201 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 for pgac_format in '%lld' '%qd' '%I64d'; do
20205 if test "$cross_compiling" = yes; then
20206 pgac_cv_snprintf_long_long_int_format=cross; break
20207 else
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <stdio.h>
20215 typedef long long int ac_int64;
20216 #define INT64_FORMAT "$pgac_format"
20218 ac_int64 a = 20000001;
20219 ac_int64 b = 40000005;
20221 int does_int64_snprintf_work()
20223 ac_int64 c;
20224 char buf[100];
20226 if (sizeof(ac_int64) != 8)
20227 return 0; /* doesn't look like the right size */
20229 c = a * b;
20230 snprintf(buf, 100, INT64_FORMAT, c);
20231 if (strcmp(buf, "800000140000005") != 0)
20232 return 0; /* either multiply or snprintf is busted */
20233 return 1;
20235 main() {
20236 exit(! does_int64_snprintf_work());
20238 _ACEOF
20239 rm -f conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241 (eval $ac_link) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20251 else
20252 echo "$as_me: program exited with status $ac_status" >&5
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20259 done
20262 LONG_LONG_INT_FORMAT=''
20264 case $pgac_cv_snprintf_long_long_int_format in
20265 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20266 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
20267 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20268 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
20269 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20270 *) echo "$as_me:$LINENO: result: none" >&5
20271 echo "${ECHO_T}none" >&6;;
20272 esac
20273 if test "$LONG_LONG_INT_FORMAT" = ""; then
20274 # Force usage of our own snprintf, since system snprintf is broken
20275 pgac_need_repl_snprintf=yes
20276 LONG_LONG_INT_FORMAT='%lld'
20278 else
20279 # Here if we previously decided we needed to use our own snprintf
20280 LONG_LONG_INT_FORMAT='%lld'
20282 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20283 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20284 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20285 else
20286 # Here if we are not using 'long long int' at all
20287 INT64_FORMAT='"%ld"'
20288 UINT64_FORMAT='"%lu"'
20292 cat >>confdefs.h <<_ACEOF
20293 #define INT64_FORMAT $INT64_FORMAT
20294 _ACEOF
20298 cat >>confdefs.h <<_ACEOF
20299 #define UINT64_FORMAT $UINT64_FORMAT
20300 _ACEOF
20303 # Now we have checked all the reasons to replace snprintf
20304 if test $pgac_need_repl_snprintf = yes; then
20306 cat >>confdefs.h <<\_ACEOF
20307 #define USE_REPL_SNPRINTF 1
20308 _ACEOF
20310 case $LIBOBJS in
20311 "snprintf.$ac_objext" | \
20312 *" snprintf.$ac_objext" | \
20313 "snprintf.$ac_objext "* | \
20314 *" snprintf.$ac_objext "* ) ;;
20315 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20316 esac
20320 # Need a #define for the size of Datum (unsigned long)
20321 echo "$as_me:$LINENO: checking for unsigned long" >&5
20322 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
20323 if test "${ac_cv_type_unsigned_long+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 $ac_includes_default
20334 main ()
20336 if ((unsigned long *) 0)
20337 return 0;
20338 if (sizeof (unsigned long))
20339 return 0;
20341 return 0;
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_c_werror_flag"
20354 || test ! -s conftest.err'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_type_unsigned_long=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_type_unsigned_long=no
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20376 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
20378 echo "$as_me:$LINENO: checking size of unsigned long" >&5
20379 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
20380 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383 if test "$ac_cv_type_unsigned_long" = yes; then
20384 # The cast to unsigned long works around a bug in the HP C Compiler
20385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20387 # This bug is HP SR number 8606223364.
20388 if test "$cross_compiling" = yes; then
20389 # Depending upon the size, compute the lo and hi bounds.
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20398 main ()
20400 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
20401 test_array [0] = 0
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_lo=0 ac_mid=0
20430 while :; do
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 $ac_includes_default
20439 main ()
20441 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20442 test_array [0] = 0
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450 (eval $ac_compile) 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
20457 { ac_try='test -z "$ac_c_werror_flag"
20458 || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_hi=$ac_mid; break
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_lo=`expr $ac_mid + 1`
20476 if test $ac_lo -le $ac_mid; then
20477 ac_lo= ac_hi=
20478 break
20480 ac_mid=`expr 2 '*' $ac_mid + 1`
20482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20483 done
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 $ac_includes_default
20496 main ()
20498 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
20499 test_array [0] = 0
20502 return 0;
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20507 (eval $ac_compile) 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } &&
20514 { ac_try='test -z "$ac_c_werror_flag"
20515 || test ! -s conftest.err'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; } &&
20521 { ac_try='test -s conftest.$ac_objext'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; }; then
20527 ac_hi=-1 ac_mid=-1
20528 while :; do
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h. */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535 $ac_includes_default
20537 main ()
20539 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
20540 test_array [0] = 0
20543 return 0;
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_lo=$ac_mid; break
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_hi=`expr '(' $ac_mid ')' - 1`
20574 if test $ac_mid -le $ac_hi; then
20575 ac_lo= ac_hi=
20576 break
20578 ac_mid=`expr 2 '*' $ac_mid`
20580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20581 done
20582 else
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 ac_lo= ac_hi=
20588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20591 # Binary search between lo and hi bounds.
20592 while test "x$ac_lo" != "x$ac_hi"; do
20593 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20594 cat >conftest.$ac_ext <<_ACEOF
20595 /* confdefs.h. */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h. */
20600 $ac_includes_default
20602 main ()
20604 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20605 test_array [0] = 0
20608 return 0;
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>conftest.er1
20614 ac_status=$?
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag"
20621 || test ! -s conftest.err'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_hi=$ac_mid
20634 else
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_lo=`expr '(' $ac_mid ')' + 1`
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 done
20642 case $ac_lo in
20643 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20644 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20645 See \`config.log' for more details." >&5
20646 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20647 See \`config.log' for more details." >&2;}
20648 { (exit 1); exit 1; }; } ;;
20649 esac
20650 else
20651 if test "$cross_compiling" = yes; then
20652 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20653 See \`config.log' for more details." >&5
20654 echo "$as_me: error: cannot run test program while cross compiling
20655 See \`config.log' for more details." >&2;}
20656 { (exit 1); exit 1; }; }
20657 else
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h. */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 long longval () { return (long) (sizeof (unsigned long)); }
20666 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20667 #include <stdio.h>
20668 #include <stdlib.h>
20670 main ()
20673 FILE *f = fopen ("conftest.val", "w");
20674 if (! f)
20675 exit (1);
20676 if (((long) (sizeof (unsigned long))) < 0)
20678 long i = longval ();
20679 if (i != ((long) (sizeof (unsigned long))))
20680 exit (1);
20681 fprintf (f, "%ld\n", i);
20683 else
20685 unsigned long i = ulongval ();
20686 if (i != ((long) (sizeof (unsigned long))))
20687 exit (1);
20688 fprintf (f, "%lu\n", i);
20690 exit (ferror (f) || fclose (f) != 0);
20693 return 0;
20695 _ACEOF
20696 rm -f conftest$ac_exeext
20697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20698 (eval $ac_link) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20708 else
20709 echo "$as_me: program exited with status $ac_status" >&5
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ( exit $ac_status )
20714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20715 See \`config.log' for more details." >&5
20716 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20717 See \`config.log' for more details." >&2;}
20718 { (exit 1); exit 1; }; }
20720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20723 rm -f conftest.val
20724 else
20725 ac_cv_sizeof_unsigned_long=0
20728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20729 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20730 cat >>confdefs.h <<_ACEOF
20731 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20732 _ACEOF
20736 # And one for the size of size_t (enables tweaks for > 32bit address space)
20737 echo "$as_me:$LINENO: checking for size_t" >&5
20738 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20739 if test "${ac_cv_type_size_t+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h. */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 $ac_includes_default
20750 main ()
20752 if ((size_t *) 0)
20753 return 0;
20754 if (sizeof (size_t))
20755 return 0;
20757 return 0;
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20762 (eval $ac_compile) 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_type_size_t=yes
20783 else
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 ac_cv_type_size_t=no
20789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20791 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20792 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20794 echo "$as_me:$LINENO: checking size of size_t" >&5
20795 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20796 if test "${ac_cv_sizeof_size_t+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799 if test "$ac_cv_type_size_t" = yes; then
20800 # The cast to unsigned long works around a bug in the HP C Compiler
20801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20803 # This bug is HP SR number 8606223364.
20804 if test "$cross_compiling" = yes; then
20805 # Depending upon the size, compute the lo and hi bounds.
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h. */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 $ac_includes_default
20814 main ()
20816 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20817 test_array [0] = 0
20820 return 0;
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825 (eval $ac_compile) 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try='test -s conftest.$ac_objext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 ac_lo=0 ac_mid=0
20846 while :; do
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h. */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20855 main ()
20857 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20858 test_array [0] = 0
20861 return 0;
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_c_werror_flag"
20874 || test ! -s conftest.err'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_hi=$ac_mid; break
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_lo=`expr $ac_mid + 1`
20892 if test $ac_lo -le $ac_mid; then
20893 ac_lo= ac_hi=
20894 break
20896 ac_mid=`expr 2 '*' $ac_mid + 1`
20898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20899 done
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h. */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20912 main ()
20914 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20915 test_array [0] = 0
20918 return 0;
20920 _ACEOF
20921 rm -f conftest.$ac_objext
20922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20923 (eval $ac_compile) 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag"
20931 || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_hi=-1 ac_mid=-1
20944 while :; do
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 $ac_includes_default
20953 main ()
20955 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20956 test_array [0] = 0
20959 return 0;
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_c_werror_flag"
20972 || test ! -s conftest.err'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_lo=$ac_mid; break
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_hi=`expr '(' $ac_mid ')' - 1`
20990 if test $ac_mid -le $ac_hi; then
20991 ac_lo= ac_hi=
20992 break
20994 ac_mid=`expr 2 '*' $ac_mid`
20996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20997 done
20998 else
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_lo= ac_hi=
21004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21007 # Binary search between lo and hi bounds.
21008 while test "x$ac_lo" != "x$ac_hi"; do
21009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h. */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 $ac_includes_default
21018 main ()
21020 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21021 test_array [0] = 0
21024 return 0;
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21029 (eval $ac_compile) 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
21036 { ac_try='test -z "$ac_c_werror_flag"
21037 || test ! -s conftest.err'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest.$ac_objext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 ac_hi=$ac_mid
21050 else
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 ac_lo=`expr '(' $ac_mid ')' + 1`
21056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21057 done
21058 case $ac_lo in
21059 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21061 See \`config.log' for more details." >&5
21062 echo "$as_me: error: cannot compute sizeof (size_t), 77
21063 See \`config.log' for more details." >&2;}
21064 { (exit 1); exit 1; }; } ;;
21065 esac
21066 else
21067 if test "$cross_compiling" = yes; then
21068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21069 See \`config.log' for more details." >&5
21070 echo "$as_me: error: cannot run test program while cross compiling
21071 See \`config.log' for more details." >&2;}
21072 { (exit 1); exit 1; }; }
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21081 long longval () { return (long) (sizeof (size_t)); }
21082 unsigned long ulongval () { return (long) (sizeof (size_t)); }
21083 #include <stdio.h>
21084 #include <stdlib.h>
21086 main ()
21089 FILE *f = fopen ("conftest.val", "w");
21090 if (! f)
21091 exit (1);
21092 if (((long) (sizeof (size_t))) < 0)
21094 long i = longval ();
21095 if (i != ((long) (sizeof (size_t))))
21096 exit (1);
21097 fprintf (f, "%ld\n", i);
21099 else
21101 unsigned long i = ulongval ();
21102 if (i != ((long) (sizeof (size_t))))
21103 exit (1);
21104 fprintf (f, "%lu\n", i);
21106 exit (ferror (f) || fclose (f) != 0);
21109 return 0;
21111 _ACEOF
21112 rm -f conftest$ac_exeext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21114 (eval $ac_link) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_sizeof_size_t=`cat conftest.val`
21124 else
21125 echo "$as_me: program exited with status $ac_status" >&5
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ( exit $ac_status )
21130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21131 See \`config.log' for more details." >&5
21132 echo "$as_me: error: cannot compute sizeof (size_t), 77
21133 See \`config.log' for more details." >&2;}
21134 { (exit 1); exit 1; }; }
21136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21139 rm -f conftest.val
21140 else
21141 ac_cv_sizeof_size_t=0
21144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21145 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
21146 cat >>confdefs.h <<_ACEOF
21147 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21148 _ACEOF
21152 # Determine memory alignment requirements for the basic C data types.
21154 echo "$as_me:$LINENO: checking for short" >&5
21155 echo $ECHO_N "checking for short... $ECHO_C" >&6
21156 if test "${ac_cv_type_short+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 $ac_includes_default
21167 main ()
21169 if ((short *) 0)
21170 return 0;
21171 if (sizeof (short))
21172 return 0;
21174 return 0;
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21179 (eval $ac_compile) 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_c_werror_flag"
21187 || test ! -s conftest.err'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest.$ac_objext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_type_short=yes
21200 else
21201 echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 ac_cv_type_short=no
21206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21209 echo "${ECHO_T}$ac_cv_type_short" >&6
21211 echo "$as_me:$LINENO: checking alignment of short" >&5
21212 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
21213 if test "${pgac_cv_alignof_short+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216 if test "$ac_cv_type_short" = yes; then
21217 if test "$cross_compiling" = yes; then
21218 # Depending upon the size, compute the lo and hi bounds.
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21226 struct { char filler; short field; } pgac_struct;
21228 main ()
21230 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21231 test_array [0] = 0
21234 return 0;
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239 (eval $ac_compile) 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -z "$ac_c_werror_flag"
21247 || test ! -s conftest.err'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest.$ac_objext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_lo=0 ac_mid=0
21260 while :; do
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h. */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21268 struct { char filler; short field; } pgac_struct;
21270 main ()
21272 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21273 test_array [0] = 0
21276 return 0;
21278 _ACEOF
21279 rm -f conftest.$ac_objext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281 (eval $ac_compile) 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -z "$ac_c_werror_flag"
21289 || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest.$ac_objext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_hi=$ac_mid; break
21302 else
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ac_lo=`expr $ac_mid + 1`
21307 if test $ac_lo -le $ac_mid; then
21308 ac_lo= ac_hi=
21309 break
21311 ac_mid=`expr 2 '*' $ac_mid + 1`
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21314 done
21315 else
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 $ac_includes_default
21326 struct { char filler; short field; } pgac_struct;
21328 main ()
21330 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21331 test_array [0] = 0
21334 return 0;
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21339 (eval $ac_compile) 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest.$ac_objext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_hi=-1 ac_mid=-1
21360 while :; do
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 $ac_includes_default
21368 struct { char filler; short field; } pgac_struct;
21370 main ()
21372 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21373 test_array [0] = 0
21376 return 0;
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21381 (eval $ac_compile) 2>conftest.er1
21382 ac_status=$?
21383 grep -v '^ *+' conftest.er1 >conftest.err
21384 rm -f conftest.er1
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_c_werror_flag"
21389 || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest.$ac_objext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21398 ac_status=$?
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ac_lo=$ac_mid; break
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_hi=`expr '(' $ac_mid ')' - 1`
21407 if test $ac_mid -le $ac_hi; then
21408 ac_lo= ac_hi=
21409 break
21411 ac_mid=`expr 2 '*' $ac_mid`
21413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21414 done
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_lo= ac_hi=
21421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21424 # Binary search between lo and hi bounds.
21425 while test "x$ac_lo" != "x$ac_hi"; do
21426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h. */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 struct { char filler; short field; } pgac_struct;
21436 main ()
21438 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21439 test_array [0] = 0
21442 return 0;
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21447 (eval $ac_compile) 2>conftest.er1
21448 ac_status=$?
21449 grep -v '^ *+' conftest.er1 >conftest.err
21450 rm -f conftest.er1
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
21454 { ac_try='test -z "$ac_c_werror_flag"
21455 || test ! -s conftest.err'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_hi=$ac_mid
21468 else
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 ac_lo=`expr '(' $ac_mid ')' + 1`
21474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21475 done
21476 case $ac_lo in
21477 ?*) pgac_cv_alignof_short=$ac_lo;;
21478 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
21479 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
21480 { (exit 1); exit 1; }; } ;;
21481 esac
21482 else
21483 if test "$cross_compiling" = yes; then
21484 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21485 See \`config.log' for more details." >&5
21486 echo "$as_me: error: cannot run test program while cross compiling
21487 See \`config.log' for more details." >&2;}
21488 { (exit 1); exit 1; }; }
21489 else
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 $ac_includes_default
21497 struct { char filler; short field; } pgac_struct;
21498 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21499 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21500 #include <stdio.h>
21501 #include <stdlib.h>
21503 main ()
21506 FILE *f = fopen ("conftest.val", "w");
21507 if (! f)
21508 exit (1);
21509 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21511 long i = longval ();
21512 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21513 exit (1);
21514 fprintf (f, "%ld\n", i);
21516 else
21518 unsigned long i = ulongval ();
21519 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21520 exit (1);
21521 fprintf (f, "%lu\n", i);
21523 exit (ferror (f) || fclose (f) != 0);
21526 return 0;
21528 _ACEOF
21529 rm -f conftest$ac_exeext
21530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21531 (eval $ac_link) 2>&5
21532 ac_status=$?
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 pgac_cv_alignof_short=`cat conftest.val`
21541 else
21542 echo "$as_me: program exited with status $ac_status" >&5
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ( exit $ac_status )
21547 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
21548 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
21549 { (exit 1); exit 1; }; }
21551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21554 rm -f conftest.val
21555 else
21556 pgac_cv_alignof_short=0
21559 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
21560 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
21561 cat >>confdefs.h <<_ACEOF
21562 #define ALIGNOF_SHORT $pgac_cv_alignof_short
21563 _ACEOF
21566 echo "$as_me:$LINENO: checking for int" >&5
21567 echo $ECHO_N "checking for int... $ECHO_C" >&6
21568 if test "${ac_cv_type_int+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&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 $ac_includes_default
21579 main ()
21581 if ((int *) 0)
21582 return 0;
21583 if (sizeof (int))
21584 return 0;
21586 return 0;
21588 _ACEOF
21589 rm -f conftest.$ac_objext
21590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21591 (eval $ac_compile) 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -z "$ac_c_werror_flag"
21599 || test ! -s conftest.err'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; } &&
21605 { ac_try='test -s conftest.$ac_objext'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 ac_cv_type_int=yes
21612 else
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_cv_type_int=no
21618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21621 echo "${ECHO_T}$ac_cv_type_int" >&6
21623 echo "$as_me:$LINENO: checking alignment of int" >&5
21624 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
21625 if test "${pgac_cv_alignof_int+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628 if test "$ac_cv_type_int" = yes; then
21629 if test "$cross_compiling" = yes; then
21630 # Depending upon the size, compute the lo and hi bounds.
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h. */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 $ac_includes_default
21638 struct { char filler; int field; } pgac_struct;
21640 main ()
21642 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21643 test_array [0] = 0
21646 return 0;
21648 _ACEOF
21649 rm -f conftest.$ac_objext
21650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21651 (eval $ac_compile) 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } &&
21658 { ac_try='test -z "$ac_c_werror_flag"
21659 || test ! -s conftest.err'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; } &&
21665 { ac_try='test -s conftest.$ac_objext'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }; then
21671 ac_lo=0 ac_mid=0
21672 while :; do
21673 cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h. */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 $ac_includes_default
21680 struct { char filler; int field; } pgac_struct;
21682 main ()
21684 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21685 test_array [0] = 0
21688 return 0;
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21693 (eval $ac_compile) 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } &&
21700 { ac_try='test -z "$ac_c_werror_flag"
21701 || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_hi=$ac_mid; break
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_lo=`expr $ac_mid + 1`
21719 if test $ac_lo -le $ac_mid; then
21720 ac_lo= ac_hi=
21721 break
21723 ac_mid=`expr 2 '*' $ac_mid + 1`
21725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 done
21727 else
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21738 struct { char filler; int field; } pgac_struct;
21740 main ()
21742 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21743 test_array [0] = 0
21746 return 0;
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_hi=-1 ac_mid=-1
21772 while :; do
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 $ac_includes_default
21780 struct { char filler; int field; } pgac_struct;
21782 main ()
21784 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21785 test_array [0] = 0
21788 return 0;
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793 (eval $ac_compile) 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest.$ac_objext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ac_lo=$ac_mid; break
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_hi=`expr '(' $ac_mid ')' - 1`
21819 if test $ac_mid -le $ac_hi; then
21820 ac_lo= ac_hi=
21821 break
21823 ac_mid=`expr 2 '*' $ac_mid`
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 done
21827 else
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_lo= ac_hi=
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21836 # Binary search between lo and hi bounds.
21837 while test "x$ac_lo" != "x$ac_hi"; do
21838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 struct { char filler; int field; } pgac_struct;
21848 main ()
21850 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21851 test_array [0] = 0
21854 return 0;
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859 (eval $ac_compile) 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
21866 { ac_try='test -z "$ac_c_werror_flag"
21867 || test ! -s conftest.err'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; } &&
21873 { ac_try='test -s conftest.$ac_objext'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }; then
21879 ac_hi=$ac_mid
21880 else
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_lo=`expr '(' $ac_mid ')' + 1`
21886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21887 done
21888 case $ac_lo in
21889 ?*) pgac_cv_alignof_int=$ac_lo;;
21890 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21891 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21892 { (exit 1); exit 1; }; } ;;
21893 esac
21894 else
21895 if test "$cross_compiling" = yes; then
21896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21897 See \`config.log' for more details." >&5
21898 echo "$as_me: error: cannot run test program while cross compiling
21899 See \`config.log' for more details." >&2;}
21900 { (exit 1); exit 1; }; }
21901 else
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h. */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 $ac_includes_default
21909 struct { char filler; int field; } pgac_struct;
21910 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21911 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21912 #include <stdio.h>
21913 #include <stdlib.h>
21915 main ()
21918 FILE *f = fopen ("conftest.val", "w");
21919 if (! f)
21920 exit (1);
21921 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21923 long i = longval ();
21924 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21925 exit (1);
21926 fprintf (f, "%ld\n", i);
21928 else
21930 unsigned long i = ulongval ();
21931 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21932 exit (1);
21933 fprintf (f, "%lu\n", i);
21935 exit (ferror (f) || fclose (f) != 0);
21938 return 0;
21940 _ACEOF
21941 rm -f conftest$ac_exeext
21942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 pgac_cv_alignof_int=`cat conftest.val`
21953 else
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ( exit $ac_status )
21959 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21960 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21961 { (exit 1); exit 1; }; }
21963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21966 rm -f conftest.val
21967 else
21968 pgac_cv_alignof_int=0
21971 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
21972 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
21973 cat >>confdefs.h <<_ACEOF
21974 #define ALIGNOF_INT $pgac_cv_alignof_int
21975 _ACEOF
21978 echo "$as_me:$LINENO: checking for long" >&5
21979 echo $ECHO_N "checking for long... $ECHO_C" >&6
21980 if test "${ac_cv_type_long+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h. */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 $ac_includes_default
21991 main ()
21993 if ((long *) 0)
21994 return 0;
21995 if (sizeof (long))
21996 return 0;
21998 return 0;
22000 _ACEOF
22001 rm -f conftest.$ac_objext
22002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22003 (eval $ac_compile) 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
22010 { ac_try='test -z "$ac_c_werror_flag"
22011 || test ! -s conftest.err'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest.$ac_objext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_type_long=yes
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_cv_type_long=no
22030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22032 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22033 echo "${ECHO_T}$ac_cv_type_long" >&6
22035 echo "$as_me:$LINENO: checking alignment of long" >&5
22036 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
22037 if test "${pgac_cv_alignof_long+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040 if test "$ac_cv_type_long" = yes; then
22041 if test "$cross_compiling" = yes; then
22042 # Depending upon the size, compute the lo and hi bounds.
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 $ac_includes_default
22050 struct { char filler; long field; } pgac_struct;
22052 main ()
22054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22055 test_array [0] = 0
22058 return 0;
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_lo=0 ac_mid=0
22084 while :; do
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h. */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 $ac_includes_default
22092 struct { char filler; long field; } pgac_struct;
22094 main ()
22096 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22097 test_array [0] = 0
22100 return 0;
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105 (eval $ac_compile) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag"
22113 || test ! -s conftest.err'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest.$ac_objext'
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; }; then
22125 ac_hi=$ac_mid; break
22126 else
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22130 ac_lo=`expr $ac_mid + 1`
22131 if test $ac_lo -le $ac_mid; then
22132 ac_lo= ac_hi=
22133 break
22135 ac_mid=`expr 2 '*' $ac_mid + 1`
22137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22138 done
22139 else
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h. */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 $ac_includes_default
22150 struct { char filler; long field; } pgac_struct;
22152 main ()
22154 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22155 test_array [0] = 0
22158 return 0;
22160 _ACEOF
22161 rm -f conftest.$ac_objext
22162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22163 (eval $ac_compile) 2>conftest.er1
22164 ac_status=$?
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } &&
22170 { ac_try='test -z "$ac_c_werror_flag"
22171 || test ! -s conftest.err'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; } &&
22177 { ac_try='test -s conftest.$ac_objext'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_hi=-1 ac_mid=-1
22184 while :; do
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 struct { char filler; long field; } pgac_struct;
22194 main ()
22196 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22197 test_array [0] = 0
22200 return 0;
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205 (eval $ac_compile) 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -z "$ac_c_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_lo=$ac_mid; break
22226 else
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_hi=`expr '(' $ac_mid ')' - 1`
22231 if test $ac_mid -le $ac_hi; then
22232 ac_lo= ac_hi=
22233 break
22235 ac_mid=`expr 2 '*' $ac_mid`
22237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22238 done
22239 else
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 ac_lo= ac_hi=
22245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22248 # Binary search between lo and hi bounds.
22249 while test "x$ac_lo" != "x$ac_hi"; do
22250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 struct { char filler; long field; } pgac_struct;
22260 main ()
22262 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22263 test_array [0] = 0
22266 return 0;
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22271 (eval $ac_compile) 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
22278 { ac_try='test -z "$ac_c_werror_flag"
22279 || test ! -s conftest.err'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest.$ac_objext'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_hi=$ac_mid
22292 else
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_lo=`expr '(' $ac_mid ')' + 1`
22298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22299 done
22300 case $ac_lo in
22301 ?*) pgac_cv_alignof_long=$ac_lo;;
22302 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
22303 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
22304 { (exit 1); exit 1; }; } ;;
22305 esac
22306 else
22307 if test "$cross_compiling" = yes; then
22308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22309 See \`config.log' for more details." >&5
22310 echo "$as_me: error: cannot run test program while cross compiling
22311 See \`config.log' for more details." >&2;}
22312 { (exit 1); exit 1; }; }
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22321 struct { char filler; long field; } pgac_struct;
22322 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22323 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22324 #include <stdio.h>
22325 #include <stdlib.h>
22327 main ()
22330 FILE *f = fopen ("conftest.val", "w");
22331 if (! f)
22332 exit (1);
22333 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22335 long i = longval ();
22336 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22337 exit (1);
22338 fprintf (f, "%ld\n", i);
22340 else
22342 unsigned long i = ulongval ();
22343 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22344 exit (1);
22345 fprintf (f, "%lu\n", i);
22347 exit (ferror (f) || fclose (f) != 0);
22350 return 0;
22352 _ACEOF
22353 rm -f conftest$ac_exeext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22355 (eval $ac_link) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; }; then
22364 pgac_cv_alignof_long=`cat conftest.val`
22365 else
22366 echo "$as_me: program exited with status $ac_status" >&5
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 ( exit $ac_status )
22371 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
22372 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
22373 { (exit 1); exit 1; }; }
22375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22378 rm -f conftest.val
22379 else
22380 pgac_cv_alignof_long=0
22383 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
22384 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
22385 cat >>confdefs.h <<_ACEOF
22386 #define ALIGNOF_LONG $pgac_cv_alignof_long
22387 _ACEOF
22390 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22391 echo "$as_me:$LINENO: checking for long long int" >&5
22392 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
22393 if test "${ac_cv_type_long_long_int+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396 cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h. */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22404 main ()
22406 if ((long long int *) 0)
22407 return 0;
22408 if (sizeof (long long int))
22409 return 0;
22411 return 0;
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416 (eval $ac_compile) 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try='test -z "$ac_c_werror_flag"
22424 || test ! -s conftest.err'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; } &&
22430 { ac_try='test -s conftest.$ac_objext'
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; }; then
22436 ac_cv_type_long_long_int=yes
22437 else
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ac_cv_type_long_long_int=no
22443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22445 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22446 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
22448 echo "$as_me:$LINENO: checking alignment of long long int" >&5
22449 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
22450 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453 if test "$ac_cv_type_long_long_int" = yes; then
22454 if test "$cross_compiling" = yes; then
22455 # Depending upon the size, compute the lo and hi bounds.
22456 cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h. */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22462 $ac_includes_default
22463 struct { char filler; long long int field; } pgac_struct;
22465 main ()
22467 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22468 test_array [0] = 0
22471 return 0;
22473 _ACEOF
22474 rm -f conftest.$ac_objext
22475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22476 (eval $ac_compile) 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } &&
22483 { ac_try='test -z "$ac_c_werror_flag"
22484 || test ! -s conftest.err'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; } &&
22490 { ac_try='test -s conftest.$ac_objext'
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; }; then
22496 ac_lo=0 ac_mid=0
22497 while :; do
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h. */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22505 struct { char filler; long long int field; } pgac_struct;
22507 main ()
22509 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22510 test_array [0] = 0
22513 return 0;
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518 (eval $ac_compile) 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_hi=$ac_mid; break
22539 else
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_lo=`expr $ac_mid + 1`
22544 if test $ac_lo -le $ac_mid; then
22545 ac_lo= ac_hi=
22546 break
22548 ac_mid=`expr 2 '*' $ac_mid + 1`
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 done
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h. */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22562 $ac_includes_default
22563 struct { char filler; long long int field; } pgac_struct;
22565 main ()
22567 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22568 test_array [0] = 0
22571 return 0;
22573 _ACEOF
22574 rm -f conftest.$ac_objext
22575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22576 (eval $ac_compile) 2>conftest.er1
22577 ac_status=$?
22578 grep -v '^ *+' conftest.er1 >conftest.err
22579 rm -f conftest.er1
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } &&
22583 { ac_try='test -z "$ac_c_werror_flag"
22584 || test ! -s conftest.err'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; } &&
22590 { ac_try='test -s conftest.$ac_objext'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; }; then
22596 ac_hi=-1 ac_mid=-1
22597 while :; do
22598 cat >conftest.$ac_ext <<_ACEOF
22599 /* confdefs.h. */
22600 _ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 $ac_includes_default
22605 struct { char filler; long long int field; } pgac_struct;
22607 main ()
22609 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22610 test_array [0] = 0
22613 return 0;
22615 _ACEOF
22616 rm -f conftest.$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618 (eval $ac_compile) 2>conftest.er1
22619 ac_status=$?
22620 grep -v '^ *+' conftest.er1 >conftest.err
22621 rm -f conftest.er1
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -z "$ac_c_werror_flag"
22626 || test ! -s conftest.err'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; } &&
22632 { ac_try='test -s conftest.$ac_objext'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }; then
22638 ac_lo=$ac_mid; break
22639 else
22640 echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_hi=`expr '(' $ac_mid ')' - 1`
22644 if test $ac_mid -le $ac_hi; then
22645 ac_lo= ac_hi=
22646 break
22648 ac_mid=`expr 2 '*' $ac_mid`
22650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22651 done
22652 else
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ac_lo= ac_hi=
22658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22661 # Binary search between lo and hi bounds.
22662 while test "x$ac_lo" != "x$ac_hi"; do
22663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 $ac_includes_default
22671 struct { char filler; long long int field; } pgac_struct;
22673 main ()
22675 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22676 test_array [0] = 0
22679 return 0;
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22684 (eval $ac_compile) 2>conftest.er1
22685 ac_status=$?
22686 grep -v '^ *+' conftest.er1 >conftest.err
22687 rm -f conftest.er1
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } &&
22691 { ac_try='test -z "$ac_c_werror_flag"
22692 || test ! -s conftest.err'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; } &&
22698 { ac_try='test -s conftest.$ac_objext'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; }; then
22704 ac_hi=$ac_mid
22705 else
22706 echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22709 ac_lo=`expr '(' $ac_mid ')' + 1`
22711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22712 done
22713 case $ac_lo in
22714 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
22715 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22716 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22717 { (exit 1); exit 1; }; } ;;
22718 esac
22719 else
22720 if test "$cross_compiling" = yes; then
22721 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22722 See \`config.log' for more details." >&5
22723 echo "$as_me: error: cannot run test program while cross compiling
22724 See \`config.log' for more details." >&2;}
22725 { (exit 1); exit 1; }; }
22726 else
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h. */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22734 struct { char filler; long long int field; } pgac_struct;
22735 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22736 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22737 #include <stdio.h>
22738 #include <stdlib.h>
22740 main ()
22743 FILE *f = fopen ("conftest.val", "w");
22744 if (! f)
22745 exit (1);
22746 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22748 long i = longval ();
22749 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22750 exit (1);
22751 fprintf (f, "%ld\n", i);
22753 else
22755 unsigned long i = ulongval ();
22756 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22757 exit (1);
22758 fprintf (f, "%lu\n", i);
22760 exit (ferror (f) || fclose (f) != 0);
22763 return 0;
22765 _ACEOF
22766 rm -f conftest$ac_exeext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22768 (eval $ac_link) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 pgac_cv_alignof_long_long_int=`cat conftest.val`
22778 else
22779 echo "$as_me: program exited with status $ac_status" >&5
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ( exit $ac_status )
22784 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22785 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22786 { (exit 1); exit 1; }; }
22788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22791 rm -f conftest.val
22792 else
22793 pgac_cv_alignof_long_long_int=0
22796 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
22797 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
22798 cat >>confdefs.h <<_ACEOF
22799 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
22800 _ACEOF
22804 echo "$as_me:$LINENO: checking for double" >&5
22805 echo $ECHO_N "checking for double... $ECHO_C" >&6
22806 if test "${ac_cv_type_double+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 $ac_includes_default
22817 main ()
22819 if ((double *) 0)
22820 return 0;
22821 if (sizeof (double))
22822 return 0;
22824 return 0;
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22829 (eval $ac_compile) 2>conftest.er1
22830 ac_status=$?
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } &&
22836 { ac_try='test -z "$ac_c_werror_flag"
22837 || test ! -s conftest.err'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; } &&
22843 { ac_try='test -s conftest.$ac_objext'
22844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845 (eval $ac_try) 2>&5
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 ac_cv_type_double=yes
22850 else
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ac_cv_type_double=no
22856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22858 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22859 echo "${ECHO_T}$ac_cv_type_double" >&6
22861 echo "$as_me:$LINENO: checking alignment of double" >&5
22862 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
22863 if test "${pgac_cv_alignof_double+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866 if test "$ac_cv_type_double" = yes; then
22867 if test "$cross_compiling" = yes; then
22868 # Depending upon the size, compute the lo and hi bounds.
22869 cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h. */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 struct { char filler; double field; } pgac_struct;
22878 main ()
22880 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22881 test_array [0] = 0
22884 return 0;
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889 (eval $ac_compile) 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag"
22897 || test ! -s conftest.err'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest.$ac_objext'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 ac_lo=0 ac_mid=0
22910 while :; do
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 $ac_includes_default
22918 struct { char filler; double field; } pgac_struct;
22920 main ()
22922 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22923 test_array [0] = 0
22926 return 0;
22928 _ACEOF
22929 rm -f conftest.$ac_objext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22931 (eval $ac_compile) 2>conftest.er1
22932 ac_status=$?
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
22938 { ac_try='test -z "$ac_c_werror_flag"
22939 || test ! -s conftest.err'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; } &&
22945 { ac_try='test -s conftest.$ac_objext'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 ac_hi=$ac_mid; break
22952 else
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ac_lo=`expr $ac_mid + 1`
22957 if test $ac_lo -le $ac_mid; then
22958 ac_lo= ac_hi=
22959 break
22961 ac_mid=`expr 2 '*' $ac_mid + 1`
22963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964 done
22965 else
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h. */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 $ac_includes_default
22976 struct { char filler; double field; } pgac_struct;
22978 main ()
22980 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22981 test_array [0] = 0
22984 return 0;
22986 _ACEOF
22987 rm -f conftest.$ac_objext
22988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22989 (eval $ac_compile) 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } &&
22996 { ac_try='test -z "$ac_c_werror_flag"
22997 || test ! -s conftest.err'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; } &&
23003 { ac_try='test -s conftest.$ac_objext'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23009 ac_hi=-1 ac_mid=-1
23010 while :; do
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h. */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23017 $ac_includes_default
23018 struct { char filler; double field; } pgac_struct;
23020 main ()
23022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
23023 test_array [0] = 0
23026 return 0;
23028 _ACEOF
23029 rm -f conftest.$ac_objext
23030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23031 (eval $ac_compile) 2>conftest.er1
23032 ac_status=$?
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -z "$ac_c_werror_flag"
23039 || test ! -s conftest.err'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; } &&
23045 { ac_try='test -s conftest.$ac_objext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ac_lo=$ac_mid; break
23052 else
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056 ac_hi=`expr '(' $ac_mid ')' - 1`
23057 if test $ac_mid -le $ac_hi; then
23058 ac_lo= ac_hi=
23059 break
23061 ac_mid=`expr 2 '*' $ac_mid`
23063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23064 done
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_lo= ac_hi=
23071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23074 # Binary search between lo and hi bounds.
23075 while test "x$ac_lo" != "x$ac_hi"; do
23076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h. */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 $ac_includes_default
23084 struct { char filler; double field; } pgac_struct;
23086 main ()
23088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
23089 test_array [0] = 0
23092 return 0;
23094 _ACEOF
23095 rm -f conftest.$ac_objext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23097 (eval $ac_compile) 2>conftest.er1
23098 ac_status=$?
23099 grep -v '^ *+' conftest.er1 >conftest.err
23100 rm -f conftest.er1
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
23104 { ac_try='test -z "$ac_c_werror_flag"
23105 || test ! -s conftest.err'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest.$ac_objext'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_hi=$ac_mid
23118 else
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_lo=`expr '(' $ac_mid ')' + 1`
23124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23125 done
23126 case $ac_lo in
23127 ?*) pgac_cv_alignof_double=$ac_lo;;
23128 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
23129 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
23130 { (exit 1); exit 1; }; } ;;
23131 esac
23132 else
23133 if test "$cross_compiling" = yes; then
23134 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23135 See \`config.log' for more details." >&5
23136 echo "$as_me: error: cannot run test program while cross compiling
23137 See \`config.log' for more details." >&2;}
23138 { (exit 1); exit 1; }; }
23139 else
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 $ac_includes_default
23147 struct { char filler; double field; } pgac_struct;
23148 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
23149 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
23150 #include <stdio.h>
23151 #include <stdlib.h>
23153 main ()
23156 FILE *f = fopen ("conftest.val", "w");
23157 if (! f)
23158 exit (1);
23159 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
23161 long i = longval ();
23162 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
23163 exit (1);
23164 fprintf (f, "%ld\n", i);
23166 else
23168 unsigned long i = ulongval ();
23169 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
23170 exit (1);
23171 fprintf (f, "%lu\n", i);
23173 exit (ferror (f) || fclose (f) != 0);
23176 return 0;
23178 _ACEOF
23179 rm -f conftest$ac_exeext
23180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181 (eval $ac_link) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 pgac_cv_alignof_double=`cat conftest.val`
23191 else
23192 echo "$as_me: program exited with status $ac_status" >&5
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ( exit $ac_status )
23197 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
23198 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
23199 { (exit 1); exit 1; }; }
23201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23204 rm -f conftest.val
23205 else
23206 pgac_cv_alignof_double=0
23209 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
23210 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
23211 cat >>confdefs.h <<_ACEOF
23212 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
23213 _ACEOF
23217 # Compute maximum alignment of any basic type.
23218 # We assume long's alignment is at least as strong as char, short, or int;
23219 # but we must check long long (if it exists) and double.
23221 MAX_ALIGNOF=$pgac_cv_alignof_long
23222 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
23223 MAX_ALIGNOF=$pgac_cv_alignof_double
23225 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
23226 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
23229 cat >>confdefs.h <<_ACEOF
23230 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23231 _ACEOF
23235 # Some platforms predefine the types int8, int16, etc. Only check
23236 # a (hopefully) representative subset.
23237 echo "$as_me:$LINENO: checking for int8" >&5
23238 echo $ECHO_N "checking for int8... $ECHO_C" >&6
23239 if test "${ac_cv_type_int8+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <stdio.h>
23249 #ifdef HAVE_SUPPORTDEFS_H
23250 #include <SupportDefs.h>
23251 #endif
23254 main ()
23256 if ((int8 *) 0)
23257 return 0;
23258 if (sizeof (int8))
23259 return 0;
23261 return 0;
23263 _ACEOF
23264 rm -f conftest.$ac_objext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23266 (eval $ac_compile) 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest.$ac_objext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_type_int8=yes
23287 else
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_type_int8=no
23293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23296 echo "${ECHO_T}$ac_cv_type_int8" >&6
23297 if test $ac_cv_type_int8 = yes; then
23299 cat >>confdefs.h <<_ACEOF
23300 #define HAVE_INT8 1
23301 _ACEOF
23305 echo "$as_me:$LINENO: checking for uint8" >&5
23306 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
23307 if test "${ac_cv_type_uint8+set}" = set; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23309 else
23310 cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h. */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <stdio.h>
23317 #ifdef HAVE_SUPPORTDEFS_H
23318 #include <SupportDefs.h>
23319 #endif
23322 main ()
23324 if ((uint8 *) 0)
23325 return 0;
23326 if (sizeof (uint8))
23327 return 0;
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23334 (eval $ac_compile) 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } &&
23341 { ac_try='test -z "$ac_c_werror_flag"
23342 || test ! -s conftest.err'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest.$ac_objext'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 ac_cv_type_uint8=yes
23355 else
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_type_uint8=no
23361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23363 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23364 echo "${ECHO_T}$ac_cv_type_uint8" >&6
23365 if test $ac_cv_type_uint8 = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_UINT8 1
23369 _ACEOF
23373 echo "$as_me:$LINENO: checking for int64" >&5
23374 echo $ECHO_N "checking for int64... $ECHO_C" >&6
23375 if test "${ac_cv_type_int64+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h. */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include <stdio.h>
23385 #ifdef HAVE_SUPPORTDEFS_H
23386 #include <SupportDefs.h>
23387 #endif
23390 main ()
23392 if ((int64 *) 0)
23393 return 0;
23394 if (sizeof (int64))
23395 return 0;
23397 return 0;
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23402 (eval $ac_compile) 2>conftest.er1
23403 ac_status=$?
23404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
23409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest.$ac_objext'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_type_int64=yes
23423 else
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_cv_type_int64=no
23429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23431 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23432 echo "${ECHO_T}$ac_cv_type_int64" >&6
23433 if test $ac_cv_type_int64 = yes; then
23435 cat >>confdefs.h <<_ACEOF
23436 #define HAVE_INT64 1
23437 _ACEOF
23441 echo "$as_me:$LINENO: checking for uint64" >&5
23442 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
23443 if test "${ac_cv_type_uint64+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446 cat >conftest.$ac_ext <<_ACEOF
23447 /* confdefs.h. */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 #include <stdio.h>
23453 #ifdef HAVE_SUPPORTDEFS_H
23454 #include <SupportDefs.h>
23455 #endif
23458 main ()
23460 if ((uint64 *) 0)
23461 return 0;
23462 if (sizeof (uint64))
23463 return 0;
23465 return 0;
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23470 (eval $ac_compile) 2>conftest.er1
23471 ac_status=$?
23472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } &&
23477 { ac_try='test -z "$ac_c_werror_flag"
23478 || test ! -s conftest.err'
23479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; } &&
23484 { ac_try='test -s conftest.$ac_objext'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 ac_cv_type_uint64=yes
23491 else
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 ac_cv_type_uint64=no
23497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23499 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23500 echo "${ECHO_T}$ac_cv_type_uint64" >&6
23501 if test $ac_cv_type_uint64 = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define HAVE_UINT64 1
23505 _ACEOF
23511 # We also check for sig_atomic_t, which *should* be defined per ANSI
23512 # C, but is missing on some old platforms.
23513 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23514 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
23515 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 #include <signal.h>
23527 main ()
23529 if ((sig_atomic_t *) 0)
23530 return 0;
23531 if (sizeof (sig_atomic_t))
23532 return 0;
23534 return 0;
23536 _ACEOF
23537 rm -f conftest.$ac_objext
23538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23539 (eval $ac_compile) 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } &&
23546 { ac_try='test -z "$ac_c_werror_flag"
23547 || test ! -s conftest.err'
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; } &&
23553 { ac_try='test -s conftest.$ac_objext'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; }; then
23559 ac_cv_type_sig_atomic_t=yes
23560 else
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_cv_type_sig_atomic_t=no
23566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23568 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23569 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
23570 if test $ac_cv_type_sig_atomic_t = yes; then
23572 cat >>confdefs.h <<_ACEOF
23573 #define HAVE_SIG_ATOMIC_T 1
23574 _ACEOF
23581 if test "$PORTNAME" != "win32"
23582 then
23583 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23584 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
23585 if test "${pgac_cv_func_posix_signals+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588 cat >conftest.$ac_ext <<_ACEOF
23589 /* confdefs.h. */
23590 _ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23594 #include <signal.h>
23597 main ()
23599 struct sigaction act, oact;
23600 sigemptyset(&act.sa_mask);
23601 act.sa_flags = SA_RESTART;
23602 sigaction(0, &act, &oact);
23604 return 0;
23606 _ACEOF
23607 rm -f conftest.$ac_objext conftest$ac_exeext
23608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23609 (eval $ac_link) 2>conftest.er1
23610 ac_status=$?
23611 grep -v '^ *+' conftest.er1 >conftest.err
23612 rm -f conftest.er1
23613 cat conftest.err >&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } &&
23616 { ac_try='test -z "$ac_c_werror_flag"
23617 || test ! -s conftest.err'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; } &&
23623 { ac_try='test -s conftest$ac_exeext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 pgac_cv_func_posix_signals=yes
23630 else
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 pgac_cv_func_posix_signals=no
23636 rm -f conftest.err conftest.$ac_objext \
23637 conftest$ac_exeext conftest.$ac_ext
23639 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23640 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
23641 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23643 cat >>confdefs.h <<\_ACEOF
23644 #define HAVE_POSIX_SIGNALS
23645 _ACEOF
23648 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23650 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23651 { { echo "$as_me:$LINENO: error:
23652 Thread-safety requires POSIX signals, which are not supported by this
23653 operating system." >&5
23654 echo "$as_me: error:
23655 Thread-safety requires POSIX signals, which are not supported by this
23656 operating system." >&2;}
23657 { (exit 1); exit 1; }; }
23661 if test $ac_cv_func_fseeko = yes; then
23662 # Check whether --enable-largefile or --disable-largefile was given.
23663 if test "${enable_largefile+set}" = set; then
23664 enableval="$enable_largefile"
23667 if test "$enable_largefile" != no; then
23669 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23670 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
23671 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674 ac_cv_sys_largefile_CC=no
23675 if test "$GCC" != yes; then
23676 ac_save_CC=$CC
23677 while :; do
23678 # IRIX 6.2 and later do not support large files by default,
23679 # so use the C compiler's -n32 option if that helps.
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h. */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #include <sys/types.h>
23687 /* Check that off_t can represent 2**63 - 1 correctly.
23688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23689 since some C++ compilers masquerading as C compilers
23690 incorrectly reject 9223372036854775807. */
23691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23693 && LARGE_OFF_T % 2147483647 == 1)
23694 ? 1 : -1];
23696 main ()
23700 return 0;
23702 _ACEOF
23703 rm -f conftest.$ac_objext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23705 (eval $ac_compile) 2>conftest.er1
23706 ac_status=$?
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
23712 { ac_try='test -z "$ac_c_werror_flag"
23713 || test ! -s conftest.err'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest.$ac_objext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 break
23726 else
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f conftest.err conftest.$ac_objext
23732 CC="$CC -n32"
23733 rm -f conftest.$ac_objext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23735 (eval $ac_compile) 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
23742 { ac_try='test -z "$ac_c_werror_flag"
23743 || test ! -s conftest.err'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest.$ac_objext'
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_sys_largefile_CC=' -n32'; break
23756 else
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23761 rm -f conftest.err conftest.$ac_objext
23762 break
23763 done
23764 CC=$ac_save_CC
23765 rm -f conftest.$ac_ext
23768 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23769 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
23770 if test "$ac_cv_sys_largefile_CC" != no; then
23771 CC=$CC$ac_cv_sys_largefile_CC
23774 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23775 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
23776 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23777 echo $ECHO_N "(cached) $ECHO_C" >&6
23778 else
23779 while :; do
23780 ac_cv_sys_file_offset_bits=no
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h. */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23787 #include <sys/types.h>
23788 /* Check that off_t can represent 2**63 - 1 correctly.
23789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23790 since some C++ compilers masquerading as C compilers
23791 incorrectly reject 9223372036854775807. */
23792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23794 && LARGE_OFF_T % 2147483647 == 1)
23795 ? 1 : -1];
23797 main ()
23801 return 0;
23803 _ACEOF
23804 rm -f conftest.$ac_objext
23805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23806 (eval $ac_compile) 2>conftest.er1
23807 ac_status=$?
23808 grep -v '^ *+' conftest.er1 >conftest.err
23809 rm -f conftest.er1
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } &&
23813 { ac_try='test -z "$ac_c_werror_flag"
23814 || test ! -s conftest.err'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; } &&
23820 { ac_try='test -s conftest.$ac_objext'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; }; then
23826 break
23827 else
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h. */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 #define _FILE_OFFSET_BITS 64
23840 #include <sys/types.h>
23841 /* Check that off_t can represent 2**63 - 1 correctly.
23842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23843 since some C++ compilers masquerading as C compilers
23844 incorrectly reject 9223372036854775807. */
23845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23847 && LARGE_OFF_T % 2147483647 == 1)
23848 ? 1 : -1];
23850 main ()
23854 return 0;
23856 _ACEOF
23857 rm -f conftest.$ac_objext
23858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23859 (eval $ac_compile) 2>conftest.er1
23860 ac_status=$?
23861 grep -v '^ *+' conftest.er1 >conftest.err
23862 rm -f conftest.er1
23863 cat conftest.err >&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); } &&
23866 { ac_try='test -z "$ac_c_werror_flag"
23867 || test ! -s conftest.err'
23868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869 (eval $ac_try) 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; } &&
23873 { ac_try='test -s conftest.$ac_objext'
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 ac_cv_sys_file_offset_bits=64; break
23880 else
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23886 break
23887 done
23889 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23890 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
23891 if test "$ac_cv_sys_file_offset_bits" != no; then
23893 cat >>confdefs.h <<_ACEOF
23894 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23895 _ACEOF
23898 rm -f conftest*
23899 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23900 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
23901 if test "${ac_cv_sys_large_files+set}" = set; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 else
23904 while :; do
23905 ac_cv_sys_large_files=no
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 #include <sys/types.h>
23913 /* Check that off_t can represent 2**63 - 1 correctly.
23914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23915 since some C++ compilers masquerading as C compilers
23916 incorrectly reject 9223372036854775807. */
23917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23919 && LARGE_OFF_T % 2147483647 == 1)
23920 ? 1 : -1];
23922 main ()
23926 return 0;
23928 _ACEOF
23929 rm -f conftest.$ac_objext
23930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23931 (eval $ac_compile) 2>conftest.er1
23932 ac_status=$?
23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } &&
23938 { ac_try='test -z "$ac_c_werror_flag"
23939 || test ! -s conftest.err'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; } &&
23945 { ac_try='test -s conftest.$ac_objext'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 break
23952 else
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23958 cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h. */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 #define _LARGE_FILES 1
23965 #include <sys/types.h>
23966 /* Check that off_t can represent 2**63 - 1 correctly.
23967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23968 since some C++ compilers masquerading as C compilers
23969 incorrectly reject 9223372036854775807. */
23970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23972 && LARGE_OFF_T % 2147483647 == 1)
23973 ? 1 : -1];
23975 main ()
23979 return 0;
23981 _ACEOF
23982 rm -f conftest.$ac_objext
23983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23984 (eval $ac_compile) 2>conftest.er1
23985 ac_status=$?
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } &&
23991 { ac_try='test -z "$ac_c_werror_flag"
23992 || test ! -s conftest.err'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; } &&
23998 { ac_try='test -s conftest.$ac_objext'
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; }; then
24004 ac_cv_sys_large_files=1; break
24005 else
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24011 break
24012 done
24014 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24015 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
24016 if test "$ac_cv_sys_large_files" != no; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define _LARGE_FILES $ac_cv_sys_large_files
24020 _ACEOF
24023 rm -f conftest*
24028 # SunOS doesn't handle negative byte comparisons properly with +/- return
24029 echo "$as_me:$LINENO: checking for working memcmp" >&5
24030 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
24031 if test "${ac_cv_func_memcmp_working+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034 if test "$cross_compiling" = yes; then
24035 ac_cv_func_memcmp_working=no
24036 else
24037 cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h. */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 $ac_includes_default
24045 main ()
24048 /* Some versions of memcmp are not 8-bit clean. */
24049 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
24050 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24051 exit (1);
24053 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24054 or more and with at least one buffer not starting on a 4-byte boundary.
24055 William Lewis provided this test program. */
24057 char foo[21];
24058 char bar[21];
24059 int i;
24060 for (i = 0; i < 4; i++)
24062 char *a = foo + i;
24063 char *b = bar + i;
24064 strcpy (a, "--------01111111");
24065 strcpy (b, "--------10000000");
24066 if (memcmp (a, b, 16) >= 0)
24067 exit (1);
24069 exit (0);
24073 return 0;
24075 _ACEOF
24076 rm -f conftest$ac_exeext
24077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24078 (eval $ac_link) 2>&5
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087 ac_cv_func_memcmp_working=yes
24088 else
24089 echo "$as_me: program exited with status $ac_status" >&5
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24093 ( exit $ac_status )
24094 ac_cv_func_memcmp_working=no
24096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24099 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24100 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
24101 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
24102 "memcmp.$ac_objext" | \
24103 *" memcmp.$ac_objext" | \
24104 "memcmp.$ac_objext "* | \
24105 *" memcmp.$ac_objext "* ) ;;
24106 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
24107 esac
24112 # Select semaphore implementation type.
24113 if test "$PORTNAME" != "win32"; then
24114 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24116 cat >>confdefs.h <<\_ACEOF
24117 #define USE_NAMED_POSIX_SEMAPHORES 1
24118 _ACEOF
24120 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24121 else
24122 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24126 _ACEOF
24128 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24129 else
24131 cat >>confdefs.h <<\_ACEOF
24132 #define USE_SYSV_SEMAPHORES 1
24133 _ACEOF
24135 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24138 else
24140 cat >>confdefs.h <<\_ACEOF
24141 #define USE_WIN32_SEMAPHORES 1
24142 _ACEOF
24144 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24148 # Select shared-memory implementation type.
24149 if test "$PORTNAME" != "win32"; then
24151 cat >>confdefs.h <<\_ACEOF
24152 #define USE_SYSV_SHARED_MEMORY 1
24153 _ACEOF
24155 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24156 else
24158 cat >>confdefs.h <<\_ACEOF
24159 #define USE_WIN32_SHARED_MEMORY 1
24160 _ACEOF
24162 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24165 # If not set in template file, set bytes to use libc memset()
24166 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24167 MEMSET_LOOP_LIMIT=1024
24170 cat >>confdefs.h <<_ACEOF
24171 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24172 _ACEOF
24176 if test "$enable_nls" = yes ; then
24178 echo "$as_me:$LINENO: checking for library containing gettext" >&5
24179 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
24180 if test "${ac_cv_search_gettext+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183 ac_func_search_save_LIBS=$LIBS
24184 ac_cv_search_gettext=no
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h. */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 /* Override any gcc2 internal prototype to avoid an error. */
24193 #ifdef __cplusplus
24194 extern "C"
24195 #endif
24196 /* We use char because int might match the return type of a gcc2
24197 builtin and then its argument prototype would still apply. */
24198 char gettext ();
24200 main ()
24202 gettext ();
24204 return 0;
24206 _ACEOF
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24210 ac_status=$?
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest$ac_exeext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 ac_cv_search_gettext="none required"
24230 else
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24235 rm -f conftest.err conftest.$ac_objext \
24236 conftest$ac_exeext conftest.$ac_ext
24237 if test "$ac_cv_search_gettext" = no; then
24238 for ac_lib in intl; do
24239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24240 cat >conftest.$ac_ext <<_ACEOF
24241 /* confdefs.h. */
24242 _ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h. */
24247 /* Override any gcc2 internal prototype to avoid an error. */
24248 #ifdef __cplusplus
24249 extern "C"
24250 #endif
24251 /* We use char because int might match the return type of a gcc2
24252 builtin and then its argument prototype would still apply. */
24253 char gettext ();
24255 main ()
24257 gettext ();
24259 return 0;
24261 _ACEOF
24262 rm -f conftest.$ac_objext conftest$ac_exeext
24263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24264 (eval $ac_link) 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } &&
24271 { ac_try='test -z "$ac_c_werror_flag"
24272 || test ! -s conftest.err'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; } &&
24278 { ac_try='test -s conftest$ac_exeext'
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; }; then
24284 ac_cv_search_gettext="-l$ac_lib"
24285 break
24286 else
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24291 rm -f conftest.err conftest.$ac_objext \
24292 conftest$ac_exeext conftest.$ac_ext
24293 done
24295 LIBS=$ac_func_search_save_LIBS
24297 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24298 echo "${ECHO_T}$ac_cv_search_gettext" >&6
24299 if test "$ac_cv_search_gettext" != no; then
24300 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
24302 else
24303 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24304 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24305 { (exit 1); exit 1; }; }
24308 if test "${ac_cv_header_libintl_h+set}" = set; then
24309 echo "$as_me:$LINENO: checking for libintl.h" >&5
24310 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
24311 if test "${ac_cv_header_libintl_h+set}" = set; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24315 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
24316 else
24317 # Is the header compilable?
24318 echo "$as_me:$LINENO: checking libintl.h usability" >&5
24319 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
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
24327 #include <libintl.h>
24328 _ACEOF
24329 rm -f conftest.$ac_objext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24331 (eval $ac_compile) 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } &&
24338 { ac_try='test -z "$ac_c_werror_flag"
24339 || test ! -s conftest.err'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest.$ac_objext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ac_header_compiler=yes
24352 else
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_header_compiler=no
24358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24360 echo "${ECHO_T}$ac_header_compiler" >&6
24362 # Is the header present?
24363 echo "$as_me:$LINENO: checking libintl.h presence" >&5
24364 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
24365 cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h. */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #include <libintl.h>
24372 _ACEOF
24373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24375 ac_status=$?
24376 grep -v '^ *+' conftest.er1 >conftest.err
24377 rm -f conftest.er1
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } >/dev/null; then
24381 if test -s conftest.err; then
24382 ac_cpp_err=$ac_c_preproc_warn_flag
24383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24384 else
24385 ac_cpp_err=
24387 else
24388 ac_cpp_err=yes
24390 if test -z "$ac_cpp_err"; then
24391 ac_header_preproc=yes
24392 else
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ac_header_preproc=no
24398 rm -f conftest.err conftest.$ac_ext
24399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24400 echo "${ECHO_T}$ac_header_preproc" >&6
24402 # So? What about this header?
24403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24404 yes:no: )
24405 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24406 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24407 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24408 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24409 ac_header_preproc=yes
24411 no:yes:* )
24412 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24413 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24414 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24415 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24416 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24417 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24418 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24419 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24420 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24421 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24422 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24423 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24425 cat <<\_ASBOX
24426 ## ---------------------------------------- ##
24427 ## Report this to pgsql-bugs@postgresql.org ##
24428 ## ---------------------------------------- ##
24429 _ASBOX
24431 sed "s/^/$as_me: WARNING: /" >&2
24433 esac
24434 echo "$as_me:$LINENO: checking for libintl.h" >&5
24435 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
24436 if test "${ac_cv_header_libintl_h+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24438 else
24439 ac_cv_header_libintl_h=$ac_header_preproc
24441 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24442 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
24445 if test $ac_cv_header_libintl_h = yes; then
24447 else
24448 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24449 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24450 { (exit 1); exit 1; }; }
24454 for ac_prog in msgfmt
24456 # Extract the first word of "$ac_prog", so it can be a program name with args.
24457 set dummy $ac_prog; ac_word=$2
24458 echo "$as_me:$LINENO: checking for $ac_word" >&5
24459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24460 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463 if test -n "$MSGFMT"; then
24464 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
24465 else
24466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24467 for as_dir in $PATH
24469 IFS=$as_save_IFS
24470 test -z "$as_dir" && as_dir=.
24471 for ac_exec_ext in '' $ac_executable_extensions; do
24472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24473 ac_cv_prog_MSGFMT="$ac_prog"
24474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24475 break 2
24477 done
24478 done
24482 MSGFMT=$ac_cv_prog_MSGFMT
24483 if test -n "$MSGFMT"; then
24484 echo "$as_me:$LINENO: result: $MSGFMT" >&5
24485 echo "${ECHO_T}$MSGFMT" >&6
24486 else
24487 echo "$as_me:$LINENO: result: no" >&5
24488 echo "${ECHO_T}no" >&6
24491 test -n "$MSGFMT" && break
24492 done
24494 if test -z "$MSGFMT"; then
24495 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24496 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24497 { (exit 1); exit 1; }; }
24499 for ac_prog in msgmerge
24501 # Extract the first word of "$ac_prog", so it can be a program name with args.
24502 set dummy $ac_prog; ac_word=$2
24503 echo "$as_me:$LINENO: checking for $ac_word" >&5
24504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24505 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508 if test -n "$MSGMERGE"; then
24509 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
24510 else
24511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24512 for as_dir in $PATH
24514 IFS=$as_save_IFS
24515 test -z "$as_dir" && as_dir=.
24516 for ac_exec_ext in '' $ac_executable_extensions; do
24517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24518 ac_cv_prog_MSGMERGE="$ac_prog"
24519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24520 break 2
24522 done
24523 done
24527 MSGMERGE=$ac_cv_prog_MSGMERGE
24528 if test -n "$MSGMERGE"; then
24529 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24530 echo "${ECHO_T}$MSGMERGE" >&6
24531 else
24532 echo "$as_me:$LINENO: result: no" >&5
24533 echo "${ECHO_T}no" >&6
24536 test -n "$MSGMERGE" && break
24537 done
24539 for ac_prog in xgettext
24541 # Extract the first word of "$ac_prog", so it can be a program name with args.
24542 set dummy $ac_prog; ac_word=$2
24543 echo "$as_me:$LINENO: checking for $ac_word" >&5
24544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24545 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548 if test -n "$XGETTEXT"; then
24549 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
24550 else
24551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24552 for as_dir in $PATH
24554 IFS=$as_save_IFS
24555 test -z "$as_dir" && as_dir=.
24556 for ac_exec_ext in '' $ac_executable_extensions; do
24557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24558 ac_cv_prog_XGETTEXT="$ac_prog"
24559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24560 break 2
24562 done
24563 done
24567 XGETTEXT=$ac_cv_prog_XGETTEXT
24568 if test -n "$XGETTEXT"; then
24569 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24570 echo "${ECHO_T}$XGETTEXT" >&6
24571 else
24572 echo "$as_me:$LINENO: result: no" >&5
24573 echo "${ECHO_T}no" >&6
24576 test -n "$XGETTEXT" && break
24577 done
24580 # Note: share/locale is always the default, independent of $datadir
24581 localedir='${prefix}/share/locale'
24586 # Check for Tcl configuration script tclConfig.sh
24587 if test "$with_tcl" = yes; then
24588 for ac_prog in tclsh tcl
24590 # Extract the first word of "$ac_prog", so it can be a program name with args.
24591 set dummy $ac_prog; ac_word=$2
24592 echo "$as_me:$LINENO: checking for $ac_word" >&5
24593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24594 if test "${ac_cv_path_TCLSH+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24596 else
24597 case $TCLSH in
24598 [\\/]* | ?:[\\/]*)
24599 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
24602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24603 for as_dir in $PATH
24605 IFS=$as_save_IFS
24606 test -z "$as_dir" && as_dir=.
24607 for ac_exec_ext in '' $ac_executable_extensions; do
24608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24609 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
24610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24611 break 2
24613 done
24614 done
24617 esac
24619 TCLSH=$ac_cv_path_TCLSH
24621 if test -n "$TCLSH"; then
24622 echo "$as_me:$LINENO: result: $TCLSH" >&5
24623 echo "${ECHO_T}$TCLSH" >&6
24624 else
24625 echo "$as_me:$LINENO: result: no" >&5
24626 echo "${ECHO_T}no" >&6
24629 test -n "$TCLSH" && break
24630 done
24632 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24633 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
24634 # Let user override test
24635 if test -z "$TCL_CONFIG_SH"; then
24636 pgac_test_dirs="$with_tclconfig"
24638 set X $pgac_test_dirs; shift
24639 if test $# -eq 0; then
24640 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24641 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24642 { (exit 1); exit 1; }; }
24643 set X `echo 'puts $auto_path' | $TCLSH`; shift
24646 for pgac_dir do
24647 if test -r "$pgac_dir/tclConfig.sh"; then
24648 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
24649 break
24651 done
24654 if test -z "$TCL_CONFIG_SH"; then
24655 echo "$as_me:$LINENO: result: no" >&5
24656 echo "${ECHO_T}no" >&6
24657 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24658 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24659 { (exit 1); exit 1; }; }
24660 else
24661 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24662 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
24667 . "$TCL_CONFIG_SH"
24668 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
24669 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
24670 eval TCL_LIBS=\"$TCL_LIBS\"
24671 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
24672 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
24674 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24675 ac_save_CPPFLAGS=$CPPFLAGS
24676 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
24677 if test "${ac_cv_header_tcl_h+set}" = set; then
24678 echo "$as_me:$LINENO: checking for tcl.h" >&5
24679 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24680 if test "${ac_cv_header_tcl_h+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24683 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24684 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24685 else
24686 # Is the header compilable?
24687 echo "$as_me:$LINENO: checking tcl.h usability" >&5
24688 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
24689 cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h. */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 $ac_includes_default
24696 #include <tcl.h>
24697 _ACEOF
24698 rm -f conftest.$ac_objext
24699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24700 (eval $ac_compile) 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_c_werror_flag"
24708 || test ! -s conftest.err'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; } &&
24714 { ac_try='test -s conftest.$ac_objext'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 ac_header_compiler=yes
24721 else
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 ac_header_compiler=no
24727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24729 echo "${ECHO_T}$ac_header_compiler" >&6
24731 # Is the header present?
24732 echo "$as_me:$LINENO: checking tcl.h presence" >&5
24733 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
24734 cat >conftest.$ac_ext <<_ACEOF
24735 /* confdefs.h. */
24736 _ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 #include <tcl.h>
24741 _ACEOF
24742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } >/dev/null; then
24750 if test -s conftest.err; then
24751 ac_cpp_err=$ac_c_preproc_warn_flag
24752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24753 else
24754 ac_cpp_err=
24756 else
24757 ac_cpp_err=yes
24759 if test -z "$ac_cpp_err"; then
24760 ac_header_preproc=yes
24761 else
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 ac_header_preproc=no
24767 rm -f conftest.err conftest.$ac_ext
24768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24769 echo "${ECHO_T}$ac_header_preproc" >&6
24771 # So? What about this header?
24772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24773 yes:no: )
24774 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24775 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24777 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24778 ac_header_preproc=yes
24780 no:yes:* )
24781 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24782 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24783 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
24784 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
24785 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24786 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24787 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
24788 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24789 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24790 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24791 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24792 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24794 cat <<\_ASBOX
24795 ## ---------------------------------------- ##
24796 ## Report this to pgsql-bugs@postgresql.org ##
24797 ## ---------------------------------------- ##
24798 _ASBOX
24800 sed "s/^/$as_me: WARNING: /" >&2
24802 esac
24803 echo "$as_me:$LINENO: checking for tcl.h" >&5
24804 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24805 if test "${ac_cv_header_tcl_h+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808 ac_cv_header_tcl_h=$ac_header_preproc
24810 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24811 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24814 if test $ac_cv_header_tcl_h = yes; then
24816 else
24817 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24818 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24819 { (exit 1); exit 1; }; }
24823 CPPFLAGS=$ac_save_CPPFLAGS
24827 # Check for DocBook and tools
24829 for ac_prog in onsgmls nsgmls
24831 # Extract the first word of "$ac_prog", so it can be a program name with args.
24832 set dummy $ac_prog; ac_word=$2
24833 echo "$as_me:$LINENO: checking for $ac_word" >&5
24834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24835 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838 if test -n "$NSGMLS"; then
24839 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
24840 else
24841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24842 for as_dir in $PATH
24844 IFS=$as_save_IFS
24845 test -z "$as_dir" && as_dir=.
24846 for ac_exec_ext in '' $ac_executable_extensions; do
24847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24848 ac_cv_prog_NSGMLS="$ac_prog"
24849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24850 break 2
24852 done
24853 done
24857 NSGMLS=$ac_cv_prog_NSGMLS
24858 if test -n "$NSGMLS"; then
24859 echo "$as_me:$LINENO: result: $NSGMLS" >&5
24860 echo "${ECHO_T}$NSGMLS" >&6
24861 else
24862 echo "$as_me:$LINENO: result: no" >&5
24863 echo "${ECHO_T}no" >&6
24866 test -n "$NSGMLS" && break
24867 done
24869 for ac_prog in openjade jade
24871 # Extract the first word of "$ac_prog", so it can be a program name with args.
24872 set dummy $ac_prog; ac_word=$2
24873 echo "$as_me:$LINENO: checking for $ac_word" >&5
24874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24875 if test "${ac_cv_prog_JADE+set}" = set; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24877 else
24878 if test -n "$JADE"; then
24879 ac_cv_prog_JADE="$JADE" # Let the user override the test.
24880 else
24881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24882 for as_dir in $PATH
24884 IFS=$as_save_IFS
24885 test -z "$as_dir" && as_dir=.
24886 for ac_exec_ext in '' $ac_executable_extensions; do
24887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24888 ac_cv_prog_JADE="$ac_prog"
24889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24890 break 2
24892 done
24893 done
24897 JADE=$ac_cv_prog_JADE
24898 if test -n "$JADE"; then
24899 echo "$as_me:$LINENO: result: $JADE" >&5
24900 echo "${ECHO_T}$JADE" >&6
24901 else
24902 echo "$as_me:$LINENO: result: no" >&5
24903 echo "${ECHO_T}no" >&6
24906 test -n "$JADE" && break
24907 done
24910 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24911 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
24912 if test "${pgac_cv_check_docbook+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915 cat >conftest.sgml <<EOF
24916 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24917 <book>
24918 <title>test</title>
24919 <chapter>
24920 <title>random</title>
24921 <sect1>
24922 <title>testsect</title>
24923 <para>text</para>
24924 </sect1>
24925 </chapter>
24926 </book>
24929 pgac_cv_check_docbook=no
24931 if test -n "$NSGMLS"; then
24932 $NSGMLS -s conftest.sgml 1>&5 2>&1
24933 if test $? -eq 0; then
24934 pgac_cv_check_docbook=yes
24937 rm -f conftest.sgml
24939 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24940 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
24942 have_docbook=$pgac_cv_check_docbook
24945 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24946 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
24947 if test "${pgac_cv_path_stylesheets+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24949 else
24950 if test -n "$DOCBOOKSTYLE"; then
24951 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
24952 else
24953 for pgac_prefix in /usr /usr/local /opt; do
24954 for pgac_infix in share lib; do
24955 for pgac_postfix in \
24956 sgml/stylesheets/nwalsh-modular \
24957 sgml/stylesheets/docbook \
24958 sgml/stylesheets/dsssl/docbook \
24959 sgml/docbook-dsssl \
24960 sgml/docbook/dsssl/modular \
24961 sgml/docbook/stylesheet/dsssl/modular \
24962 sgml/docbook/dsssl-stylesheets
24964 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
24965 if test -r "$pgac_candidate/html/docbook.dsl" \
24966 && test -r "$pgac_candidate/print/docbook.dsl"
24967 then
24968 pgac_cv_path_stylesheets=$pgac_candidate
24969 break 3
24971 done
24972 done
24973 done
24977 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
24979 if test -n "$DOCBOOKSTYLE"; then
24980 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24981 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
24982 else
24983 echo "$as_me:$LINENO: result: no" >&5
24984 echo "${ECHO_T}no" >&6
24986 if test -n "$DOCBOOKSTYLE"; then
24987 for ac_prog in collateindex.pl
24989 # Extract the first word of "$ac_prog", so it can be a program name with args.
24990 set dummy $ac_prog; ac_word=$2
24991 echo "$as_me:$LINENO: checking for $ac_word" >&5
24992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996 case $COLLATEINDEX in
24997 [\\/]* | ?:[\\/]*)
24998 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002 for as_dir in $DOCBOOKSTYLE/bin $PATH
25004 IFS=$as_save_IFS
25005 test -z "$as_dir" && as_dir=.
25006 for ac_exec_ext in '' $ac_executable_extensions; do
25007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25010 break 2
25012 done
25013 done
25016 esac
25018 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25020 if test -n "$COLLATEINDEX"; then
25021 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25022 echo "${ECHO_T}$COLLATEINDEX" >&6
25023 else
25024 echo "$as_me:$LINENO: result: no" >&5
25025 echo "${ECHO_T}no" >&6
25028 test -n "$COLLATEINDEX" && break
25029 done
25031 else
25032 for ac_prog in collateindex.pl
25034 # Extract the first word of "$ac_prog", so it can be a program name with args.
25035 set dummy $ac_prog; ac_word=$2
25036 echo "$as_me:$LINENO: checking for $ac_word" >&5
25037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25038 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25040 else
25041 case $COLLATEINDEX in
25042 [\\/]* | ?:[\\/]*)
25043 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25047 for as_dir in $PATH
25049 IFS=$as_save_IFS
25050 test -z "$as_dir" && as_dir=.
25051 for ac_exec_ext in '' $ac_executable_extensions; do
25052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25053 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25055 break 2
25057 done
25058 done
25061 esac
25063 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25065 if test -n "$COLLATEINDEX"; then
25066 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25067 echo "${ECHO_T}$COLLATEINDEX" >&6
25068 else
25069 echo "$as_me:$LINENO: result: no" >&5
25070 echo "${ECHO_T}no" >&6
25073 test -n "$COLLATEINDEX" && break
25074 done
25077 for ac_prog in sgmlspl
25079 # Extract the first word of "$ac_prog", so it can be a program name with args.
25080 set dummy $ac_prog; ac_word=$2
25081 echo "$as_me:$LINENO: checking for $ac_word" >&5
25082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25083 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25084 echo $ECHO_N "(cached) $ECHO_C" >&6
25085 else
25086 if test -n "$SGMLSPL"; then
25087 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25088 else
25089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25090 for as_dir in $PATH
25092 IFS=$as_save_IFS
25093 test -z "$as_dir" && as_dir=.
25094 for ac_exec_ext in '' $ac_executable_extensions; do
25095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25096 ac_cv_prog_SGMLSPL="$ac_prog"
25097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25098 break 2
25100 done
25101 done
25105 SGMLSPL=$ac_cv_prog_SGMLSPL
25106 if test -n "$SGMLSPL"; then
25107 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25108 echo "${ECHO_T}$SGMLSPL" >&6
25109 else
25110 echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6
25114 test -n "$SGMLSPL" && break
25115 done
25118 # Thread testing
25120 # We have to run the thread test near the end so we have all our symbols
25121 # defined. Cross compiling throws a warning.
25123 if test "$enable_thread_safety_force" = yes; then
25124 if test "$PORTNAME" != "win32"
25125 then
25126 { echo "$as_me:$LINENO: WARNING:
25127 *** Skipping thread test program. --enable-thread-safety-force was used.
25128 *** Run the program in src/test/thread on the your machine and add proper
25129 *** locking function calls to your applications to guarantee thread safety.
25130 " >&5
25131 echo "$as_me: WARNING:
25132 *** Skipping thread test program. --enable-thread-safety-force was used.
25133 *** Run the program in src/test/thread on the your machine and add proper
25134 *** locking function calls to your applications to guarantee thread safety.
25135 " >&2;}
25136 else
25137 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25138 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25140 elif test "$enable_thread_safety" = yes; then
25141 if test "$PORTNAME" != "win32"
25142 then
25143 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25144 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
25146 _CFLAGS="$CFLAGS"
25147 _LIBS="$LIBS"
25148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25149 LIBS="$LIBS $PTHREAD_LIBS"
25150 if test "$cross_compiling" = yes; then
25151 echo "$as_me:$LINENO: result: maybe" >&5
25152 echo "${ECHO_T}maybe" >&6
25153 { echo "$as_me:$LINENO: WARNING:
25154 *** Skipping thread test program because of cross-compile build.
25155 *** Run the program in src/test/thread on the target machine.
25156 " >&5
25157 echo "$as_me: WARNING:
25158 *** Skipping thread test program because of cross-compile build.
25159 *** Run the program in src/test/thread on the target machine.
25160 " >&2;}
25161 else
25162 cat >conftest.$ac_ext <<_ACEOF
25163 /* confdefs.h. */
25164 _ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 #include "$srcdir/src/test/thread/thread_test.c"
25169 _ACEOF
25170 rm -f conftest$ac_exeext
25171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25172 (eval $ac_link) 2>&5
25173 ac_status=$?
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; }; then
25181 echo "$as_me:$LINENO: result: yes" >&5
25182 echo "${ECHO_T}yes" >&6
25183 else
25184 echo "$as_me: program exited with status $ac_status" >&5
25185 echo "$as_me: failed program was:" >&5
25186 sed 's/^/| /' conftest.$ac_ext >&5
25188 ( exit $ac_status )
25189 echo "$as_me:$LINENO: result: no" >&5
25190 echo "${ECHO_T}no" >&6
25191 { { echo "$as_me:$LINENO: error: thread test program failed
25192 This platform is not thread-safe. Check the file 'config.log'for the
25193 exact reason.
25195 You can use the configure option --enable-thread-safety-force to force
25196 threads to be enabled. But you must then run the program in
25197 src/test/thread and add locking function calls to your applications to
25198 guarantee thread safety." >&5
25199 echo "$as_me: error: thread test program failed
25200 This platform is not thread-safe. Check the file 'config.log'for the
25201 exact reason.
25203 You can use the configure option --enable-thread-safety-force to force
25204 threads to be enabled. But you must then run the program in
25205 src/test/thread and add locking function calls to your applications to
25206 guarantee thread safety." >&2;}
25207 { (exit 1); exit 1; }; }
25209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25211 CFLAGS="$_CFLAGS"
25212 LIBS="$_LIBS"
25213 else
25214 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25215 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25219 # prepare build tree if outside source tree
25220 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25221 # Note 2: /bin/pwd might be better than shell's built-in at getting
25222 # a symlink-free name.
25223 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25224 vpath_build=no
25225 else
25226 vpath_build=yes
25227 if test "$no_create" != yes; then
25228 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25229 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
25230 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25231 || { { echo "$as_me:$LINENO: error: failed" >&5
25232 echo "$as_me: error: failed" >&2;}
25233 { (exit 1); exit 1; }; }
25234 echo "$as_me:$LINENO: result: done" >&5
25235 echo "${ECHO_T}done" >&6
25241 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
25244 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}"
25247 if test "$PORTNAME" = "win32"; then
25248 ac_config_commands="$ac_config_commands check_win32_symlinks"
25252 ac_config_headers="$ac_config_headers src/include/pg_config.h"
25255 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25258 cat >confcache <<\_ACEOF
25259 # This file is a shell script that caches the results of configure
25260 # tests run on this system so they can be shared between configure
25261 # scripts and configure runs, see configure's option --config-cache.
25262 # It is not useful on other systems. If it contains results you don't
25263 # want to keep, you may remove or edit it.
25265 # config.status only pays attention to the cache file if you give it
25266 # the --recheck option to rerun configure.
25268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25270 # following values.
25272 _ACEOF
25274 # The following way of writing the cache mishandles newlines in values,
25275 # but we know of no workaround that is simple, portable, and efficient.
25276 # So, don't put newlines in cache variables' values.
25277 # Ultrix sh set writes to stderr and can't be redirected directly,
25278 # and sets the high bit in the cache file unless we assign to the vars.
25280 (set) 2>&1 |
25281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25282 *ac_space=\ *)
25283 # `set' does not quote correctly, so add quotes (double-quote
25284 # substitution turns \\\\ into \\, and sed turns \\ into \).
25285 sed -n \
25286 "s/'/'\\\\''/g;
25287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25290 # `set' quotes correctly as required by POSIX, so do not add quotes.
25291 sed -n \
25292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25294 esac;
25296 sed '
25297 t clear
25298 : clear
25299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25300 t end
25301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25302 : end' >>confcache
25303 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25304 if test -w $cache_file; then
25305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25306 cat confcache >$cache_file
25307 else
25308 echo "not updating unwritable cache $cache_file"
25311 rm -f confcache
25313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25314 # Let make expand exec_prefix.
25315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25319 # trailing colons and then remove the whole line if VPATH becomes empty
25320 # (actually we leave an empty line to preserve line numbers).
25321 if test "x$srcdir" = x.; then
25322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25323 s/:*\$(srcdir):*/:/;
25324 s/:*\${srcdir}:*/:/;
25325 s/:*@srcdir@:*/:/;
25326 s/^\([^=]*=[ ]*\):*/\1/;
25327 s/:*$//;
25328 s/^[^=]*=[ ]*$//;
25332 DEFS=-DHAVE_CONFIG_H
25334 ac_libobjs=
25335 ac_ltlibobjs=
25336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25337 # 1. Remove the extension, and $U if already installed.
25338 ac_i=`echo "$ac_i" |
25339 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25340 # 2. Add them.
25341 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25342 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25343 done
25344 LIBOBJS=$ac_libobjs
25346 LTLIBOBJS=$ac_ltlibobjs
25350 : ${CONFIG_STATUS=./config.status}
25351 ac_clean_files_save=$ac_clean_files
25352 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25353 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25354 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25355 cat >$CONFIG_STATUS <<_ACEOF
25356 #! $SHELL
25357 # Generated by $as_me.
25358 # Run this file to recreate the current configuration.
25359 # Compiler output produced by configure, useful for debugging
25360 # configure, is in config.log if it exists.
25362 debug=false
25363 ac_cs_recheck=false
25364 ac_cs_silent=false
25365 SHELL=\${CONFIG_SHELL-$SHELL}
25366 _ACEOF
25368 cat >>$CONFIG_STATUS <<\_ACEOF
25369 ## --------------------- ##
25370 ## M4sh Initialization. ##
25371 ## --------------------- ##
25373 # Be Bourne compatible
25374 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25375 emulate sh
25376 NULLCMD=:
25377 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25378 # is contrary to our usage. Disable this feature.
25379 alias -g '${1+"$@"}'='"$@"'
25380 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25381 set -o posix
25383 DUALCASE=1; export DUALCASE # for MKS sh
25385 # Support unset when possible.
25386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25387 as_unset=unset
25388 else
25389 as_unset=false
25393 # Work around bugs in pre-3.0 UWIN ksh.
25394 $as_unset ENV MAIL MAILPATH
25395 PS1='$ '
25396 PS2='> '
25397 PS4='+ '
25399 # NLS nuisances.
25400 for as_var in \
25401 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25402 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25403 LC_TELEPHONE LC_TIME
25405 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25406 eval $as_var=C; export $as_var
25407 else
25408 $as_unset $as_var
25410 done
25412 # Required to use basename.
25413 if expr a : '\(a\)' >/dev/null 2>&1; then
25414 as_expr=expr
25415 else
25416 as_expr=false
25419 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25420 as_basename=basename
25421 else
25422 as_basename=false
25426 # Name of the executable.
25427 as_me=`$as_basename "$0" ||
25428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25429 X"$0" : 'X\(//\)$' \| \
25430 X"$0" : 'X\(/\)$' \| \
25431 . : '\(.\)' 2>/dev/null ||
25432 echo X/"$0" |
25433 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25434 /^X\/\(\/\/\)$/{ s//\1/; q; }
25435 /^X\/\(\/\).*/{ s//\1/; q; }
25436 s/.*/./; q'`
25439 # PATH needs CR, and LINENO needs CR and PATH.
25440 # Avoid depending upon Character Ranges.
25441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25444 as_cr_digits='0123456789'
25445 as_cr_alnum=$as_cr_Letters$as_cr_digits
25447 # The user is always right.
25448 if test "${PATH_SEPARATOR+set}" != set; then
25449 echo "#! /bin/sh" >conf$$.sh
25450 echo "exit 0" >>conf$$.sh
25451 chmod +x conf$$.sh
25452 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25453 PATH_SEPARATOR=';'
25454 else
25455 PATH_SEPARATOR=:
25457 rm -f conf$$.sh
25461 as_lineno_1=$LINENO
25462 as_lineno_2=$LINENO
25463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25464 test "x$as_lineno_1" != "x$as_lineno_2" &&
25465 test "x$as_lineno_3" = "x$as_lineno_2" || {
25466 # Find who we are. Look in the path if we contain no path at all
25467 # relative or not.
25468 case $0 in
25469 *[\\/]* ) as_myself=$0 ;;
25470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25471 for as_dir in $PATH
25473 IFS=$as_save_IFS
25474 test -z "$as_dir" && as_dir=.
25475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25476 done
25479 esac
25480 # We did not find ourselves, most probably we were run as `sh COMMAND'
25481 # in which case we are not to be found in the path.
25482 if test "x$as_myself" = x; then
25483 as_myself=$0
25485 if test ! -f "$as_myself"; then
25486 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25487 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25488 { (exit 1); exit 1; }; }
25490 case $CONFIG_SHELL in
25492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25493 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25495 IFS=$as_save_IFS
25496 test -z "$as_dir" && as_dir=.
25497 for as_base in sh bash ksh sh5; do
25498 case $as_dir in
25500 if ("$as_dir/$as_base" -c '
25501 as_lineno_1=$LINENO
25502 as_lineno_2=$LINENO
25503 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25504 test "x$as_lineno_1" != "x$as_lineno_2" &&
25505 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25506 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25507 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25508 CONFIG_SHELL=$as_dir/$as_base
25509 export CONFIG_SHELL
25510 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25511 fi;;
25512 esac
25513 done
25514 done
25516 esac
25518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25519 # uniformly replaced by the line number. The first 'sed' inserts a
25520 # line-number line before each line; the second 'sed' does the real
25521 # work. The second script uses 'N' to pair each line-number line
25522 # with the numbered line, and appends trailing '-' during
25523 # substitution so that $LINENO is not a special case at line end.
25524 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25525 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25526 sed '=' <$as_myself |
25527 sed '
25529 s,$,-,
25530 : loop
25531 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25532 t loop
25533 s,-$,,
25534 s,^['$as_cr_digits']*\n,,
25535 ' >$as_me.lineno &&
25536 chmod +x $as_me.lineno ||
25537 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25538 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25539 { (exit 1); exit 1; }; }
25541 # Don't try to exec as it changes $[0], causing all sort of problems
25542 # (the dirname of $[0] is not the place where we might find the
25543 # original and so on. Autoconf is especially sensible to this).
25544 . ./$as_me.lineno
25545 # Exit status is that of the last command.
25546 exit
25550 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25551 *c*,-n*) ECHO_N= ECHO_C='
25552 ' ECHO_T=' ' ;;
25553 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25554 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25555 esac
25557 if expr a : '\(a\)' >/dev/null 2>&1; then
25558 as_expr=expr
25559 else
25560 as_expr=false
25563 rm -f conf$$ conf$$.exe conf$$.file
25564 echo >conf$$.file
25565 if ln -s conf$$.file conf$$ 2>/dev/null; then
25566 # We could just check for DJGPP; but this test a) works b) is more generic
25567 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25568 if test -f conf$$.exe; then
25569 # Don't use ln at all; we don't have any links
25570 as_ln_s='cp -p'
25571 else
25572 as_ln_s='ln -s'
25574 elif ln conf$$.file conf$$ 2>/dev/null; then
25575 as_ln_s=ln
25576 else
25577 as_ln_s='cp -p'
25579 rm -f conf$$ conf$$.exe conf$$.file
25581 if mkdir -p . 2>/dev/null; then
25582 as_mkdir_p=:
25583 else
25584 test -d ./-p && rmdir ./-p
25585 as_mkdir_p=false
25588 as_executable_p="test -f"
25590 # Sed expression to map a string onto a valid CPP name.
25591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25593 # Sed expression to map a string onto a valid variable name.
25594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25597 # IFS
25598 # We need space, tab and new line, in precisely that order.
25599 as_nl='
25601 IFS=" $as_nl"
25603 # CDPATH.
25604 $as_unset CDPATH
25606 exec 6>&1
25608 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25609 # report actual input values of CONFIG_FILES etc. instead of their
25610 # values after options handling. Logging --version etc. is OK.
25611 exec 5>>config.log
25613 echo
25614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25615 ## Running $as_me. ##
25616 _ASBOX
25617 } >&5
25618 cat >&5 <<_CSEOF
25620 This file was extended by PostgreSQL $as_me 8.4devel, which was
25621 generated by GNU Autoconf 2.59. Invocation command line was
25623 CONFIG_FILES = $CONFIG_FILES
25624 CONFIG_HEADERS = $CONFIG_HEADERS
25625 CONFIG_LINKS = $CONFIG_LINKS
25626 CONFIG_COMMANDS = $CONFIG_COMMANDS
25627 $ $0 $@
25629 _CSEOF
25630 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25631 echo >&5
25632 _ACEOF
25634 # Files that config.status was made for.
25635 if test -n "$ac_config_files"; then
25636 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25639 if test -n "$ac_config_headers"; then
25640 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25643 if test -n "$ac_config_links"; then
25644 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25647 if test -n "$ac_config_commands"; then
25648 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25651 cat >>$CONFIG_STATUS <<\_ACEOF
25653 ac_cs_usage="\
25654 \`$as_me' instantiates files from templates according to the
25655 current configuration.
25657 Usage: $0 [OPTIONS] [FILE]...
25659 -h, --help print this help, then exit
25660 -V, --version print version number, then exit
25661 -q, --quiet do not print progress messages
25662 -d, --debug don't remove temporary files
25663 --recheck update $as_me by reconfiguring in the same conditions
25664 --file=FILE[:TEMPLATE]
25665 instantiate the configuration file FILE
25666 --header=FILE[:TEMPLATE]
25667 instantiate the configuration header FILE
25669 Configuration files:
25670 $config_files
25672 Configuration headers:
25673 $config_headers
25675 Configuration links:
25676 $config_links
25678 Configuration commands:
25679 $config_commands
25681 Report bugs to <bug-autoconf@gnu.org>."
25682 _ACEOF
25684 cat >>$CONFIG_STATUS <<_ACEOF
25685 ac_cs_version="\\
25686 PostgreSQL config.status 8.4devel
25687 configured by $0, generated by GNU Autoconf 2.59,
25688 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25690 Copyright (C) 2003 Free Software Foundation, Inc.
25691 This config.status script is free software; the Free Software Foundation
25692 gives unlimited permission to copy, distribute and modify it."
25693 srcdir=$srcdir
25694 _ACEOF
25696 cat >>$CONFIG_STATUS <<\_ACEOF
25697 # If no file are specified by the user, then we need to provide default
25698 # value. By we need to know if files were specified by the user.
25699 ac_need_defaults=:
25700 while test $# != 0
25702 case $1 in
25703 --*=*)
25704 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25705 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25706 ac_shift=:
25709 ac_option=$1
25710 ac_optarg=$2
25711 ac_shift=shift
25713 *) # This is not an option, so the user has probably given explicit
25714 # arguments.
25715 ac_option=$1
25716 ac_need_defaults=false;;
25717 esac
25719 case $ac_option in
25720 # Handling of the options.
25721 _ACEOF
25722 cat >>$CONFIG_STATUS <<\_ACEOF
25723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25724 ac_cs_recheck=: ;;
25725 --version | --vers* | -V )
25726 echo "$ac_cs_version"; exit 0 ;;
25727 --he | --h)
25728 # Conflict between --help and --header
25729 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25730 Try \`$0 --help' for more information." >&5
25731 echo "$as_me: error: ambiguous option: $1
25732 Try \`$0 --help' for more information." >&2;}
25733 { (exit 1); exit 1; }; };;
25734 --help | --hel | -h )
25735 echo "$ac_cs_usage"; exit 0 ;;
25736 --debug | --d* | -d )
25737 debug=: ;;
25738 --file | --fil | --fi | --f )
25739 $ac_shift
25740 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25741 ac_need_defaults=false;;
25742 --header | --heade | --head | --hea )
25743 $ac_shift
25744 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25745 ac_need_defaults=false;;
25746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25748 ac_cs_silent=: ;;
25750 # This is an error.
25751 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25752 Try \`$0 --help' for more information." >&5
25753 echo "$as_me: error: unrecognized option: $1
25754 Try \`$0 --help' for more information." >&2;}
25755 { (exit 1); exit 1; }; } ;;
25757 *) ac_config_targets="$ac_config_targets $1" ;;
25759 esac
25760 shift
25761 done
25763 ac_configure_extra_args=
25765 if $ac_cs_silent; then
25766 exec 6>/dev/null
25767 ac_configure_extra_args="$ac_configure_extra_args --silent"
25770 _ACEOF
25771 cat >>$CONFIG_STATUS <<_ACEOF
25772 if \$ac_cs_recheck; then
25773 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25774 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25777 _ACEOF
25783 cat >>$CONFIG_STATUS <<\_ACEOF
25784 for ac_config_target in $ac_config_targets
25786 case "$ac_config_target" in
25787 # Handling of arguments.
25788 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
25789 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
25790 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25791 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25792 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25793 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25794 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25795 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25796 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25797 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
25798 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
25799 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25802 { (exit 1); exit 1; }; };;
25803 esac
25804 done
25806 # If the user did not use the arguments to specify the items to instantiate,
25807 # then the envvar interface is used. Set only those that are not.
25808 # We use the long form for the default assignment because of an extremely
25809 # bizarre bug on SunOS 4.1.3.
25810 if $ac_need_defaults; then
25811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25813 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25817 # Have a temporary directory for convenience. Make it in the build tree
25818 # simply because there is no reason to put it here, and in addition,
25819 # creating and moving files from /tmp can sometimes cause problems.
25820 # Create a temporary directory, and hook for its removal unless debugging.
25821 $debug ||
25823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25824 trap '{ (exit 1); exit 1; }' 1 2 13 15
25827 # Create a (secure) tmp directory for tmp files.
25830 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25831 test -n "$tmp" && test -d "$tmp"
25832 } ||
25834 tmp=./confstat$$-$RANDOM
25835 (umask 077 && mkdir $tmp)
25836 } ||
25838 echo "$me: cannot create a temporary directory in ." >&2
25839 { (exit 1); exit 1; }
25842 _ACEOF
25844 cat >>$CONFIG_STATUS <<_ACEOF
25847 # CONFIG_FILES section.
25850 # No need to generate the scripts if there are no CONFIG_FILES.
25851 # This happens for instance when ./config.status config.h
25852 if test -n "\$CONFIG_FILES"; then
25853 # Protect against being on the right side of a sed subst in config.status.
25854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25856 s,@SHELL@,$SHELL,;t t
25857 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25858 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25859 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25860 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25861 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25862 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25863 s,@exec_prefix@,$exec_prefix,;t t
25864 s,@prefix@,$prefix,;t t
25865 s,@program_transform_name@,$program_transform_name,;t t
25866 s,@bindir@,$bindir,;t t
25867 s,@sbindir@,$sbindir,;t t
25868 s,@libexecdir@,$libexecdir,;t t
25869 s,@datadir@,$datadir,;t t
25870 s,@sysconfdir@,$sysconfdir,;t t
25871 s,@sharedstatedir@,$sharedstatedir,;t t
25872 s,@localstatedir@,$localstatedir,;t t
25873 s,@libdir@,$libdir,;t t
25874 s,@includedir@,$includedir,;t t
25875 s,@oldincludedir@,$oldincludedir,;t t
25876 s,@infodir@,$infodir,;t t
25877 s,@mandir@,$mandir,;t t
25878 s,@build_alias@,$build_alias,;t t
25879 s,@host_alias@,$host_alias,;t t
25880 s,@target_alias@,$target_alias,;t t
25881 s,@DEFS@,$DEFS,;t t
25882 s,@ECHO_C@,$ECHO_C,;t t
25883 s,@ECHO_N@,$ECHO_N,;t t
25884 s,@ECHO_T@,$ECHO_T,;t t
25885 s,@LIBS@,$LIBS,;t t
25886 s,@configure_args@,$configure_args,;t t
25887 s,@build@,$build,;t t
25888 s,@build_cpu@,$build_cpu,;t t
25889 s,@build_vendor@,$build_vendor,;t t
25890 s,@build_os@,$build_os,;t t
25891 s,@host@,$host,;t t
25892 s,@host_cpu@,$host_cpu,;t t
25893 s,@host_vendor@,$host_vendor,;t t
25894 s,@host_os@,$host_os,;t t
25895 s,@PORTNAME@,$PORTNAME,;t t
25896 s,@docdir@,$docdir,;t t
25897 s,@enable_nls@,$enable_nls,;t t
25898 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
25899 s,@default_port@,$default_port,;t t
25900 s,@enable_shared@,$enable_shared,;t t
25901 s,@enable_rpath@,$enable_rpath,;t t
25902 s,@enable_debug@,$enable_debug,;t t
25903 s,@enable_profiling@,$enable_profiling,;t t
25904 s,@DTRACE@,$DTRACE,;t t
25905 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
25906 s,@enable_dtrace@,$enable_dtrace,;t t
25907 s,@CC@,$CC,;t t
25908 s,@CFLAGS@,$CFLAGS,;t t
25909 s,@LDFLAGS@,$LDFLAGS,;t t
25910 s,@CPPFLAGS@,$CPPFLAGS,;t t
25911 s,@ac_ct_CC@,$ac_ct_CC,;t t
25912 s,@EXEEXT@,$EXEEXT,;t t
25913 s,@OBJEXT@,$OBJEXT,;t t
25914 s,@CPP@,$CPP,;t t
25915 s,@GCC@,$GCC,;t t
25916 s,@TAS@,$TAS,;t t
25917 s,@autodepend@,$autodepend,;t t
25918 s,@INCLUDES@,$INCLUDES,;t t
25919 s,@enable_thread_safety@,$enable_thread_safety,;t t
25920 s,@with_tcl@,$with_tcl,;t t
25921 s,@with_perl@,$with_perl,;t t
25922 s,@with_python@,$with_python,;t t
25923 s,@with_gssapi@,$with_gssapi,;t t
25924 s,@with_krb5@,$with_krb5,;t t
25925 s,@krb_srvtab@,$krb_srvtab,;t t
25926 s,@with_pam@,$with_pam,;t t
25927 s,@with_ldap@,$with_ldap,;t t
25928 s,@with_bonjour@,$with_bonjour,;t t
25929 s,@with_openssl@,$with_openssl,;t t
25930 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
25931 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25932 s,@with_libxml@,$with_libxml,;t t
25933 s,@with_libxslt@,$with_libxslt,;t t
25934 s,@with_system_tzdata@,$with_system_tzdata,;t t
25935 s,@with_zlib@,$with_zlib,;t t
25936 s,@EGREP@,$EGREP,;t t
25937 s,@ELF_SYS@,$ELF_SYS,;t t
25938 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
25939 s,@LD@,$LD,;t t
25940 s,@with_gnu_ld@,$with_gnu_ld,;t t
25941 s,@ld_R_works@,$ld_R_works,;t t
25942 s,@RANLIB@,$RANLIB,;t t
25943 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25944 s,@STRIP@,$STRIP,;t t
25945 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25946 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
25947 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
25948 s,@TAR@,$TAR,;t t
25949 s,@LN_S@,$LN_S,;t t
25950 s,@AWK@,$AWK,;t t
25951 s,@YACC@,$YACC,;t t
25952 s,@YFLAGS@,$YFLAGS,;t t
25953 s,@FLEX@,$FLEX,;t t
25954 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
25955 s,@PERL@,$PERL,;t t
25956 s,@perl_archlibexp@,$perl_archlibexp,;t t
25957 s,@perl_privlibexp@,$perl_privlibexp,;t t
25958 s,@perl_useshrplib@,$perl_useshrplib,;t t
25959 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
25960 s,@PYTHON@,$PYTHON,;t t
25961 s,@python_version@,$python_version,;t t
25962 s,@python_configdir@,$python_configdir,;t t
25963 s,@python_includespec@,$python_includespec,;t t
25964 s,@python_libdir@,$python_libdir,;t t
25965 s,@python_libspec@,$python_libspec,;t t
25966 s,@python_additional_libs@,$python_additional_libs,;t t
25967 s,@OSSP_UUID_LIBS@,$OSSP_UUID_LIBS,;t t
25968 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
25969 s,@LIBOBJS@,$LIBOBJS,;t t
25970 s,@acx_pthread_config@,$acx_pthread_config,;t t
25971 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25972 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25973 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25974 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
25975 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
25976 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
25977 s,@MSGFMT@,$MSGFMT,;t t
25978 s,@MSGMERGE@,$MSGMERGE,;t t
25979 s,@XGETTEXT@,$XGETTEXT,;t t
25980 s,@localedir@,$localedir,;t t
25981 s,@TCLSH@,$TCLSH,;t t
25982 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
25983 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
25984 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
25985 s,@TCL_LIBS@,$TCL_LIBS,;t t
25986 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25987 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
25988 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25989 s,@NSGMLS@,$NSGMLS,;t t
25990 s,@JADE@,$JADE,;t t
25991 s,@have_docbook@,$have_docbook,;t t
25992 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
25993 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
25994 s,@SGMLSPL@,$SGMLSPL,;t t
25995 s,@vpath_build@,$vpath_build,;t t
25996 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25997 CEOF
25999 _ACEOF
26001 cat >>$CONFIG_STATUS <<\_ACEOF
26002 # Split the substitutions into bite-sized pieces for seds with
26003 # small command number limits, like on Digital OSF/1 and HP-UX.
26004 ac_max_sed_lines=48
26005 ac_sed_frag=1 # Number of current file.
26006 ac_beg=1 # First line for current file.
26007 ac_end=$ac_max_sed_lines # Line after last line for current file.
26008 ac_more_lines=:
26009 ac_sed_cmds=
26010 while $ac_more_lines; do
26011 if test $ac_beg -gt 1; then
26012 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26013 else
26014 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26016 if test ! -s $tmp/subs.frag; then
26017 ac_more_lines=false
26018 else
26019 # The purpose of the label and of the branching condition is to
26020 # speed up the sed processing (if there are no `@' at all, there
26021 # is no need to browse any of the substitutions).
26022 # These are the two extra sed commands mentioned above.
26023 (echo ':t
26024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26025 if test -z "$ac_sed_cmds"; then
26026 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26027 else
26028 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26030 ac_sed_frag=`expr $ac_sed_frag + 1`
26031 ac_beg=$ac_end
26032 ac_end=`expr $ac_end + $ac_max_sed_lines`
26034 done
26035 if test -z "$ac_sed_cmds"; then
26036 ac_sed_cmds=cat
26038 fi # test -n "$CONFIG_FILES"
26040 _ACEOF
26041 cat >>$CONFIG_STATUS <<\_ACEOF
26042 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26044 case $ac_file in
26045 - | *:- | *:-:* ) # input from stdin
26046 cat >$tmp/stdin
26047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26051 * ) ac_file_in=$ac_file.in ;;
26052 esac
26054 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26057 X"$ac_file" : 'X\(//\)[^/]' \| \
26058 X"$ac_file" : 'X\(//\)$' \| \
26059 X"$ac_file" : 'X\(/\)' \| \
26060 . : '\(.\)' 2>/dev/null ||
26061 echo X"$ac_file" |
26062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26064 /^X\(\/\/\)$/{ s//\1/; q; }
26065 /^X\(\/\).*/{ s//\1/; q; }
26066 s/.*/./; q'`
26067 { if $as_mkdir_p; then
26068 mkdir -p "$ac_dir"
26069 else
26070 as_dir="$ac_dir"
26071 as_dirs=
26072 while test ! -d "$as_dir"; do
26073 as_dirs="$as_dir $as_dirs"
26074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26076 X"$as_dir" : 'X\(//\)[^/]' \| \
26077 X"$as_dir" : 'X\(//\)$' \| \
26078 X"$as_dir" : 'X\(/\)' \| \
26079 . : '\(.\)' 2>/dev/null ||
26080 echo X"$as_dir" |
26081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26083 /^X\(\/\/\)$/{ s//\1/; q; }
26084 /^X\(\/\).*/{ s//\1/; q; }
26085 s/.*/./; q'`
26086 done
26087 test ! -n "$as_dirs" || mkdir $as_dirs
26088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26090 { (exit 1); exit 1; }; }; }
26092 ac_builddir=.
26094 if test "$ac_dir" != .; then
26095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26096 # A "../" for each directory in $ac_dir_suffix.
26097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26098 else
26099 ac_dir_suffix= ac_top_builddir=
26102 case $srcdir in
26103 .) # No --srcdir option. We are building in place.
26104 ac_srcdir=.
26105 if test -z "$ac_top_builddir"; then
26106 ac_top_srcdir=.
26107 else
26108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26109 fi ;;
26110 [\\/]* | ?:[\\/]* ) # Absolute path.
26111 ac_srcdir=$srcdir$ac_dir_suffix;
26112 ac_top_srcdir=$srcdir ;;
26113 *) # Relative path.
26114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26116 esac
26118 # Do not use `cd foo && pwd` to compute absolute paths, because
26119 # the directories may not exist.
26120 case `pwd` in
26121 .) ac_abs_builddir="$ac_dir";;
26123 case "$ac_dir" in
26124 .) ac_abs_builddir=`pwd`;;
26125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26127 esac;;
26128 esac
26129 case $ac_abs_builddir in
26130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26132 case ${ac_top_builddir}. in
26133 .) ac_abs_top_builddir=$ac_abs_builddir;;
26134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26136 esac;;
26137 esac
26138 case $ac_abs_builddir in
26139 .) ac_abs_srcdir=$ac_srcdir;;
26141 case $ac_srcdir in
26142 .) ac_abs_srcdir=$ac_abs_builddir;;
26143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26145 esac;;
26146 esac
26147 case $ac_abs_builddir in
26148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26150 case $ac_top_srcdir in
26151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26154 esac;;
26155 esac
26159 if test x"$ac_file" != x-; then
26160 { echo "$as_me:$LINENO: creating $ac_file" >&5
26161 echo "$as_me: creating $ac_file" >&6;}
26162 rm -f "$ac_file"
26164 # Let's still pretend it is `configure' which instantiates (i.e., don't
26165 # use $as_me), people would be surprised to read:
26166 # /* config.h. Generated by config.status. */
26167 if test x"$ac_file" = x-; then
26168 configure_input=
26169 else
26170 configure_input="$ac_file. "
26172 configure_input=$configure_input"Generated from `echo $ac_file_in |
26173 sed 's,.*/,,'` by configure."
26175 # First look for the input files in the build tree, otherwise in the
26176 # src tree.
26177 ac_file_inputs=`IFS=:
26178 for f in $ac_file_in; do
26179 case $f in
26180 -) echo $tmp/stdin ;;
26181 [\\/$]*)
26182 # Absolute (can't be DOS-style, as IFS=:)
26183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26184 echo "$as_me: error: cannot find input file: $f" >&2;}
26185 { (exit 1); exit 1; }; }
26186 echo "$f";;
26187 *) # Relative
26188 if test -f "$f"; then
26189 # Build tree
26190 echo "$f"
26191 elif test -f "$srcdir/$f"; then
26192 # Source tree
26193 echo "$srcdir/$f"
26194 else
26195 # /dev/null tree
26196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26197 echo "$as_me: error: cannot find input file: $f" >&2;}
26198 { (exit 1); exit 1; }; }
26199 fi;;
26200 esac
26201 done` || { (exit 1); exit 1; }
26202 _ACEOF
26203 cat >>$CONFIG_STATUS <<_ACEOF
26204 sed "$ac_vpsub
26205 $extrasub
26206 _ACEOF
26207 cat >>$CONFIG_STATUS <<\_ACEOF
26209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26210 s,@configure_input@,$configure_input,;t t
26211 s,@srcdir@,$ac_srcdir,;t t
26212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26213 s,@top_srcdir@,$ac_top_srcdir,;t t
26214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26215 s,@builddir@,$ac_builddir,;t t
26216 s,@abs_builddir@,$ac_abs_builddir,;t t
26217 s,@top_builddir@,$ac_top_builddir,;t t
26218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26219 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26220 rm -f $tmp/stdin
26221 if test x"$ac_file" != x-; then
26222 mv $tmp/out $ac_file
26223 else
26224 cat $tmp/out
26225 rm -f $tmp/out
26228 done
26229 _ACEOF
26230 cat >>$CONFIG_STATUS <<\_ACEOF
26233 # CONFIG_HEADER section.
26236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26239 # ac_d sets the value in "#define NAME VALUE" lines.
26240 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26241 ac_dB='[ ].*$,\1#\2'
26242 ac_dC=' '
26243 ac_dD=',;t'
26244 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26245 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26246 ac_uB='$,\1#\2define\3'
26247 ac_uC=' '
26248 ac_uD=',;t'
26250 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26252 case $ac_file in
26253 - | *:- | *:-:* ) # input from stdin
26254 cat >$tmp/stdin
26255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26259 * ) ac_file_in=$ac_file.in ;;
26260 esac
26262 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26263 echo "$as_me: creating $ac_file" >&6;}
26265 # First look for the input files in the build tree, otherwise in the
26266 # src tree.
26267 ac_file_inputs=`IFS=:
26268 for f in $ac_file_in; do
26269 case $f in
26270 -) echo $tmp/stdin ;;
26271 [\\/$]*)
26272 # Absolute (can't be DOS-style, as IFS=:)
26273 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26274 echo "$as_me: error: cannot find input file: $f" >&2;}
26275 { (exit 1); exit 1; }; }
26276 # Do quote $f, to prevent DOS paths from being IFS'd.
26277 echo "$f";;
26278 *) # Relative
26279 if test -f "$f"; then
26280 # Build tree
26281 echo "$f"
26282 elif test -f "$srcdir/$f"; then
26283 # Source tree
26284 echo "$srcdir/$f"
26285 else
26286 # /dev/null tree
26287 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26288 echo "$as_me: error: cannot find input file: $f" >&2;}
26289 { (exit 1); exit 1; }; }
26290 fi;;
26291 esac
26292 done` || { (exit 1); exit 1; }
26293 # Remove the trailing spaces.
26294 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26296 _ACEOF
26298 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26299 # `conftest.undefs', that substitutes the proper values into
26300 # config.h.in to produce config.h. The first handles `#define'
26301 # templates, and the second `#undef' templates.
26302 # And first: Protect against being on the right side of a sed subst in
26303 # config.status. Protect against being in an unquoted here document
26304 # in config.status.
26305 rm -f conftest.defines conftest.undefs
26306 # Using a here document instead of a string reduces the quoting nightmare.
26307 # Putting comments in sed scripts is not portable.
26309 # `end' is used to avoid that the second main sed command (meant for
26310 # 0-ary CPP macros) applies to n-ary macro definitions.
26311 # See the Autoconf documentation for `clear'.
26312 cat >confdef2sed.sed <<\_ACEOF
26313 s/[\\&,]/\\&/g
26314 s,[\\$`],\\&,g
26315 t clear
26316 : clear
26317 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26318 t end
26319 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26320 : end
26321 _ACEOF
26322 # If some macros were called several times there might be several times
26323 # the same #defines, which is useless. Nevertheless, we may not want to
26324 # sort them, since we want the *last* AC-DEFINE to be honored.
26325 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26326 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26327 rm -f confdef2sed.sed
26329 # This sed command replaces #undef with comments. This is necessary, for
26330 # example, in the case of _POSIX_SOURCE, which is predefined and required
26331 # on some systems where configure will not decide to define it.
26332 cat >>conftest.undefs <<\_ACEOF
26333 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26334 _ACEOF
26336 # Break up conftest.defines because some shells have a limit on the size
26337 # of here documents, and old seds have small limits too (100 cmds).
26338 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26339 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26340 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26341 echo ' :' >>$CONFIG_STATUS
26342 rm -f conftest.tail
26343 while grep . conftest.defines >/dev/null
26345 # Write a limited-size here document to $tmp/defines.sed.
26346 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26347 # Speed up: don't consider the non `#define' lines.
26348 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26349 # Work around the forget-to-reset-the-flag bug.
26350 echo 't clr' >>$CONFIG_STATUS
26351 echo ': clr' >>$CONFIG_STATUS
26352 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26353 echo 'CEOF
26354 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26355 rm -f $tmp/in
26356 mv $tmp/out $tmp/in
26357 ' >>$CONFIG_STATUS
26358 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26359 rm -f conftest.defines
26360 mv conftest.tail conftest.defines
26361 done
26362 rm -f conftest.defines
26363 echo ' fi # grep' >>$CONFIG_STATUS
26364 echo >>$CONFIG_STATUS
26366 # Break up conftest.undefs because some shells have a limit on the size
26367 # of here documents, and old seds have small limits too (100 cmds).
26368 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26369 rm -f conftest.tail
26370 while grep . conftest.undefs >/dev/null
26372 # Write a limited-size here document to $tmp/undefs.sed.
26373 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26374 # Speed up: don't consider the non `#undef'
26375 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26376 # Work around the forget-to-reset-the-flag bug.
26377 echo 't clr' >>$CONFIG_STATUS
26378 echo ': clr' >>$CONFIG_STATUS
26379 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26380 echo 'CEOF
26381 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26382 rm -f $tmp/in
26383 mv $tmp/out $tmp/in
26384 ' >>$CONFIG_STATUS
26385 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26386 rm -f conftest.undefs
26387 mv conftest.tail conftest.undefs
26388 done
26389 rm -f conftest.undefs
26391 cat >>$CONFIG_STATUS <<\_ACEOF
26392 # Let's still pretend it is `configure' which instantiates (i.e., don't
26393 # use $as_me), people would be surprised to read:
26394 # /* config.h. Generated by config.status. */
26395 if test x"$ac_file" = x-; then
26396 echo "/* Generated by configure. */" >$tmp/config.h
26397 else
26398 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26400 cat $tmp/in >>$tmp/config.h
26401 rm -f $tmp/in
26402 if test x"$ac_file" != x-; then
26403 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26404 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26405 echo "$as_me: $ac_file is unchanged" >&6;}
26406 else
26407 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26409 X"$ac_file" : 'X\(//\)[^/]' \| \
26410 X"$ac_file" : 'X\(//\)$' \| \
26411 X"$ac_file" : 'X\(/\)' \| \
26412 . : '\(.\)' 2>/dev/null ||
26413 echo X"$ac_file" |
26414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26416 /^X\(\/\/\)$/{ s//\1/; q; }
26417 /^X\(\/\).*/{ s//\1/; q; }
26418 s/.*/./; q'`
26419 { if $as_mkdir_p; then
26420 mkdir -p "$ac_dir"
26421 else
26422 as_dir="$ac_dir"
26423 as_dirs=
26424 while test ! -d "$as_dir"; do
26425 as_dirs="$as_dir $as_dirs"
26426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26428 X"$as_dir" : 'X\(//\)[^/]' \| \
26429 X"$as_dir" : 'X\(//\)$' \| \
26430 X"$as_dir" : 'X\(/\)' \| \
26431 . : '\(.\)' 2>/dev/null ||
26432 echo X"$as_dir" |
26433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26435 /^X\(\/\/\)$/{ s//\1/; q; }
26436 /^X\(\/\).*/{ s//\1/; q; }
26437 s/.*/./; q'`
26438 done
26439 test ! -n "$as_dirs" || mkdir $as_dirs
26440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26442 { (exit 1); exit 1; }; }; }
26444 rm -f $ac_file
26445 mv $tmp/config.h $ac_file
26447 else
26448 cat $tmp/config.h
26449 rm -f $tmp/config.h
26451 # Run the commands associated with the file.
26452 case $ac_file in
26453 src/include/pg_config.h )
26454 # Update timestamp for pg_config.h (see Makefile.global)
26455 echo >src/include/stamp-h
26457 esac
26458 done
26459 _ACEOF
26460 cat >>$CONFIG_STATUS <<\_ACEOF
26463 # CONFIG_LINKS section.
26466 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26467 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26468 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26470 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26471 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26473 if test ! -r $srcdir/$ac_source; then
26474 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26475 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26476 { (exit 1); exit 1; }; }
26478 rm -f $ac_dest
26480 # Make relative symlinks.
26481 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26482 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26483 X"$ac_dest" : 'X\(//\)[^/]' \| \
26484 X"$ac_dest" : 'X\(//\)$' \| \
26485 X"$ac_dest" : 'X\(/\)' \| \
26486 . : '\(.\)' 2>/dev/null ||
26487 echo X"$ac_dest" |
26488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26490 /^X\(\/\/\)$/{ s//\1/; q; }
26491 /^X\(\/\).*/{ s//\1/; q; }
26492 s/.*/./; q'`
26493 { if $as_mkdir_p; then
26494 mkdir -p "$ac_dest_dir"
26495 else
26496 as_dir="$ac_dest_dir"
26497 as_dirs=
26498 while test ! -d "$as_dir"; do
26499 as_dirs="$as_dir $as_dirs"
26500 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26502 X"$as_dir" : 'X\(//\)[^/]' \| \
26503 X"$as_dir" : 'X\(//\)$' \| \
26504 X"$as_dir" : 'X\(/\)' \| \
26505 . : '\(.\)' 2>/dev/null ||
26506 echo X"$as_dir" |
26507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26509 /^X\(\/\/\)$/{ s//\1/; q; }
26510 /^X\(\/\).*/{ s//\1/; q; }
26511 s/.*/./; q'`
26512 done
26513 test ! -n "$as_dirs" || mkdir $as_dirs
26514 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26515 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26516 { (exit 1); exit 1; }; }; }
26518 ac_builddir=.
26520 if test "$ac_dest_dir" != .; then
26521 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26522 # A "../" for each directory in $ac_dir_suffix.
26523 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26524 else
26525 ac_dir_suffix= ac_top_builddir=
26528 case $srcdir in
26529 .) # No --srcdir option. We are building in place.
26530 ac_srcdir=.
26531 if test -z "$ac_top_builddir"; then
26532 ac_top_srcdir=.
26533 else
26534 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26535 fi ;;
26536 [\\/]* | ?:[\\/]* ) # Absolute path.
26537 ac_srcdir=$srcdir$ac_dir_suffix;
26538 ac_top_srcdir=$srcdir ;;
26539 *) # Relative path.
26540 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26541 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26542 esac
26544 # Do not use `cd foo && pwd` to compute absolute paths, because
26545 # the directories may not exist.
26546 case `pwd` in
26547 .) ac_abs_builddir="$ac_dest_dir";;
26549 case "$ac_dest_dir" in
26550 .) ac_abs_builddir=`pwd`;;
26551 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26552 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26553 esac;;
26554 esac
26555 case $ac_abs_builddir in
26556 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26558 case ${ac_top_builddir}. in
26559 .) ac_abs_top_builddir=$ac_abs_builddir;;
26560 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26561 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26562 esac;;
26563 esac
26564 case $ac_abs_builddir in
26565 .) ac_abs_srcdir=$ac_srcdir;;
26567 case $ac_srcdir in
26568 .) ac_abs_srcdir=$ac_abs_builddir;;
26569 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26570 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26571 esac;;
26572 esac
26573 case $ac_abs_builddir in
26574 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26576 case $ac_top_srcdir in
26577 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26578 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26579 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26580 esac;;
26581 esac
26584 case $srcdir in
26585 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26586 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26587 esac
26589 # Try a symlink, then a hard link, then a copy.
26590 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26591 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26592 cp -p $srcdir/$ac_source $ac_dest ||
26593 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26594 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26595 { (exit 1); exit 1; }; }
26596 done
26597 _ACEOF
26598 cat >>$CONFIG_STATUS <<\_ACEOF
26601 # CONFIG_COMMANDS section.
26603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26604 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26605 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26606 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26608 X"$ac_dest" : 'X\(//\)[^/]' \| \
26609 X"$ac_dest" : 'X\(//\)$' \| \
26610 X"$ac_dest" : 'X\(/\)' \| \
26611 . : '\(.\)' 2>/dev/null ||
26612 echo X"$ac_dest" |
26613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26615 /^X\(\/\/\)$/{ s//\1/; q; }
26616 /^X\(\/\).*/{ s//\1/; q; }
26617 s/.*/./; q'`
26618 { if $as_mkdir_p; then
26619 mkdir -p "$ac_dir"
26620 else
26621 as_dir="$ac_dir"
26622 as_dirs=
26623 while test ! -d "$as_dir"; do
26624 as_dirs="$as_dir $as_dirs"
26625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26627 X"$as_dir" : 'X\(//\)[^/]' \| \
26628 X"$as_dir" : 'X\(//\)$' \| \
26629 X"$as_dir" : 'X\(/\)' \| \
26630 . : '\(.\)' 2>/dev/null ||
26631 echo X"$as_dir" |
26632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26634 /^X\(\/\/\)$/{ s//\1/; q; }
26635 /^X\(\/\).*/{ s//\1/; q; }
26636 s/.*/./; q'`
26637 done
26638 test ! -n "$as_dirs" || mkdir $as_dirs
26639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26641 { (exit 1); exit 1; }; }; }
26643 ac_builddir=.
26645 if test "$ac_dir" != .; then
26646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26647 # A "../" for each directory in $ac_dir_suffix.
26648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26649 else
26650 ac_dir_suffix= ac_top_builddir=
26653 case $srcdir in
26654 .) # No --srcdir option. We are building in place.
26655 ac_srcdir=.
26656 if test -z "$ac_top_builddir"; then
26657 ac_top_srcdir=.
26658 else
26659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26660 fi ;;
26661 [\\/]* | ?:[\\/]* ) # Absolute path.
26662 ac_srcdir=$srcdir$ac_dir_suffix;
26663 ac_top_srcdir=$srcdir ;;
26664 *) # Relative path.
26665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26667 esac
26669 # Do not use `cd foo && pwd` to compute absolute paths, because
26670 # the directories may not exist.
26671 case `pwd` in
26672 .) ac_abs_builddir="$ac_dir";;
26674 case "$ac_dir" in
26675 .) ac_abs_builddir=`pwd`;;
26676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26678 esac;;
26679 esac
26680 case $ac_abs_builddir in
26681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26683 case ${ac_top_builddir}. in
26684 .) ac_abs_top_builddir=$ac_abs_builddir;;
26685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26687 esac;;
26688 esac
26689 case $ac_abs_builddir in
26690 .) ac_abs_srcdir=$ac_srcdir;;
26692 case $ac_srcdir in
26693 .) ac_abs_srcdir=$ac_abs_builddir;;
26694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26696 esac;;
26697 esac
26698 case $ac_abs_builddir in
26699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26701 case $ac_top_srcdir in
26702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26705 esac;;
26706 esac
26709 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26710 echo "$as_me: executing $ac_dest commands" >&6;}
26711 case $ac_dest in
26712 check_win32_symlinks )
26713 # Links sometimes fail undetected on Mingw -
26714 # so here we detect it and warn the user
26715 for FILE in $CONFIG_LINKS
26717 # test -e works for symlinks in the MinGW console
26718 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26719 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26720 done
26722 esac
26723 done
26724 _ACEOF
26726 cat >>$CONFIG_STATUS <<\_ACEOF
26728 { (exit 0); exit 0; }
26729 _ACEOF
26730 chmod +x $CONFIG_STATUS
26731 ac_clean_files=$ac_clean_files_save
26734 # configure is writing to config.log, and then calls config.status.
26735 # config.status does its own redirection, appending to config.log.
26736 # Unfortunately, on DOS this fails, as config.log is still kept open
26737 # by configure, so config.status won't be able to write to it; its
26738 # output is simply discarded. So we exec the FD to /dev/null,
26739 # effectively closing config.log, so it can be properly (re)opened and
26740 # appended to by config.status. When coming back to configure, we
26741 # need to make the FD available again.
26742 if test "$no_create" != yes; then
26743 ac_cs_success=:
26744 ac_config_status_args=
26745 test "$silent" = yes &&
26746 ac_config_status_args="$ac_config_status_args --quiet"
26747 exec 5>/dev/null
26748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26749 exec 5>>config.log
26750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26751 # would make configure fail if this is the last instruction.
26752 $ac_cs_success || { (exit 1); exit 1; }
26756 # Warn about unknown options
26757 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26758 for pgac_arg in $pgac_args with_gnu_ld; do
26759 if test "$pgac_var" = "$pgac_arg"; then
26760 continue 2
26762 done
26763 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
26764 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26765 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
26766 done