]> granicus.if.org Git - postgresql/blob - configure
Add pgrowlocks
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
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.
10 #
11 # Copyright (c) 1996-2006, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
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
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
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
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
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
47 do
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
52   fi
53 done
54
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
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
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'`
80
81
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
89
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=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
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
115 do
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
120
121        ;;
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
127   fi
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; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
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
141          /*)
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
157 ;;
158   esac
159
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 '
170       N
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; }; }
181
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
188 }
189
190
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
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
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'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
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
227 fi
228
229 as_executable_p="test -f"
230
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'"
233
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'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
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`
252
253 exec 6>&1
254
255 #
256 # Initializations.
257 #
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}
265
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}
270
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
277
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"
316
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS 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=''
319
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
339
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'
357
358 ac_prev=
359 for ac_option
360 do
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
366   fi
367
368   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370   # Accept the important Cygnus configure options, so we can diagnose typos.
371
372   case $ac_option in
373
374   -bindir | --bindir | --bindi | --bind | --bin | --bi)
375     ac_prev=bindir ;;
376   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377     bindir=$ac_optarg ;;
378
379   -build | --build | --buil | --bui | --bu)
380     ac_prev=build_alias ;;
381   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382     build_alias=$ac_optarg ;;
383
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 ;;
390
391   --config-cache | -C)
392     cache_file=config.cache ;;
393
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 ;;
399
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" ;;
408
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'" ;;
421
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 ;;
430
431   -gas | --gas | --ga | --g)
432     # Obsolete; use --with-gas.
433     with_gas=yes ;;
434
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 ;;
441
442   -host | --host | --hos | --ho)
443     ac_prev=host_alias ;;
444   -host=* | --host=* | --hos=* | --ho=*)
445     host_alias=$ac_optarg ;;
446
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 ;;
453
454   -infodir | --infodir | --infodi | --infod | --info | --inf)
455     ac_prev=infodir ;;
456   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457     infodir=$ac_optarg ;;
458
459   -libdir | --libdir | --libdi | --libd)
460     ac_prev=libdir ;;
461   -libdir=* | --libdir=* | --libdi=* | --libd=*)
462     libdir=$ac_optarg ;;
463
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 ;;
470
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 ;;
479
480   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481     ac_prev=mandir ;;
482   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483     mandir=$ac_optarg ;;
484
485   -nfp | --nfp | --nf)
486     # Obsolete; use --without-fp.
487     with_fp=no ;;
488
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c | -n)
491     no_create=yes ;;
492
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 ;;
496
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 ;;
505
506   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507     ac_prev=prefix ;;
508   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509     prefix=$ac_optarg ;;
510
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 ;;
517
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 ;;
524
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 ;;
541
542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543   | -silent | --silent | --silen | --sile | --sil)
544     silent=yes ;;
545
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 ;;
551
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 ;;
562
563   -site | --site | --sit)
564     ac_prev=site ;;
565   -site=* | --site=* | --sit=*)
566     site=$ac_optarg ;;
567
568   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569     ac_prev=srcdir ;;
570   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571     srcdir=$ac_optarg ;;
572
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 ;;
579
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 ;;
584
585   -v | -verbose | --verbose | --verbos | --verbo | --verb)
586     verbose=yes ;;
587
588   -version | --version | --versio | --versi | --vers | -V)
589     ac_init_version=: ;;
590
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'" ;;
603
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" ;;
612
613   --x)
614     # Obsolete; use --with-x.
615     with_x=yes ;;
616
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 ;;
623
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 ;;
630
631   -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633    { (exit 1); exit 1; }; }
634     ;;
635
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 ;;
645
646   *)
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}
652     ;;
653
654   esac
655 done
656
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; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
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
673
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
677 do
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
685
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
692
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
701   fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
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=..
729   fi
730 else
731   ac_srcdir_defaulted=no
732 fi
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; }; }
740   fi
741 fi
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
786
787 #
788 # Report the --help message.
789 #
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.2devel to adapt to many kinds of systems.
795
796 Usage: $0 [OPTION]... [VAR=VALUE]...
797
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.
800
801 Defaults for the options are specified in brackets.
802
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 \`..']
813
814 _ACEOF
815
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]
822
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'.
827
828 For better control, use the options below.
829
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
844
845   cat <<\_ACEOF
846
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
851 fi
852
853 if test -n "$ac_init_help"; then
854   case $ac_init_help in
855      short | recursive ) echo "Configuration of PostgreSQL 8.2devel:";;
856    esac
857   cat <<\_ACEOF
858
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-depend         turn on automatic dependency tracking
869   --enable-cassert        enable assertion checks (for debugging)
870   --enable-thread-safety  make client libraries thread-safe
871   --enable-thread-safety-force  force thread-safety in spite of thread test failure
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877
878   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
879   --without-docdir        do not install the documentation
880   --with-includes=DIRS    look for additional header files in DIRS
881   --with-libraries=DIRS   look for additional libraries in DIRS
882   --with-libs=DIRS        alternative spelling of --with-libraries
883   --with-pgport=PORTNUM   change default port number [5432]
884   --with-tcl              build Tcl modules (PL/Tcl)
885   --with-tclconfig=DIR    tclConfig.sh is in DIR
886   --with-perl             build Perl modules (PL/Perl)
887   --with-python           build Python modules (PL/Python)
888   --with-krb5             build with Kerberos 5 support
889   --with-krb-srvnam=NAME  name of the default service principal in Kerberos [postgres]
890   --with-pam              build with PAM support
891   --with-ldap             build with LDAP support
892   --with-bonjour          build with Bonjour support
893   --with-openssl          build with OpenSSL support
894   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
895   --without-readline      do not use GNU Readline / BSD Libedit line editing
896   --without-zlib          do not use Zlib
897   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
898
899 Some influential environment variables:
900   CC          C compiler command
901   CFLAGS      C compiler flags
902   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903               nonstandard directory <lib dir>
904   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905               headers in a nonstandard directory <include dir>
906   CPP         C preprocessor
907   LDFLAGS_SL
908   DOCBOOKSTYLE
909               location of DocBook stylesheets
910
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
913
914 Report bugs to <pgsql-bugs@postgresql.org>.
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919   # If there are subdirs, report their specific --help.
920   ac_popdir=`pwd`
921   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922     test -d $ac_dir || continue
923     ac_builddir=.
924
925 if test "$ac_dir" != .; then
926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927   # A "../" for each directory in $ac_dir_suffix.
928   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930   ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934   .)  # No --srcdir option.  We are building in place.
935     ac_srcdir=.
936     if test -z "$ac_top_builddir"; then
937        ac_top_srcdir=.
938     else
939        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940     fi ;;
941   [\\/]* | ?:[\\/]* )  # Absolute path.
942     ac_srcdir=$srcdir$ac_dir_suffix;
943     ac_top_srcdir=$srcdir ;;
944   *) # Relative path.
945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954   case "$ac_dir" in
955   .) ac_abs_builddir=`pwd`;;
956   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957   *) ac_abs_builddir=`pwd`/"$ac_dir";;
958   esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963   case ${ac_top_builddir}. in
964   .) ac_abs_top_builddir=$ac_abs_builddir;;
965   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967   esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972   case $ac_srcdir in
973   .) ac_abs_srcdir=$ac_abs_builddir;;
974   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976   esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981   case $ac_top_srcdir in
982   .) ac_abs_top_srcdir=$ac_abs_builddir;;
983   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985   esac;;
986 esac
987
988     cd $ac_dir
989     # Check for guested configure; otherwise get Cygnus style configure.
990     if test -f $ac_srcdir/configure.gnu; then
991       echo
992       $SHELL $ac_srcdir/configure.gnu  --help=recursive
993     elif test -f $ac_srcdir/configure; then
994       echo
995       $SHELL $ac_srcdir/configure  --help=recursive
996     elif test -f $ac_srcdir/configure.ac ||
997            test -f $ac_srcdir/configure.in; then
998       echo
999       $ac_configure --help
1000     else
1001       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002     fi
1003     cd $ac_popdir
1004   done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009   cat <<\_ACEOF
1010 PostgreSQL configure 8.2devel
1011 generated by GNU Autoconf 2.59
1012
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016
1017 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1018 _ACEOF
1019   exit 0
1020 fi
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1025
1026 It was created by PostgreSQL $as_me 8.2devel, which was
1027 generated by GNU Autoconf 2.59.  Invocation command line was
1028
1029   $ $0 $@
1030
1031 _ACEOF
1032 {
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1037
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1046
1047 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1048 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1051 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1052 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1053 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1054
1055 _ASUNAME
1056
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1059 do
1060   IFS=$as_save_IFS
1061   test -z "$as_dir" && as_dir=.
1062   echo "PATH: $as_dir"
1063 done
1064
1065 } >&5
1066
1067 cat >&5 <<_ACEOF
1068
1069
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1073
1074 _ACEOF
1075
1076
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1088 do
1089   for ac_arg
1090   do
1091     case $ac_arg in
1092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094     | -silent | --silent | --silen | --sile | --sil)
1095       continue ;;
1096     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098     esac
1099     case $ac_pass in
1100     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101     2)
1102       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103       if test $ac_must_keep_next = true; then
1104         ac_must_keep_next=false # Got value, back to normal.
1105       else
1106         case $ac_arg in
1107           *=* | --config-cache | -C | -disable-* | --disable-* \
1108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110           | -with-* | --with-* | -without-* | --without-* | --x)
1111             case "$ac_configure_args0 " in
1112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113             esac
1114             ;;
1115           -* ) ac_must_keep_next=true ;;
1116         esac
1117       fi
1118       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119       # Get rid of the leading space.
1120       ac_sep=" "
1121       ;;
1122     esac
1123   done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log.  We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134   # Save into config.log some information that might help in debugging.
1135   {
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143     echo
1144     # The following way of writing the cache mishandles newlines in values,
1145 {
1146   (set) 2>&1 |
1147     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148     *ac_space=\ *)
1149       sed -n \
1150         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152       ;;
1153     *)
1154       sed -n \
1155         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156       ;;
1157     esac;
1158 }
1159     echo
1160
1161     cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166     echo
1167     for ac_var in $ac_subst_vars
1168     do
1169       eval ac_val=$`echo $ac_var`
1170       echo "$ac_var='"'"'$ac_val'"'"'"
1171     done | sort
1172     echo
1173
1174     if test -n "$ac_subst_files"; then
1175       cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180       echo
1181       for ac_var in $ac_subst_files
1182       do
1183         eval ac_val=$`echo $ac_var`
1184         echo "$ac_var='"'"'$ac_val'"'"'"
1185       done | sort
1186       echo
1187     fi
1188
1189     if test -s confdefs.h; then
1190       cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195       echo
1196       sed "/^$/d" confdefs.h | sort
1197       echo
1198     fi
1199     test "$ac_signal" != 0 &&
1200       echo "$as_me: caught signal $ac_signal"
1201     echo "$as_me: exit $exit_status"
1202   } >&5
1203   rm -f core *.core &&
1204   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205     exit $exit_status
1206      ' 0
1207 for ac_signal in 1 2 13 15; do
1208   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1211
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1216
1217 # Predefined preprocessor variables.
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1242
1243
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247   if test "x$prefix" != xNONE; then
1248     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249   else
1250     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251   fi
1252 fi
1253 for ac_site_file in $CONFIG_SITE; do
1254   if test -r "$ac_site_file"; then
1255     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257     sed 's/^/| /' "$ac_site_file" >&5
1258     . "$ac_site_file"
1259   fi
1260 done
1261
1262 if test -r "$cache_file"; then
1263   # Some versions of bash will fail to source /dev/null (special
1264   # files actually), so we avoid doing that.
1265   if test -f "$cache_file"; then
1266     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268     case $cache_file in
1269       [\\/]* | ?:[\\/]* ) . $cache_file;;
1270       *)                      . ./$cache_file;;
1271     esac
1272   fi
1273 else
1274   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276   >$cache_file
1277 fi
1278
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285   eval ac_new_set=\$ac_env_${ac_var}_set
1286   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287   eval ac_new_val="\$ac_env_${ac_var}_value"
1288   case $ac_old_set,$ac_new_set in
1289     set,)
1290       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292       ac_cache_corrupted=: ;;
1293     ,set)
1294       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296       ac_cache_corrupted=: ;;
1297     ,);;
1298     *)
1299       if test "x$ac_old_val" != "x$ac_new_val"; then
1300         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1303 echo "$as_me:   former value:  $ac_old_val" >&2;}
1304         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1305 echo "$as_me:   current value: $ac_new_val" >&2;}
1306         ac_cache_corrupted=:
1307       fi;;
1308   esac
1309   # Pass precious variables to config.status.
1310   if test "$ac_new_set" = set; then
1311     case $ac_new_val in
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     *) ac_arg=$ac_var=$ac_new_val ;;
1315     esac
1316     case " $ac_configure_args " in
1317       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1318       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319     esac
1320   fi
1321 done
1322 if $ac_cache_corrupted; then
1323   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in config $srcdir/config; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391
1392 configure_args=$ac_configure_args
1393
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PG_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405    { (exit 1); exit 1; }; }
1406
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414   ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418    { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440   ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444    { (exit 1); exit 1; }; }
1445
1446 fi
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1449 host=$ac_cv_host
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455
1456 template=
1457 echo "$as_me:$LINENO: checking which template to use" >&5
1458 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1459
1460
1461
1462
1463 # Check whether --with-template or --without-template was given.
1464 if test "${with_template+set}" = set; then
1465   withval="$with_template"
1466
1467   case $withval in
1468     yes)
1469       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1470 echo "$as_me: error: argument required for --with-template option" >&2;}
1471    { (exit 1); exit 1; }; }
1472       ;;
1473     no)
1474       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1475 echo "$as_me: error: argument required for --with-template option" >&2;}
1476    { (exit 1); exit 1; }; }
1477       ;;
1478     *)
1479
1480   case $withval in
1481     list)   echo; ls "$srcdir/src/template"; exit;;
1482     *)      if test -f "$srcdir/src/template/$with_template" ; then
1483               template=$withval
1484             else
1485               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1486 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1487    { (exit 1); exit 1; }; }
1488             fi;;
1489   esac
1490
1491       ;;
1492   esac
1493
1494 else
1495
1496 # --with-template not given
1497
1498 case $host_os in
1499      aix*) template=aix ;;
1500     bsdi*) template=bsdi ;;
1501   cygwin*) template=cygwin ;;
1502   darwin*) template=darwin ;;
1503     dgux*) template=dgux ;;
1504  freebsd*) template=freebsd ;;
1505     hpux*) template=hpux ;;
1506     irix*) template=irix ;;
1507  linux*|gnu*|k*bsd*-gnu)
1508            template=linux ;;
1509    mingw*) template=win32 ;;
1510   netbsd*) template=netbsd ;;
1511 nextstep*) template=nextstep ;;
1512  openbsd*) template=openbsd ;;
1513      osf*) template=osf ;;
1514      sco*) template=sco ;;
1515  solaris*) template=solaris ;;
1516    sunos*) template=sunos4 ;;
1517  sysv4.2*)
1518         case $host_vendor in
1519           univel) template=univel ;;
1520         esac ;;
1521    sysv4*) template=svr4 ;;
1522    sysv5*) template=unixware ;;
1523   ultrix*) template=ultrix4 ;;
1524 esac
1525
1526   if test x"$template" = x"" ; then
1527     { { echo "$as_me:$LINENO: error:
1528 *******************************************************************
1529 PostgreSQL has apparently not been ported to your platform yet.
1530 To try a manual configuration, look into the src/template directory
1531 for a similar platform and use the '--with-template=' option.
1532
1533 Please also contact <pgsql-ports@postgresql.org> to see about
1534 rectifying this.  Include the above 'checking host system type...'
1535 line.
1536 *******************************************************************
1537 " >&5
1538 echo "$as_me: error:
1539 *******************************************************************
1540 PostgreSQL has apparently not been ported to your platform yet.
1541 To try a manual configuration, look into the src/template directory
1542 for a similar platform and use the '--with-template=' option.
1543
1544 Please also contact <pgsql-ports@postgresql.org> to see about
1545 rectifying this.  Include the above 'checking host system type...'
1546 line.
1547 *******************************************************************
1548 " >&2;}
1549    { (exit 1); exit 1; }; }
1550   fi
1551
1552
1553 fi;
1554
1555
1556 echo "$as_me:$LINENO: result: $template" >&5
1557 echo "${ECHO_T}$template" >&6
1558
1559 PORTNAME=$template
1560
1561
1562 # Initialize default assumption that we do not need separate assembly code
1563 # for TAS (test-and-set).  This can be overridden by the template file
1564 # when it's executed.
1565 need_tas=no
1566 tas_file=dummy.s
1567
1568
1569
1570 ##
1571 ## Command line options
1572 ##
1573
1574 #
1575 # Installation directory for documentation
1576 #
1577
1578
1579
1580 # Check whether --with-docdir or --without-docdir was given.
1581 if test "${with_docdir+set}" = set; then
1582   withval="$with_docdir"
1583
1584   case $withval in
1585     yes)
1586       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1587 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1588    { (exit 1); exit 1; }; }
1589       ;;
1590     no)
1591       docdir=
1592       ;;
1593     *)
1594       docdir=$withval
1595       ;;
1596   esac
1597
1598 else
1599   docdir='${prefix}/doc'
1600 fi;
1601
1602
1603
1604
1605 #
1606 # Add non-standard directories to the include path
1607 #
1608
1609
1610
1611 # Check whether --with-includes or --without-includes was given.
1612 if test "${with_includes+set}" = set; then
1613   withval="$with_includes"
1614
1615   case $withval in
1616     yes)
1617       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1618 echo "$as_me: error: argument required for --with-includes option" >&2;}
1619    { (exit 1); exit 1; }; }
1620       ;;
1621     no)
1622       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1623 echo "$as_me: error: argument required for --with-includes option" >&2;}
1624    { (exit 1); exit 1; }; }
1625       ;;
1626     *)
1627
1628       ;;
1629   esac
1630
1631 fi;
1632
1633
1634
1635 #
1636 # Add non-standard directories to the library search path
1637 #
1638
1639
1640
1641 # Check whether --with-libraries or --without-libraries was given.
1642 if test "${with_libraries+set}" = set; then
1643   withval="$with_libraries"
1644
1645   case $withval in
1646     yes)
1647       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1648 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1649    { (exit 1); exit 1; }; }
1650       ;;
1651     no)
1652       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654    { (exit 1); exit 1; }; }
1655       ;;
1656     *)
1657       LIBRARY_DIRS=$withval
1658       ;;
1659   esac
1660
1661 fi;
1662
1663
1664
1665
1666
1667 # Check whether --with-libs or --without-libs was given.
1668 if test "${with_libs+set}" = set; then
1669   withval="$with_libs"
1670
1671   case $withval in
1672     yes)
1673       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1674 echo "$as_me: error: argument required for --with-libs option" >&2;}
1675    { (exit 1); exit 1; }; }
1676       ;;
1677     no)
1678       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1679 echo "$as_me: error: argument required for --with-libs option" >&2;}
1680    { (exit 1); exit 1; }; }
1681       ;;
1682     *)
1683       LIBRARY_DIRS=$withval
1684       ;;
1685   esac
1686
1687 fi;
1688
1689
1690
1691 #
1692 # 64-bit integer date/time storage (--enable-integer-datetimes)
1693 #
1694 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1695 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1696
1697
1698 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1699 if test "${enable_integer_datetimes+set}" = set; then
1700   enableval="$enable_integer_datetimes"
1701
1702   case $enableval in
1703     yes)
1704
1705 cat >>confdefs.h <<\_ACEOF
1706 #define USE_INTEGER_DATETIMES 1
1707 _ACEOF
1708
1709       ;;
1710     no)
1711       :
1712       ;;
1713     *)
1714       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1715 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1716    { (exit 1); exit 1; }; }
1717       ;;
1718   esac
1719
1720 else
1721   enable_integer_datetimes=no
1722
1723 fi;
1724
1725 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1726 echo "${ECHO_T}$enable_integer_datetimes" >&6
1727
1728
1729 #
1730 # NLS
1731 #
1732 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1733 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1734
1735
1736 # Check whether --enable-nls or --disable-nls was given.
1737 if test "${enable_nls+set}" = set; then
1738   enableval="$enable_nls"
1739
1740   case $enableval in
1741     yes)
1742       :
1743       ;;
1744     no)
1745       :
1746       ;;
1747     *)
1748       enable_nls=yes
1749 WANTED_LANGUAGES=$enableval
1750       ;;
1751   esac
1752
1753 else
1754   enable_nls=no
1755 fi;
1756
1757
1758 if test "$enable_nls" = yes; then
1759
1760 cat >>confdefs.h <<\_ACEOF
1761 #define ENABLE_NLS 1
1762 _ACEOF
1763
1764 fi
1765
1766 echo "$as_me:$LINENO: result: $enable_nls" >&5
1767 echo "${ECHO_T}$enable_nls" >&6
1768
1769
1770
1771 #
1772 # Default port number (--with-pgport), default 5432
1773 #
1774 echo "$as_me:$LINENO: checking for default port number" >&5
1775 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1776
1777
1778
1779 # Check whether --with-pgport or --without-pgport was given.
1780 if test "${with_pgport+set}" = set; then
1781   withval="$with_pgport"
1782
1783   case $withval in
1784     yes)
1785       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1786 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1787    { (exit 1); exit 1; }; }
1788       ;;
1789     no)
1790       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1791 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1792    { (exit 1); exit 1; }; }
1793       ;;
1794     *)
1795       default_port=$withval
1796       ;;
1797   esac
1798
1799 else
1800   default_port=5432
1801 fi;
1802
1803 echo "$as_me:$LINENO: result: $default_port" >&5
1804 echo "${ECHO_T}$default_port" >&6
1805 # Need both of these because some places want an integer and some a string
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define DEF_PGPORT ${default_port}
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define DEF_PGPORT_STR "${default_port}"
1814 _ACEOF
1815
1816
1817
1818 #
1819 # Option to disable shared libraries
1820 #
1821
1822
1823 # Check whether --enable-shared or --disable-shared was given.
1824 if test "${enable_shared+set}" = set; then
1825   enableval="$enable_shared"
1826
1827   case $enableval in
1828     yes)
1829       :
1830       ;;
1831     no)
1832       :
1833       ;;
1834     *)
1835       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1836 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1837    { (exit 1); exit 1; }; }
1838       ;;
1839   esac
1840
1841 else
1842   enable_shared=yes
1843
1844 fi;
1845
1846
1847
1848 #
1849 # '-rpath'-like feature can be disabled
1850 #
1851
1852
1853 # Check whether --enable-rpath or --disable-rpath was given.
1854 if test "${enable_rpath+set}" = set; then
1855   enableval="$enable_rpath"
1856
1857   case $enableval in
1858     yes)
1859       :
1860       ;;
1861     no)
1862       :
1863       ;;
1864     *)
1865       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1866 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1867    { (exit 1); exit 1; }; }
1868       ;;
1869   esac
1870
1871 else
1872   enable_rpath=yes
1873
1874 fi;
1875
1876
1877
1878 #
1879 # Spinlocks
1880 #
1881
1882
1883 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1884 if test "${enable_spinlocks+set}" = set; then
1885   enableval="$enable_spinlocks"
1886
1887   case $enableval in
1888     yes)
1889       :
1890       ;;
1891     no)
1892       :
1893       ;;
1894     *)
1895       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1896 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1897    { (exit 1); exit 1; }; }
1898       ;;
1899   esac
1900
1901 else
1902   enable_spinlocks=yes
1903
1904 fi;
1905
1906
1907 #
1908 # --enable-debug adds -g to compiler flags
1909 #
1910
1911
1912 # Check whether --enable-debug or --disable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914   enableval="$enable_debug"
1915
1916   case $enableval in
1917     yes)
1918       :
1919       ;;
1920     no)
1921       :
1922       ;;
1923     *)
1924       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1925 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1926    { (exit 1); exit 1; }; }
1927       ;;
1928   esac
1929
1930 else
1931   enable_debug=no
1932
1933 fi;
1934
1935
1936
1937 #
1938 # C compiler
1939 #
1940
1941 # For historical reasons you can also use --with-CC to specify the C compiler
1942 # to use, although the standard way to do this is to set the CC environment
1943 # variable.
1944
1945
1946
1947 # Check whether --with-CC or --without-CC was given.
1948 if test "${with_CC+set}" = set; then
1949   withval="$with_CC"
1950
1951   case $withval in
1952     yes)
1953       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1954 echo "$as_me: error: argument required for --with-CC option" >&2;}
1955    { (exit 1); exit 1; }; }
1956       ;;
1957     no)
1958       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1959 echo "$as_me: error: argument required for --with-CC option" >&2;}
1960    { (exit 1); exit 1; }; }
1961       ;;
1962     *)
1963       CC=$with_CC
1964       ;;
1965   esac
1966
1967 fi;
1968
1969
1970 case $template in
1971   aix) pgac_cc_list="gcc xlc";;
1972  irix) pgac_cc_list="cc";; # no gcc
1973     *) pgac_cc_list="gcc cc";;
1974 esac
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   for ac_prog in $pgac_cc_list
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012   echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015   echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019     test -n "$CC" && break
2020   done
2021 fi
2022 if test -z "$CC"; then
2023   ac_ct_CC=$CC
2024   for ac_prog in $pgac_cc_list
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$ac_ct_CC"; then
2034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043     ac_cv_prog_ac_ct_CC="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049
2050 fi
2051 fi
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2056 else
2057   echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2059 fi
2060
2061   test -n "$ac_ct_CC" && break
2062 done
2063
2064   CC=$ac_ct_CC
2065 fi
2066
2067
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072    { (exit 1); exit 1; }; }
2073
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO:" \
2076      "checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2079   (eval $ac_compiler --version </dev/null >&5) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2084   (eval $ac_compiler -v </dev/null >&5) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2089   (eval $ac_compiler -V </dev/null >&5) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093
2094 cat >conftest.$ac_ext <<_ACEOF
2095 /* confdefs.h.  */
2096 _ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h.  */
2100
2101 int
2102 main ()
2103 {
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 ac_clean_files_save=$ac_clean_files
2110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111 # Try to create an executable without -o first, disregard a.out.
2112 # It will help us diagnose broken compilers, and finding out an intuition
2113 # of exeext.
2114 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2118   (eval $ac_link_default) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; then
2122   # Find the output, starting from the most likely.  This scheme is
2123 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2124 # resort.
2125
2126 # Be careful to initialize this variable, since it used to be cached.
2127 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2128 ac_cv_exeext=
2129 # b.out is created by i960 compilers.
2130 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2131 do
2132   test -f "$ac_file" || continue
2133   case $ac_file in
2134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2135         ;;
2136     conftest.$ac_ext )
2137         # This is the source file.
2138         ;;
2139     [ab].out )
2140         # We found the default executable, but exeext='' is most
2141         # certainly right.
2142         break;;
2143     *.* )
2144         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145         # FIXME: I believe we export ac_cv_exeext for Libtool,
2146         # but it would be cool to find out if it's true.  Does anybody
2147         # maintain Libtool? --akim.
2148         export ac_cv_exeext
2149         break;;
2150     * )
2151         break;;
2152   esac
2153 done
2154 else
2155   echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&2;}
2162    { (exit 77); exit 77; }; }
2163 fi
2164
2165 ac_exeext=$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6
2168
2169 # Check the compiler produces executables we can run.  If not, either
2170 # the compiler is broken, or we cross compile.
2171 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2174 # If not cross compiling, check that we can run a simple program.
2175 if test "$cross_compiling" != yes; then
2176   if { ac_try='./$ac_file'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; }; then
2182     cross_compiling=no
2183   else
2184     if test "$cross_compiling" = maybe; then
2185         cross_compiling=yes
2186     else
2187         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&2;}
2193    { (exit 1); exit 1; }; }
2194     fi
2195   fi
2196 fi
2197 echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6
2199
2200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201 ac_clean_files=$ac_clean_files_save
2202 # Check the compiler produces executables we can run.  If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207 echo "${ECHO_T}$cross_compiling" >&6
2208
2209 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212   (eval $ac_link) 2>&5
2213   ac_status=$?
2214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215   (exit $ac_status); }; then
2216   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2218 # work properly (i.e., refer to `conftest.exe'), while it won't with
2219 # `rm'.
2220 for ac_file in conftest.exe conftest conftest.*; do
2221   test -f "$ac_file" || continue
2222   case $ac_file in
2223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225           export ac_cv_exeext
2226           break;;
2227     * ) break;;
2228   esac
2229 done
2230 else
2231   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 rm -f conftest$ac_cv_exeext
2239 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2240 echo "${ECHO_T}$ac_cv_exeext" >&6
2241
2242 rm -f conftest.$ac_ext
2243 EXEEXT=$ac_cv_exeext
2244 ac_exeext=$EXEEXT
2245 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2246 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2247 if test "${ac_cv_objext+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h.  */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h.  */
2256
2257 int
2258 main ()
2259 {
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.o conftest.obj
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2272   case $ac_file in
2273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2274     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2275        break;;
2276   esac
2277 done
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2290 fi
2291 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2292 echo "${ECHO_T}$ac_cv_objext" >&6
2293 OBJEXT=$ac_cv_objext
2294 ac_objext=$OBJEXT
2295 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2296 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2297 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310 #ifndef __GNUC__
2311        choke me
2312 #endif
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320   (eval $ac_compile) 2>conftest.er1
2321   ac_status=$?
2322   grep -v '^ *+' conftest.er1 >conftest.err
2323   rm -f conftest.er1
2324   cat conftest.err >&5
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); } &&
2327          { ac_try='test -z "$ac_c_werror_flag"
2328                          || test ! -s conftest.err'
2329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330   (eval $ac_try) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; } &&
2334          { ac_try='test -s conftest.$ac_objext'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; }; then
2340   ac_compiler_gnu=yes
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 ac_compiler_gnu=no
2346 fi
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2349
2350 fi
2351 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2353 GCC=`test $ac_compiler_gnu = yes && echo yes`
2354 ac_test_CFLAGS=${CFLAGS+set}
2355 ac_save_CFLAGS=$CFLAGS
2356 CFLAGS="-g"
2357 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2358 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_g+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 int
2370 main ()
2371 {
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"
2387                          || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   ac_cv_prog_cc_g=yes
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 ac_cv_prog_cc_g=no
2405 fi
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410 if test "$ac_test_CFLAGS" = set; then
2411   CFLAGS=$ac_save_CFLAGS
2412 elif test $ac_cv_prog_cc_g = yes; then
2413   if test "$GCC" = yes; then
2414     CFLAGS="-g -O2"
2415   else
2416     CFLAGS="-g"
2417   fi
2418 else
2419   if test "$GCC" = yes; then
2420     CFLAGS="-O2"
2421   else
2422     CFLAGS=
2423   fi
2424 fi
2425 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   ac_cv_prog_cc_stdc=no
2431 ac_save_CC=$CC
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.  */
2438 #include <stdarg.h>
2439 #include <stdio.h>
2440 #include <sys/types.h>
2441 #include <sys/stat.h>
2442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2443 struct buf { int x; };
2444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2446      char **p;
2447      int i;
2448 {
2449   return p[i];
2450 }
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2452 {
2453   char *s;
2454   va_list v;
2455   va_start (v,p);
2456   s = g (p, va_arg (v,int));
2457   va_end (v);
2458   return s;
2459 }
2460
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2462    function prototypes and stuff, but not '\xHH' hex character constants.
2463    These don't provoke an error unfortunately, instead are silently treated
2464    as 'x'.  The following induces an error, until -std1 is added to get
2465    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2466    array size at least.  It's necessary to write '\x00'==0 to get something
2467    that's true only with -std1.  */
2468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2469
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2474 int argc;
2475 char **argv;
2476 int
2477 main ()
2478 {
2479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX                   -qlanglvl=ansi
2487 # Ultrix and OSF/1      -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2490 # SVR4                  -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2492 do
2493   CC="$ac_save_CC $ac_arg"
2494   rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496   (eval $ac_compile) 2>conftest.er1
2497   ac_status=$?
2498   grep -v '^ *+' conftest.er1 >conftest.err
2499   rm -f conftest.er1
2500   cat conftest.err >&5
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); } &&
2503          { ac_try='test -z "$ac_c_werror_flag"
2504                          || test ! -s conftest.err'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; } &&
2510          { ac_try='test -s conftest.$ac_objext'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_stdc=$ac_arg
2517 break
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 fi
2523 rm -f conftest.err conftest.$ac_objext
2524 done
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2526 CC=$ac_save_CC
2527
2528 fi
2529
2530 case "x$ac_cv_prog_cc_stdc" in
2531   x|xno)
2532     echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2534   *)
2535     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537     CC="$CC $ac_cv_prog_cc_stdc" ;;
2538 esac
2539
2540 # Some people use a C++ compiler to compile C.  Since we use `exit',
2541 # in C++ we need to declare it.  In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2545 #ifndef __cplusplus
2546   choke me
2547 #endif
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   for ac_declaration in \
2572    '' \
2573    'extern "C" void std::exit (int) throw (); using std::exit;' \
2574    'extern "C" void std::exit (int); using std::exit;' \
2575    'extern "C" void exit (int) throw ();' \
2576    'extern "C" void exit (int);' \
2577    'void exit (int);'
2578 do
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 $ac_declaration
2586 #include <stdlib.h>
2587 int
2588 main ()
2589 {
2590 exit (42);
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597   (eval $ac_compile) 2>conftest.er1
2598   ac_status=$?
2599   grep -v '^ *+' conftest.er1 >conftest.err
2600   rm -f conftest.er1
2601   cat conftest.err >&5
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } &&
2604          { ac_try='test -z "$ac_c_werror_flag"
2605                          || test ! -s conftest.err'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; } &&
2611          { ac_try='test -s conftest.$ac_objext'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; }; then
2617   :
2618 else
2619   echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 continue
2623 fi
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631 $ac_declaration
2632 int
2633 main ()
2634 {
2635 exit (42);
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_c_werror_flag"
2650                          || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   break
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 fi
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669 done
2670 rm -f conftest*
2671 if test -n "$ac_declaration"; then
2672   echo '#ifdef __cplusplus' >>confdefs.h
2673   echo $ac_declaration      >>confdefs.h
2674   echo '#endif'             >>confdefs.h
2675 fi
2676
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 fi
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688
2689
2690 unset CFLAGS
2691
2692 #
2693 # Read the template
2694 #
2695 . "$srcdir/src/template/$template" || exit
2696
2697 # CFLAGS are selected so:
2698 # If the user specifies something in the environment, that is used.
2699 # else:  If the template file set something, that is used.
2700 # else:  If the compiler is GCC, then we use -O2.
2701 # else:  If the compiler is something else, then we use -0.
2702
2703 if test "$ac_env_CFLAGS_set" = set; then
2704   CFLAGS=$ac_env_CFLAGS_value
2705 elif test "${CFLAGS+set}" = set; then
2706   : # (keep what template set)
2707 elif test "$GCC" = yes; then
2708   CFLAGS="-O2"
2709 else
2710   # if the user selected debug mode, don't use -O
2711   if test "$enable_debug" != yes; then
2712     CFLAGS="-O"
2713   fi
2714 fi
2715
2716 # The Intel compiler on Linux supports most gcc options, but not
2717 # all of them, so only add these options if we are really using
2718 # gcc.  Intel compiler has a bug in checking for division by NAN
2719 # (NaN == 0), -mp1 fixes it, so someday we might way to add it.
2720
2721 if test "$GCC" = yes; then
2722
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733 #ifndef __INTEL_COMPILER
2734 choke me
2735 #endif
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -z "$ac_c_werror_flag"
2750                          || test ! -s conftest.err'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ICC=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 ICC=no
2768 fi
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770   if test "$ICC" = no; then
2771     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2772
2773     # Some versions of GCC support some additional useful warning flags.
2774     # Check whether they are supported, and add them to CFLAGS if so.
2775     echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2776 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2777 pgac_save_CFLAGS=$CFLAGS
2778 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 int
2787 main ()
2788 {
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          { ac_try='test -z "$ac_c_werror_flag"
2804                          || test ! -s conftest.err'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; } &&
2810          { ac_try='test -s conftest.$ac_objext'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816   echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 CFLAGS="$pgac_save_CFLAGS"
2823                     echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827
2828     echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2829 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2830 pgac_save_CFLAGS=$CFLAGS
2831 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2871 else
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 CFLAGS="$pgac_save_CFLAGS"
2876                     echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2880
2881   fi
2882
2883   # Disable strict-aliasing rules; needed for gcc 3.3+
2884   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2885 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2886 pgac_save_CFLAGS=$CFLAGS
2887 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905   (eval $ac_compile) 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } &&
2912          { ac_try='test -z "$ac_c_werror_flag"
2913                          || test ! -s conftest.err'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 CFLAGS="$pgac_save_CFLAGS"
2932                     echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934 fi
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936
2937 fi
2938
2939 # supply -g if --enable-debug
2940 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2941   CFLAGS="$CFLAGS -g"
2942 fi
2943
2944 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2945 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2946
2947 # We already have this in Makefile.win32, but configure needs it too
2948 if test "$PORTNAME" = "win32"; then
2949   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2950 fi
2951
2952 # Check if the compiler still works with the template settings
2953 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2954 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965 return 0;
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext conftest$ac_exeext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972   (eval $ac_link) 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } &&
2979          { ac_try='test -z "$ac_c_werror_flag"
2980                          || test ! -s conftest.err'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest$ac_exeext'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; }; then
2992   echo "$as_me:$LINENO: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3001 echo "$as_me: error: cannot proceed" >&2;}
3002    { (exit 1); exit 1; }; }
3003 fi
3004 rm -f conftest.err conftest.$ac_objext \
3005       conftest$ac_exeext conftest.$ac_ext
3006
3007 # Defend against gcc -ffast-math
3008 if test "$GCC" = yes; then
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019 #ifdef __FAST_MATH__
3020 choke me
3021 #endif
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028   (eval $ac_compile) 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_c_werror_flag"
3036                          || test ! -s conftest.err'
3037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038   (eval $ac_try) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044   (eval $ac_try) 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   :
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3054 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3055    { (exit 1); exit 1; }; }
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 fi
3059
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3069   CPP=
3070 fi
3071 if test -z "$CPP"; then
3072   if test "${ac_cv_prog_CPP+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075       # Double quotes because CPP needs to be expanded
3076     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3077     do
3078       ac_preproc_ok=false
3079 for ac_c_preproc_warn_flag in '' yes
3080 do
3081   # Use a header file that comes with gcc, so configuring glibc
3082   # with a fresh cross-compiler works.
3083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084   # <limits.h> exists even on freestanding compilers.
3085   # On the NeXT, cc -E runs the code through the compiler's parser,
3086   # not just through cpp. "Syntax error" is here to catch this case.
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #ifdef __STDC__
3094 # include <limits.h>
3095 #else
3096 # include <assert.h>
3097 #endif
3098                      Syntax error
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111   else
3112     ac_cpp_err=
3113   fi
3114 else
3115   ac_cpp_err=yes
3116 fi
3117 if test -z "$ac_cpp_err"; then
3118   :
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123   # Broken: fails on valid input.
3124 continue
3125 fi
3126 rm -f conftest.err conftest.$ac_ext
3127
3128   # OK, works on sane cases.  Now check whether non-existent headers
3129   # can be detected and how.
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 #include <ac_nonexistent.h>
3137 _ACEOF
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } >/dev/null; then
3146   if test -s conftest.err; then
3147     ac_cpp_err=$ac_c_preproc_warn_flag
3148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3149   else
3150     ac_cpp_err=
3151   fi
3152 else
3153   ac_cpp_err=yes
3154 fi
3155 if test -z "$ac_cpp_err"; then
3156   # Broken: success on invalid input.
3157 continue
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162   # Passes both tests.
3163 ac_preproc_ok=:
3164 break
3165 fi
3166 rm -f conftest.err conftest.$ac_ext
3167
3168 done
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3172   break
3173 fi
3174
3175     done
3176     ac_cv_prog_CPP=$CPP
3177
3178 fi
3179   CPP=$ac_cv_prog_CPP
3180 else
3181   ac_cv_prog_CPP=$CPP
3182 fi
3183 echo "$as_me:$LINENO: result: $CPP" >&5
3184 echo "${ECHO_T}$CPP" >&6
3185 ac_preproc_ok=false
3186 for ac_c_preproc_warn_flag in '' yes
3187 do
3188   # Use a header file that comes with gcc, so configuring glibc
3189   # with a fresh cross-compiler works.
3190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191   # <limits.h> exists even on freestanding compilers.
3192   # On the NeXT, cc -E runs the code through the compiler's parser,
3193   # not just through cpp. "Syntax error" is here to catch this case.
3194   cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h.  */
3200 #ifdef __STDC__
3201 # include <limits.h>
3202 #else
3203 # include <assert.h>
3204 #endif
3205                      Syntax error
3206 _ACEOF
3207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } >/dev/null; then
3215   if test -s conftest.err; then
3216     ac_cpp_err=$ac_c_preproc_warn_flag
3217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218   else
3219     ac_cpp_err=
3220   fi
3221 else
3222   ac_cpp_err=yes
3223 fi
3224 if test -z "$ac_cpp_err"; then
3225   :
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230   # Broken: fails on valid input.
3231 continue
3232 fi
3233 rm -f conftest.err conftest.$ac_ext
3234
3235   # OK, works on sane cases.  Now check whether non-existent headers
3236   # can be detected and how.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #include <ac_nonexistent.h>
3244 _ACEOF
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } >/dev/null; then
3253   if test -s conftest.err; then
3254     ac_cpp_err=$ac_c_preproc_warn_flag
3255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256   else
3257     ac_cpp_err=
3258   fi
3259 else
3260   ac_cpp_err=yes
3261 fi
3262 if test -z "$ac_cpp_err"; then
3263   # Broken: success on invalid input.
3264 continue
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269   # Passes both tests.
3270 ac_preproc_ok=:
3271 break
3272 fi
3273 rm -f conftest.err conftest.$ac_ext
3274
3275 done
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then
3279   :
3280 else
3281   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details." >&2;}
3285    { (exit 1); exit 1; }; }
3286 fi
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293
3294
3295
3296 # Create compiler version string
3297 if test x"$GCC" = x"yes" ; then
3298   cc_string="GCC `${CC} --version | sed q`"
3299 else
3300   cc_string=$CC
3301 fi
3302
3303 cat >>confdefs.h <<_ACEOF
3304 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3305 _ACEOF
3306
3307
3308
3309 #
3310 # Set up TAS assembly code if needed; the template file has now had its
3311 # chance to request this.
3312 #
3313           ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3314
3315
3316 if test "$need_tas" = yes ; then
3317   TAS=tas.o
3318 else
3319   TAS=""
3320 fi
3321
3322
3323
3324 #
3325 # Automatic dependency tracking
3326 #
3327
3328
3329 # Check whether --enable-depend or --disable-depend was given.
3330 if test "${enable_depend+set}" = set; then
3331   enableval="$enable_depend"
3332
3333   case $enableval in
3334     yes)
3335       autodepend=yes
3336       ;;
3337     no)
3338       :
3339       ;;
3340     *)
3341       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3342 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3343    { (exit 1); exit 1; }; }
3344       ;;
3345   esac
3346
3347 else
3348   enable_depend=no
3349
3350 fi;
3351
3352
3353
3354
3355 #
3356 # Enable assert checks
3357 #
3358
3359
3360 # Check whether --enable-cassert or --disable-cassert was given.
3361 if test "${enable_cassert+set}" = set; then
3362   enableval="$enable_cassert"
3363
3364   case $enableval in
3365     yes)
3366
3367 cat >>confdefs.h <<\_ACEOF
3368 #define USE_ASSERT_CHECKING 1
3369 _ACEOF
3370
3371       ;;
3372     no)
3373       :
3374       ;;
3375     *)
3376       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3377 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3378    { (exit 1); exit 1; }; }
3379       ;;
3380   esac
3381
3382 else
3383   enable_cassert=no
3384
3385 fi;
3386
3387
3388
3389 #
3390 # Include directories
3391 #
3392 ac_save_IFS=$IFS
3393 IFS="${IFS}${PATH_SEPARATOR}"
3394 # SRCH_INC comes from the template file
3395 for dir in $with_includes $SRCH_INC; do
3396   if test -d "$dir"; then
3397     INCLUDES="$INCLUDES -I$dir"
3398   else
3399     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3400 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3401   fi
3402 done
3403 IFS=$ac_save_IFS
3404
3405
3406
3407 #
3408 # Library directories
3409 #
3410 ac_save_IFS=$IFS
3411 IFS="${IFS}${PATH_SEPARATOR}"
3412 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3413 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3414   if test -d "$dir"; then
3415     LIBDIRS="$LIBDIRS -L$dir"
3416   else
3417     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3418 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3419   fi
3420 done
3421 IFS=$ac_save_IFS
3422
3423 #
3424 # Enable thread-safe client libraries
3425 #
3426 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3427 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3428
3429
3430 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3431 if test "${enable_thread_safety+set}" = set; then
3432   enableval="$enable_thread_safety"
3433
3434   case $enableval in
3435     yes)
3436       :
3437       ;;
3438     no)
3439       :
3440       ;;
3441     *)
3442       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3443 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3444    { (exit 1); exit 1; }; }
3445       ;;
3446   esac
3447
3448 else
3449   enable_thread_safety=no
3450
3451 fi;
3452
3453
3454
3455 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3456 if test "${enable_thread_safety_force+set}" = set; then
3457   enableval="$enable_thread_safety_force"
3458
3459   case $enableval in
3460     yes)
3461       :
3462       ;;
3463     no)
3464       :
3465       ;;
3466     *)
3467       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3468 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3469    { (exit 1); exit 1; }; }
3470       ;;
3471   esac
3472
3473 else
3474   enable_thread_safety_force=no
3475
3476 fi;
3477
3478 if test "$enable_thread_safety" = yes -o \
3479         "$enable_thread_safety_force" = yes; then
3480   enable_thread_safety="yes"    # for 'force'
3481
3482 cat >>confdefs.h <<\_ACEOF
3483 #define ENABLE_THREAD_SAFETY 1
3484 _ACEOF
3485
3486 fi
3487 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3488 echo "${ECHO_T}$enable_thread_safety" >&6
3489
3490
3491 #
3492 # Optionally build Tcl modules (PL/Tcl)
3493 #
3494 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3495 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3496
3497
3498
3499 # Check whether --with-tcl or --without-tcl was given.
3500 if test "${with_tcl+set}" = set; then
3501   withval="$with_tcl"
3502
3503   case $withval in
3504     yes)
3505       :
3506       ;;
3507     no)
3508       :
3509       ;;
3510     *)
3511       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3512 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3513    { (exit 1); exit 1; }; }
3514       ;;
3515   esac
3516
3517 else
3518   with_tcl=no
3519
3520 fi;
3521
3522 echo "$as_me:$LINENO: result: $with_tcl" >&5
3523 echo "${ECHO_T}$with_tcl" >&6
3524
3525
3526 # We see if the path to the Tcl/Tk configuration scripts is specified.
3527 # This will override the use of tclsh to find the paths to search.
3528
3529
3530
3531
3532 # Check whether --with-tclconfig or --without-tclconfig was given.
3533 if test "${with_tclconfig+set}" = set; then
3534   withval="$with_tclconfig"
3535
3536   case $withval in
3537     yes)
3538       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3539 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3540    { (exit 1); exit 1; }; }
3541       ;;
3542     no)
3543       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3544 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3545    { (exit 1); exit 1; }; }
3546       ;;
3547     *)
3548
3549       ;;
3550   esac
3551
3552 fi;
3553
3554
3555 #
3556 # Optionally build Perl modules (PL/Perl)
3557 #
3558 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3559 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3560
3561
3562
3563 # Check whether --with-perl or --without-perl was given.
3564 if test "${with_perl+set}" = set; then
3565   withval="$with_perl"
3566
3567   case $withval in
3568     yes)
3569       :
3570       ;;
3571     no)
3572       :
3573       ;;
3574     *)
3575       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3576 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3577    { (exit 1); exit 1; }; }
3578       ;;
3579   esac
3580
3581 else
3582   with_perl=no
3583
3584 fi;
3585
3586 echo "$as_me:$LINENO: result: $with_perl" >&5
3587 echo "${ECHO_T}$with_perl" >&6
3588
3589
3590 #
3591 # Optionally build Python modules (PL/Python)
3592 #
3593 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3594 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3595
3596
3597
3598 # Check whether --with-python or --without-python was given.
3599 if test "${with_python+set}" = set; then
3600   withval="$with_python"
3601
3602   case $withval in
3603     yes)
3604       :
3605       ;;
3606     no)
3607       :
3608       ;;
3609     *)
3610       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3611 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3612    { (exit 1); exit 1; }; }
3613       ;;
3614   esac
3615
3616 else
3617   with_python=no
3618
3619 fi;
3620
3621 echo "$as_me:$LINENO: result: $with_python" >&5
3622 echo "${ECHO_T}$with_python" >&6
3623
3624
3625 #
3626 # Kerberos 5
3627 #
3628 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3629 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3630
3631
3632
3633 # Check whether --with-krb5 or --without-krb5 was given.
3634 if test "${with_krb5+set}" = set; then
3635   withval="$with_krb5"
3636
3637   case $withval in
3638     yes)
3639
3640
3641 cat >>confdefs.h <<\_ACEOF
3642 #define KRB5 1
3643 _ACEOF
3644
3645   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3646
3647       ;;
3648     no)
3649       :
3650       ;;
3651     *)
3652       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3653 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3654    { (exit 1); exit 1; }; }
3655       ;;
3656   esac
3657
3658 else
3659   with_krb5=no
3660
3661 fi;
3662
3663 echo "$as_me:$LINENO: result: $with_krb5" >&5
3664 echo "${ECHO_T}$with_krb5" >&6
3665
3666
3667
3668
3669
3670
3671 #
3672 # Kerberos configuration parameters
3673 #
3674
3675
3676
3677 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3678 if test "${with_krb_srvnam+set}" = set; then
3679   withval="$with_krb_srvnam"
3680
3681   case $withval in
3682     yes)
3683       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3684 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3685    { (exit 1); exit 1; }; }
3686       ;;
3687     no)
3688       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3689 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3690    { (exit 1); exit 1; }; }
3691       ;;
3692     *)
3693
3694       ;;
3695   esac
3696
3697 else
3698   with_krb_srvnam="postgres"
3699 fi;
3700
3701
3702 cat >>confdefs.h <<_ACEOF
3703 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3704 _ACEOF
3705
3706
3707
3708 #
3709 # PAM
3710 #
3711 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3712 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3713
3714
3715
3716 # Check whether --with-pam or --without-pam was given.
3717 if test "${with_pam+set}" = set; then
3718   withval="$with_pam"
3719
3720   case $withval in
3721     yes)
3722
3723 cat >>confdefs.h <<\_ACEOF
3724 #define USE_PAM 1
3725 _ACEOF
3726
3727       ;;
3728     no)
3729       :
3730       ;;
3731     *)
3732       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3733 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3734    { (exit 1); exit 1; }; }
3735       ;;
3736   esac
3737
3738 else
3739   with_pam=no
3740
3741 fi;
3742
3743 echo "$as_me:$LINENO: result: $with_pam" >&5
3744 echo "${ECHO_T}$with_pam" >&6
3745
3746
3747
3748 #
3749 # LDAP
3750 #
3751 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3752 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3753
3754
3755
3756 # Check whether --with-ldap or --without-ldap was given.
3757 if test "${with_ldap+set}" = set; then
3758   withval="$with_ldap"
3759
3760   case $withval in
3761     yes)
3762
3763 cat >>confdefs.h <<\_ACEOF
3764 #define USE_LDAP 1
3765 _ACEOF
3766
3767       ;;
3768     no)
3769       :
3770       ;;
3771     *)
3772       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3773 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3774    { (exit 1); exit 1; }; }
3775       ;;
3776   esac
3777
3778 else
3779   with_ldap=no
3780
3781 fi;
3782
3783 echo "$as_me:$LINENO: result: $with_ldap" >&5
3784 echo "${ECHO_T}$with_ldap" >&6
3785
3786
3787
3788 #
3789 # Bonjour
3790 #
3791 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3792 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3793
3794
3795
3796 # Check whether --with-bonjour or --without-bonjour was given.
3797 if test "${with_bonjour+set}" = set; then
3798   withval="$with_bonjour"
3799
3800   case $withval in
3801     yes)
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define USE_BONJOUR 1
3805 _ACEOF
3806
3807       ;;
3808     no)
3809       :
3810       ;;
3811     *)
3812       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3813 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3814    { (exit 1); exit 1; }; }
3815       ;;
3816   esac
3817
3818 else
3819   with_bonjour=no
3820
3821 fi;
3822
3823 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3824 echo "${ECHO_T}$with_bonjour" >&6
3825
3826
3827
3828 #
3829 # OpenSSL
3830 #
3831 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3832 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3833
3834
3835
3836 # Check whether --with-openssl or --without-openssl was given.
3837 if test "${with_openssl+set}" = set; then
3838   withval="$with_openssl"
3839
3840   case $withval in
3841     yes)
3842
3843 cat >>confdefs.h <<\_ACEOF
3844 #define USE_SSL 1
3845 _ACEOF
3846
3847       ;;
3848     no)
3849       :
3850       ;;
3851     *)
3852       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3853 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3854    { (exit 1); exit 1; }; }
3855       ;;
3856   esac
3857
3858 else
3859   with_openssl=no
3860
3861 fi;
3862
3863 echo "$as_me:$LINENO: result: $with_openssl" >&5
3864 echo "${ECHO_T}$with_openssl" >&6
3865
3866
3867
3868 #
3869 # Prefer libedit
3870 #
3871
3872
3873
3874 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3875 if test "${with_libedit_preferred+set}" = set; then
3876   withval="$with_libedit_preferred"
3877
3878   case $withval in
3879     yes)
3880       :
3881       ;;
3882     no)
3883       :
3884       ;;
3885     *)
3886       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3887 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3888    { (exit 1); exit 1; }; }
3889       ;;
3890   esac
3891
3892 else
3893   with_libedit_preferred=no
3894
3895 fi;
3896
3897
3898
3899 #
3900 # Readline
3901 #
3902
3903
3904
3905 # Check whether --with-readline or --without-readline was given.
3906 if test "${with_readline+set}" = set; then
3907   withval="$with_readline"
3908
3909   case $withval in
3910     yes)
3911       :
3912       ;;
3913     no)
3914       :
3915       ;;
3916     *)
3917       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3918 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3919    { (exit 1); exit 1; }; }
3920       ;;
3921   esac
3922
3923 else
3924   with_readline=yes
3925
3926 fi;
3927
3928 # readline on MinGW has problems with backslashes in psql and other bugs.
3929 # This is particularly a problem with non-US code pages.
3930 # Therefore disable its use until we understand the cause. 2004-07-20
3931 if test "$PORTNAME" = "win32"; then
3932   if test "$with_readline" = yes; then
3933     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3934 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3935     with_readline=no
3936   fi
3937 fi
3938
3939
3940 #
3941 # Zlib
3942 #
3943
3944
3945
3946 # Check whether --with-zlib or --without-zlib was given.
3947 if test "${with_zlib+set}" = set; then
3948   withval="$with_zlib"
3949
3950   case $withval in
3951     yes)
3952       :
3953       ;;
3954     no)
3955       :
3956       ;;
3957     *)
3958       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3959 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3960    { (exit 1); exit 1; }; }
3961       ;;
3962   esac
3963
3964 else
3965   with_zlib=yes
3966
3967 fi;
3968
3969
3970
3971 #
3972 # Elf
3973 #
3974
3975 # Assume system is ELF if it predefines __ELF__ as 1,
3976 # otherwise believe host_os based default.
3977 case $host_os in
3978     freebsd1*|freebsd2*) elf=no;;
3979     freebsd3*|freebsd4*) elf=yes;;
3980 esac
3981
3982
3983 echo "$as_me:$LINENO: checking for egrep" >&5
3984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3985 if test "${ac_cv_prog_egrep+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3989     then ac_cv_prog_egrep='grep -E'
3990     else ac_cv_prog_egrep='egrep'
3991     fi
3992 fi
3993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3995  EGREP=$ac_cv_prog_egrep
3996
3997
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004 #if __ELF__
4005   yes
4006 #endif
4007
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010   $EGREP "yes" >/dev/null 2>&1; then
4011   ELF_SYS=true
4012 else
4013   if test "X$elf" = "Xyes" ; then
4014   ELF_SYS=true
4015 else
4016   ELF_SYS=
4017 fi
4018 fi
4019 rm -f conftest*
4020
4021
4022
4023 #
4024 # Assignments
4025 #
4026
4027 CPPFLAGS="$CPPFLAGS $INCLUDES"
4028 LDFLAGS="$LDFLAGS $LIBDIRS"
4029
4030 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4031 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4032 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4033 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4034
4035
4036
4037 for ac_prog in gawk mawk nawk awk
4038 do
4039   # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_AWK+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test -n "$AWK"; then
4047   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_prog_AWK="$ac_prog"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063 fi
4064 fi
4065 AWK=$ac_cv_prog_AWK
4066 if test -n "$AWK"; then
4067   echo "$as_me:$LINENO: result: $AWK" >&5
4068 echo "${ECHO_T}$AWK" >&6
4069 else
4070   echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4072 fi
4073
4074   test -n "$AWK" && break
4075 done
4076
4077 echo "$as_me:$LINENO: checking for flex" >&5
4078 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4079 if test "${pgac_cv_path_flex+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   # Let the user override the test
4083 if test -n "$FLEX"; then
4084   pgac_cv_path_flex=$FLEX
4085 else
4086   pgac_save_IFS=$IFS
4087   IFS=$PATH_SEPARATOR
4088   for pgac_dir in $PATH; do
4089     IFS=$pgac_save_IFS
4090     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4091       pgac_dir=`pwd`
4092     fi
4093     for pgac_prog in flex lex; do
4094       pgac_candidate="$pgac_dir/$pgac_prog"
4095       if test -f "$pgac_candidate" \
4096         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4097       then
4098         echo '%%'  > conftest.l
4099         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4100           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4101             pgac_broken_flex=$pgac_candidate
4102             continue
4103           fi
4104
4105           pgac_cv_path_flex=$pgac_candidate
4106           break 2
4107         fi
4108       fi
4109     done
4110   done
4111   rm -f conftest.l lex.yy.c
4112   : ${pgac_cv_path_flex=no}
4113 fi
4114
4115 fi
4116 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4117 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4118 if test x"$pgac_cv_path_flex" = x"no"; then
4119   if test -n "$pgac_broken_flex"; then
4120     { echo "$as_me:$LINENO: WARNING:
4121 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4122 *** should get version 2.5.4 or later." >&5
4123 echo "$as_me: WARNING:
4124 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4125 *** should get version 2.5.4 or later." >&2;}
4126   fi
4127
4128   { echo "$as_me:$LINENO: WARNING:
4129 *** Without Flex you will not be able to build PostgreSQL from CVS or
4130 *** change any of the scanner definition files.  You can obtain Flex from
4131 *** a GNU mirror site.  (If you are using the official distribution of
4132 *** PostgreSQL then you do not need to worry about this because the Flex
4133 *** output is pre-generated.)" >&5
4134 echo "$as_me: WARNING:
4135 *** Without Flex you will not be able to build PostgreSQL from CVS or
4136 *** change any of the scanner definition files.  You can obtain Flex from
4137 *** a GNU mirror site.  (If you are using the official distribution of
4138 *** PostgreSQL then you do not need to worry about this because the Flex
4139 *** output is pre-generated.)" >&2;}
4140 fi
4141
4142 if test x"$pgac_cv_path_flex" = x"no"; then
4143   FLEX=
4144 else
4145   FLEX=$pgac_cv_path_flex
4146 fi
4147
4148
4149
4150
4151 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4153 LN_S=$as_ln_s
4154 if test "$LN_S" = "ln -s"; then
4155   echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6
4157 else
4158   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4159 echo "${ECHO_T}no, using $LN_S" >&6
4160 fi
4161
4162
4163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4164 if test "${with_gnu_ld+set}" = set; then
4165   withval="$with_gnu_ld"
4166   test "$withval" = no || with_gnu_ld=yes
4167 else
4168   with_gnu_ld=no
4169 fi;
4170 ac_prog=ld
4171 if test "$GCC" = yes; then
4172   # Check if gcc -print-prog-name=ld gives a path.
4173   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4174 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4175   case $host in
4176   *-*-mingw*)
4177     # gcc leaves a trailing carriage return which upsets mingw
4178     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4179   *)
4180     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4181   esac
4182   case "$ac_prog" in
4183     # Accept absolute paths.
4184     [\\/]* | [A-Za-z]:[\\/]*)
4185       re_direlt='/[^/][^/]*/\.\./'
4186       # Canonicalize the path of ld
4187       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4188       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4189         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4190       done
4191       test -z "$LD" && LD="$ac_prog"
4192       ;;
4193   "")
4194     # If it fails, then pretend we aren't using GCC.
4195     ac_prog=ld
4196     ;;
4197   *)
4198     # If it is relative, then search for the first ld in PATH.
4199     with_gnu_ld=unknown
4200     ;;
4201   esac
4202 elif test "$with_gnu_ld" = yes; then
4203   echo "$as_me:$LINENO: checking for GNU ld" >&5
4204 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4205 else
4206   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4207 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4208 fi
4209 if test "${ac_cv_path_LD+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   if test -z "$LD"; then
4213   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4214   for ac_dir in $PATH; do
4215     test -z "$ac_dir" && ac_dir=.
4216     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4217       ac_cv_path_LD="$ac_dir/$ac_prog"
4218       # Check to see if the program is GNU ld.  I'd rather use --version,
4219       # but apparently some GNU ld's only accept -v.
4220       # Break only if it was the GNU/non-GNU ld that we prefer.
4221       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4222         test "$with_gnu_ld" != no && break
4223       else
4224         test "$with_gnu_ld" != yes && break
4225       fi
4226     fi
4227   done
4228   IFS="$ac_save_ifs"
4229 else
4230   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4231 fi
4232 fi
4233
4234 LD="$ac_cv_path_LD"
4235 if test -n "$LD"; then
4236   echo "$as_me:$LINENO: result: $LD" >&5
4237 echo "${ECHO_T}$LD" >&6
4238 else
4239   echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241 fi
4242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4244    { (exit 1); exit 1; }; }
4245 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4247 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4251 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4252   ac_cv_prog_gnu_ld=yes
4253 else
4254   ac_cv_prog_gnu_ld=no
4255 fi
4256 fi
4257 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4258 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4259 with_gnu_ld=$ac_cv_prog_gnu_ld
4260
4261
4262
4263
4264 case $host_os in sysv5*)
4265   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4266 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4267 if test "${pgac_cv_prog_ld_R+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270
4271     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4272     cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289   (eval $ac_link) 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -z "$ac_c_werror_flag"
4297                          || test ! -s conftest.err'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; } &&
4303          { ac_try='test -s conftest$ac_exeext'
4304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305   (eval $ac_try) 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; }; then
4309   pgac_cv_prog_ld_R=yes
4310 else
4311   echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 pgac_cv_prog_ld_R=no
4315 fi
4316 rm -f conftest.err conftest.$ac_objext \
4317       conftest$ac_exeext conftest.$ac_ext
4318     LDFLAGS=$pgac_save_LDFLAGS
4319
4320 fi
4321 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4322 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4323   ld_R_works=$pgac_cv_prog_ld_R
4324
4325 esac
4326 if test -n "$ac_tool_prefix"; then
4327   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_prog_RANLIB+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   if test -n "$RANLIB"; then
4335   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_exec_ext in '' $ac_executable_extensions; do
4343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349 done
4350
4351 fi
4352 fi
4353 RANLIB=$ac_cv_prog_RANLIB
4354 if test -n "$RANLIB"; then
4355   echo "$as_me:$LINENO: result: $RANLIB" >&5
4356 echo "${ECHO_T}$RANLIB" >&6
4357 else
4358   echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4360 fi
4361
4362 fi
4363 if test -z "$ac_cv_prog_RANLIB"; then
4364   ac_ct_RANLIB=$RANLIB
4365   # Extract the first word of "ranlib", so it can be a program name with args.
4366 set dummy ranlib; ac_word=$2
4367 echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   if test -n "$ac_ct_RANLIB"; then
4373   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_exec_ext in '' $ac_executable_extensions; do
4381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382     ac_cv_prog_ac_ct_RANLIB="ranlib"
4383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387 done
4388
4389   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4390 fi
4391 fi
4392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4393 if test -n "$ac_ct_RANLIB"; then
4394   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4395 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4396 else
4397   echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4399 fi
4400
4401   RANLIB=$ac_ct_RANLIB
4402 else
4403   RANLIB="$ac_cv_prog_RANLIB"
4404 fi
4405
4406 # Extract the first word of "tar", so it can be a program name with args.
4407 set dummy tar; ac_word=$2
4408 echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410 if test "${ac_cv_path_TAR+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   case $TAR in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431
4432   ;;
4433 esac
4434 fi
4435 TAR=$ac_cv_path_TAR
4436
4437 if test -n "$TAR"; then
4438   echo "$as_me:$LINENO: result: $TAR" >&5
4439 echo "${ECHO_T}$TAR" >&6
4440 else
4441   echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4443 fi
4444
4445
4446   if test -n "$ac_tool_prefix"; then
4447   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}strip; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_STRIP+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   if test -n "$STRIP"; then
4455   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470
4471 fi
4472 fi
4473 STRIP=$ac_cv_prog_STRIP
4474 if test -n "$STRIP"; then
4475   echo "$as_me:$LINENO: result: $STRIP" >&5
4476 echo "${ECHO_T}$STRIP" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482 fi
4483 if test -z "$ac_cv_prog_STRIP"; then
4484   ac_ct_STRIP=$STRIP
4485   # Extract the first word of "strip", so it can be a program name with args.
4486 set dummy strip; ac_word=$2
4487 echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   if test -n "$ac_ct_STRIP"; then
4493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500   for ac_exec_ext in '' $ac_executable_extensions; do
4501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502     ac_cv_prog_ac_ct_STRIP="strip"
4503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507 done
4508
4509   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4510 fi
4511 fi
4512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4513 if test -n "$ac_ct_STRIP"; then
4514   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4515 echo "${ECHO_T}$ac_ct_STRIP" >&6
4516 else
4517   echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4519 fi
4520
4521   STRIP=$ac_ct_STRIP
4522 else
4523   STRIP="$ac_cv_prog_STRIP"
4524 fi
4525
4526
4527   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4528 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4529   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4530     STRIP_STATIC_LIB="$STRIP -x"
4531     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4532     echo "$as_me:$LINENO: result: yes" >&5
4533 echo "${ECHO_T}yes" >&6
4534   else
4535     STRIP_STATIC_LIB=:
4536     STRIP_SHARED_LIB=:
4537     echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539   fi
4540
4541
4542
4543
4544 for ac_prog in 'bison -y'
4545 do
4546   # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_YACC+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$YACC"; then
4554   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_exec_ext in '' $ac_executable_extensions; do
4562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_prog_YACC="$ac_prog"
4564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568 done
4569
4570 fi
4571 fi
4572 YACC=$ac_cv_prog_YACC
4573 if test -n "$YACC"; then
4574   echo "$as_me:$LINENO: result: $YACC" >&5
4575 echo "${ECHO_T}$YACC" >&6
4576 else
4577   echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581   test -n "$YACC" && break
4582 done
4583
4584
4585 if test "$YACC"; then
4586   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4587     { echo "$as_me:$LINENO: WARNING:
4588 *** If you are going to modify the grammar files or build from CVS, the installed
4589 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4590 echo "$as_me: WARNING:
4591 *** If you are going to modify the grammar files or build from CVS, the installed
4592 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4593   fi
4594 fi
4595
4596 if test -z "$YACC"; then
4597   { echo "$as_me:$LINENO: WARNING:
4598 *** Without Bison you will not be able to build PostgreSQL from CVS or
4599 *** change any of the parser definition files.  You can obtain Bison from
4600 *** a GNU mirror site.  (If you are using the official distribution of
4601 *** PostgreSQL then you do not need to worry about this because the Bison
4602 *** output is pre-generated.)  To use a different yacc program (possible,
4603 *** but not recommended), set the environment variable YACC before running
4604 *** 'configure'." >&5
4605 echo "$as_me: WARNING:
4606 *** Without Bison you will not be able to build PostgreSQL from CVS or
4607 *** change any of the parser definition files.  You can obtain Bison from
4608 *** a GNU mirror site.  (If you are using the official distribution of
4609 *** PostgreSQL then you do not need to worry about this because the Bison
4610 *** output is pre-generated.)  To use a different yacc program (possible,
4611 *** but not recommended), set the environment variable YACC before running
4612 *** 'configure'." >&2;}
4613 fi
4614
4615
4616 # Extract the first word of "perl", so it can be a program name with args.
4617 set dummy perl; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_path_PERL+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   case $PERL in
4624   [\\/]* | ?:[\\/]*)
4625   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4626   ;;
4627   *)
4628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641
4642   ;;
4643 esac
4644 fi
4645 PERL=$ac_cv_path_PERL
4646
4647 if test -n "$PERL"; then
4648   echo "$as_me:$LINENO: result: $PERL" >&5
4649 echo "${ECHO_T}$PERL" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 fi
4654
4655 if test "$with_perl" = yes; then
4656
4657 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4658 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4659 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4660 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4661 echo "${ECHO_T}$perl_archlibexp" >&6
4662 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4663 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4664 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4665 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4666 echo "${ECHO_T}$perl_privlibexp" >&6
4667 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4668 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4669 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4670 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4671 echo "${ECHO_T}$perl_useshrplib" >&6
4672
4673 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4674 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4675 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4676 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4677 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4678 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4679 echo "${ECHO_T}$perl_embed_ldflags" >&6
4680 fi
4681
4682 if test "$with_python" = yes; then
4683   # Extract the first word of "python", so it can be a program name with args.
4684 set dummy python; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_path_PYTHON+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   case $PYTHON in
4691   [\\/]* | ?:[\\/]*)
4692   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4693   ;;
4694   *)
4695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708
4709   ;;
4710 esac
4711 fi
4712 PYTHON=$ac_cv_path_PYTHON
4713
4714 if test -n "$PYTHON"; then
4715   echo "$as_me:$LINENO: result: $PYTHON" >&5
4716 echo "${ECHO_T}$PYTHON" >&6
4717 else
4718   echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4720 fi
4721
4722 if test x"$PYTHON" = x""; then
4723   { { echo "$as_me:$LINENO: error: Python not found" >&5
4724 echo "$as_me: error: Python not found" >&2;}
4725    { (exit 1); exit 1; }; }
4726 fi
4727
4728
4729 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4730 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4731 if "${PYTHON}" 2>&- -c 'import distutils'
4732 then
4733     echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6
4735 else
4736     echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4739 echo "$as_me: error: distutils module not found" >&2;}
4740    { (exit 1); exit 1; }; }
4741 fi
4742 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4743 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4744 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4745 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')"`
4746 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4747
4748 # This should be enough of a message.
4749 echo "$as_me:$LINENO: result: $python_configdir" >&5
4750 echo "${ECHO_T}$python_configdir" >&6
4751
4752
4753 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4754 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4755
4756 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4757 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4758 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4759 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4760
4761 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4762 then
4763         # New way: use the official shared library
4764         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4765         python_libspec="-L${python_libdir} -l${ldlibrary}"
4766 else
4767         # Old way: use libpython from python_configdir
4768         python_libdir="${python_configdir}"
4769         python_libspec="-L${python_libdir} -lpython${python_version}"
4770 fi
4771
4772 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4773
4774 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4775 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4776
4777
4778 # threaded python is not supported on bsd's
4779 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4780 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4781 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4782 if test "$pythreads" = "1"; then
4783   echo "$as_me:$LINENO: result: yes" >&5
4784 echo "${ECHO_T}yes" >&6
4785   case $host_os in
4786   openbsd*|freebsd4*)
4787     { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4788 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4789    { (exit 1); exit 1; }; }
4790     ;;
4791   esac
4792 else
4793   echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4795 fi
4796
4797
4798 fi
4799
4800 # Supply a numeric version string for use by 3rd party add-ons
4801 # awk -F is a regex on some platforms, and not on others, so make "." a tab
4802 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4803 tr '.' '        ' |
4804 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4805
4806 cat >>confdefs.h <<_ACEOF
4807 #define PG_VERSION_NUM $PG_VERSION_NUM
4808 _ACEOF
4809
4810
4811 ##
4812 ## Libraries
4813 ##
4814
4815 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4816 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4817 if test "${ac_cv_search_setproctitle+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   ac_func_search_save_LIBS=$LIBS
4821 ac_cv_search_setproctitle=no
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h.  */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h.  */
4828
4829 /* Override any gcc2 internal prototype to avoid an error.  */
4830 #ifdef __cplusplus
4831 extern "C"
4832 #endif
4833 /* We use char because int might match the return type of a gcc2
4834    builtin and then its argument prototype would still apply.  */
4835 char setproctitle ();
4836 int
4837 main ()
4838 {
4839 setproctitle ();
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846   (eval $ac_link) 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -z "$ac_c_werror_flag"
4854                          || test ! -s conftest.err'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; } &&
4860          { ac_try='test -s conftest$ac_exeext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   ac_cv_search_setproctitle="none required"
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 fi
4872 rm -f conftest.err conftest.$ac_objext \
4873       conftest$ac_exeext conftest.$ac_ext
4874 if test "$ac_cv_search_setproctitle" = no; then
4875   for ac_lib in util; do
4876     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4877     cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883
4884 /* Override any gcc2 internal prototype to avoid an error.  */
4885 #ifdef __cplusplus
4886 extern "C"
4887 #endif
4888 /* We use char because int might match the return type of a gcc2
4889    builtin and then its argument prototype would still apply.  */
4890 char setproctitle ();
4891 int
4892 main ()
4893 {
4894 setproctitle ();
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901   (eval $ac_link) 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } &&
4908          { ac_try='test -z "$ac_c_werror_flag"
4909                          || test ! -s conftest.err'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; } &&
4915          { ac_try='test -s conftest$ac_exeext'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; }; then
4921   ac_cv_search_setproctitle="-l$ac_lib"
4922 break
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 fi
4928 rm -f conftest.err conftest.$ac_objext \
4929       conftest$ac_exeext conftest.$ac_ext
4930   done
4931 fi
4932 LIBS=$ac_func_search_save_LIBS
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4935 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4936 if test "$ac_cv_search_setproctitle" != no; then
4937   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4938
4939 fi
4940
4941 echo "$as_me:$LINENO: checking for library containing pow" >&5
4942 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4943 if test "${ac_cv_search_pow+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   ac_func_search_save_LIBS=$LIBS
4947 ac_cv_search_pow=no
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954
4955 /* Override any gcc2 internal prototype to avoid an error.  */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 /* We use char because int might match the return type of a gcc2
4960    builtin and then its argument prototype would still apply.  */
4961 char pow ();
4962 int
4963 main ()
4964 {
4965 pow ();
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972   (eval $ac_link) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"
4980                          || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest$ac_exeext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_cv_search_pow="none required"
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 fi
4998 rm -f conftest.err conftest.$ac_objext \
4999       conftest$ac_exeext conftest.$ac_ext
5000 if test "$ac_cv_search_pow" = no; then
5001   for ac_lib in m; do
5002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5003     cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009
5010 /* Override any gcc2 internal prototype to avoid an error.  */
5011 #ifdef __cplusplus
5012 extern "C"
5013 #endif
5014 /* We use char because int might match the return type of a gcc2
5015    builtin and then its argument prototype would still apply.  */
5016 char pow ();
5017 int
5018 main ()
5019 {
5020 pow ();
5021   ;
5022   return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027   (eval $ac_link) 2>conftest.er1
5028   ac_status=$?
5029   grep -v '^ *+' conftest.er1 >conftest.err
5030   rm -f conftest.er1
5031   cat conftest.err >&5
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); } &&
5034          { ac_try='test -z "$ac_c_werror_flag"
5035                          || test ! -s conftest.err'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; } &&
5041          { ac_try='test -s conftest$ac_exeext'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; }; then
5047   ac_cv_search_pow="-l$ac_lib"
5048 break
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 fi
5054 rm -f conftest.err conftest.$ac_objext \
5055       conftest$ac_exeext conftest.$ac_ext
5056   done
5057 fi
5058 LIBS=$ac_func_search_save_LIBS
5059 fi
5060 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5061 echo "${ECHO_T}$ac_cv_search_pow" >&6
5062 if test "$ac_cv_search_pow" != no; then
5063   test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5064
5065 fi
5066
5067 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5068 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5069 if test "${ac_cv_search_dlopen+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   ac_func_search_save_LIBS=$LIBS
5073 ac_cv_search_dlopen=no
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any gcc2 internal prototype to avoid an error.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086    builtin and then its argument prototype would still apply.  */
5087 char dlopen ();
5088 int
5089 main ()
5090 {
5091 dlopen ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -z "$ac_c_werror_flag"
5106                          || test ! -s conftest.err'
5107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108   (eval $ac_try) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }; } &&
5112          { ac_try='test -s conftest$ac_exeext'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; }; then
5118   ac_cv_search_dlopen="none required"
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 fi
5124 rm -f conftest.err conftest.$ac_objext \
5125       conftest$ac_exeext conftest.$ac_ext
5126 if test "$ac_cv_search_dlopen" = no; then
5127   for ac_lib in dl; do
5128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5129     cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135
5136 /* Override any gcc2 internal prototype to avoid an error.  */
5137 #ifdef __cplusplus
5138 extern "C"
5139 #endif
5140 /* We use char because int might match the return type of a gcc2
5141    builtin and then its argument prototype would still apply.  */
5142 char dlopen ();
5143 int
5144 main ()
5145 {
5146 dlopen ();
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153   (eval $ac_link) 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } &&
5160          { ac_try='test -z "$ac_c_werror_flag"
5161                          || test ! -s conftest.err'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; } &&
5167          { ac_try='test -s conftest$ac_exeext'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   ac_cv_search_dlopen="-l$ac_lib"
5174 break
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 fi
5180 rm -f conftest.err conftest.$ac_objext \
5181       conftest$ac_exeext conftest.$ac_ext
5182   done
5183 fi
5184 LIBS=$ac_func_search_save_LIBS
5185 fi
5186 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5187 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5188 if test "$ac_cv_search_dlopen" != no; then
5189   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5190
5191 fi
5192
5193 echo "$as_me:$LINENO: checking for library containing socket" >&5
5194 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5195 if test "${ac_cv_search_socket+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   ac_func_search_save_LIBS=$LIBS
5199 ac_cv_search_socket=no
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206
5207 /* Override any gcc2 internal prototype to avoid an error.  */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 /* We use char because int might match the return type of a gcc2
5212    builtin and then its argument prototype would still apply.  */
5213 char socket ();
5214 int
5215 main ()
5216 {
5217 socket ();
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_c_werror_flag"
5232                          || test ! -s conftest.err'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; } &&
5238          { ac_try='test -s conftest$ac_exeext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_cv_search_socket="none required"
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 fi
5250 rm -f conftest.err conftest.$ac_objext \
5251       conftest$ac_exeext conftest.$ac_ext
5252 if test "$ac_cv_search_socket" = no; then
5253   for ac_lib in socket wsock32; do
5254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5255     cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261
5262 /* Override any gcc2 internal prototype to avoid an error.  */
5263 #ifdef __cplusplus
5264 extern "C"
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267    builtin and then its argument prototype would still apply.  */
5268 char socket ();
5269 int
5270 main ()
5271 {
5272 socket ();
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279   (eval $ac_link) 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } &&
5286          { ac_try='test -z "$ac_c_werror_flag"
5287                          || test ! -s conftest.err'
5288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289   (eval $ac_try) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; } &&
5293          { ac_try='test -s conftest$ac_exeext'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; }; then
5299   ac_cv_search_socket="-l$ac_lib"
5300 break
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 fi
5306 rm -f conftest.err conftest.$ac_objext \
5307       conftest$ac_exeext conftest.$ac_ext
5308   done
5309 fi
5310 LIBS=$ac_func_search_save_LIBS
5311 fi
5312 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5313 echo "${ECHO_T}$ac_cv_search_socket" >&6
5314 if test "$ac_cv_search_socket" != no; then
5315   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5316
5317 fi
5318
5319 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5320 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5321 if test "${ac_cv_search_shl_load+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   ac_func_search_save_LIBS=$LIBS
5325 ac_cv_search_shl_load=no
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332
5333 /* Override any gcc2 internal prototype to avoid an error.  */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 /* We use char because int might match the return type of a gcc2
5338    builtin and then its argument prototype would still apply.  */
5339 char shl_load ();
5340 int
5341 main ()
5342 {
5343 shl_load ();
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350   (eval $ac_link) 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } &&
5357          { ac_try='test -z "$ac_c_werror_flag"
5358                          || test ! -s conftest.err'
5359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; } &&
5364          { ac_try='test -s conftest$ac_exeext'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; }; then
5370   ac_cv_search_shl_load="none required"
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 fi
5376 rm -f conftest.err conftest.$ac_objext \
5377       conftest$ac_exeext conftest.$ac_ext
5378 if test "$ac_cv_search_shl_load" = no; then
5379   for ac_lib in dld; do
5380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5381     cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h.  */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h.  */
5387
5388 /* Override any gcc2 internal prototype to avoid an error.  */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 /* We use char because int might match the return type of a gcc2
5393    builtin and then its argument prototype would still apply.  */
5394 char shl_load ();
5395 int
5396 main ()
5397 {
5398 shl_load ();
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405   (eval $ac_link) 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -z "$ac_c_werror_flag"
5413                          || test ! -s conftest.err'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; } &&
5419          { ac_try='test -s conftest$ac_exeext'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   ac_cv_search_shl_load="-l$ac_lib"
5426 break
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 fi
5432 rm -f conftest.err conftest.$ac_objext \
5433       conftest$ac_exeext conftest.$ac_ext
5434   done
5435 fi
5436 LIBS=$ac_func_search_save_LIBS
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5439 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5440 if test "$ac_cv_search_shl_load" != no; then
5441   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5442
5443 fi
5444
5445 # We only use libld in port/dynloader/aix.c
5446 case $host_os in
5447      aix*)
5448         echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5449 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5450 if test "${ac_cv_search_ldopen+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   ac_func_search_save_LIBS=$LIBS
5454 ac_cv_search_ldopen=no
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461
5462 /* Override any gcc2 internal prototype to avoid an error.  */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 /* We use char because int might match the return type of a gcc2
5467    builtin and then its argument prototype would still apply.  */
5468 char ldopen ();
5469 int
5470 main ()
5471 {
5472 ldopen ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479   (eval $ac_link) 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -z "$ac_c_werror_flag"
5487                          || test ! -s conftest.err'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; } &&
5493          { ac_try='test -s conftest$ac_exeext'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; }; then
5499   ac_cv_search_ldopen="none required"
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 fi
5505 rm -f conftest.err conftest.$ac_objext \
5506       conftest$ac_exeext conftest.$ac_ext
5507 if test "$ac_cv_search_ldopen" = no; then
5508   for ac_lib in ld; do
5509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5510     cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516
5517 /* Override any gcc2 internal prototype to avoid an error.  */
5518 #ifdef __cplusplus
5519 extern "C"
5520 #endif
5521 /* We use char because int might match the return type of a gcc2
5522    builtin and then its argument prototype would still apply.  */
5523 char ldopen ();
5524 int
5525 main ()
5526 {
5527 ldopen ();
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534   (eval $ac_link) 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag"
5542                          || test ! -s conftest.err'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; } &&
5548          { ac_try='test -s conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_search_ldopen="-l$ac_lib"
5555 break
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 fi
5561 rm -f conftest.err conftest.$ac_objext \
5562       conftest$ac_exeext conftest.$ac_ext
5563   done
5564 fi
5565 LIBS=$ac_func_search_save_LIBS
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5568 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5569 if test "$ac_cv_search_ldopen" != no; then
5570   test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5571
5572 fi
5573
5574         ;;
5575 esac
5576 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5577 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5578 if test "${ac_cv_search_getopt_long+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_func_search_save_LIBS=$LIBS
5582 ac_cv_search_getopt_long=no
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595    builtin and then its argument prototype would still apply.  */
5596 char getopt_long ();
5597 int
5598 main ()
5599 {
5600 getopt_long ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -z "$ac_c_werror_flag"
5615                          || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest$ac_exeext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_search_getopt_long="none required"
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 fi
5633 rm -f conftest.err conftest.$ac_objext \
5634       conftest$ac_exeext conftest.$ac_ext
5635 if test "$ac_cv_search_getopt_long" = no; then
5636   for ac_lib in getopt gnugetopt; do
5637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5638     cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644
5645 /* Override any gcc2 internal prototype to avoid an error.  */
5646 #ifdef __cplusplus
5647 extern "C"
5648 #endif
5649 /* We use char because int might match the return type of a gcc2
5650    builtin and then its argument prototype would still apply.  */
5651 char getopt_long ();
5652 int
5653 main ()
5654 {
5655 getopt_long ();
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662   (eval $ac_link) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"
5670                          || test ! -s conftest.err'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; } &&
5676          { ac_try='test -s conftest$ac_exeext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_search_getopt_long="-l$ac_lib"
5683 break
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 fi
5689 rm -f conftest.err conftest.$ac_objext \
5690       conftest$ac_exeext conftest.$ac_ext
5691   done
5692 fi
5693 LIBS=$ac_func_search_save_LIBS
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5696 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5697 if test "$ac_cv_search_getopt_long" != no; then
5698   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5699
5700 fi
5701
5702 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5703 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5704 if test "${ac_cv_search_crypt+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   ac_func_search_save_LIBS=$LIBS
5708 ac_cv_search_crypt=no
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715
5716 /* Override any gcc2 internal prototype to avoid an error.  */
5717 #ifdef __cplusplus
5718 extern "C"
5719 #endif
5720 /* We use char because int might match the return type of a gcc2
5721    builtin and then its argument prototype would still apply.  */
5722 char crypt ();
5723 int
5724 main ()
5725 {
5726 crypt ();
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733   (eval $ac_link) 2>conftest.er1
5734   ac_status=$?
5735   grep -v '^ *+' conftest.er1 >conftest.err
5736   rm -f conftest.er1
5737   cat conftest.err >&5
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -z "$ac_c_werror_flag"
5741                          || test ! -s conftest.err'
5742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743   (eval $ac_try) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; } &&
5747          { ac_try='test -s conftest$ac_exeext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   ac_cv_search_crypt="none required"
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 fi
5759 rm -f conftest.err conftest.$ac_objext \
5760       conftest$ac_exeext conftest.$ac_ext
5761 if test "$ac_cv_search_crypt" = no; then
5762   for ac_lib in crypt; do
5763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5764     cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770
5771 /* Override any gcc2 internal prototype to avoid an error.  */
5772 #ifdef __cplusplus
5773 extern "C"
5774 #endif
5775 /* We use char because int might match the return type of a gcc2
5776    builtin and then its argument prototype would still apply.  */
5777 char crypt ();
5778 int
5779 main ()
5780 {
5781 crypt ();
5782   ;
5783   return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788   (eval $ac_link) 2>conftest.er1
5789   ac_status=$?
5790   grep -v '^ *+' conftest.er1 >conftest.err
5791   rm -f conftest.er1
5792   cat conftest.err >&5
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -z "$ac_c_werror_flag"
5796                          || test ! -s conftest.err'
5797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798   (eval $ac_try) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; } &&
5802          { ac_try='test -s conftest$ac_exeext'
5803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804   (eval $ac_try) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; }; then
5808   ac_cv_search_crypt="-l$ac_lib"
5809 break
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 fi
5815 rm -f conftest.err conftest.$ac_objext \
5816       conftest$ac_exeext conftest.$ac_ext
5817   done
5818 fi
5819 LIBS=$ac_func_search_save_LIBS
5820 fi
5821 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5822 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5823 if test "$ac_cv_search_crypt" != no; then
5824   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5825
5826 fi
5827
5828 # Solaris:
5829 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5830 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5831 if test "${ac_cv_search_fdatasync+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_func_search_save_LIBS=$LIBS
5835 ac_cv_search_fdatasync=no
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842
5843 /* Override any gcc2 internal prototype to avoid an error.  */
5844 #ifdef __cplusplus
5845 extern "C"
5846 #endif
5847 /* We use char because int might match the return type of a gcc2
5848    builtin and then its argument prototype would still apply.  */
5849 char fdatasync ();
5850 int
5851 main ()
5852 {
5853 fdatasync ();
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860   (eval $ac_link) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"
5868                          || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest$ac_exeext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   ac_cv_search_fdatasync="none required"
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 fi
5886 rm -f conftest.err conftest.$ac_objext \
5887       conftest$ac_exeext conftest.$ac_ext
5888 if test "$ac_cv_search_fdatasync" = no; then
5889   for ac_lib in rt posix4; do
5890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5891     cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897
5898 /* Override any gcc2 internal prototype to avoid an error.  */
5899 #ifdef __cplusplus
5900 extern "C"
5901 #endif
5902 /* We use char because int might match the return type of a gcc2
5903    builtin and then its argument prototype would still apply.  */
5904 char fdatasync ();
5905 int
5906 main ()
5907 {
5908 fdatasync ();
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext conftest$ac_exeext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5915   (eval $ac_link) 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -z "$ac_c_werror_flag"
5923                          || test ! -s conftest.err'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest$ac_exeext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   ac_cv_search_fdatasync="-l$ac_lib"
5936 break
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 fi
5942 rm -f conftest.err conftest.$ac_objext \
5943       conftest$ac_exeext conftest.$ac_ext
5944   done
5945 fi
5946 LIBS=$ac_func_search_save_LIBS
5947 fi
5948 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5949 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5950 if test "$ac_cv_search_fdatasync" != no; then
5951   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5952
5953 fi
5954
5955 # Cygwin:
5956 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5957 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5958 if test "${ac_cv_search_shmget+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   ac_func_search_save_LIBS=$LIBS
5962 ac_cv_search_shmget=no
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969
5970 /* Override any gcc2 internal prototype to avoid an error.  */
5971 #ifdef __cplusplus
5972 extern "C"
5973 #endif
5974 /* We use char because int might match the return type of a gcc2
5975    builtin and then its argument prototype would still apply.  */
5976 char shmget ();
5977 int
5978 main ()
5979 {
5980 shmget ();
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987   (eval $ac_link) 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_c_werror_flag"
5995                          || test ! -s conftest.err'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; } &&
6001          { ac_try='test -s conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_search_shmget="none required"
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 fi
6013 rm -f conftest.err conftest.$ac_objext \
6014       conftest$ac_exeext conftest.$ac_ext
6015 if test "$ac_cv_search_shmget" = no; then
6016   for ac_lib in cygipc; do
6017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6018     cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024
6025 /* Override any gcc2 internal prototype to avoid an error.  */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 /* We use char because int might match the return type of a gcc2
6030    builtin and then its argument prototype would still apply.  */
6031 char shmget ();
6032 int
6033 main ()
6034 {
6035 shmget ();
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042   (eval $ac_link) 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_c_werror_flag"
6050                          || test ! -s conftest.err'
6051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052   (eval $ac_try) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); }; } &&
6056          { ac_try='test -s conftest$ac_exeext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_cv_search_shmget="-l$ac_lib"
6063 break
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 fi
6069 rm -f conftest.err conftest.$ac_objext \
6070       conftest$ac_exeext conftest.$ac_ext
6071   done
6072 fi
6073 LIBS=$ac_func_search_save_LIBS
6074 fi
6075 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6076 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6077 if test "$ac_cv_search_shmget" != no; then
6078   test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6079
6080 fi
6081
6082
6083 if test "$with_readline" = yes; then
6084
6085
6086 if test "${pgac_cv_check_readline+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   pgac_cv_check_readline=no
6090 pgac_save_LIBS=$LIBS
6091 if test x"$with_libedit_preferred" != x"yes"
6092 then    READLINE_ORDER="-lreadline -ledit"
6093 else    READLINE_ORDER="-ledit -lreadline"
6094 fi
6095 for pgac_rllib in $READLINE_ORDER ; do
6096   echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6097 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6098   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6099     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6100     cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106
6107 /* Override any gcc2 internal prototype to avoid an error.  */
6108 #ifdef __cplusplus
6109 extern "C"
6110 #endif
6111 /* We use char because int might match the return type of a gcc2
6112    builtin and then its argument prototype would still apply.  */
6113 char readline ();
6114 int
6115 main ()
6116 {
6117 readline ();
6118   ;
6119   return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124   (eval $ac_link) 2>conftest.er1
6125   ac_status=$?
6126   grep -v '^ *+' conftest.er1 >conftest.err
6127   rm -f conftest.er1
6128   cat conftest.err >&5
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); } &&
6131          { ac_try='test -z "$ac_c_werror_flag"
6132                          || test ! -s conftest.err'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; } &&
6138          { ac_try='test -s conftest$ac_exeext'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; }; then
6144
6145       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6146       # recognize dependent libraries; assume curses is needed if we didn't
6147       # find any dependency.
6148       case $host_os in
6149         netbsd* | openbsd* | irix*)
6150           if test x"$pgac_lib" = x"" ; then
6151             pgac_lib=" -lcurses"
6152           fi ;;
6153       esac
6154
6155       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6156       break
6157
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.err conftest.$ac_objext \
6164       conftest$ac_exeext conftest.$ac_ext
6165   done
6166   if test "$pgac_cv_check_readline" != no ; then
6167     echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6168 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6169     break
6170   else
6171     echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6173   fi
6174 done
6175 LIBS=$pgac_save_LIBS
6176
6177 fi
6178
6179 if test "$pgac_cv_check_readline" != no ; then
6180   LIBS="$pgac_cv_check_readline $LIBS"
6181
6182 cat >>confdefs.h <<\_ACEOF
6183 #define HAVE_LIBREADLINE 1
6184 _ACEOF
6185
6186 fi
6187
6188
6189   if test x"$pgac_cv_check_readline" = x"no"; then
6190     { { echo "$as_me:$LINENO: error: readline library not found
6191 If you have readline already installed, see config.log for details on the
6192 failure.  It is possible the compiler isn't looking in the proper directory.
6193 Use --without-readline to disable readline support." >&5
6194 echo "$as_me: error: readline library not found
6195 If you have readline already installed, see config.log for details on the
6196 failure.  It is possible the compiler isn't looking in the proper directory.
6197 Use --without-readline to disable readline support." >&2;}
6198    { (exit 1); exit 1; }; }
6199   fi
6200 fi
6201
6202 if test "$with_zlib" = yes; then
6203
6204 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6205 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6206 if test "${ac_cv_lib_z_inflate+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   ac_check_lib_save_LIBS=$LIBS
6210 LIBS="-lz  $LIBS"
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h.  */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h.  */
6217
6218 /* Override any gcc2 internal prototype to avoid an error.  */
6219 #ifdef __cplusplus
6220 extern "C"
6221 #endif
6222 /* We use char because int might match the return type of a gcc2
6223    builtin and then its argument prototype would still apply.  */
6224 char inflate ();
6225 int
6226 main ()
6227 {
6228 inflate ();
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 rm -f conftest.$ac_objext conftest$ac_exeext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6235   (eval $ac_link) 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } &&
6242          { ac_try='test -z "$ac_c_werror_flag"
6243                          || test ! -s conftest.err'
6244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245   (eval $ac_try) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; } &&
6249          { ac_try='test -s conftest$ac_exeext'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   ac_cv_lib_z_inflate=yes
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cv_lib_z_inflate=no
6261 fi
6262 rm -f conftest.err conftest.$ac_objext \
6263       conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6265 fi
6266 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6267 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6268 if test $ac_cv_lib_z_inflate = yes; then
6269   cat >>confdefs.h <<_ACEOF
6270 #define HAVE_LIBZ 1
6271 _ACEOF
6272
6273   LIBS="-lz $LIBS"
6274
6275 else
6276   { { echo "$as_me:$LINENO: error: zlib library not found
6277 If you have zlib already installed, see config.log for details on the
6278 failure.  It is possible the compiler isn't looking in the proper directory.
6279 Use --without-zlib to disable zlib support." >&5
6280 echo "$as_me: error: zlib library not found
6281 If you have zlib already installed, see config.log for details on the
6282 failure.  It is possible the compiler isn't looking in the proper directory.
6283 Use --without-zlib to disable zlib support." >&2;}
6284    { (exit 1); exit 1; }; }
6285 fi
6286
6287 fi
6288
6289 if test "$enable_spinlocks" = yes; then
6290
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_SPINLOCKS 1
6293 _ACEOF
6294
6295 else
6296   { echo "$as_me:$LINENO: WARNING:
6297 *** Not using spinlocks will cause poor performance." >&5
6298 echo "$as_me: WARNING:
6299 *** Not using spinlocks will cause poor performance." >&2;}
6300 fi
6301
6302 if test "$with_krb5" = yes ; then
6303   if test "$PORTNAME" != "win32"; then
6304      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6305 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6306 if test "${ac_cv_search_com_err+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   ac_func_search_save_LIBS=$LIBS
6310 ac_cv_search_com_err=no
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317
6318 /* Override any gcc2 internal prototype to avoid an error.  */
6319 #ifdef __cplusplus
6320 extern "C"
6321 #endif
6322 /* We use char because int might match the return type of a gcc2
6323    builtin and then its argument prototype would still apply.  */
6324 char com_err ();
6325 int
6326 main ()
6327 {
6328 com_err ();
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335   (eval $ac_link) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"
6343                          || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest$ac_exeext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_cv_search_com_err="none required"
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 fi
6361 rm -f conftest.err conftest.$ac_objext \
6362       conftest$ac_exeext conftest.$ac_ext
6363 if test "$ac_cv_search_com_err" = no; then
6364   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6366     cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h.  */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h.  */
6372
6373 /* Override any gcc2 internal prototype to avoid an error.  */
6374 #ifdef __cplusplus
6375 extern "C"
6376 #endif
6377 /* We use char because int might match the return type of a gcc2
6378    builtin and then its argument prototype would still apply.  */
6379 char com_err ();
6380 int
6381 main ()
6382 {
6383 com_err ();
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390   (eval $ac_link) 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } &&
6397          { ac_try='test -z "$ac_c_werror_flag"
6398                          || test ! -s conftest.err'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest$ac_exeext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_search_com_err="-l$ac_lib"
6411 break
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 fi
6417 rm -f conftest.err conftest.$ac_objext \
6418       conftest$ac_exeext conftest.$ac_ext
6419   done
6420 fi
6421 LIBS=$ac_func_search_save_LIBS
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6424 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6425 if test "$ac_cv_search_com_err" != no; then
6426   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6427
6428 else
6429   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6430 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6431    { (exit 1); exit 1; }; }
6432 fi
6433
6434      echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6435 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6436 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   ac_func_search_save_LIBS=$LIBS
6440 ac_cv_search_krb5_encrypt=no
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char krb5_encrypt ();
6455 int
6456 main ()
6457 {
6458 krb5_encrypt ();
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465   (eval $ac_link) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -z "$ac_c_werror_flag"
6473                          || test ! -s conftest.err'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; } &&
6479          { ac_try='test -s conftest$ac_exeext'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; }; then
6485   ac_cv_search_krb5_encrypt="none required"
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 fi
6491 rm -f conftest.err conftest.$ac_objext \
6492       conftest$ac_exeext conftest.$ac_ext
6493 if test "$ac_cv_search_krb5_encrypt" = no; then
6494   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6496     cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502
6503 /* Override any gcc2 internal prototype to avoid an error.  */
6504 #ifdef __cplusplus
6505 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508    builtin and then its argument prototype would still apply.  */
6509 char krb5_encrypt ();
6510 int
6511 main ()
6512 {
6513 krb5_encrypt ();
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520   (eval $ac_link) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_search_krb5_encrypt="-l$ac_lib"
6541 break
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 fi
6547 rm -f conftest.err conftest.$ac_objext \
6548       conftest$ac_exeext conftest.$ac_ext
6549   done
6550 fi
6551 LIBS=$ac_func_search_save_LIBS
6552 fi
6553 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6554 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6555 if test "$ac_cv_search_krb5_encrypt" != no; then
6556   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6557
6558 else
6559   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6560 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6561    { (exit 1); exit 1; }; }
6562 fi
6563
6564      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6565 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6566 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   ac_func_search_save_LIBS=$LIBS
6570 ac_cv_search_krb5_sendauth=no
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577
6578 /* Override any gcc2 internal prototype to avoid an error.  */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 /* We use char because int might match the return type of a gcc2
6583    builtin and then its argument prototype would still apply.  */
6584 char krb5_sendauth ();
6585 int
6586 main ()
6587 {
6588 krb5_sendauth ();
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595   (eval $ac_link) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"
6603                          || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest$ac_exeext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   ac_cv_search_krb5_sendauth="none required"
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 fi
6621 rm -f conftest.err conftest.$ac_objext \
6622       conftest$ac_exeext conftest.$ac_ext
6623 if test "$ac_cv_search_krb5_sendauth" = no; then
6624   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6626     cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h.  */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h.  */
6632
6633 /* Override any gcc2 internal prototype to avoid an error.  */
6634 #ifdef __cplusplus
6635 extern "C"
6636 #endif
6637 /* We use char because int might match the return type of a gcc2
6638    builtin and then its argument prototype would still apply.  */
6639 char krb5_sendauth ();
6640 int
6641 main ()
6642 {
6643 krb5_sendauth ();
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650   (eval $ac_link) 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } &&
6657          { ac_try='test -z "$ac_c_werror_flag"
6658                          || test ! -s conftest.err'
6659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660   (eval $ac_try) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); }; } &&
6664          { ac_try='test -s conftest$ac_exeext'
6665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666   (eval $ac_try) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); }; }; then
6670   ac_cv_search_krb5_sendauth="-l$ac_lib"
6671 break
6672 else
6673   echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 fi
6677 rm -f conftest.err conftest.$ac_objext \
6678       conftest$ac_exeext conftest.$ac_ext
6679   done
6680 fi
6681 LIBS=$ac_func_search_save_LIBS
6682 fi
6683 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6684 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6685 if test "$ac_cv_search_krb5_sendauth" != no; then
6686   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6687
6688 else
6689   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6690 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6691    { (exit 1); exit 1; }; }
6692 fi
6693
6694   else
6695      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6696 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6697 if test "${ac_cv_search_com_err+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   ac_func_search_save_LIBS=$LIBS
6701 ac_cv_search_com_err=no
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h.  */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h.  */
6708
6709 /* Override any gcc2 internal prototype to avoid an error.  */
6710 #ifdef __cplusplus
6711 extern "C"
6712 #endif
6713 /* We use char because int might match the return type of a gcc2
6714    builtin and then its argument prototype would still apply.  */
6715 char com_err ();
6716 int
6717 main ()
6718 {
6719 com_err ();
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726   (eval $ac_link) 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -z "$ac_c_werror_flag"
6734                          || test ! -s conftest.err'
6735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736   (eval $ac_try) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; } &&
6740          { ac_try='test -s conftest$ac_exeext'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; }; then
6746   ac_cv_search_com_err="none required"
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751 fi
6752 rm -f conftest.err conftest.$ac_objext \
6753       conftest$ac_exeext conftest.$ac_ext
6754 if test "$ac_cv_search_com_err" = no; then
6755   for ac_lib in 'comerr32 -lkrb5_32'; do
6756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6757     cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763
6764 /* Override any gcc2 internal prototype to avoid an error.  */
6765 #ifdef __cplusplus
6766 extern "C"
6767 #endif
6768 /* We use char because int might match the return type of a gcc2
6769    builtin and then its argument prototype would still apply.  */
6770 char com_err ();
6771 int
6772 main ()
6773 {
6774 com_err ();
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781   (eval $ac_link) 2>conftest.er1
6782   ac_status=$?
6783   grep -v '^ *+' conftest.er1 >conftest.err
6784   rm -f conftest.er1
6785   cat conftest.err >&5
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } &&
6788          { ac_try='test -z "$ac_c_werror_flag"
6789                          || test ! -s conftest.err'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; } &&
6795          { ac_try='test -s conftest$ac_exeext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   ac_cv_search_com_err="-l$ac_lib"
6802 break
6803 else
6804   echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 fi
6808 rm -f conftest.err conftest.$ac_objext \
6809       conftest$ac_exeext conftest.$ac_ext
6810   done
6811 fi
6812 LIBS=$ac_func_search_save_LIBS
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6815 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6816 if test "$ac_cv_search_com_err" != no; then
6817   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6818
6819 else
6820   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6821 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6822    { (exit 1); exit 1; }; }
6823 fi
6824
6825   fi
6826 fi
6827
6828 if test "$with_openssl" = yes ; then
6829     if test "$PORTNAME" != "win32"; then
6830
6831 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6832 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6833 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   ac_check_lib_save_LIBS=$LIBS
6837 LIBS="-lcrypto  $LIBS"
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h.  */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h.  */
6844
6845 /* Override any gcc2 internal prototype to avoid an error.  */
6846 #ifdef __cplusplus
6847 extern "C"
6848 #endif
6849 /* We use char because int might match the return type of a gcc2
6850    builtin and then its argument prototype would still apply.  */
6851 char CRYPTO_new_ex_data ();
6852 int
6853 main ()
6854 {
6855 CRYPTO_new_ex_data ();
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862   (eval $ac_link) 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -z "$ac_c_werror_flag"
6870                          || test ! -s conftest.err'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; } &&
6876          { ac_try='test -s conftest$ac_exeext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6883 else
6884   echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6888 fi
6889 rm -f conftest.err conftest.$ac_objext \
6890       conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_check_lib_save_LIBS
6892 fi
6893 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6894 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6895 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6896   cat >>confdefs.h <<_ACEOF
6897 #define HAVE_LIBCRYPTO 1
6898 _ACEOF
6899
6900   LIBS="-lcrypto $LIBS"
6901
6902 else
6903   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6904 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6905    { (exit 1); exit 1; }; }
6906 fi
6907
6908
6909 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6910 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6911 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   ac_check_lib_save_LIBS=$LIBS
6915 LIBS="-lssl  $LIBS"
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922
6923 /* Override any gcc2 internal prototype to avoid an error.  */
6924 #ifdef __cplusplus
6925 extern "C"
6926 #endif
6927 /* We use char because int might match the return type of a gcc2
6928    builtin and then its argument prototype would still apply.  */
6929 char SSL_library_init ();
6930 int
6931 main ()
6932 {
6933 SSL_library_init ();
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940   (eval $ac_link) 2>conftest.er1
6941   ac_status=$?
6942   grep -v '^ *+' conftest.er1 >conftest.err
6943   rm -f conftest.er1
6944   cat conftest.err >&5
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -z "$ac_c_werror_flag"
6948                          || test ! -s conftest.err'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; } &&
6954          { ac_try='test -s conftest$ac_exeext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   ac_cv_lib_ssl_SSL_library_init=yes
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_cv_lib_ssl_SSL_library_init=no
6966 fi
6967 rm -f conftest.err conftest.$ac_objext \
6968       conftest$ac_exeext conftest.$ac_ext
6969 LIBS=$ac_check_lib_save_LIBS
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6972 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6973 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6974   cat >>confdefs.h <<_ACEOF
6975 #define HAVE_LIBSSL 1
6976 _ACEOF
6977
6978   LIBS="-lssl $LIBS"
6979
6980 else
6981   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6982 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6983    { (exit 1); exit 1; }; }
6984 fi
6985
6986   else
6987
6988 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6989 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6990 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   ac_check_lib_save_LIBS=$LIBS
6994 LIBS="-leay32  $LIBS"
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001
7002 /* Override any gcc2 internal prototype to avoid an error.  */
7003 #ifdef __cplusplus
7004 extern "C"
7005 #endif
7006 /* We use char because int might match the return type of a gcc2
7007    builtin and then its argument prototype would still apply.  */
7008 char CRYPTO_new_ex_data ();
7009 int
7010 main ()
7011 {
7012 CRYPTO_new_ex_data ();
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019   (eval $ac_link) 2>conftest.er1
7020   ac_status=$?
7021   grep -v '^ *+' conftest.er1 >conftest.err
7022   rm -f conftest.er1
7023   cat conftest.err >&5
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } &&
7026          { ac_try='test -z "$ac_c_werror_flag"
7027                          || test ! -s conftest.err'
7028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029   (eval $ac_try) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }; } &&
7033          { ac_try='test -s conftest$ac_exeext'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7045 fi
7046 rm -f conftest.err conftest.$ac_objext \
7047       conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7051 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7052 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7053   cat >>confdefs.h <<_ACEOF
7054 #define HAVE_LIBEAY32 1
7055 _ACEOF
7056
7057   LIBS="-leay32 $LIBS"
7058
7059 else
7060   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7061 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7062    { (exit 1); exit 1; }; }
7063 fi
7064
7065
7066 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7067 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7068 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   ac_check_lib_save_LIBS=$LIBS
7072 LIBS="-lssleay32  $LIBS"
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079
7080 /* Override any gcc2 internal prototype to avoid an error.  */
7081 #ifdef __cplusplus
7082 extern "C"
7083 #endif
7084 /* We use char because int might match the return type of a gcc2
7085    builtin and then its argument prototype would still apply.  */
7086 char SSL_library_init ();
7087 int
7088 main ()
7089 {
7090 SSL_library_init ();
7091   ;
7092   return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097   (eval $ac_link) 2>conftest.er1
7098   ac_status=$?
7099   grep -v '^ *+' conftest.er1 >conftest.err
7100   rm -f conftest.er1
7101   cat conftest.err >&5
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); } &&
7104          { ac_try='test -z "$ac_c_werror_flag"
7105                          || test ! -s conftest.err'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; } &&
7111          { ac_try='test -s conftest$ac_exeext'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; }; then
7117   ac_cv_lib_ssleay32_SSL_library_init=yes
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_lib_ssleay32_SSL_library_init=no
7123 fi
7124 rm -f conftest.err conftest.$ac_objext \
7125       conftest$ac_exeext conftest.$ac_ext
7126 LIBS=$ac_check_lib_save_LIBS
7127 fi
7128 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7129 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7130 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7131   cat >>confdefs.h <<_ACEOF
7132 #define HAVE_LIBSSLEAY32 1
7133 _ACEOF
7134
7135   LIBS="-lssleay32 $LIBS"
7136
7137 else
7138   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7139 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7140    { (exit 1); exit 1; }; }
7141 fi
7142
7143   fi
7144 fi
7145
7146 if test "$with_pam" = yes ; then
7147
7148 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7149 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7150 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   ac_check_lib_save_LIBS=$LIBS
7154 LIBS="-lpam  $LIBS"
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char pam_start ();
7169 int
7170 main ()
7171 {
7172 pam_start ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -z "$ac_c_werror_flag"
7187                          || test ! -s conftest.err'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; } &&
7193          { ac_try='test -s conftest$ac_exeext'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   ac_cv_lib_pam_pam_start=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_cv_lib_pam_pam_start=no
7205 fi
7206 rm -f conftest.err conftest.$ac_objext \
7207       conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7209 fi
7210 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7211 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7212 if test $ac_cv_lib_pam_pam_start = yes; then
7213   cat >>confdefs.h <<_ACEOF
7214 #define HAVE_LIBPAM 1
7215 _ACEOF
7216
7217   LIBS="-lpam $LIBS"
7218
7219 else
7220   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7221 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7222    { (exit 1); exit 1; }; }
7223 fi
7224
7225 fi
7226
7227
7228 if test "$with_ldap" = yes ; then
7229   if test "$PORTNAME" != "win32"; then
7230
7231 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
7232 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
7233 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-lldap  $LIBS"
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244
7245 /* Override any gcc2 internal prototype to avoid an error.  */
7246 #ifdef __cplusplus
7247 extern "C"
7248 #endif
7249 /* We use char because int might match the return type of a gcc2
7250    builtin and then its argument prototype would still apply.  */
7251 char ldap_bind ();
7252 int
7253 main ()
7254 {
7255 ldap_bind ();
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262   (eval $ac_link) 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -z "$ac_c_werror_flag"
7270                          || test ! -s conftest.err'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; } &&
7276          { ac_try='test -s conftest$ac_exeext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_lib_ldap_ldap_bind=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_ldap_ldap_bind=no
7288 fi
7289 rm -f conftest.err conftest.$ac_objext \
7290       conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
7294 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
7295 if test $ac_cv_lib_ldap_ldap_bind = yes; then
7296   cat >>confdefs.h <<_ACEOF
7297 #define HAVE_LIBLDAP 1
7298 _ACEOF
7299
7300   LIBS="-lldap $LIBS"
7301
7302 else
7303   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
7304 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
7305    { (exit 1); exit 1; }; }
7306 fi
7307
7308   else
7309
7310 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
7311 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
7312 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   ac_check_lib_save_LIBS=$LIBS
7316 LIBS="-lwldap32  $LIBS"
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323
7324 /* Override any gcc2 internal prototype to avoid an error.  */
7325 #ifdef __cplusplus
7326 extern "C"
7327 #endif
7328 /* We use char because int might match the return type of a gcc2
7329    builtin and then its argument prototype would still apply.  */
7330 char ldap_bind ();
7331 int
7332 main ()
7333 {
7334 ldap_bind ();
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341   (eval $ac_link) 2>conftest.er1
7342   ac_status=$?
7343   grep -v '^ *+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } &&
7348          { ac_try='test -z "$ac_c_werror_flag"
7349                          || test ! -s conftest.err'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; } &&
7355          { ac_try='test -s conftest$ac_exeext'
7356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357   (eval $ac_try) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; }; then
7361   ac_cv_lib_wldap32_ldap_bind=yes
7362 else
7363   echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 ac_cv_lib_wldap32_ldap_bind=no
7367 fi
7368 rm -f conftest.err conftest.$ac_objext \
7369       conftest$ac_exeext conftest.$ac_ext
7370 LIBS=$ac_check_lib_save_LIBS
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
7373 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
7374 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
7375   cat >>confdefs.h <<_ACEOF
7376 #define HAVE_LIBWLDAP32 1
7377 _ACEOF
7378
7379   LIBS="-lwldap32 $LIBS"
7380
7381 else
7382   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
7383 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
7384    { (exit 1); exit 1; }; }
7385 fi
7386
7387   fi
7388 fi
7389
7390 ##
7391 ## Header files
7392 ##
7393
7394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7396 if test "${ac_cv_header_stdc+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405 #include <stdlib.h>
7406 #include <stdarg.h>
7407 #include <string.h>
7408 #include <float.h>
7409
7410 int
7411 main ()
7412 {
7413
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420   (eval $ac_compile) 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -z "$ac_c_werror_flag"
7428                          || test ! -s conftest.err'
7429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430   (eval $ac_try) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }; } &&
7434          { ac_try='test -s conftest.$ac_objext'
7435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436   (eval $ac_try) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; }; then
7440   ac_cv_header_stdc=yes
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445 ac_cv_header_stdc=no
7446 fi
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448
7449 if test $ac_cv_header_stdc = yes; then
7450   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7451   cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <string.h>
7458
7459 _ACEOF
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461   $EGREP "memchr" >/dev/null 2>&1; then
7462   :
7463 else
7464   ac_cv_header_stdc=no
7465 fi
7466 rm -f conftest*
7467
7468 fi
7469
7470 if test $ac_cv_header_stdc = yes; then
7471   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7472   cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h.  */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h.  */
7478 #include <stdlib.h>
7479
7480 _ACEOF
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482   $EGREP "free" >/dev/null 2>&1; then
7483   :
7484 else
7485   ac_cv_header_stdc=no
7486 fi
7487 rm -f conftest*
7488
7489 fi
7490
7491 if test $ac_cv_header_stdc = yes; then
7492   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7493   if test "$cross_compiling" = yes; then
7494   :
7495 else
7496   cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h.  */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h.  */
7502 #include <ctype.h>
7503 #if ((' ' & 0x0FF) == 0x020)
7504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7506 #else
7507 # define ISLOWER(c) \
7508                    (('a' <= (c) && (c) <= 'i') \
7509                      || ('j' <= (c) && (c) <= 'r') \
7510                      || ('s' <= (c) && (c) <= 'z'))
7511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7512 #endif
7513
7514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7515 int
7516 main ()
7517 {
7518   int i;
7519   for (i = 0; i < 256; i++)
7520     if (XOR (islower (i), ISLOWER (i))
7521         || toupper (i) != TOUPPER (i))
7522       exit(2);
7523   exit (0);
7524 }
7525 _ACEOF
7526 rm -f conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528   (eval $ac_link) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533   (eval $ac_try) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   :
7538 else
7539   echo "$as_me: program exited with status $ac_status" >&5
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ( exit $ac_status )
7544 ac_cv_header_stdc=no
7545 fi
7546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 fi
7549 fi
7550 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7551 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7552 if test $ac_cv_header_stdc = yes; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define STDC_HEADERS 1
7556 _ACEOF
7557
7558 fi
7559
7560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571                   inttypes.h stdint.h unistd.h
7572 do
7573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585 $ac_includes_default
7586
7587 #include <$ac_header>
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591   (eval $ac_compile) 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag"
7599                          || test ! -s conftest.err'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; } &&
7605          { ac_try='test -s conftest.$ac_objext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   eval "$as_ac_Header=yes"
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 eval "$as_ac_Header=no"
7617 fi
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623   cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7625 _ACEOF
7626
7627 fi
7628
7629 done
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7658 do
7659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661   echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 fi
7666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7668 else
7669   # Is the header compilable?
7670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 $ac_includes_default
7679 #include <$ac_header>
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683   (eval $ac_compile) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_c_werror_flag"
7691                          || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest.$ac_objext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_header_compiler=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_header_compiler=no
7709 fi
7710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7712 echo "${ECHO_T}$ac_header_compiler" >&6
7713
7714 # Is the header present?
7715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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.  */
7723 #include <$ac_header>
7724 _ACEOF
7725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } >/dev/null; then
7733   if test -s conftest.err; then
7734     ac_cpp_err=$ac_c_preproc_warn_flag
7735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7736   else
7737     ac_cpp_err=
7738   fi
7739 else
7740   ac_cpp_err=yes
7741 fi
7742 if test -z "$ac_cpp_err"; then
7743   ac_header_preproc=yes
7744 else
7745   echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748   ac_header_preproc=no
7749 fi
7750 rm -f conftest.err conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7752 echo "${ECHO_T}$ac_header_preproc" >&6
7753
7754 # So?  What about this header?
7755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7756   yes:no: )
7757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7761     ac_header_preproc=yes
7762     ;;
7763   no:yes:* )
7764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7776     (
7777       cat <<\_ASBOX
7778 ## ---------------------------------------- ##
7779 ## Report this to pgsql-bugs@postgresql.org ##
7780 ## ---------------------------------------- ##
7781 _ASBOX
7782     ) |
7783       sed "s/^/$as_me: WARNING:     /" >&2
7784     ;;
7785 esac
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   eval "$as_ac_Header=\$ac_header_preproc"
7792 fi
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7795
7796 fi
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798   cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7801
7802 fi
7803
7804 done
7805
7806
7807 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7808 # netinet/in.h is included first.
7809
7810 for ac_header in netinet/in.h
7811 do
7812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814   echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 fi
7819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7821 else
7822   # Is the header compilable?
7823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 $ac_includes_default
7832 #include <$ac_header>
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>conftest.er1
7837   ac_status=$?
7838   grep -v '^ *+' conftest.er1 >conftest.err
7839   rm -f conftest.er1
7840   cat conftest.err >&5
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); } &&
7843          { ac_try='test -z "$ac_c_werror_flag"
7844                          || test ! -s conftest.err'
7845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846   (eval $ac_try) 2>&5
7847   ac_status=$?
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); }; } &&
7850          { ac_try='test -s conftest.$ac_objext'
7851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852   (eval $ac_try) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; }; then
7856   ac_header_compiler=yes
7857 else
7858   echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ac_header_compiler=no
7862 fi
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7865 echo "${ECHO_T}$ac_header_compiler" >&6
7866
7867 # Is the header present?
7868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876 #include <$ac_header>
7877 _ACEOF
7878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } >/dev/null; then
7886   if test -s conftest.err; then
7887     ac_cpp_err=$ac_c_preproc_warn_flag
7888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7889   else
7890     ac_cpp_err=
7891   fi
7892 else
7893   ac_cpp_err=yes
7894 fi
7895 if test -z "$ac_cpp_err"; then
7896   ac_header_preproc=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901   ac_header_preproc=no
7902 fi
7903 rm -f conftest.err conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7905 echo "${ECHO_T}$ac_header_preproc" >&6
7906
7907 # So?  What about this header?
7908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7909   yes:no: )
7910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7914     ac_header_preproc=yes
7915     ;;
7916   no:yes:* )
7917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7929     (
7930       cat <<\_ASBOX
7931 ## ---------------------------------------- ##
7932 ## Report this to pgsql-bugs@postgresql.org ##
7933 ## ---------------------------------------- ##
7934 _ASBOX
7935     ) |
7936       sed "s/^/$as_me: WARNING:     /" >&2
7937     ;;
7938 esac
7939 echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   eval "$as_ac_Header=\$ac_header_preproc"
7945 fi
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948
7949 fi
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951   cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7953 _ACEOF
7954
7955 fi
7956
7957 done
7958
7959
7960 for ac_header in netinet/tcp.h
7961 do
7962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 echo "$as_me:$LINENO: checking for $ac_header" >&5
7964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 $ac_includes_default
7975 #ifdef HAVE_NETINET_IN_H
7976 #include <netinet/in.h>
7977 #endif
7978
7979
7980 #include <$ac_header>
7981 _ACEOF
7982 rm -f conftest.$ac_objext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984   (eval $ac_compile) 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_objext'
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   eval "$as_ac_Header=yes"
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 eval "$as_ac_Header=no"
8010 fi
8011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016   cat >>confdefs.h <<_ACEOF
8017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8018 _ACEOF
8019
8020 fi
8021
8022 done
8023
8024
8025 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8026
8027 for ac_header in readline/readline.h
8028 do
8029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031   echo "$as_me:$LINENO: checking for $ac_header" >&5
8032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 fi
8036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8038 else
8039   # Is the header compilable?
8040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048 $ac_includes_default
8049 #include <$ac_header>
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053   (eval $ac_compile) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } &&
8060          { ac_try='test -z "$ac_c_werror_flag"
8061                          || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest.$ac_objext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_header_compiler=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ac_header_compiler=no
8079 fi
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8082 echo "${ECHO_T}$ac_header_compiler" >&6
8083
8084 # Is the header present?
8085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093 #include <$ac_header>
8094 _ACEOF
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } >/dev/null; then
8103   if test -s conftest.err; then
8104     ac_cpp_err=$ac_c_preproc_warn_flag
8105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8106   else
8107     ac_cpp_err=
8108   fi
8109 else
8110   ac_cpp_err=yes
8111 fi
8112 if test -z "$ac_cpp_err"; then
8113   ac_header_preproc=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118   ac_header_preproc=no
8119 fi
8120 rm -f conftest.err conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8122 echo "${ECHO_T}$ac_header_preproc" >&6
8123
8124 # So?  What about this header?
8125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8126   yes:no: )
8127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8131     ac_header_preproc=yes
8132     ;;
8133   no:yes:* )
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8146     (
8147       cat <<\_ASBOX
8148 ## ---------------------------------------- ##
8149 ## Report this to pgsql-bugs@postgresql.org ##
8150 ## ---------------------------------------- ##
8151 _ASBOX
8152     ) |
8153       sed "s/^/$as_me: WARNING:     /" >&2
8154     ;;
8155 esac
8156 echo "$as_me:$LINENO: checking for $ac_header" >&5
8157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161   eval "$as_ac_Header=\$ac_header_preproc"
8162 fi
8163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8165
8166 fi
8167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8168   cat >>confdefs.h <<_ACEOF
8169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8170 _ACEOF
8171
8172 else
8173
8174 for ac_header in readline.h
8175 do
8176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178   echo "$as_me:$LINENO: checking for $ac_header" >&5
8179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 fi
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8185 else
8186   # Is the header compilable?
8187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 $ac_includes_default
8196 #include <$ac_header>
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200   (eval $ac_compile) 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } &&
8207          { ac_try='test -z "$ac_c_werror_flag"
8208                          || test ! -s conftest.err'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216   (eval $ac_try) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; }; then
8220   ac_header_compiler=yes
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_header_compiler=no
8226 fi
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8229 echo "${ECHO_T}$ac_header_compiler" >&6
8230
8231 # Is the header present?
8232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 #include <$ac_header>
8241 _ACEOF
8242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8244   ac_status=$?
8245   grep -v '^ *+' conftest.er1 >conftest.err
8246   rm -f conftest.er1
8247   cat conftest.err >&5
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } >/dev/null; then
8250   if test -s conftest.err; then
8251     ac_cpp_err=$ac_c_preproc_warn_flag
8252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8253   else
8254     ac_cpp_err=
8255   fi
8256 else
8257   ac_cpp_err=yes
8258 fi
8259 if test -z "$ac_cpp_err"; then
8260   ac_header_preproc=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265   ac_header_preproc=no
8266 fi
8267 rm -f conftest.err conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8269 echo "${ECHO_T}$ac_header_preproc" >&6
8270
8271 # So?  What about this header?
8272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8273   yes:no: )
8274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8278     ac_header_preproc=yes
8279     ;;
8280   no:yes:* )
8281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8293     (
8294       cat <<\_ASBOX
8295 ## ---------------------------------------- ##
8296 ## Report this to pgsql-bugs@postgresql.org ##
8297 ## ---------------------------------------- ##
8298 _ASBOX
8299     ) |
8300       sed "s/^/$as_me: WARNING:     /" >&2
8301     ;;
8302 esac
8303 echo "$as_me:$LINENO: checking for $ac_header" >&5
8304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   eval "$as_ac_Header=\$ac_header_preproc"
8309 fi
8310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8312
8313 fi
8314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8315   cat >>confdefs.h <<_ACEOF
8316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8317 _ACEOF
8318
8319 else
8320   { { echo "$as_me:$LINENO: error: readline header not found
8321 If you have readline already installed, see config.log for details on the
8322 failure.  It is possible the compiler isn't looking in the proper directory.
8323 Use --without-readline to disable readline support." >&5
8324 echo "$as_me: error: readline header not found
8325 If you have readline already installed, see config.log for details on the
8326 failure.  It is possible the compiler isn't looking in the proper directory.
8327 Use --without-readline to disable readline support." >&2;}
8328    { (exit 1); exit 1; }; }
8329 fi
8330
8331 done
8332
8333 fi
8334
8335 done
8336
8337
8338 for ac_header in readline/history.h
8339 do
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342   echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 fi
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8349 else
8350   # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359 $ac_includes_default
8360 #include <$ac_header>
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364   (eval $ac_compile) 2>conftest.er1
8365   ac_status=$?
8366   grep -v '^ *+' conftest.er1 >conftest.err
8367   rm -f conftest.er1
8368   cat conftest.err >&5
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -z "$ac_c_werror_flag"
8372                          || test ! -s conftest.err'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; } &&
8378          { ac_try='test -s conftest.$ac_objext'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   ac_header_compiler=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389 ac_header_compiler=no
8390 fi
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393 echo "${ECHO_T}$ac_header_compiler" >&6
8394
8395 # Is the header present?
8396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 #include <$ac_header>
8405 _ACEOF
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } >/dev/null; then
8414   if test -s conftest.err; then
8415     ac_cpp_err=$ac_c_preproc_warn_flag
8416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8417   else
8418     ac_cpp_err=
8419   fi
8420 else
8421   ac_cpp_err=yes
8422 fi
8423 if test -z "$ac_cpp_err"; then
8424   ac_header_preproc=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429   ac_header_preproc=no
8430 fi
8431 rm -f conftest.err conftest.$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6
8434
8435 # So?  What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437   yes:no: )
8438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442     ac_header_preproc=yes
8443     ;;
8444   no:yes:* )
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8457     (
8458       cat <<\_ASBOX
8459 ## ---------------------------------------- ##
8460 ## Report this to pgsql-bugs@postgresql.org ##
8461 ## ---------------------------------------- ##
8462 _ASBOX
8463     ) |
8464       sed "s/^/$as_me: WARNING:     /" >&2
8465     ;;
8466 esac
8467 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   eval "$as_ac_Header=\$ac_header_preproc"
8473 fi
8474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8476
8477 fi
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 else
8484
8485 for ac_header in history.h
8486 do
8487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489   echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 fi
8494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8496 else
8497   # Is the header compilable?
8498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506 $ac_includes_default
8507 #include <$ac_header>
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511   (eval $ac_compile) 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } &&
8518          { ac_try='test -z "$ac_c_werror_flag"
8519                          || test ! -s conftest.err'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; } &&
8525          { ac_try='test -s conftest.$ac_objext'
8526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527   (eval $ac_try) 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; }; then
8531   ac_header_compiler=yes
8532 else
8533   echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_header_compiler=no
8537 fi
8538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8541
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551 #include <$ac_header>
8552 _ACEOF
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } >/dev/null; then
8561   if test -s conftest.err; then
8562     ac_cpp_err=$ac_c_preproc_warn_flag
8563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8564   else
8565     ac_cpp_err=
8566   fi
8567 else
8568   ac_cpp_err=yes
8569 fi
8570 if test -z "$ac_cpp_err"; then
8571   ac_header_preproc=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576   ac_header_preproc=no
8577 fi
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8581
8582 # So?  What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584   yes:no: )
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589     ac_header_preproc=yes
8590     ;;
8591   no:yes:* )
8592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8604     (
8605       cat <<\_ASBOX
8606 ## ---------------------------------------- ##
8607 ## Report this to pgsql-bugs@postgresql.org ##
8608 ## ---------------------------------------- ##
8609 _ASBOX
8610     ) |
8611       sed "s/^/$as_me: WARNING:     /" >&2
8612     ;;
8613 esac
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619   eval "$as_ac_Header=\$ac_header_preproc"
8620 fi
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8623
8624 fi
8625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626   cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 _ACEOF
8629
8630 else
8631   { { echo "$as_me:$LINENO: error: history header not found
8632 If you have readline already installed, see config.log for details on the
8633 failure.  It is possible the compiler isn't looking in the proper directory.
8634 Use --without-readline to disable readline support." >&5
8635 echo "$as_me: error: history header not found
8636 If you have readline already installed, see config.log for details on the
8637 failure.  It is possible the compiler isn't looking in the proper directory.
8638 Use --without-readline to disable readline support." >&2;}
8639    { (exit 1); exit 1; }; }
8640 fi
8641
8642 done
8643
8644 fi
8645
8646 done
8647
8648 fi
8649
8650 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8651 # Some installations of libedit usurp /usr/include/readline/, which seems
8652 # bad practice, since in combined installations readline will have its headers
8653 # there.  We might have to resort to AC_EGREP checks to make sure we found
8654 # the proper header...
8655
8656 for ac_header in editline/readline.h
8657 do
8658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660   echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 fi
8665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8667 else
8668   # Is the header compilable?
8669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 $ac_includes_default
8678 #include <$ac_header>
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682   (eval $ac_compile) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag"
8690                          || test ! -s conftest.err'
8691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692   (eval $ac_try) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); }; } &&
8696          { ac_try='test -s conftest.$ac_objext'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; }; then
8702   ac_header_compiler=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_header_compiler=no
8708 fi
8709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8711 echo "${ECHO_T}$ac_header_compiler" >&6
8712
8713 # Is the header present?
8714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 #include <$ac_header>
8723 _ACEOF
8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } >/dev/null; then
8732   if test -s conftest.err; then
8733     ac_cpp_err=$ac_c_preproc_warn_flag
8734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8735   else
8736     ac_cpp_err=
8737   fi
8738 else
8739   ac_cpp_err=yes
8740 fi
8741 if test -z "$ac_cpp_err"; then
8742   ac_header_preproc=yes
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747   ac_header_preproc=no
8748 fi
8749 rm -f conftest.err conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6
8752
8753 # So?  What about this header?
8754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8755   yes:no: )
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8760     ac_header_preproc=yes
8761     ;;
8762   no:yes:* )
8763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775     (
8776       cat <<\_ASBOX
8777 ## ---------------------------------------- ##
8778 ## Report this to pgsql-bugs@postgresql.org ##
8779 ## ---------------------------------------- ##
8780 _ASBOX
8781     ) |
8782       sed "s/^/$as_me: WARNING:     /" >&2
8783     ;;
8784 esac
8785 echo "$as_me:$LINENO: checking for $ac_header" >&5
8786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   eval "$as_ac_Header=\$ac_header_preproc"
8791 fi
8792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8794
8795 fi
8796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8797   cat >>confdefs.h <<_ACEOF
8798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8799 _ACEOF
8800
8801 else
8802
8803 for ac_header in readline.h
8804 do
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807   echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 fi
8812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8814 else
8815   # Is the header compilable?
8816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824 $ac_includes_default
8825 #include <$ac_header>
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829   (eval $ac_compile) 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag"
8837                          || test ! -s conftest.err'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; } &&
8843          { ac_try='test -s conftest.$ac_objext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_header_compiler=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_header_compiler=no
8855 fi
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8858 echo "${ECHO_T}$ac_header_compiler" >&6
8859
8860 # Is the header present?
8861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869 #include <$ac_header>
8870 _ACEOF
8871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } >/dev/null; then
8879   if test -s conftest.err; then
8880     ac_cpp_err=$ac_c_preproc_warn_flag
8881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8882   else
8883     ac_cpp_err=
8884   fi
8885 else
8886   ac_cpp_err=yes
8887 fi
8888 if test -z "$ac_cpp_err"; then
8889   ac_header_preproc=yes
8890 else
8891   echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894   ac_header_preproc=no
8895 fi
8896 rm -f conftest.err conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8898 echo "${ECHO_T}$ac_header_preproc" >&6
8899
8900 # So?  What about this header?
8901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8902   yes:no: )
8903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8907     ac_header_preproc=yes
8908     ;;
8909   no:yes:* )
8910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8922     (
8923       cat <<\_ASBOX
8924 ## ---------------------------------------- ##
8925 ## Report this to pgsql-bugs@postgresql.org ##
8926 ## ---------------------------------------- ##
8927 _ASBOX
8928     ) |
8929       sed "s/^/$as_me: WARNING:     /" >&2
8930     ;;
8931 esac
8932 echo "$as_me:$LINENO: checking for $ac_header" >&5
8933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937   eval "$as_ac_Header=\$ac_header_preproc"
8938 fi
8939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8941
8942 fi
8943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8944   cat >>confdefs.h <<_ACEOF
8945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8946 _ACEOF
8947
8948 else
8949
8950 for ac_header in readline/readline.h
8951 do
8952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8954   echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 fi
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961 else
8962   # Is the header compilable?
8963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 $ac_includes_default
8972 #include <$ac_header>
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976   (eval $ac_compile) 2>conftest.er1
8977   ac_status=$?
8978   grep -v '^ *+' conftest.er1 >conftest.err
8979   rm -f conftest.er1
8980   cat conftest.err >&5
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); } &&
8983          { ac_try='test -z "$ac_c_werror_flag"
8984                          || test ! -s conftest.err'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; } &&
8990          { ac_try='test -s conftest.$ac_objext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   ac_header_compiler=yes
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 ac_header_compiler=no
9002 fi
9003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9005 echo "${ECHO_T}$ac_header_compiler" >&6
9006
9007 # Is the header present?
9008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 #include <$ac_header>
9017 _ACEOF
9018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } >/dev/null; then
9026   if test -s conftest.err; then
9027     ac_cpp_err=$ac_c_preproc_warn_flag
9028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9029   else
9030     ac_cpp_err=
9031   fi
9032 else
9033   ac_cpp_err=yes
9034 fi
9035 if test -z "$ac_cpp_err"; then
9036   ac_header_preproc=yes
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041   ac_header_preproc=no
9042 fi
9043 rm -f conftest.err conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9045 echo "${ECHO_T}$ac_header_preproc" >&6
9046
9047 # So?  What about this header?
9048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9049   yes:no: )
9050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9054     ac_header_preproc=yes
9055     ;;
9056   no:yes:* )
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9069     (
9070       cat <<\_ASBOX
9071 ## ---------------------------------------- ##
9072 ## Report this to pgsql-bugs@postgresql.org ##
9073 ## ---------------------------------------- ##
9074 _ASBOX
9075     ) |
9076       sed "s/^/$as_me: WARNING:     /" >&2
9077     ;;
9078 esac
9079 echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   eval "$as_ac_Header=\$ac_header_preproc"
9085 fi
9086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9088
9089 fi
9090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9091   cat >>confdefs.h <<_ACEOF
9092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093 _ACEOF
9094
9095 else
9096   { { echo "$as_me:$LINENO: error: readline header not found
9097 If you have libedit already installed, see config.log for details on the
9098 failure.  It is possible the compiler isn't looking in the proper directory.
9099 Use --without-readline to disable libedit support." >&5
9100 echo "$as_me: error: readline header not found
9101 If you have libedit already installed, see config.log for details on the
9102 failure.  It is possible the compiler isn't looking in the proper directory.
9103 Use --without-readline to disable libedit support." >&2;}
9104    { (exit 1); exit 1; }; }
9105 fi
9106
9107 done
9108
9109 fi
9110
9111 done
9112
9113 fi
9114
9115 done
9116
9117
9118 for ac_header in editline/history.h
9119 do
9120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9122   echo "$as_me:$LINENO: checking for $ac_header" >&5
9123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9125   echo $ECHO_N "(cached) $ECHO_C" >&6
9126 fi
9127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9129 else
9130   # Is the header compilable?
9131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139 $ac_includes_default
9140 #include <$ac_header>
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144   (eval $ac_compile) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag"
9152                          || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest.$ac_objext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_header_compiler=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_header_compiler=no
9170 fi
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9173 echo "${ECHO_T}$ac_header_compiler" >&6
9174
9175 # Is the header present?
9176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h.  */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h.  */
9184 #include <$ac_header>
9185 _ACEOF
9186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } >/dev/null; then
9194   if test -s conftest.err; then
9195     ac_cpp_err=$ac_c_preproc_warn_flag
9196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9197   else
9198     ac_cpp_err=
9199   fi
9200 else
9201   ac_cpp_err=yes
9202 fi
9203 if test -z "$ac_cpp_err"; then
9204   ac_header_preproc=yes
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209   ac_header_preproc=no
9210 fi
9211 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9213 echo "${ECHO_T}$ac_header_preproc" >&6
9214
9215 # So?  What about this header?
9216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9217   yes:no: )
9218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9222     ac_header_preproc=yes
9223     ;;
9224   no:yes:* )
9225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9237     (
9238       cat <<\_ASBOX
9239 ## ---------------------------------------- ##
9240 ## Report this to pgsql-bugs@postgresql.org ##
9241 ## ---------------------------------------- ##
9242 _ASBOX
9243     ) |
9244       sed "s/^/$as_me: WARNING:     /" >&2
9245     ;;
9246 esac
9247 echo "$as_me:$LINENO: checking for $ac_header" >&5
9248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   eval "$as_ac_Header=\$ac_header_preproc"
9253 fi
9254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256
9257 fi
9258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9259   cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9261 _ACEOF
9262
9263 else
9264
9265 for ac_header in history.h
9266 do
9267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269   echo "$as_me:$LINENO: checking for $ac_header" >&5
9270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 fi
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9276 else
9277   # Is the header compilable?
9278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h.  */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h.  */
9286 $ac_includes_default
9287 #include <$ac_header>
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9291   (eval $ac_compile) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest.$ac_objext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_header_compiler=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_header_compiler=no
9317 fi
9318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9320 echo "${ECHO_T}$ac_header_compiler" >&6
9321
9322 # Is the header present?
9323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 #include <$ac_header>
9332 _ACEOF
9333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9335   ac_status=$?
9336   grep -v '^ *+' conftest.er1 >conftest.err
9337   rm -f conftest.er1
9338   cat conftest.err >&5
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } >/dev/null; then
9341   if test -s conftest.err; then
9342     ac_cpp_err=$ac_c_preproc_warn_flag
9343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9344   else
9345     ac_cpp_err=
9346   fi
9347 else
9348   ac_cpp_err=yes
9349 fi
9350 if test -z "$ac_cpp_err"; then
9351   ac_header_preproc=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356   ac_header_preproc=no
9357 fi
9358 rm -f conftest.err conftest.$ac_ext
9359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9360 echo "${ECHO_T}$ac_header_preproc" >&6
9361
9362 # So?  What about this header?
9363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9364   yes:no: )
9365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9369     ac_header_preproc=yes
9370     ;;
9371   no:yes:* )
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9384     (
9385       cat <<\_ASBOX
9386 ## ---------------------------------------- ##
9387 ## Report this to pgsql-bugs@postgresql.org ##
9388 ## ---------------------------------------- ##
9389 _ASBOX
9390     ) |
9391       sed "s/^/$as_me: WARNING:     /" >&2
9392     ;;
9393 esac
9394 echo "$as_me:$LINENO: checking for $ac_header" >&5
9395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   eval "$as_ac_Header=\$ac_header_preproc"
9400 fi
9401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9403
9404 fi
9405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9406   cat >>confdefs.h <<_ACEOF
9407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9408 _ACEOF
9409
9410 else
9411
9412 for ac_header in readline/history.h
9413 do
9414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416   echo "$as_me:$LINENO: checking for $ac_header" >&5
9417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423 else
9424   # Is the header compilable?
9425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 $ac_includes_default
9434 #include <$ac_header>
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438   (eval $ac_compile) 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -z "$ac_c_werror_flag"
9446                          || test ! -s conftest.err'
9447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448   (eval $ac_try) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; } &&
9452          { ac_try='test -s conftest.$ac_objext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   ac_header_compiler=yes
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_header_compiler=no
9464 fi
9465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9467 echo "${ECHO_T}$ac_header_compiler" >&6
9468
9469 # Is the header present?
9470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 #include <$ac_header>
9479 _ACEOF
9480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } >/dev/null; then
9488   if test -s conftest.err; then
9489     ac_cpp_err=$ac_c_preproc_warn_flag
9490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9491   else
9492     ac_cpp_err=
9493   fi
9494 else
9495   ac_cpp_err=yes
9496 fi
9497 if test -z "$ac_cpp_err"; then
9498   ac_header_preproc=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503   ac_header_preproc=no
9504 fi
9505 rm -f conftest.err conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9507 echo "${ECHO_T}$ac_header_preproc" >&6
9508
9509 # So?  What about this header?
9510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9511   yes:no: )
9512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9516     ac_header_preproc=yes
9517     ;;
9518   no:yes:* )
9519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9531     (
9532       cat <<\_ASBOX
9533 ## ---------------------------------------- ##
9534 ## Report this to pgsql-bugs@postgresql.org ##
9535 ## ---------------------------------------- ##
9536 _ASBOX
9537     ) |
9538       sed "s/^/$as_me: WARNING:     /" >&2
9539     ;;
9540 esac
9541 echo "$as_me:$LINENO: checking for $ac_header" >&5
9542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   eval "$as_ac_Header=\$ac_header_preproc"
9547 fi
9548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9550
9551 fi
9552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9553   cat >>confdefs.h <<_ACEOF
9554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9555 _ACEOF
9556
9557 else
9558   { { echo "$as_me:$LINENO: error: history header not found
9559 If you have libedit already installed, see config.log for details on the
9560 failure.  It is possible the compiler isn't looking in the proper directory.
9561 Use --without-readline to disable libedit support." >&5
9562 echo "$as_me: error: history header not found
9563 If you have libedit already installed, see config.log for details on the
9564 failure.  It is possible the compiler isn't looking in the proper directory.
9565 Use --without-readline to disable libedit support." >&2;}
9566    { (exit 1); exit 1; }; }
9567 fi
9568
9569 done
9570
9571 fi
9572
9573 done
9574
9575 fi
9576
9577 done
9578
9579 fi
9580
9581 if test "$with_zlib" = yes; then
9582   if test "${ac_cv_header_zlib_h+set}" = set; then
9583   echo "$as_me:$LINENO: checking for zlib.h" >&5
9584 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9585 if test "${ac_cv_header_zlib_h+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 fi
9588 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9589 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9590 else
9591   # Is the header compilable?
9592 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9593 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 $ac_includes_default
9601 #include <zlib.h>
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605   (eval $ac_compile) 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag"
9613                          || test ! -s conftest.err'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; } &&
9619          { ac_try='test -s conftest.$ac_objext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_header_compiler=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_header_compiler=no
9631 fi
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9634 echo "${ECHO_T}$ac_header_compiler" >&6
9635
9636 # Is the header present?
9637 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9638 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645 #include <zlib.h>
9646 _ACEOF
9647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9649   ac_status=$?
9650   grep -v '^ *+' conftest.er1 >conftest.err
9651   rm -f conftest.er1
9652   cat conftest.err >&5
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } >/dev/null; then
9655   if test -s conftest.err; then
9656     ac_cpp_err=$ac_c_preproc_warn_flag
9657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9658   else
9659     ac_cpp_err=
9660   fi
9661 else
9662   ac_cpp_err=yes
9663 fi
9664 if test -z "$ac_cpp_err"; then
9665   ac_header_preproc=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670   ac_header_preproc=no
9671 fi
9672 rm -f conftest.err conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9674 echo "${ECHO_T}$ac_header_preproc" >&6
9675
9676 # So?  What about this header?
9677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9678   yes:no: )
9679     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9680 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9681     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9682 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9683     ac_header_preproc=yes
9684     ;;
9685   no:yes:* )
9686     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9687 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9688     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
9689 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
9690     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9691 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9692     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
9693 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9694     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9695 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9696     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9697 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9698     (
9699       cat <<\_ASBOX
9700 ## ---------------------------------------- ##
9701 ## Report this to pgsql-bugs@postgresql.org ##
9702 ## ---------------------------------------- ##
9703 _ASBOX
9704     ) |
9705       sed "s/^/$as_me: WARNING:     /" >&2
9706     ;;
9707 esac
9708 echo "$as_me:$LINENO: checking for zlib.h" >&5
9709 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9710 if test "${ac_cv_header_zlib_h+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   ac_cv_header_zlib_h=$ac_header_preproc
9714 fi
9715 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9716 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9717
9718 fi
9719 if test $ac_cv_header_zlib_h = yes; then
9720   :
9721 else
9722   { { echo "$as_me:$LINENO: error: zlib header not found
9723 If you have zlib already installed, see config.log for details on the
9724 failure.  It is possible the compiler isn't looking in the proper directory.
9725 Use --without-zlib to disable zlib support." >&5
9726 echo "$as_me: error: zlib header not found
9727 If you have zlib already installed, see config.log for details on the
9728 failure.  It is possible the compiler isn't looking in the proper directory.
9729 Use --without-zlib to disable zlib support." >&2;}
9730    { (exit 1); exit 1; }; }
9731 fi
9732
9733
9734 fi
9735
9736 if test "$with_krb5" = yes ; then
9737   if test "${ac_cv_header_krb5_h+set}" = set; then
9738   echo "$as_me:$LINENO: checking for krb5.h" >&5
9739 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9740 if test "${ac_cv_header_krb5_h+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 fi
9743 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9744 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9745 else
9746   # Is the header compilable?
9747 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9748 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 $ac_includes_default
9756 #include <krb5.h>
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760   (eval $ac_compile) 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } &&
9767          { ac_try='test -z "$ac_c_werror_flag"
9768                          || test ! -s conftest.err'
9769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770   (eval $ac_try) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; } &&
9774          { ac_try='test -s conftest.$ac_objext'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_header_compiler=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_header_compiler=no
9786 fi
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6
9790
9791 # Is the header present?
9792 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9793 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 #include <krb5.h>
9801 _ACEOF
9802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } >/dev/null; then
9810   if test -s conftest.err; then
9811     ac_cpp_err=$ac_c_preproc_warn_flag
9812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9813   else
9814     ac_cpp_err=
9815   fi
9816 else
9817   ac_cpp_err=yes
9818 fi
9819 if test -z "$ac_cpp_err"; then
9820   ac_header_preproc=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825   ac_header_preproc=no
9826 fi
9827 rm -f conftest.err conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 echo "${ECHO_T}$ac_header_preproc" >&6
9830
9831 # So?  What about this header?
9832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833   yes:no: )
9834     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9837 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9838     ac_header_preproc=yes
9839     ;;
9840   no:yes:* )
9841     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9842 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9843     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
9844 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
9845     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9846 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9847     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
9848 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9849     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9850 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9851     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9852 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9853     (
9854       cat <<\_ASBOX
9855 ## ---------------------------------------- ##
9856 ## Report this to pgsql-bugs@postgresql.org ##
9857 ## ---------------------------------------- ##
9858 _ASBOX
9859     ) |
9860       sed "s/^/$as_me: WARNING:     /" >&2
9861     ;;
9862 esac
9863 echo "$as_me:$LINENO: checking for krb5.h" >&5
9864 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9865 if test "${ac_cv_header_krb5_h+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   ac_cv_header_krb5_h=$ac_header_preproc
9869 fi
9870 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9871 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9872
9873 fi
9874 if test $ac_cv_header_krb5_h = yes; then
9875   :
9876 else
9877   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9878 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9879    { (exit 1); exit 1; }; }
9880 fi
9881
9882
9883 fi
9884
9885 if test "$with_openssl" = yes ; then
9886   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9887   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9888 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 fi
9892 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9893 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9894 else
9895   # Is the header compilable?
9896 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9897 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904 $ac_includes_default
9905 #include <openssl/ssl.h>
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909   (eval $ac_compile) 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag"
9917                          || test ! -s conftest.err'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; } &&
9923          { ac_try='test -s conftest.$ac_objext'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_header_compiler=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_header_compiler=no
9935 fi
9936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9938 echo "${ECHO_T}$ac_header_compiler" >&6
9939
9940 # Is the header present?
9941 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9942 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 #include <openssl/ssl.h>
9950 _ACEOF
9951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } >/dev/null; then
9959   if test -s conftest.err; then
9960     ac_cpp_err=$ac_c_preproc_warn_flag
9961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9962   else
9963     ac_cpp_err=
9964   fi
9965 else
9966   ac_cpp_err=yes
9967 fi
9968 if test -z "$ac_cpp_err"; then
9969   ac_header_preproc=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974   ac_header_preproc=no
9975 fi
9976 rm -f conftest.err conftest.$ac_ext
9977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9978 echo "${ECHO_T}$ac_header_preproc" >&6
9979
9980 # So?  What about this header?
9981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9982   yes:no: )
9983     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9984 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9985     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9986 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9987     ac_header_preproc=yes
9988     ;;
9989   no:yes:* )
9990     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9991 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9992     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
9993 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
9994     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9995 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9996     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
9997 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9998     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9999 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10000     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10001 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10002     (
10003       cat <<\_ASBOX
10004 ## ---------------------------------------- ##
10005 ## Report this to pgsql-bugs@postgresql.org ##
10006 ## ---------------------------------------- ##
10007 _ASBOX
10008     ) |
10009       sed "s/^/$as_me: WARNING:     /" >&2
10010     ;;
10011 esac
10012 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10013 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10014 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10015   echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017   ac_cv_header_openssl_ssl_h=$ac_header_preproc
10018 fi
10019 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10020 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10021
10022 fi
10023 if test $ac_cv_header_openssl_ssl_h = yes; then
10024   :
10025 else
10026   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10027 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10028    { (exit 1); exit 1; }; }
10029 fi
10030
10031
10032   if test "${ac_cv_header_openssl_err_h+set}" = set; then
10033   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10034 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10035 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 fi
10038 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10039 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10040 else
10041   # Is the header compilable?
10042 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10043 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 $ac_includes_default
10051 #include <openssl/err.h>
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055   (eval $ac_compile) 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -z "$ac_c_werror_flag"
10063                          || test ! -s conftest.err'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; } &&
10069          { ac_try='test -s conftest.$ac_objext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   ac_header_compiler=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080 ac_header_compiler=no
10081 fi
10082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10084 echo "${ECHO_T}$ac_header_compiler" >&6
10085
10086 # Is the header present?
10087 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10088 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #include <openssl/err.h>
10096 _ACEOF
10097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } >/dev/null; then
10105   if test -s conftest.err; then
10106     ac_cpp_err=$ac_c_preproc_warn_flag
10107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10108   else
10109     ac_cpp_err=
10110   fi
10111 else
10112   ac_cpp_err=yes
10113 fi
10114 if test -z "$ac_cpp_err"; then
10115   ac_header_preproc=yes
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120   ac_header_preproc=no
10121 fi
10122 rm -f conftest.err conftest.$ac_ext
10123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10124 echo "${ECHO_T}$ac_header_preproc" >&6
10125
10126 # So?  What about this header?
10127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10128   yes:no: )
10129     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10130 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10131     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10132 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10133     ac_header_preproc=yes
10134     ;;
10135   no:yes:* )
10136     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10137 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10138     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
10139 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
10140     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10141 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10142     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
10143 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10144     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10145 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10146     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10147 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10148     (
10149       cat <<\_ASBOX
10150 ## ---------------------------------------- ##
10151 ## Report this to pgsql-bugs@postgresql.org ##
10152 ## ---------------------------------------- ##
10153 _ASBOX
10154     ) |
10155       sed "s/^/$as_me: WARNING:     /" >&2
10156     ;;
10157 esac
10158 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10159 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10160 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   ac_cv_header_openssl_err_h=$ac_header_preproc
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10166 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10167
10168 fi
10169 if test $ac_cv_header_openssl_err_h = yes; then
10170   :
10171 else
10172   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10173 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10174    { (exit 1); exit 1; }; }
10175 fi
10176
10177
10178 fi
10179
10180 if test "$with_pam" = yes ; then
10181
10182 for ac_header in security/pam_appl.h
10183 do
10184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10186   echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 fi
10191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10193 else
10194   # Is the header compilable?
10195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203 $ac_includes_default
10204 #include <$ac_header>
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208   (eval $ac_compile) 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_c_werror_flag"
10216                          || test ! -s conftest.err'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; } &&
10222          { ac_try='test -s conftest.$ac_objext'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_header_compiler=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ac_header_compiler=no
10234 fi
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10237 echo "${ECHO_T}$ac_header_compiler" >&6
10238
10239 # Is the header present?
10240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 #include <$ac_header>
10249 _ACEOF
10250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } >/dev/null; then
10258   if test -s conftest.err; then
10259     ac_cpp_err=$ac_c_preproc_warn_flag
10260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10261   else
10262     ac_cpp_err=
10263   fi
10264 else
10265   ac_cpp_err=yes
10266 fi
10267 if test -z "$ac_cpp_err"; then
10268   ac_header_preproc=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273   ac_header_preproc=no
10274 fi
10275 rm -f conftest.err conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10277 echo "${ECHO_T}$ac_header_preproc" >&6
10278
10279 # So?  What about this header?
10280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10281   yes:no: )
10282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10286     ac_header_preproc=yes
10287     ;;
10288   no:yes:* )
10289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10301     (
10302       cat <<\_ASBOX
10303 ## ---------------------------------------- ##
10304 ## Report this to pgsql-bugs@postgresql.org ##
10305 ## ---------------------------------------- ##
10306 _ASBOX
10307     ) |
10308       sed "s/^/$as_me: WARNING:     /" >&2
10309     ;;
10310 esac
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314   echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316   eval "$as_ac_Header=\$ac_header_preproc"
10317 fi
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10320
10321 fi
10322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10323   cat >>confdefs.h <<_ACEOF
10324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10325 _ACEOF
10326
10327 else
10328
10329 for ac_header in pam/pam_appl.h
10330 do
10331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10333   echo "$as_me:$LINENO: checking for $ac_header" >&5
10334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 fi
10338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10340 else
10341   # Is the header compilable?
10342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 $ac_includes_default
10351 #include <$ac_header>
10352 _ACEOF
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355   (eval $ac_compile) 2>conftest.er1
10356   ac_status=$?
10357   grep -v '^ *+' conftest.er1 >conftest.err
10358   rm -f conftest.er1
10359   cat conftest.err >&5
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -z "$ac_c_werror_flag"
10363                          || test ! -s conftest.err'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; } &&
10369          { ac_try='test -s conftest.$ac_objext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_header_compiler=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_header_compiler=no
10381 fi
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 echo "${ECHO_T}$ac_header_compiler" >&6
10385
10386 # Is the header present?
10387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <$ac_header>
10396 _ACEOF
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } >/dev/null; then
10405   if test -s conftest.err; then
10406     ac_cpp_err=$ac_c_preproc_warn_flag
10407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10408   else
10409     ac_cpp_err=
10410   fi
10411 else
10412   ac_cpp_err=yes
10413 fi
10414 if test -z "$ac_cpp_err"; then
10415   ac_header_preproc=yes
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420   ac_header_preproc=no
10421 fi
10422 rm -f conftest.err conftest.$ac_ext
10423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10424 echo "${ECHO_T}$ac_header_preproc" >&6
10425
10426 # So?  What about this header?
10427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10428   yes:no: )
10429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10433     ac_header_preproc=yes
10434     ;;
10435   no:yes:* )
10436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10448     (
10449       cat <<\_ASBOX
10450 ## ---------------------------------------- ##
10451 ## Report this to pgsql-bugs@postgresql.org ##
10452 ## ---------------------------------------- ##
10453 _ASBOX
10454     ) |
10455       sed "s/^/$as_me: WARNING:     /" >&2
10456     ;;
10457 esac
10458 echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   eval "$as_ac_Header=\$ac_header_preproc"
10464 fi
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10467
10468 fi
10469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10470   cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10472 _ACEOF
10473
10474 else
10475   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10476 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10477    { (exit 1); exit 1; }; }
10478 fi
10479
10480 done
10481
10482 fi
10483
10484 done
10485
10486 fi
10487
10488 if test "$with_ldap" = yes ; then
10489   if test "$PORTNAME" != "win32"; then
10490
10491 for ac_header in ldap.h
10492 do
10493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495   echo "$as_me:$LINENO: checking for $ac_header" >&5
10496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 fi
10500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10502 else
10503   # Is the header compilable?
10504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 $ac_includes_default
10513 #include <$ac_header>
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517   (eval $ac_compile) 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag"
10525                          || test ! -s conftest.err'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; } &&
10531          { ac_try='test -s conftest.$ac_objext'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   ac_header_compiler=yes
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 ac_header_compiler=no
10543 fi
10544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10546 echo "${ECHO_T}$ac_header_compiler" >&6
10547
10548 # Is the header present?
10549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 #include <$ac_header>
10558 _ACEOF
10559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } >/dev/null; then
10567   if test -s conftest.err; then
10568     ac_cpp_err=$ac_c_preproc_warn_flag
10569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10570   else
10571     ac_cpp_err=
10572   fi
10573 else
10574   ac_cpp_err=yes
10575 fi
10576 if test -z "$ac_cpp_err"; then
10577   ac_header_preproc=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582   ac_header_preproc=no
10583 fi
10584 rm -f conftest.err conftest.$ac_ext
10585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10586 echo "${ECHO_T}$ac_header_preproc" >&6
10587
10588 # So?  What about this header?
10589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10590   yes:no: )
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10595     ac_header_preproc=yes
10596     ;;
10597   no:yes:* )
10598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10610     (
10611       cat <<\_ASBOX
10612 ## ---------------------------------------- ##
10613 ## Report this to pgsql-bugs@postgresql.org ##
10614 ## ---------------------------------------- ##
10615 _ASBOX
10616     ) |
10617       sed "s/^/$as_me: WARNING:     /" >&2
10618     ;;
10619 esac
10620 echo "$as_me:$LINENO: checking for $ac_header" >&5
10621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   eval "$as_ac_Header=\$ac_header_preproc"
10626 fi
10627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10629
10630 fi
10631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10632   cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 _ACEOF
10635
10636 else
10637   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10638 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10639    { (exit 1); exit 1; }; }
10640 fi
10641
10642 done
10643
10644   else
10645
10646 for ac_header in winldap.h
10647 do
10648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10649 echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 $ac_includes_default
10661 #include <windows.h>
10662
10663
10664 #include <$ac_header>
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668   (eval $ac_compile) 2>conftest.er1
10669   ac_status=$?
10670   grep -v '^ *+' conftest.er1 >conftest.err
10671   rm -f conftest.er1
10672   cat conftest.err >&5
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } &&
10675          { ac_try='test -z "$ac_c_werror_flag"
10676                          || test ! -s conftest.err'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; } &&
10682          { ac_try='test -s conftest.$ac_objext'
10683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684   (eval $ac_try) 2>&5
10685   ac_status=$?
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); }; }; then
10688   eval "$as_ac_Header=yes"
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 eval "$as_ac_Header=no"
10694 fi
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696 fi
10697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10700   cat >>confdefs.h <<_ACEOF
10701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 else
10705   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10706 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10707    { (exit 1); exit 1; }; }
10708 fi
10709
10710 done
10711
10712   fi
10713 fi
10714
10715 if test "$with_bonjour" = yes ; then
10716   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10717   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10718 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10719 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10720   echo $ECHO_N "(cached) $ECHO_C" >&6
10721 fi
10722 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10723 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10724 else
10725   # Is the header compilable?
10726 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10727 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 $ac_includes_default
10735 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739   (eval $ac_compile) 2>conftest.er1
10740   ac_status=$?
10741   grep -v '^ *+' conftest.er1 >conftest.err
10742   rm -f conftest.er1
10743   cat conftest.err >&5
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } &&
10746          { ac_try='test -z "$ac_c_werror_flag"
10747                          || test ! -s conftest.err'
10748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749   (eval $ac_try) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; } &&
10753          { ac_try='test -s conftest.$ac_objext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   ac_header_compiler=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_header_compiler=no
10765 fi
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10768 echo "${ECHO_T}$ac_header_compiler" >&6
10769
10770 # Is the header present?
10771 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10772 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10780 _ACEOF
10781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } >/dev/null; then
10789   if test -s conftest.err; then
10790     ac_cpp_err=$ac_c_preproc_warn_flag
10791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792   else
10793     ac_cpp_err=
10794   fi
10795 else
10796   ac_cpp_err=yes
10797 fi
10798 if test -z "$ac_cpp_err"; then
10799   ac_header_preproc=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804   ac_header_preproc=no
10805 fi
10806 rm -f conftest.err conftest.$ac_ext
10807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6
10809
10810 # So?  What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812   yes:no: )
10813     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10817     ac_header_preproc=yes
10818     ;;
10819   no:yes:* )
10820     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10826     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10830     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10832     (
10833       cat <<\_ASBOX
10834 ## ---------------------------------------- ##
10835 ## Report this to pgsql-bugs@postgresql.org ##
10836 ## ---------------------------------------- ##
10837 _ASBOX
10838     ) |
10839       sed "s/^/$as_me: WARNING:     /" >&2
10840     ;;
10841 esac
10842 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10843 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10844 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10848 fi
10849 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10850 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10851
10852 fi
10853 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10854   :
10855 else
10856   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10857 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10858    { (exit 1); exit 1; }; }
10859 fi
10860
10861
10862 fi
10863
10864
10865 ##
10866 ## Types, structures, compiler characteristics
10867 ##
10868
10869  echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10870 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10871 if test "${ac_cv_c_const+set}" = set; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874   cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880
10881 int
10882 main ()
10883 {
10884 /* FIXME: Include the comments suggested by Paul. */
10885 #ifndef __cplusplus
10886   /* Ultrix mips cc rejects this.  */
10887   typedef int charset[2];
10888   const charset x;
10889   /* SunOS 4.1.1 cc rejects this.  */
10890   char const *const *ccp;
10891   char **p;
10892   /* NEC SVR4.0.2 mips cc rejects this.  */
10893   struct point {int x, y;};
10894   static struct point const zero = {0,0};
10895   /* AIX XL C 1.02.0.0 rejects this.
10896      It does not let you subtract one const X* pointer from another in
10897      an arm of an if-expression whose if-part is not a constant
10898      expression */
10899   const char *g = "string";
10900   ccp = &g + (g ? g-g : 0);
10901   /* HPUX 7.0 cc rejects these. */
10902   ++ccp;
10903   p = (char**) ccp;
10904   ccp = (char const *const *) p;
10905   { /* SCO 3.2v4 cc rejects this.  */
10906     char *t;
10907     char const *s = 0 ? (char *) 0 : (char const *) 0;
10908
10909     *t++ = 0;
10910   }
10911   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10912     int x[] = {25, 17};
10913     const int *foo = &x[0];
10914     ++foo;
10915   }
10916   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10917     typedef const int *iptr;
10918     iptr p = 0;
10919     ++p;
10920   }
10921   { /* AIX XL C 1.02.0.0 rejects this saying
10922        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10923     struct s { int j; const int *ap[3]; };
10924     struct s *b; b->j = 5;
10925   }
10926   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10927     const int foo = 10;
10928   }
10929 #endif
10930
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937   (eval $ac_compile) 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } &&
10944          { ac_try='test -z "$ac_c_werror_flag"
10945                          || test ! -s conftest.err'
10946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947   (eval $ac_try) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953   (eval $ac_try) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; }; then
10957   ac_cv_c_const=yes
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962 ac_cv_c_const=no
10963 fi
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 fi
10966 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10967 echo "${ECHO_T}$ac_cv_c_const" >&6
10968 if test $ac_cv_c_const = no; then
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define const
10972 _ACEOF
10973
10974 fi
10975
10976
10977 echo "$as_me:$LINENO: checking for inline" >&5
10978 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10979 if test "${ac_cv_c_inline+set}" = set; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982   ac_cv_c_inline=no
10983 for ac_kw in inline __inline__ __inline; do
10984   cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 #ifndef __cplusplus
10991 typedef int foo_t;
10992 static $ac_kw foo_t static_foo () {return 0; }
10993 $ac_kw int foo () {return 0; }
10994 #endif
10995
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999   (eval $ac_compile) 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } &&
11006          { ac_try='test -z "$ac_c_werror_flag"
11007                          || test ! -s conftest.err'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; } &&
11013          { ac_try='test -s conftest.$ac_objext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_cv_c_inline=$ac_kw; break
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 fi
11025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11026 done
11027
11028 fi
11029 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11030 echo "${ECHO_T}$ac_cv_c_inline" >&6
11031 case $ac_cv_c_inline in
11032   inline | yes) ;;
11033   no)
11034 cat >>confdefs.h <<\_ACEOF
11035 #define inline
11036 _ACEOF
11037  ;;
11038   *)  cat >>confdefs.h <<_ACEOF
11039 #define inline $ac_cv_c_inline
11040 _ACEOF
11041  ;;
11042 esac
11043
11044 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11045 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11046 if test "${ac_cv_c_stringize+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 #define x(y) #y
11056
11057 char *s = x(teststring);
11058 _ACEOF
11059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11060   $EGREP "#teststring" >/dev/null 2>&1; then
11061   ac_cv_c_stringize=no
11062 else
11063   ac_cv_c_stringize=yes
11064 fi
11065 rm -f conftest*
11066
11067 fi
11068 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11069 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11070 if test $ac_cv_c_stringize = yes; then
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_STRINGIZE 1
11074 _ACEOF
11075
11076 fi
11077
11078 echo "$as_me:$LINENO: checking for signed types" >&5
11079 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11080 if test "${pgac_cv_c_signed+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089
11090 int
11091 main ()
11092 {
11093 signed char c; signed short s; signed int i;
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>conftest.er1
11101   ac_status=$?
11102   grep -v '^ *+' conftest.er1 >conftest.err
11103   rm -f conftest.er1
11104   cat conftest.err >&5
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } &&
11107          { ac_try='test -z "$ac_c_werror_flag"
11108                          || test ! -s conftest.err'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest.$ac_objext'
11115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116   (eval $ac_try) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; }; then
11120   pgac_cv_c_signed=yes
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 pgac_cv_c_signed=no
11126 fi
11127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11128 fi
11129 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11130 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11131 if test x"$pgac_cv_c_signed" = xno ; then
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define signed
11135 _ACEOF
11136
11137 fi
11138 echo "$as_me:$LINENO: checking for working volatile" >&5
11139 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11140 if test "${ac_cv_c_volatile+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149
11150 int
11151 main ()
11152 {
11153
11154 volatile int x;
11155 int * volatile y;
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162   (eval $ac_compile) 2>conftest.er1
11163   ac_status=$?
11164   grep -v '^ *+' conftest.er1 >conftest.err
11165   rm -f conftest.er1
11166   cat conftest.err >&5
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } &&
11169          { ac_try='test -z "$ac_c_werror_flag"
11170                          || test ! -s conftest.err'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; } &&
11176          { ac_try='test -s conftest.$ac_objext'
11177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178   (eval $ac_try) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   ac_cv_c_volatile=yes
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ac_cv_c_volatile=no
11188 fi
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 fi
11191 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11192 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11193 if test $ac_cv_c_volatile = no; then
11194
11195 cat >>confdefs.h <<\_ACEOF
11196 #define volatile
11197 _ACEOF
11198
11199 fi
11200
11201 echo "$as_me:$LINENO: checking for __func__" >&5
11202 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11203 if test "${pgac_cv_funcname_func_support+set}" = set; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <stdio.h>
11213 int
11214 main ()
11215 {
11216 printf("%s\n", __func__);
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -z "$ac_c_werror_flag"
11231                          || test ! -s conftest.err'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   pgac_cv_funcname_func_support=yes
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 pgac_cv_funcname_func_support=no
11249 fi
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 fi
11252 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11253 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11254 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11255
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_FUNCNAME__FUNC 1
11258 _ACEOF
11259
11260 else
11261 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11262 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11263 if test "${pgac_cv_funcname_function_support+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h.  */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h.  */
11272 #include <stdio.h>
11273 int
11274 main ()
11275 {
11276 printf("%s\n", __FUNCTION__);
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283   (eval $ac_compile) 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag"
11291                          || test ! -s conftest.err'
11292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293   (eval $ac_try) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299   (eval $ac_try) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; }; then
11303   pgac_cv_funcname_function_support=yes
11304 else
11305   echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 pgac_cv_funcname_function_support=no
11309 fi
11310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311 fi
11312 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11313 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11314 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_FUNCNAME__FUNCTION 1
11318 _ACEOF
11319
11320 fi
11321 fi
11322 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11324 if test "${ac_cv_struct_tm+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 #include <sys/types.h>
11334 #include <time.h>
11335
11336 int
11337 main ()
11338 {
11339 struct tm *tp; tp->tm_sec;
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346   (eval $ac_compile) 2>conftest.er1
11347   ac_status=$?
11348   grep -v '^ *+' conftest.er1 >conftest.err
11349   rm -f conftest.er1
11350   cat conftest.err >&5
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } &&
11353          { ac_try='test -z "$ac_c_werror_flag"
11354                          || test ! -s conftest.err'
11355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356   (eval $ac_try) 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; } &&
11360          { ac_try='test -s conftest.$ac_objext'
11361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362   (eval $ac_try) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; }; then
11366   ac_cv_struct_tm=time.h
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371 ac_cv_struct_tm=sys/time.h
11372 fi
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374 fi
11375 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11376 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11377 if test $ac_cv_struct_tm = sys/time.h; then
11378
11379 cat >>confdefs.h <<\_ACEOF
11380 #define TM_IN_SYS_TIME 1
11381 _ACEOF
11382
11383 fi
11384
11385 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11386 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11387 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 #include <sys/types.h>
11397 #include <$ac_cv_struct_tm>
11398
11399
11400 int
11401 main ()
11402 {
11403 static struct tm ac_aggr;
11404 if (ac_aggr.tm_zone)
11405 return 0;
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412   (eval $ac_compile) 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } &&
11419          { ac_try='test -z "$ac_c_werror_flag"
11420                          || test ! -s conftest.err'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; } &&
11426          { ac_try='test -s conftest.$ac_objext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   ac_cv_member_struct_tm_tm_zone=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 #include <sys/types.h>
11444 #include <$ac_cv_struct_tm>
11445
11446
11447 int
11448 main ()
11449 {
11450 static struct tm ac_aggr;
11451 if (sizeof ac_aggr.tm_zone)
11452 return 0;
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459   (eval $ac_compile) 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -z "$ac_c_werror_flag"
11467                          || test ! -s conftest.err'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; } &&
11473          { ac_try='test -s conftest.$ac_objext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_member_struct_tm_tm_zone=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 ac_cv_member_struct_tm_tm_zone=no
11485 fi
11486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11487 fi
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11491 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11492 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_STRUCT_TM_TM_ZONE 1
11496 _ACEOF
11497
11498
11499 fi
11500
11501 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11502
11503 cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_TM_ZONE 1
11505 _ACEOF
11506
11507 fi
11508 echo "$as_me:$LINENO: checking for tzname" >&5
11509 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11510 if test "${ac_cv_var_tzname+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 #include <time.h>
11520 #ifndef tzname /* For SGI.  */
11521 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11522 #endif
11523
11524 int
11525 main ()
11526 {
11527 atoi(*tzname);
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534   (eval $ac_link) 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -z "$ac_c_werror_flag"
11542                          || test ! -s conftest.err'
11543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544   (eval $ac_try) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; } &&
11548          { ac_try='test -s conftest$ac_exeext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_var_tzname=yes
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_cv_var_tzname=no
11560 fi
11561 rm -f conftest.err conftest.$ac_objext \
11562       conftest$ac_exeext conftest.$ac_ext
11563 fi
11564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11566 if test $ac_cv_var_tzname = yes; then
11567
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_TZNAME 1
11570 _ACEOF
11571
11572 fi
11573
11574 echo "$as_me:$LINENO: checking for union semun" >&5
11575 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11576 if test "${ac_cv_type_union_semun+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 #include <sys/types.h>
11586 #include <sys/ipc.h>
11587 #include <sys/sem.h>
11588
11589 int
11590 main ()
11591 {
11592 if ((union semun *) 0)
11593   return 0;
11594 if (sizeof (union semun))
11595   return 0;
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602   (eval $ac_compile) 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_c_werror_flag"
11610                          || test ! -s conftest.err'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_type_union_semun=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_type_union_semun=no
11628 fi
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 fi
11631 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11632 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11633 if test $ac_cv_type_union_semun = yes; then
11634
11635 cat >>confdefs.h <<_ACEOF
11636 #define HAVE_UNION_SEMUN 1
11637 _ACEOF
11638
11639
11640 fi
11641
11642 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11643 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11644 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 #include <sys/types.h>
11654 #ifdef HAVE_SYS_UN_H
11655 #include <sys/un.h>
11656 #endif
11657
11658
11659 int
11660 main ()
11661 {
11662 if ((struct sockaddr_un *) 0)
11663   return 0;
11664 if (sizeof (struct sockaddr_un))
11665   return 0;
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672   (eval $ac_compile) 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -z "$ac_c_werror_flag"
11680                          || test ! -s conftest.err'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688   (eval $ac_try) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   ac_cv_type_struct_sockaddr_un=yes
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 ac_cv_type_struct_sockaddr_un=no
11698 fi
11699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11700 fi
11701 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11702 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11703 if test $ac_cv_type_struct_sockaddr_un = yes; then
11704
11705 cat >>confdefs.h <<_ACEOF
11706 #define HAVE_STRUCT_SOCKADDR_UN 1
11707 _ACEOF
11708
11709
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_UNIX_SOCKETS 1
11712 _ACEOF
11713
11714 fi
11715
11716 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11717 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11718 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727 #include <sys/types.h>
11728 #ifdef HAVE_SYS_SOCKET_H
11729 #include <sys/socket.h>
11730 #endif
11731
11732
11733 int
11734 main ()
11735 {
11736 if ((struct sockaddr_storage *) 0)
11737   return 0;
11738 if (sizeof (struct sockaddr_storage))
11739   return 0;
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746   (eval $ac_compile) 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } &&
11753          { ac_try='test -z "$ac_c_werror_flag"
11754                          || test ! -s conftest.err'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; } &&
11760          { ac_try='test -s conftest.$ac_objext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_type_struct_sockaddr_storage=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_type_struct_sockaddr_storage=no
11772 fi
11773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11774 fi
11775 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11776 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11777 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11778
11779 cat >>confdefs.h <<_ACEOF
11780 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11781 _ACEOF
11782
11783
11784 fi
11785
11786 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11787 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11788 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 #include <sys/types.h>
11798 #ifdef HAVE_SYS_SOCKET_H
11799 #include <sys/socket.h>
11800 #endif
11801
11802
11803 int
11804 main ()
11805 {
11806 static struct sockaddr_storage ac_aggr;
11807 if (ac_aggr.ss_family)
11808 return 0;
11809   ;
11810   return 0;
11811 }
11812 _ACEOF
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815   (eval $ac_compile) 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } &&
11822          { ac_try='test -z "$ac_c_werror_flag"
11823                          || test ! -s conftest.err'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest.$ac_objext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846 #include <sys/types.h>
11847 #ifdef HAVE_SYS_SOCKET_H
11848 #include <sys/socket.h>
11849 #endif
11850
11851
11852 int
11853 main ()
11854 {
11855 static struct sockaddr_storage ac_aggr;
11856 if (sizeof ac_aggr.ss_family)
11857 return 0;
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864   (eval $ac_compile) 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -z "$ac_c_werror_flag"
11872                          || test ! -s conftest.err'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; } &&
11878          { ac_try='test -s conftest.$ac_objext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   ac_cv_member_struct_sockaddr_storage_ss_family=yes
11885 else
11886   echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ac_cv_member_struct_sockaddr_storage_ss_family=no
11890 fi
11891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11894 fi
11895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11896 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11897 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11898
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11901 _ACEOF
11902
11903
11904 fi
11905 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11906 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11907 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916 #include <sys/types.h>
11917 #ifdef HAVE_SYS_SOCKET_H
11918 #include <sys/socket.h>
11919 #endif
11920
11921
11922 int
11923 main ()
11924 {
11925 static struct sockaddr_storage ac_aggr;
11926 if (ac_aggr.__ss_family)
11927 return 0;
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934   (eval $ac_compile) 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -z "$ac_c_werror_flag"
11942                          || test ! -s conftest.err'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest.$ac_objext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   ac_cv_member_struct_sockaddr_storage___ss_family=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 #include <sys/types.h>
11966 #ifdef HAVE_SYS_SOCKET_H
11967 #include <sys/socket.h>
11968 #endif
11969
11970
11971 int
11972 main ()
11973 {
11974 static struct sockaddr_storage ac_aggr;
11975 if (sizeof ac_aggr.__ss_family)
11976 return 0;
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 rm -f conftest.$ac_objext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11983   (eval $ac_compile) 2>conftest.er1
11984   ac_status=$?
11985   grep -v '^ *+' conftest.er1 >conftest.err
11986   rm -f conftest.er1
11987   cat conftest.err >&5
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -z "$ac_c_werror_flag"
11991                          || test ! -s conftest.err'
11992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993   (eval $ac_try) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; } &&
11997          { ac_try='test -s conftest.$ac_objext'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; }; then
12003   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_cv_member_struct_sockaddr_storage___ss_family=no
12009 fi
12010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12011 fi
12012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12015 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12016 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12017
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12020 _ACEOF
12021
12022
12023 fi
12024 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12025 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12026 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035 #include <sys/types.h>
12036 #ifdef HAVE_SYS_SOCKET_H
12037 #include <sys/socket.h>
12038 #endif
12039
12040
12041 int
12042 main ()
12043 {
12044 static struct sockaddr_storage ac_aggr;
12045 if (ac_aggr.ss_len)
12046 return 0;
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053   (eval $ac_compile) 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -z "$ac_c_werror_flag"
12061                          || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest.$ac_objext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 #include <sys/types.h>
12085 #ifdef HAVE_SYS_SOCKET_H
12086 #include <sys/socket.h>
12087 #endif
12088
12089
12090 int
12091 main ()
12092 {
12093 static struct sockaddr_storage ac_aggr;
12094 if (sizeof ac_aggr.ss_len)
12095 return 0;
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102   (eval $ac_compile) 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag"
12110                          || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_member_struct_sockaddr_storage_ss_len=no
12128 fi
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12130 fi
12131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12132 fi
12133 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12134 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12135 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12136
12137 cat >>confdefs.h <<_ACEOF
12138 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12139 _ACEOF
12140
12141
12142 fi
12143 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12144 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12145 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154 #include <sys/types.h>
12155 #ifdef HAVE_SYS_SOCKET_H
12156 #include <sys/socket.h>
12157 #endif
12158
12159
12160 int
12161 main ()
12162 {
12163 static struct sockaddr_storage ac_aggr;
12164 if (ac_aggr.__ss_len)
12165 return 0;
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12172   (eval $ac_compile) 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -z "$ac_c_werror_flag"
12180                          || test ! -s conftest.err'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest.$ac_objext'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   ac_cv_member_struct_sockaddr_storage___ss_len=yes
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 #include <sys/types.h>
12204 #ifdef HAVE_SYS_SOCKET_H
12205 #include <sys/socket.h>
12206 #endif
12207
12208
12209 int
12210 main ()
12211 {
12212 static struct sockaddr_storage ac_aggr;
12213 if (sizeof ac_aggr.__ss_len)
12214 return 0;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest.$ac_objext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_cv_member_struct_sockaddr_storage___ss_len=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_cv_member_struct_sockaddr_storage___ss_len=no
12247 fi
12248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12249 fi
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251 fi
12252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12253 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12254 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12255
12256 cat >>confdefs.h <<_ACEOF
12257 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12258 _ACEOF
12259
12260
12261 fi
12262 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12263 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12264 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h.  */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h.  */
12273 #include <sys/types.h>
12274 #ifdef HAVE_SYS_SOCKET_H
12275 #include <sys/socket.h>
12276 #endif
12277
12278
12279 int
12280 main ()
12281 {
12282 static struct sockaddr ac_aggr;
12283 if (ac_aggr.sa_len)
12284 return 0;
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291   (eval $ac_compile) 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -z "$ac_c_werror_flag"
12299                          || test ! -s conftest.err'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; } &&
12305          { ac_try='test -s conftest.$ac_objext'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_cv_member_struct_sockaddr_sa_len=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322 #include <sys/types.h>
12323 #ifdef HAVE_SYS_SOCKET_H
12324 #include <sys/socket.h>
12325 #endif
12326
12327
12328 int
12329 main ()
12330 {
12331 static struct sockaddr ac_aggr;
12332 if (sizeof ac_aggr.sa_len)
12333 return 0;
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340   (eval $ac_compile) 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -z "$ac_c_werror_flag"
12348                          || test ! -s conftest.err'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; } &&
12354          { ac_try='test -s conftest.$ac_objext'
12355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356   (eval $ac_try) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; }; then
12360   ac_cv_member_struct_sockaddr_sa_len=yes
12361 else
12362   echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 ac_cv_member_struct_sockaddr_sa_len=no
12366 fi
12367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12368 fi
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12370 fi
12371 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12372 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12373 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12374
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12377 _ACEOF
12378
12379
12380 fi
12381
12382 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12383 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12384 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 #include <sys/types.h>
12394 #include <sys/socket.h>
12395 #include <netdb.h>
12396
12397
12398 int
12399 main ()
12400 {
12401 if ((struct addrinfo *) 0)
12402   return 0;
12403 if (sizeof (struct addrinfo))
12404   return 0;
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411   (eval $ac_compile) 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_c_werror_flag"
12419                          || test ! -s conftest.err'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ac_cv_type_struct_addrinfo=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_cv_type_struct_addrinfo=no
12437 fi
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 fi
12440 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12441 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12442 if test $ac_cv_type_struct_addrinfo = yes; then
12443
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_STRUCT_ADDRINFO 1
12446 _ACEOF
12447
12448
12449 fi
12450
12451
12452 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12453 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12454 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <sys/param.h>
12464 #include <sys/types.h>
12465 #include <sys/socket.h>
12466 #include <sys/ucred.h>
12467
12468 int
12469 main ()
12470 {
12471 if ((struct cmsgcred *) 0)
12472   return 0;
12473 if (sizeof (struct cmsgcred))
12474   return 0;
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } &&
12488          { ac_try='test -z "$ac_c_werror_flag"
12489                          || test ! -s conftest.err'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; } &&
12495          { ac_try='test -s conftest.$ac_objext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   ac_cv_type_struct_cmsgcred=yes
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 ac_cv_type_struct_cmsgcred=no
12507 fi
12508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12509 fi
12510 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12511 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12512 if test $ac_cv_type_struct_cmsgcred = yes; then
12513
12514 cat >>confdefs.h <<_ACEOF
12515 #define HAVE_STRUCT_CMSGCRED 1
12516 _ACEOF
12517
12518
12519 fi
12520 echo "$as_me:$LINENO: checking for struct fcred" >&5
12521 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12522 if test "${ac_cv_type_struct_fcred+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h.  */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h.  */
12531 #include <sys/param.h>
12532 #include <sys/types.h>
12533 #include <sys/socket.h>
12534 #include <sys/ucred.h>
12535
12536 int
12537 main ()
12538 {
12539 if ((struct fcred *) 0)
12540   return 0;
12541 if (sizeof (struct fcred))
12542   return 0;
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549   (eval $ac_compile) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag"
12557                          || test ! -s conftest.err'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; } &&
12563          { ac_try='test -s conftest.$ac_objext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_type_struct_fcred=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 ac_cv_type_struct_fcred=no
12575 fi
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12579 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12580 if test $ac_cv_type_struct_fcred = yes; then
12581
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_STRUCT_FCRED 1
12584 _ACEOF
12585
12586
12587 fi
12588 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12589 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12590 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 #include <sys/param.h>
12600 #include <sys/types.h>
12601 #include <sys/socket.h>
12602 #include <sys/ucred.h>
12603
12604 int
12605 main ()
12606 {
12607 if ((struct sockcred *) 0)
12608   return 0;
12609 if (sizeof (struct sockcred))
12610   return 0;
12611   ;
12612   return 0;
12613 }
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   ac_cv_type_struct_sockcred=yes
12638 else
12639   echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_cv_type_struct_sockcred=no
12643 fi
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 fi
12646 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12647 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12648 if test $ac_cv_type_struct_sockcred = yes; then
12649
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_STRUCT_SOCKCRED 1
12652 _ACEOF
12653
12654
12655 fi
12656
12657
12658 echo "$as_me:$LINENO: checking for struct option" >&5
12659 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12660 if test "${ac_cv_type_struct_option+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 #ifdef HAVE_GETOPT_H
12670 #include <getopt.h>
12671 #endif
12672
12673 int
12674 main ()
12675 {
12676 if ((struct option *) 0)
12677   return 0;
12678 if (sizeof (struct option))
12679   return 0;
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686   (eval $ac_compile) 2>conftest.er1
12687   ac_status=$?
12688   grep -v '^ *+' conftest.er1 >conftest.err
12689   rm -f conftest.er1
12690   cat conftest.err >&5
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } &&
12693          { ac_try='test -z "$ac_c_werror_flag"
12694                          || test ! -s conftest.err'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; } &&
12700          { ac_try='test -s conftest.$ac_objext'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; }; then
12706   ac_cv_type_struct_option=yes
12707 else
12708   echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 ac_cv_type_struct_option=no
12712 fi
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12716 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12717 if test $ac_cv_type_struct_option = yes; then
12718
12719 cat >>confdefs.h <<_ACEOF
12720 #define HAVE_STRUCT_OPTION 1
12721 _ACEOF
12722
12723
12724 fi
12725
12726
12727 if test "$with_zlib" = yes; then
12728   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12729   # did not).  While we could work around the lack of z_streamp, it
12730   # seems unwise to encourage people to use such old zlib versions...
12731   echo "$as_me:$LINENO: checking for z_streamp" >&5
12732 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12733 if test "${ac_cv_type_z_streamp+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 #include <zlib.h>
12743
12744 int
12745 main ()
12746 {
12747 if ((z_streamp *) 0)
12748   return 0;
12749 if (sizeof (z_streamp))
12750   return 0;
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_c_werror_flag"
12765                          || test ! -s conftest.err'
12766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767   (eval $ac_try) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; } &&
12771          { ac_try='test -s conftest.$ac_objext'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   ac_cv_type_z_streamp=yes
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 ac_cv_type_z_streamp=no
12783 fi
12784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12785 fi
12786 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12787 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12788 if test $ac_cv_type_z_streamp = yes; then
12789   :
12790 else
12791   { { echo "$as_me:$LINENO: error: zlib version is too old
12792 Use --without-zlib to disable zlib support." >&5
12793 echo "$as_me: error: zlib version is too old
12794 Use --without-zlib to disable zlib support." >&2;}
12795    { (exit 1); exit 1; }; }
12796 fi
12797
12798 fi
12799
12800 if test "$with_krb5" = yes; then
12801 # Check for differences between MIT and Heimdal (KTH) releases
12802   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12803 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12804 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h.  */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h.  */
12813 #include <krb5.h>
12814
12815 int
12816 main ()
12817 {
12818 static krb5_ticket ac_aggr;
12819 if (ac_aggr.enc_part2)
12820 return 0;
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827   (eval $ac_compile) 2>conftest.er1
12828   ac_status=$?
12829   grep -v '^ *+' conftest.er1 >conftest.err
12830   rm -f conftest.er1
12831   cat conftest.err >&5
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } &&
12834          { ac_try='test -z "$ac_c_werror_flag"
12835                          || test ! -s conftest.err'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest.$ac_objext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_cv_member_krb5_ticket_enc_part2=yes
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858 #include <krb5.h>
12859
12860 int
12861 main ()
12862 {
12863 static krb5_ticket ac_aggr;
12864 if (sizeof ac_aggr.enc_part2)
12865 return 0;
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872   (eval $ac_compile) 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -z "$ac_c_werror_flag"
12880                          || test ! -s conftest.err'
12881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882   (eval $ac_try) 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; } &&
12886          { ac_try='test -s conftest.$ac_objext'
12887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888   (eval $ac_try) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); }; }; then
12892   ac_cv_member_krb5_ticket_enc_part2=yes
12893 else
12894   echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_cv_member_krb5_ticket_enc_part2=no
12898 fi
12899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12904 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12905 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12906
12907 cat >>confdefs.h <<_ACEOF
12908 #define HAVE_KRB5_TICKET_ENC_PART2 1
12909 _ACEOF
12910
12911
12912 else
12913   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12914 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12915 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 #include <krb5.h>
12925
12926 int
12927 main ()
12928 {
12929 static krb5_ticket ac_aggr;
12930 if (ac_aggr.client)
12931 return 0;
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938   (eval $ac_compile) 2>conftest.er1
12939   ac_status=$?
12940   grep -v '^ *+' conftest.er1 >conftest.err
12941   rm -f conftest.er1
12942   cat conftest.err >&5
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } &&
12945          { ac_try='test -z "$ac_c_werror_flag"
12946                          || test ! -s conftest.err'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; } &&
12952          { ac_try='test -s conftest.$ac_objext'
12953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954   (eval $ac_try) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); }; }; then
12958   ac_cv_member_krb5_ticket_client=yes
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969 #include <krb5.h>
12970
12971 int
12972 main ()
12973 {
12974 static krb5_ticket ac_aggr;
12975 if (sizeof ac_aggr.client)
12976 return 0;
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 rm -f conftest.$ac_objext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12983   (eval $ac_compile) 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } &&
12990          { ac_try='test -z "$ac_c_werror_flag"
12991                          || test ! -s conftest.err'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; } &&
12997          { ac_try='test -s conftest.$ac_objext'
12998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999   (eval $ac_try) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ac_cv_member_krb5_ticket_client=yes
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 ac_cv_member_krb5_ticket_client=no
13009 fi
13010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13011 fi
13012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13015 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13016 if test $ac_cv_member_krb5_ticket_client = yes; then
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_KRB5_TICKET_CLIENT 1
13020 _ACEOF
13021
13022
13023 else
13024   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13025 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13026    { (exit 1); exit 1; }; }
13027 fi
13028
13029 fi
13030
13031   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13032 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13033 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #include <krb5.h>
13043
13044 int
13045 main ()
13046 {
13047 static krb5_error ac_aggr;
13048 if (ac_aggr.text.data)
13049 return 0;
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056   (eval $ac_compile) 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } &&
13063          { ac_try='test -z "$ac_c_werror_flag"
13064                          || test ! -s conftest.err'
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); }; } &&
13070          { ac_try='test -s conftest.$ac_objext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   ac_cv_member_krb5_error_text_data=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <krb5.h>
13088
13089 int
13090 main ()
13091 {
13092 static krb5_error ac_aggr;
13093 if (sizeof ac_aggr.text.data)
13094 return 0;
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101   (eval $ac_compile) 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -z "$ac_c_werror_flag"
13109                          || test ! -s conftest.err'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; } &&
13115          { ac_try='test -s conftest.$ac_objext'
13116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117   (eval $ac_try) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; }; then
13121   ac_cv_member_krb5_error_text_data=yes
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_member_krb5_error_text_data=no
13127 fi
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 fi
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13133 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13134 if test $ac_cv_member_krb5_error_text_data = yes; then
13135
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13138 _ACEOF
13139
13140
13141 else
13142   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13143 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13144 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 #include <krb5.h>
13154
13155 int
13156 main ()
13157 {
13158 static krb5_error ac_aggr;
13159 if (ac_aggr.e_data)
13160 return 0;
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167   (eval $ac_compile) 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag"
13175                          || test ! -s conftest.err'
13176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177   (eval $ac_try) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }; } &&
13181          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13187   ac_cv_member_krb5_error_e_data=yes
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198 #include <krb5.h>
13199
13200 int
13201 main ()
13202 {
13203 static krb5_error ac_aggr;
13204 if (sizeof ac_aggr.e_data)
13205 return 0;
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212   (eval $ac_compile) 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } &&
13219          { ac_try='test -z "$ac_c_werror_flag"
13220                          || test ! -s conftest.err'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest.$ac_objext'
13227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228   (eval $ac_try) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; }; then
13232   ac_cv_member_krb5_error_e_data=yes
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237 ac_cv_member_krb5_error_e_data=no
13238 fi
13239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13240 fi
13241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13242 fi
13243 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13244 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13245 if test $ac_cv_member_krb5_error_e_data = yes; then
13246
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_KRB5_ERROR_E_DATA 1
13249 _ACEOF
13250
13251
13252 else
13253   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13254 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13255    { (exit 1); exit 1; }; }
13256 fi
13257
13258 fi
13259
13260 fi
13261
13262 # This is probably only present on Darwin, but may as well check always
13263 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13264 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13265 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13266   echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268   cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h.  */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h.  */
13274 #include <fcntl.h>
13275
13276 int
13277 main ()
13278 {
13279 #ifndef F_FULLFSYNC
13280   char *p = (char *) F_FULLFSYNC;
13281 #endif
13282
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 rm -f conftest.$ac_objext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289   (eval $ac_compile) 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } &&
13296          { ac_try='test -z "$ac_c_werror_flag"
13297                          || test ! -s conftest.err'
13298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299   (eval $ac_try) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; } &&
13303          { ac_try='test -s conftest.$ac_objext'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_cv_have_decl_F_FULLFSYNC=yes
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_cv_have_decl_F_FULLFSYNC=no
13315 fi
13316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13317 fi
13318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13319 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13320 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13321
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_DECL_F_FULLFSYNC 1
13324 _ACEOF
13325
13326
13327 else
13328   cat >>confdefs.h <<_ACEOF
13329 #define HAVE_DECL_F_FULLFSYNC 0
13330 _ACEOF
13331
13332
13333 fi
13334
13335
13336
13337 ##
13338 ## Functions, global variables
13339 ##
13340
13341 echo "$as_me:$LINENO: checking for int timezone" >&5
13342 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13343 if test "${pgac_cv_var_int_timezone+set}" = set; then
13344   echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346   cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352 #include <time.h>
13353 int res;
13354 int
13355 main ()
13356 {
13357 #ifndef __CYGWIN__
13358 res = timezone / 60;
13359 #else
13360 res = _timezone / 60;
13361 #endif
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368   (eval $ac_link) 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } &&
13375          { ac_try='test -z "$ac_c_werror_flag"
13376                          || test ! -s conftest.err'
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); }; } &&
13382          { ac_try='test -s conftest$ac_exeext'
13383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384   (eval $ac_try) 2>&5
13385   ac_status=$?
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); }; }; then
13388   pgac_cv_var_int_timezone=yes
13389 else
13390   echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393 pgac_cv_var_int_timezone=no
13394 fi
13395 rm -f conftest.err conftest.$ac_objext \
13396       conftest$ac_exeext conftest.$ac_ext
13397 fi
13398 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13399 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13400 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13401
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_INT_TIMEZONE
13404 _ACEOF
13405
13406 fi
13407 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13408 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13409  if test "${ac_cv_func_accept_return+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412    if test "${ac_cv_func_accept_arg1+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415     if test "${ac_cv_func_accept_arg2+set}" = set; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418      if test "${ac_cv_func_accept_arg3+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13422       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13423        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13424         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13425          cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h.  */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h.  */
13431 #ifdef HAVE_SYS_TYPES_H
13432 #include <sys/types.h>
13433 #endif
13434 #ifdef HAVE_SYS_SOCKET_H
13435 #include <sys/socket.h>
13436 #endif
13437 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13438 int
13439 main ()
13440 {
13441
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448   (eval $ac_compile) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest.$ac_objext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_not_found=no; break 4
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_not_found=yes
13474 fi
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13476        done
13477       done
13478      done
13479     done
13480     if test "$ac_not_found" = yes; then
13481       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13482 echo "$as_me: error: could not determine argument types" >&2;}
13483    { (exit 1); exit 1; }; }
13484     fi
13485     if test "$ac_cv_func_accept_arg3" = "void"; then
13486       ac_cv_func_accept_arg3=int
13487     fi
13488
13489 fi
13490
13491 fi
13492
13493 fi
13494
13495 fi
13496  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
13497 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13498
13499 cat >>confdefs.h <<_ACEOF
13500 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13501 _ACEOF
13502
13503
13504 cat >>confdefs.h <<_ACEOF
13505 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13506 _ACEOF
13507
13508
13509 cat >>confdefs.h <<_ACEOF
13510 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13511 _ACEOF
13512
13513
13514 cat >>confdefs.h <<_ACEOF
13515 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13516 _ACEOF
13517
13518
13519 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13520 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13521 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h.  */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h.  */
13530 #include <sys/time.h>
13531 int
13532 main ()
13533 {
13534 struct timeval *tp;
13535 struct timezone *tzp;
13536 gettimeofday(tp,tzp);
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543   (eval $ac_compile) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   pgac_cv_func_gettimeofday_1arg=no
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 pgac_cv_func_gettimeofday_1arg=yes
13569 fi
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13573 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13574 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13575
13576 cat >>confdefs.h <<\_ACEOF
13577 #define GETTIMEOFDAY_1ARG
13578 _ACEOF
13579
13580 fi
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13604 do
13605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13606 echo "$as_me:$LINENO: checking for $ac_func" >&5
13607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_var+set}\" = set"; then
13609   echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611   cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h.  */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h.  */
13617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13619 #define $ac_func innocuous_$ac_func
13620
13621 /* System header to define __stub macros and hopefully few prototypes,
13622     which can conflict with char $ac_func (); below.
13623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13624     <limits.h> exists even on freestanding compilers.  */
13625
13626 #ifdef __STDC__
13627 # include <limits.h>
13628 #else
13629 # include <assert.h>
13630 #endif
13631
13632 #undef $ac_func
13633
13634 /* Override any gcc2 internal prototype to avoid an error.  */
13635 #ifdef __cplusplus
13636 extern "C"
13637 {
13638 #endif
13639 /* We use char because int might match the return type of a gcc2
13640    builtin and then its argument prototype would still apply.  */
13641 char $ac_func ();
13642 /* The GNU C library defines this for functions which it implements
13643     to always fail with ENOSYS.  Some functions are actually named
13644     something starting with __ and the normal name is an alias.  */
13645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13646 choke me
13647 #else
13648 char (*f) () = $ac_func;
13649 #endif
13650 #ifdef __cplusplus
13651 }
13652 #endif
13653
13654 int
13655 main ()
13656 {
13657 return f != $ac_func;
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664   (eval $ac_link) 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -z "$ac_c_werror_flag"
13672                          || test ! -s conftest.err'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest$ac_exeext'
13679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680   (eval $ac_try) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684   eval "$as_ac_var=yes"
13685 else
13686   echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 eval "$as_ac_var=no"
13690 fi
13691 rm -f conftest.err conftest.$ac_objext \
13692       conftest$ac_exeext conftest.$ac_ext
13693 fi
13694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13696 if test `eval echo '${'$as_ac_var'}'` = yes; then
13697   cat >>confdefs.h <<_ACEOF
13698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13699 _ACEOF
13700
13701 fi
13702 done
13703
13704
13705 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13706 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13707 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 #include <unistd.h>
13717
13718 int
13719 main ()
13720 {
13721 #ifndef fdatasync
13722   char *p = (char *) fdatasync;
13723 #endif
13724
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 rm -f conftest.$ac_objext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13731   (eval $ac_compile) 2>conftest.er1
13732   ac_status=$?
13733   grep -v '^ *+' conftest.er1 >conftest.err
13734   rm -f conftest.er1
13735   cat conftest.err >&5
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } &&
13738          { ac_try='test -z "$ac_c_werror_flag"
13739                          || test ! -s conftest.err'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; } &&
13745          { ac_try='test -s conftest.$ac_objext'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; }; then
13751   ac_cv_have_decl_fdatasync=yes
13752 else
13753   echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 ac_cv_have_decl_fdatasync=no
13757 fi
13758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13759 fi
13760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13761 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13762 if test $ac_cv_have_decl_fdatasync = yes; then
13763
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_DECL_FDATASYNC 1
13766 _ACEOF
13767
13768
13769 else
13770   cat >>confdefs.h <<_ACEOF
13771 #define HAVE_DECL_FDATASYNC 0
13772 _ACEOF
13773
13774
13775 fi
13776
13777
13778
13779 HAVE_IPV6=no
13780 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13781 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13782 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13783   echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785   cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792 #include <netinet/in.h>
13793
13794 int
13795 main ()
13796 {
13797 if ((struct sockaddr_in6 *) 0)
13798   return 0;
13799 if (sizeof (struct sockaddr_in6))
13800   return 0;
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807   (eval $ac_compile) 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_c_werror_flag"
13815                          || test ! -s conftest.err'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_type_struct_sockaddr_in6=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_type_struct_sockaddr_in6=no
13833 fi
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13837 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13838 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_IPV6 1
13842 _ACEOF
13843
13844          HAVE_IPV6=yes
13845 fi
13846
13847
13848
13849 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13850 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13851 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 #include <machine/vmparam.h>
13861 #include <sys/exec.h>
13862
13863 int
13864 main ()
13865 {
13866 PS_STRINGS->ps_nargvstr = 1;
13867 PS_STRINGS->ps_argvstr = "foo";
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874   (eval $ac_link) 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -z "$ac_c_werror_flag"
13882                          || test ! -s conftest.err'
13883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884   (eval $ac_try) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; } &&
13888          { ac_try='test -s conftest$ac_exeext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   pgac_cv_var_PS_STRINGS=yes
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 pgac_cv_var_PS_STRINGS=no
13900 fi
13901 rm -f conftest.err conftest.$ac_objext \
13902       conftest$ac_exeext conftest.$ac_ext
13903 fi
13904 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13905 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13906 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13907
13908 cat >>confdefs.h <<\_ACEOF
13909 #define HAVE_PS_STRINGS
13910 _ACEOF
13911
13912 fi
13913
13914
13915 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13916 # is missing.  Yes, there are machines that have only one.  We may
13917 # also decide to use snprintf.c if snprintf() is present but does not
13918 # have all the features we need --- see below.
13919
13920 if test "$PORTNAME" = "win32"; then
13921   # Win32 gets snprintf.c built unconditionally.
13922   #
13923   # To properly translate all NLS languages strings, we must support the
13924   # *printf() %$ format, which allows *printf() arguments to be selected
13925   # by position in the translated string.
13926   #
13927   # libintl versions < 0.13 use the native *printf() functions, and Win32
13928   # *printf() doesn't understand %$, so we must use our /port versions,
13929   # which do understand %$. libintl versions >= 0.13 include their own
13930   # *printf versions on Win32.  The libintl 0.13 release note text is:
13931   #
13932   #   C format strings with positions, as they arise when a translator
13933   #   needs to reorder a sentence, are now supported on all platforms.
13934   #   On those few platforms (NetBSD and Woe32) for which the native
13935   #   printf()/fprintf()/... functions don't support such format
13936   #   strings, replacements are provided through <libintl.h>.
13937   #
13938   # We could use libintl >= 0.13's *printf() if we were sure that we had
13939   # a litint >= 0.13 at runtime, but seeing that there is no clean way
13940   # to guarantee that, it is best to just use our own, so we are sure to
13941   # get %$ support. In include/port.h we disable the *printf() macros
13942   # that might have been defined by libintl.
13943   #
13944   # We do this unconditionally whether NLS is used or not so we are sure
13945   # that all Win32 libraries and binaries behave the same.
13946   pgac_need_repl_snprintf=yes
13947 else
13948   pgac_need_repl_snprintf=no
13949
13950 for ac_func in snprintf
13951 do
13952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956   echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958   cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h.  */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h.  */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13966 #define $ac_func innocuous_$ac_func
13967
13968 /* System header to define __stub macros and hopefully few prototypes,
13969     which can conflict with char $ac_func (); below.
13970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971     <limits.h> exists even on freestanding compilers.  */
13972
13973 #ifdef __STDC__
13974 # include <limits.h>
13975 #else
13976 # include <assert.h>
13977 #endif
13978
13979 #undef $ac_func
13980
13981 /* Override any gcc2 internal prototype to avoid an error.  */
13982 #ifdef __cplusplus
13983 extern "C"
13984 {
13985 #endif
13986 /* We use char because int might match the return type of a gcc2
13987    builtin and then its argument prototype would still apply.  */
13988 char $ac_func ();
13989 /* The GNU C library defines this for functions which it implements
13990     to always fail with ENOSYS.  Some functions are actually named
13991     something starting with __ and the normal name is an alias.  */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 choke me
13994 #else
13995 char (*f) () = $ac_func;
13996 #endif
13997 #ifdef __cplusplus
13998 }
13999 #endif
14000
14001 int
14002 main ()
14003 {
14004 return f != $ac_func;
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011   (eval $ac_link) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag"
14019                          || test ! -s conftest.err'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest$ac_exeext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   eval "$as_ac_var=yes"
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 eval "$as_ac_var=no"
14037 fi
14038 rm -f conftest.err conftest.$ac_objext \
14039       conftest$ac_exeext conftest.$ac_ext
14040 fi
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044   cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 else
14049   pgac_need_repl_snprintf=yes
14050 fi
14051 done
14052
14053
14054 for ac_func in vsnprintf
14055 do
14056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_var+set}\" = set"; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14070 #define $ac_func innocuous_$ac_func
14071
14072 /* System header to define __stub macros and hopefully few prototypes,
14073     which can conflict with char $ac_func (); below.
14074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14075     <limits.h> exists even on freestanding compilers.  */
14076
14077 #ifdef __STDC__
14078 # include <limits.h>
14079 #else
14080 # include <assert.h>
14081 #endif
14082
14083 #undef $ac_func
14084
14085 /* Override any gcc2 internal prototype to avoid an error.  */
14086 #ifdef __cplusplus
14087 extern "C"
14088 {
14089 #endif
14090 /* We use char because int might match the return type of a gcc2
14091    builtin and then its argument prototype would still apply.  */
14092 char $ac_func ();
14093 /* The GNU C library defines this for functions which it implements
14094     to always fail with ENOSYS.  Some functions are actually named
14095     something starting with __ and the normal name is an alias.  */
14096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097 choke me
14098 #else
14099 char (*f) () = $ac_func;
14100 #endif
14101 #ifdef __cplusplus
14102 }
14103 #endif
14104
14105 int
14106 main ()
14107 {
14108 return f != $ac_func;
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115   (eval $ac_link) 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag"
14123                          || test ! -s conftest.err'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; } &&
14129          { ac_try='test -s conftest$ac_exeext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   eval "$as_ac_var=yes"
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 eval "$as_ac_var=no"
14141 fi
14142 rm -f conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext conftest.$ac_ext
14144 fi
14145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14147 if test `eval echo '${'$as_ac_var'}'` = yes; then
14148   cat >>confdefs.h <<_ACEOF
14149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14150 _ACEOF
14151
14152 else
14153   pgac_need_repl_snprintf=yes
14154 fi
14155 done
14156
14157 fi
14158
14159
14160 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14161 # include/c.h will provide declarations.  Note this is a separate test
14162 # from whether the functions exist in the C library --- there are
14163 # systems that have the functions but don't bother to declare them :-(
14164
14165 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14166 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14167 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 #ifndef snprintf
14181   char *p = (char *) snprintf;
14182 #endif
14183
14184   ;
14185   return 0;
14186 }
14187 _ACEOF
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190   (eval $ac_compile) 2>conftest.er1
14191   ac_status=$?
14192   grep -v '^ *+' conftest.er1 >conftest.err
14193   rm -f conftest.er1
14194   cat conftest.err >&5
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); } &&
14197          { ac_try='test -z "$ac_c_werror_flag"
14198                          || test ! -s conftest.err'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; } &&
14204          { ac_try='test -s conftest.$ac_objext'
14205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206   (eval $ac_try) 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; }; then
14210   ac_cv_have_decl_snprintf=yes
14211 else
14212   echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 ac_cv_have_decl_snprintf=no
14216 fi
14217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218 fi
14219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14220 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14221 if test $ac_cv_have_decl_snprintf = yes; then
14222
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_DECL_SNPRINTF 1
14225 _ACEOF
14226
14227
14228 else
14229   cat >>confdefs.h <<_ACEOF
14230 #define HAVE_DECL_SNPRINTF 0
14231 _ACEOF
14232
14233
14234 fi
14235 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14236 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14237 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 $ac_includes_default
14247 int
14248 main ()
14249 {
14250 #ifndef vsnprintf
14251   char *p = (char *) vsnprintf;
14252 #endif
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260   (eval $ac_compile) 2>conftest.er1
14261   ac_status=$?
14262   grep -v '^ *+' conftest.er1 >conftest.err
14263   rm -f conftest.er1
14264   cat conftest.err >&5
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } &&
14267          { ac_try='test -z "$ac_c_werror_flag"
14268                          || test ! -s conftest.err'
14269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270   (eval $ac_try) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; } &&
14274          { ac_try='test -s conftest.$ac_objext'
14275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276   (eval $ac_try) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; }; then
14280   ac_cv_have_decl_vsnprintf=yes
14281 else
14282   echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 ac_cv_have_decl_vsnprintf=no
14286 fi
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288 fi
14289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14290 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14291 if test $ac_cv_have_decl_vsnprintf = yes; then
14292
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_DECL_VSNPRINTF 1
14295 _ACEOF
14296
14297
14298 else
14299   cat >>confdefs.h <<_ACEOF
14300 #define HAVE_DECL_VSNPRINTF 0
14301 _ACEOF
14302
14303
14304 fi
14305
14306
14307
14308
14309 echo "$as_me:$LINENO: checking for isinf" >&5
14310 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14311 if test "${ac_cv_func_isinf+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h.  */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h.  */
14320
14321 #include <math.h>
14322 double glob_double;
14323
14324 int
14325 main ()
14326 {
14327 return isinf(glob_double) ? 0 : 1;
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334   (eval $ac_link) 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -z "$ac_c_werror_flag"
14342                          || test ! -s conftest.err'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; } &&
14348          { ac_try='test -s conftest$ac_exeext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   ac_cv_func_isinf=yes
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 ac_cv_func_isinf=no
14360 fi
14361 rm -f conftest.err conftest.$ac_objext \
14362       conftest$ac_exeext conftest.$ac_ext
14363 fi
14364 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14365 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14366
14367 if test $ac_cv_func_isinf = yes ; then
14368
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_ISINF 1
14371 _ACEOF
14372
14373 else
14374   case $LIBOBJS in
14375     "isinf.$ac_objext"   | \
14376   *" isinf.$ac_objext"   | \
14377     "isinf.$ac_objext "* | \
14378   *" isinf.$ac_objext "* ) ;;
14379   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14380 esac
14381
14382   # Look for a way to implement a substitute for isinf()
14383
14384
14385
14386
14387 for ac_func in fpclass fp_class fp_class_d class
14388 do
14389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14390 echo "$as_me:$LINENO: checking for $ac_func" >&5
14391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14392 if eval "test \"\${$as_ac_var+set}\" = set"; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14403 #define $ac_func innocuous_$ac_func
14404
14405 /* System header to define __stub macros and hopefully few prototypes,
14406     which can conflict with char $ac_func (); below.
14407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14408     <limits.h> exists even on freestanding compilers.  */
14409
14410 #ifdef __STDC__
14411 # include <limits.h>
14412 #else
14413 # include <assert.h>
14414 #endif
14415
14416 #undef $ac_func
14417
14418 /* Override any gcc2 internal prototype to avoid an error.  */
14419 #ifdef __cplusplus
14420 extern "C"
14421 {
14422 #endif
14423 /* We use char because int might match the return type of a gcc2
14424    builtin and then its argument prototype would still apply.  */
14425 char $ac_func ();
14426 /* The GNU C library defines this for functions which it implements
14427     to always fail with ENOSYS.  Some functions are actually named
14428     something starting with __ and the normal name is an alias.  */
14429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14430 choke me
14431 #else
14432 char (*f) () = $ac_func;
14433 #endif
14434 #ifdef __cplusplus
14435 }
14436 #endif
14437
14438 int
14439 main ()
14440 {
14441 return f != $ac_func;
14442   ;
14443   return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14448   (eval $ac_link) 2>conftest.er1
14449   ac_status=$?
14450   grep -v '^ *+' conftest.er1 >conftest.err
14451   rm -f conftest.er1
14452   cat conftest.err >&5
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); } &&
14455          { ac_try='test -z "$ac_c_werror_flag"
14456                          || test ! -s conftest.err'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; } &&
14462          { ac_try='test -s conftest$ac_exeext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   eval "$as_ac_var=yes"
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 eval "$as_ac_var=no"
14474 fi
14475 rm -f conftest.err conftest.$ac_objext \
14476       conftest$ac_exeext conftest.$ac_ext
14477 fi
14478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14480 if test `eval echo '${'$as_ac_var'}'` = yes; then
14481   cat >>confdefs.h <<_ACEOF
14482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14483 _ACEOF
14484  break
14485 fi
14486 done
14487
14488 fi
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14504 do
14505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14506 echo "$as_me:$LINENO: checking for $ac_func" >&5
14507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14508 if eval "test \"\${$as_ac_var+set}\" = set"; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14519 #define $ac_func innocuous_$ac_func
14520
14521 /* System header to define __stub macros and hopefully few prototypes,
14522     which can conflict with char $ac_func (); below.
14523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14524     <limits.h> exists even on freestanding compilers.  */
14525
14526 #ifdef __STDC__
14527 # include <limits.h>
14528 #else
14529 # include <assert.h>
14530 #endif
14531
14532 #undef $ac_func
14533
14534 /* Override any gcc2 internal prototype to avoid an error.  */
14535 #ifdef __cplusplus
14536 extern "C"
14537 {
14538 #endif
14539 /* We use char because int might match the return type of a gcc2
14540    builtin and then its argument prototype would still apply.  */
14541 char $ac_func ();
14542 /* The GNU C library defines this for functions which it implements
14543     to always fail with ENOSYS.  Some functions are actually named
14544     something starting with __ and the normal name is an alias.  */
14545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14546 choke me
14547 #else
14548 char (*f) () = $ac_func;
14549 #endif
14550 #ifdef __cplusplus
14551 }
14552 #endif
14553
14554 int
14555 main ()
14556 {
14557 return f != $ac_func;
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14564   (eval $ac_link) 2>conftest.er1
14565   ac_status=$?
14566   grep -v '^ *+' conftest.er1 >conftest.err
14567   rm -f conftest.er1
14568   cat conftest.err >&5
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } &&
14571          { ac_try='test -z "$ac_c_werror_flag"
14572                          || test ! -s conftest.err'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; } &&
14578          { ac_try='test -s conftest$ac_exeext'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; }; then
14584   eval "$as_ac_var=yes"
14585 else
14586   echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 eval "$as_ac_var=no"
14590 fi
14591 rm -f conftest.err conftest.$ac_objext \
14592       conftest$ac_exeext conftest.$ac_ext
14593 fi
14594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14596 if test `eval echo '${'$as_ac_var'}'` = yes; then
14597   cat >>confdefs.h <<_ACEOF
14598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14599 _ACEOF
14600
14601 else
14602   case $LIBOBJS in
14603     "$ac_func.$ac_objext"   | \
14604   *" $ac_func.$ac_objext"   | \
14605     "$ac_func.$ac_objext "* | \
14606   *" $ac_func.$ac_objext "* ) ;;
14607   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14608 esac
14609
14610 fi
14611 done
14612
14613
14614
14615 # System's version of getaddrinfo(), if any, may be used only if we found
14616 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14617 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14618 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
14619 # because we want to use our own getaddrinfo.c on Windows anyway.)
14620 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14621
14622 for ac_func in getaddrinfo
14623 do
14624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14625 echo "$as_me:$LINENO: checking for $ac_func" >&5
14626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14627 if eval "test \"\${$as_ac_var+set}\" = set"; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14638 #define $ac_func innocuous_$ac_func
14639
14640 /* System header to define __stub macros and hopefully few prototypes,
14641     which can conflict with char $ac_func (); below.
14642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14643     <limits.h> exists even on freestanding compilers.  */
14644
14645 #ifdef __STDC__
14646 # include <limits.h>
14647 #else
14648 # include <assert.h>
14649 #endif
14650
14651 #undef $ac_func
14652
14653 /* Override any gcc2 internal prototype to avoid an error.  */
14654 #ifdef __cplusplus
14655 extern "C"
14656 {
14657 #endif
14658 /* We use char because int might match the return type of a gcc2
14659    builtin and then its argument prototype would still apply.  */
14660 char $ac_func ();
14661 /* The GNU C library defines this for functions which it implements
14662     to always fail with ENOSYS.  Some functions are actually named
14663     something starting with __ and the normal name is an alias.  */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14665 choke me
14666 #else
14667 char (*f) () = $ac_func;
14668 #endif
14669 #ifdef __cplusplus
14670 }
14671 #endif
14672
14673 int
14674 main ()
14675 {
14676 return f != $ac_func;
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14683   (eval $ac_link) 2>conftest.er1
14684   ac_status=$?
14685   grep -v '^ *+' conftest.er1 >conftest.err
14686   rm -f conftest.er1
14687   cat conftest.err >&5
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -z "$ac_c_werror_flag"
14691                          || test ! -s conftest.err'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; } &&
14697          { ac_try='test -s conftest$ac_exeext'
14698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699   (eval $ac_try) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); }; }; then
14703   eval "$as_ac_var=yes"
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 eval "$as_ac_var=no"
14709 fi
14710 rm -f conftest.err conftest.$ac_objext \
14711       conftest$ac_exeext conftest.$ac_ext
14712 fi
14713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14715 if test `eval echo '${'$as_ac_var'}'` = yes; then
14716   cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14718 _ACEOF
14719
14720 else
14721   case $LIBOBJS in
14722     "$ac_func.$ac_objext"   | \
14723   *" $ac_func.$ac_objext"   | \
14724     "$ac_func.$ac_objext "* | \
14725   *" $ac_func.$ac_objext "* ) ;;
14726   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14727 esac
14728
14729 fi
14730 done
14731
14732
14733 else
14734   case $LIBOBJS in
14735     "getaddrinfo.$ac_objext"   | \
14736   *" getaddrinfo.$ac_objext"   | \
14737     "getaddrinfo.$ac_objext "* | \
14738   *" getaddrinfo.$ac_objext "* ) ;;
14739   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14740 esac
14741
14742 fi
14743
14744 # similarly, use system's getopt_long() only if system provides struct option.
14745 if test x"$ac_cv_type_struct_option" = xyes ; then
14746
14747 for ac_func in getopt_long
14748 do
14749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 echo "$as_me:$LINENO: checking for $ac_func" >&5
14751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14752 if eval "test \"\${$as_ac_var+set}\" = set"; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14763 #define $ac_func innocuous_$ac_func
14764
14765 /* System header to define __stub macros and hopefully few prototypes,
14766     which can conflict with char $ac_func (); below.
14767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14768     <limits.h> exists even on freestanding compilers.  */
14769
14770 #ifdef __STDC__
14771 # include <limits.h>
14772 #else
14773 # include <assert.h>
14774 #endif
14775
14776 #undef $ac_func
14777
14778 /* Override any gcc2 internal prototype to avoid an error.  */
14779 #ifdef __cplusplus
14780 extern "C"
14781 {
14782 #endif
14783 /* We use char because int might match the return type of a gcc2
14784    builtin and then its argument prototype would still apply.  */
14785 char $ac_func ();
14786 /* The GNU C library defines this for functions which it implements
14787     to always fail with ENOSYS.  Some functions are actually named
14788     something starting with __ and the normal name is an alias.  */
14789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14790 choke me
14791 #else
14792 char (*f) () = $ac_func;
14793 #endif
14794 #ifdef __cplusplus
14795 }
14796 #endif
14797
14798 int
14799 main ()
14800 {
14801 return f != $ac_func;
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808   (eval $ac_link) 2>conftest.er1
14809   ac_status=$?
14810   grep -v '^ *+' conftest.er1 >conftest.err
14811   rm -f conftest.er1
14812   cat conftest.err >&5
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -z "$ac_c_werror_flag"
14816                          || test ! -s conftest.err'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; } &&
14822          { ac_try='test -s conftest$ac_exeext'
14823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824   (eval $ac_try) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; }; then
14828   eval "$as_ac_var=yes"
14829 else
14830   echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 eval "$as_ac_var=no"
14834 fi
14835 rm -f conftest.err conftest.$ac_objext \
14836       conftest$ac_exeext conftest.$ac_ext
14837 fi
14838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14840 if test `eval echo '${'$as_ac_var'}'` = yes; then
14841   cat >>confdefs.h <<_ACEOF
14842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14843 _ACEOF
14844
14845 else
14846   case $LIBOBJS in
14847     "$ac_func.$ac_objext"   | \
14848   *" $ac_func.$ac_objext"   | \
14849     "$ac_func.$ac_objext "* | \
14850   *" $ac_func.$ac_objext "* ) ;;
14851   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14852 esac
14853
14854 fi
14855 done
14856
14857
14858 else
14859   case $LIBOBJS in
14860     "getopt_long.$ac_objext"   | \
14861   *" getopt_long.$ac_objext"   | \
14862     "getopt_long.$ac_objext "* | \
14863   *" getopt_long.$ac_objext "* ) ;;
14864   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14865 esac
14866
14867 fi
14868
14869 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14870 # We override the previous test that said fseeko/ftello didn't exist
14871 # OS tests are also done in include/c.h and port/fseeko.c
14872 case $host_os in bsdi*|netbsd*)
14873 ac_cv_func_fseeko=yes
14874 esac
14875
14876 # Solaris has a very slow qsort in certain cases, so we replace it:
14877 #   http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14878 # Supposedly it is fixed in Solaris, but not sure which version, and
14879 # no confirmed testing.  2005-12-16
14880 if test "$PORTNAME" = "solaris"; then
14881 case $LIBOBJS in
14882     "qsort.$ac_objext"   | \
14883   *" qsort.$ac_objext"   | \
14884     "qsort.$ac_objext "* | \
14885   *" qsort.$ac_objext "* ) ;;
14886   *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14887 esac
14888
14889 fi
14890
14891 # Win32 support
14892 if test "$PORTNAME" = "win32"; then
14893 case $LIBOBJS in
14894     "gettimeofday.$ac_objext"   | \
14895   *" gettimeofday.$ac_objext"   | \
14896     "gettimeofday.$ac_objext "* | \
14897   *" gettimeofday.$ac_objext "* ) ;;
14898   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14899 esac
14900
14901 case $LIBOBJS in
14902     "kill.$ac_objext"   | \
14903   *" kill.$ac_objext"   | \
14904     "kill.$ac_objext "* | \
14905   *" kill.$ac_objext "* ) ;;
14906   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14907 esac
14908
14909 case $LIBOBJS in
14910     "open.$ac_objext"   | \
14911   *" open.$ac_objext"   | \
14912     "open.$ac_objext "* | \
14913   *" open.$ac_objext "* ) ;;
14914   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14915 esac
14916
14917 case $LIBOBJS in
14918     "rand.$ac_objext"   | \
14919   *" rand.$ac_objext"   | \
14920     "rand.$ac_objext "* | \
14921   *" rand.$ac_objext "* ) ;;
14922   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14923 esac
14924
14925
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_SYMLINK 1
14928 _ACEOF
14929
14930 fi
14931
14932 if test "$with_readline" = yes; then
14933   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14934 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #include <stdio.h>
14942 #ifdef HAVE_READLINE_READLINE_H
14943 # include <readline/readline.h>
14944 #elif defined(HAVE_READLINE_H)
14945 # include <readline.h>
14946 #endif
14947
14948 int
14949 main ()
14950 {
14951 rl_completion_append_character = 'x';
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958   (eval $ac_link) 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag"
14966                          || test ! -s conftest.err'
14967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968   (eval $ac_try) 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; } &&
14972          { ac_try='test -s conftest$ac_exeext'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   echo "$as_me:$LINENO: result: yes" >&5
14979 echo "${ECHO_T}yes" >&6
14980
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14983 _ACEOF
14984
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14991 fi
14992 rm -f conftest.err conftest.$ac_objext \
14993       conftest$ac_exeext conftest.$ac_ext
14994
14995
14996 for ac_func in rl_completion_matches rl_filename_completion_function
14997 do
14998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14999 echo "$as_me:$LINENO: checking for $ac_func" >&5
15000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15001 if eval "test \"\${$as_ac_var+set}\" = set"; then
15002   echo $ECHO_N "(cached) $ECHO_C" >&6
15003 else
15004   cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15012 #define $ac_func innocuous_$ac_func
15013
15014 /* System header to define __stub macros and hopefully few prototypes,
15015     which can conflict with char $ac_func (); below.
15016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15017     <limits.h> exists even on freestanding compilers.  */
15018
15019 #ifdef __STDC__
15020 # include <limits.h>
15021 #else
15022 # include <assert.h>
15023 #endif
15024
15025 #undef $ac_func
15026
15027 /* Override any gcc2 internal prototype to avoid an error.  */
15028 #ifdef __cplusplus
15029 extern "C"
15030 {
15031 #endif
15032 /* We use char because int might match the return type of a gcc2
15033    builtin and then its argument prototype would still apply.  */
15034 char $ac_func ();
15035 /* The GNU C library defines this for functions which it implements
15036     to always fail with ENOSYS.  Some functions are actually named
15037     something starting with __ and the normal name is an alias.  */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15039 choke me
15040 #else
15041 char (*f) () = $ac_func;
15042 #endif
15043 #ifdef __cplusplus
15044 }
15045 #endif
15046
15047 int
15048 main ()
15049 {
15050 return f != $ac_func;
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057   (eval $ac_link) 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag"
15065                          || test ! -s conftest.err'
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); }; } &&
15071          { ac_try='test -s conftest$ac_exeext'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; }; then
15077   eval "$as_ac_var=yes"
15078 else
15079   echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 eval "$as_ac_var=no"
15083 fi
15084 rm -f conftest.err conftest.$ac_objext \
15085       conftest$ac_exeext conftest.$ac_ext
15086 fi
15087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15089 if test `eval echo '${'$as_ac_var'}'` = yes; then
15090   cat >>confdefs.h <<_ACEOF
15091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15092 _ACEOF
15093
15094 fi
15095 done
15096
15097
15098 for ac_func in replace_history_entry
15099 do
15100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 echo "$as_me:$LINENO: checking for $ac_func" >&5
15102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15103 if eval "test \"\${$as_ac_var+set}\" = set"; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106   cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h.  */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h.  */
15112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15114 #define $ac_func innocuous_$ac_func
15115
15116 /* System header to define __stub macros and hopefully few prototypes,
15117     which can conflict with char $ac_func (); below.
15118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119     <limits.h> exists even on freestanding compilers.  */
15120
15121 #ifdef __STDC__
15122 # include <limits.h>
15123 #else
15124 # include <assert.h>
15125 #endif
15126
15127 #undef $ac_func
15128
15129 /* Override any gcc2 internal prototype to avoid an error.  */
15130 #ifdef __cplusplus
15131 extern "C"
15132 {
15133 #endif
15134 /* We use char because int might match the return type of a gcc2
15135    builtin and then its argument prototype would still apply.  */
15136 char $ac_func ();
15137 /* The GNU C library defines this for functions which it implements
15138     to always fail with ENOSYS.  Some functions are actually named
15139     something starting with __ and the normal name is an alias.  */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15141 choke me
15142 #else
15143 char (*f) () = $ac_func;
15144 #endif
15145 #ifdef __cplusplus
15146 }
15147 #endif
15148
15149 int
15150 main ()
15151 {
15152 return f != $ac_func;
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159   (eval $ac_link) 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } &&
15166          { ac_try='test -z "$ac_c_werror_flag"
15167                          || test ! -s conftest.err'
15168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169   (eval $ac_try) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; } &&
15173          { ac_try='test -s conftest$ac_exeext'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; }; then
15179   eval "$as_ac_var=yes"
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 eval "$as_ac_var=no"
15185 fi
15186 rm -f conftest.err conftest.$ac_objext \
15187       conftest$ac_exeext conftest.$ac_ext
15188 fi
15189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15191 if test `eval echo '${'$as_ac_var'}'` = yes; then
15192   cat >>confdefs.h <<_ACEOF
15193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15194 _ACEOF
15195
15196 fi
15197 done
15198
15199 fi
15200
15201
15202 echo "$as_me:$LINENO: checking for finite" >&5
15203 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210
15211 #include <math.h>
15212 double glob_double;
15213
15214 int
15215 main ()
15216 {
15217 return finite(glob_double) ? 0 : 1;
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224   (eval $ac_link) 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag"
15232                          || test ! -s conftest.err'
15233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234   (eval $ac_try) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; } &&
15238          { ac_try='test -s conftest$ac_exeext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244
15245 cat >>confdefs.h <<\_ACEOF
15246 #define HAVE_FINITE 1
15247 _ACEOF
15248
15249 echo "$as_me:$LINENO: result: yes" >&5
15250 echo "${ECHO_T}yes" >&6
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 echo "$as_me:$LINENO: result: no" >&5
15256 echo "${ECHO_T}no" >&6
15257 fi
15258 rm -f conftest.err conftest.$ac_objext \
15259       conftest$ac_exeext conftest.$ac_ext
15260
15261 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15262 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h.  */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h.  */
15269 #include <setjmp.h>
15270 int
15271 main ()
15272 {
15273 sigjmp_buf x; sigsetjmp(x, 1);
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15280   (eval $ac_link) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag"
15288                          || test ! -s conftest.err'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; } &&
15294          { ac_try='test -s conftest$ac_exeext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300
15301 cat >>confdefs.h <<\_ACEOF
15302 #define HAVE_SIGSETJMP 1
15303 _ACEOF
15304
15305 echo "$as_me:$LINENO: result: yes" >&5
15306 echo "${ECHO_T}yes" >&6
15307 else
15308   echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 echo "$as_me:$LINENO: result: no" >&5
15312 echo "${ECHO_T}no" >&6
15313 fi
15314 rm -f conftest.err conftest.$ac_objext \
15315       conftest$ac_exeext conftest.$ac_ext
15316
15317 echo "$as_me:$LINENO: checking for syslog" >&5
15318 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15319 if test "${ac_cv_func_syslog+set}" = set; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15330 #define syslog innocuous_syslog
15331
15332 /* System header to define __stub macros and hopefully few prototypes,
15333     which can conflict with char syslog (); below.
15334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335     <limits.h> exists even on freestanding compilers.  */
15336
15337 #ifdef __STDC__
15338 # include <limits.h>
15339 #else
15340 # include <assert.h>
15341 #endif
15342
15343 #undef syslog
15344
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 {
15349 #endif
15350 /* We use char because int might match the return type of a gcc2
15351    builtin and then its argument prototype would still apply.  */
15352 char syslog ();
15353 /* The GNU C library defines this for functions which it implements
15354     to always fail with ENOSYS.  Some functions are actually named
15355     something starting with __ and the normal name is an alias.  */
15356 #if defined (__stub_syslog) || defined (__stub___syslog)
15357 choke me
15358 #else
15359 char (*f) () = syslog;
15360 #endif
15361 #ifdef __cplusplus
15362 }
15363 #endif
15364
15365 int
15366 main ()
15367 {
15368 return f != syslog;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>conftest.er1
15376   ac_status=$?
15377   grep -v '^ *+' conftest.er1 >conftest.err
15378   rm -f conftest.er1
15379   cat conftest.err >&5
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -z "$ac_c_werror_flag"
15383                          || test ! -s conftest.err'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; } &&
15389          { ac_try='test -s conftest$ac_exeext'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395   ac_cv_func_syslog=yes
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 ac_cv_func_syslog=no
15401 fi
15402 rm -f conftest.err conftest.$ac_objext \
15403       conftest$ac_exeext conftest.$ac_ext
15404 fi
15405 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15406 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15407 if test $ac_cv_func_syslog = yes; then
15408   if test "${ac_cv_header_syslog_h+set}" = set; then
15409   echo "$as_me:$LINENO: checking for syslog.h" >&5
15410 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15411 if test "${ac_cv_header_syslog_h+set}" = set; then
15412   echo $ECHO_N "(cached) $ECHO_C" >&6
15413 fi
15414 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15415 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15416 else
15417   # Is the header compilable?
15418 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15419 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 $ac_includes_default
15427 #include <syslog.h>
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431   (eval $ac_compile) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest.$ac_objext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_header_compiler=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_header_compiler=no
15457 fi
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 echo "${ECHO_T}$ac_header_compiler" >&6
15461
15462 # Is the header present?
15463 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15464 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 #include <syslog.h>
15472 _ACEOF
15473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15475   ac_status=$?
15476   grep -v '^ *+' conftest.er1 >conftest.err
15477   rm -f conftest.er1
15478   cat conftest.err >&5
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } >/dev/null; then
15481   if test -s conftest.err; then
15482     ac_cpp_err=$ac_c_preproc_warn_flag
15483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484   else
15485     ac_cpp_err=
15486   fi
15487 else
15488   ac_cpp_err=yes
15489 fi
15490 if test -z "$ac_cpp_err"; then
15491   ac_header_preproc=yes
15492 else
15493   echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496   ac_header_preproc=no
15497 fi
15498 rm -f conftest.err conftest.$ac_ext
15499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15500 echo "${ECHO_T}$ac_header_preproc" >&6
15501
15502 # So?  What about this header?
15503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504   yes:no: )
15505     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15506 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15507     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15508 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15509     ac_header_preproc=yes
15510     ;;
15511   no:yes:* )
15512     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15513 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
15515 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15517 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
15519 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15523 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15524     (
15525       cat <<\_ASBOX
15526 ## ---------------------------------------- ##
15527 ## Report this to pgsql-bugs@postgresql.org ##
15528 ## ---------------------------------------- ##
15529 _ASBOX
15530     ) |
15531       sed "s/^/$as_me: WARNING:     /" >&2
15532     ;;
15533 esac
15534 echo "$as_me:$LINENO: checking for syslog.h" >&5
15535 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15536 if test "${ac_cv_header_syslog_h+set}" = set; then
15537   echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539   ac_cv_header_syslog_h=$ac_header_preproc
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15542 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15543
15544 fi
15545 if test $ac_cv_header_syslog_h = yes; then
15546
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_SYSLOG 1
15549 _ACEOF
15550
15551 fi
15552
15553
15554 fi
15555
15556
15557 echo "$as_me:$LINENO: checking for optreset" >&5
15558 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15559 if test "${pgac_cv_var_int_optreset+set}" = set; then
15560   echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562   cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 #include <unistd.h>
15569 int
15570 main ()
15571 {
15572 extern int optreset; optreset = 1;
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579   (eval $ac_link) 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -z "$ac_c_werror_flag"
15587                          || test ! -s conftest.err'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; } &&
15593          { ac_try='test -s conftest$ac_exeext'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   pgac_cv_var_int_optreset=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 pgac_cv_var_int_optreset=no
15605 fi
15606 rm -f conftest.err conftest.$ac_objext \
15607       conftest$ac_exeext conftest.$ac_ext
15608 fi
15609 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15610 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15611 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15612
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_INT_OPTRESET 1
15615 _ACEOF
15616
15617 fi
15618
15619
15620
15621 for ac_func in strtoll strtoq
15622 do
15623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15624 echo "$as_me:$LINENO: checking for $ac_func" >&5
15625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15626 if eval "test \"\${$as_ac_var+set}\" = set"; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629   cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15637 #define $ac_func innocuous_$ac_func
15638
15639 /* System header to define __stub macros and hopefully few prototypes,
15640     which can conflict with char $ac_func (); below.
15641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642     <limits.h> exists even on freestanding compilers.  */
15643
15644 #ifdef __STDC__
15645 # include <limits.h>
15646 #else
15647 # include <assert.h>
15648 #endif
15649
15650 #undef $ac_func
15651
15652 /* Override any gcc2 internal prototype to avoid an error.  */
15653 #ifdef __cplusplus
15654 extern "C"
15655 {
15656 #endif
15657 /* We use char because int might match the return type of a gcc2
15658    builtin and then its argument prototype would still apply.  */
15659 char $ac_func ();
15660 /* The GNU C library defines this for functions which it implements
15661     to always fail with ENOSYS.  Some functions are actually named
15662     something starting with __ and the normal name is an alias.  */
15663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15664 choke me
15665 #else
15666 char (*f) () = $ac_func;
15667 #endif
15668 #ifdef __cplusplus
15669 }
15670 #endif
15671
15672 int
15673 main ()
15674 {
15675 return f != $ac_func;
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_c_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   eval "$as_ac_var=yes"
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 eval "$as_ac_var=no"
15708 fi
15709 rm -f conftest.err conftest.$ac_objext \
15710       conftest$ac_exeext conftest.$ac_ext
15711 fi
15712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15717 _ACEOF
15718  break
15719 fi
15720 done
15721
15722
15723
15724 for ac_func in strtoull strtouq
15725 do
15726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15727 echo "$as_me:$LINENO: checking for $ac_func" >&5
15728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_var+set}\" = set"; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h.  */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h.  */
15738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15740 #define $ac_func innocuous_$ac_func
15741
15742 /* System header to define __stub macros and hopefully few prototypes,
15743     which can conflict with char $ac_func (); below.
15744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745     <limits.h> exists even on freestanding compilers.  */
15746
15747 #ifdef __STDC__
15748 # include <limits.h>
15749 #else
15750 # include <assert.h>
15751 #endif
15752
15753 #undef $ac_func
15754
15755 /* Override any gcc2 internal prototype to avoid an error.  */
15756 #ifdef __cplusplus
15757 extern "C"
15758 {
15759 #endif
15760 /* We use char because int might match the return type of a gcc2
15761    builtin and then its argument prototype would still apply.  */
15762 char $ac_func ();
15763 /* The GNU C library defines this for functions which it implements
15764     to always fail with ENOSYS.  Some functions are actually named
15765     something starting with __ and the normal name is an alias.  */
15766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15767 choke me
15768 #else
15769 char (*f) () = $ac_func;
15770 #endif
15771 #ifdef __cplusplus
15772 }
15773 #endif
15774
15775 int
15776 main ()
15777 {
15778 return f != $ac_func;
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785   (eval $ac_link) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -z "$ac_c_werror_flag"
15793                          || test ! -s conftest.err'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest$ac_exeext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   eval "$as_ac_var=yes"
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 eval "$as_ac_var=no"
15811 fi
15812 rm -f conftest.err conftest.$ac_objext \
15813       conftest$ac_exeext conftest.$ac_ext
15814 fi
15815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15817 if test `eval echo '${'$as_ac_var'}'` = yes; then
15818   cat >>confdefs.h <<_ACEOF
15819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15820 _ACEOF
15821  break
15822 fi
15823 done
15824
15825
15826 # Check for one of atexit() or on_exit()
15827
15828 for ac_func in atexit
15829 do
15830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15831 echo "$as_me:$LINENO: checking for $ac_func" >&5
15832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15833 if eval "test \"\${$as_ac_var+set}\" = set"; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15844 #define $ac_func innocuous_$ac_func
15845
15846 /* System header to define __stub macros and hopefully few prototypes,
15847     which can conflict with char $ac_func (); below.
15848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15849     <limits.h> exists even on freestanding compilers.  */
15850
15851 #ifdef __STDC__
15852 # include <limits.h>
15853 #else
15854 # include <assert.h>
15855 #endif
15856
15857 #undef $ac_func
15858
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 #ifdef __cplusplus
15861 extern "C"
15862 {
15863 #endif
15864 /* We use char because int might match the return type of a gcc2
15865    builtin and then its argument prototype would still apply.  */
15866 char $ac_func ();
15867 /* The GNU C library defines this for functions which it implements
15868     to always fail with ENOSYS.  Some functions are actually named
15869     something starting with __ and the normal name is an alias.  */
15870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15871 choke me
15872 #else
15873 char (*f) () = $ac_func;
15874 #endif
15875 #ifdef __cplusplus
15876 }
15877 #endif
15878
15879 int
15880 main ()
15881 {
15882 return f != $ac_func;
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889   (eval $ac_link) 2>conftest.er1
15890   ac_status=$?
15891   grep -v '^ *+' conftest.er1 >conftest.err
15892   rm -f conftest.er1
15893   cat conftest.err >&5
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); } &&
15896          { ac_try='test -z "$ac_c_werror_flag"
15897                          || test ! -s conftest.err'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; } &&
15903          { ac_try='test -s conftest$ac_exeext'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; }; then
15909   eval "$as_ac_var=yes"
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 eval "$as_ac_var=no"
15915 fi
15916 rm -f conftest.err conftest.$ac_objext \
15917       conftest$ac_exeext conftest.$ac_ext
15918 fi
15919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15921 if test `eval echo '${'$as_ac_var'}'` = yes; then
15922   cat >>confdefs.h <<_ACEOF
15923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15924 _ACEOF
15925
15926 else
15927
15928 for ac_func in on_exit
15929 do
15930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15931 echo "$as_me:$LINENO: checking for $ac_func" >&5
15932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15933 if eval "test \"\${$as_ac_var+set}\" = set"; then
15934   echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936   cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15944 #define $ac_func innocuous_$ac_func
15945
15946 /* System header to define __stub macros and hopefully few prototypes,
15947     which can conflict with char $ac_func (); below.
15948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15949     <limits.h> exists even on freestanding compilers.  */
15950
15951 #ifdef __STDC__
15952 # include <limits.h>
15953 #else
15954 # include <assert.h>
15955 #endif
15956
15957 #undef $ac_func
15958
15959 /* Override any gcc2 internal prototype to avoid an error.  */
15960 #ifdef __cplusplus
15961 extern "C"
15962 {
15963 #endif
15964 /* We use char because int might match the return type of a gcc2
15965    builtin and then its argument prototype would still apply.  */
15966 char $ac_func ();
15967 /* The GNU C library defines this for functions which it implements
15968     to always fail with ENOSYS.  Some functions are actually named
15969     something starting with __ and the normal name is an alias.  */
15970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15971 choke me
15972 #else
15973 char (*f) () = $ac_func;
15974 #endif
15975 #ifdef __cplusplus
15976 }
15977 #endif
15978
15979 int
15980 main ()
15981 {
15982 return f != $ac_func;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989   (eval $ac_link) 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } &&
15996          { ac_try='test -z "$ac_c_werror_flag"
15997                          || test ! -s conftest.err'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest$ac_exeext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   eval "$as_ac_var=yes"
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 eval "$as_ac_var=no"
16015 fi
16016 rm -f conftest.err conftest.$ac_objext \
16017       conftest$ac_exeext conftest.$ac_ext
16018 fi
16019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16021 if test `eval echo '${'$as_ac_var'}'` = yes; then
16022   cat >>confdefs.h <<_ACEOF
16023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16024 _ACEOF
16025
16026 else
16027   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16028 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16029    { (exit 1); exit 1; }; }
16030 fi
16031 done
16032
16033 fi
16034 done
16035
16036
16037 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16038 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16039 if test "${ac_cv_sys_largefile_source+set}" = set; then
16040   echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042   while :; do
16043   ac_cv_sys_largefile_source=no
16044   cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h.  */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h.  */
16050 #include <stdio.h>
16051 int
16052 main ()
16053 {
16054 return !fseeko;
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061   (eval $ac_compile) 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } &&
16068          { ac_try='test -z "$ac_c_werror_flag"
16069                          || test ! -s conftest.err'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; } &&
16075          { ac_try='test -s conftest.$ac_objext'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081   break
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 fi
16087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 #define _LARGEFILE_SOURCE 1
16095 #include <stdio.h>
16096 int
16097 main ()
16098 {
16099 return !fseeko;
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106   (eval $ac_compile) 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -z "$ac_c_werror_flag"
16114                          || test ! -s conftest.err'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest.$ac_objext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   ac_cv_sys_largefile_source=1; break
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 fi
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133   break
16134 done
16135 fi
16136 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16137 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16138 if test "$ac_cv_sys_largefile_source" != no; then
16139
16140 cat >>confdefs.h <<_ACEOF
16141 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16142 _ACEOF
16143
16144 fi
16145 rm -f conftest*
16146
16147 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16148 # in glibc 2.1.3, but that breaks too many other things.
16149 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16150 echo "$as_me:$LINENO: checking for fseeko" >&5
16151 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16152 if test "${ac_cv_func_fseeko+set}" = set; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 #include <stdio.h>
16162 int
16163 main ()
16164 {
16165 return fseeko && fseeko (stdin, 0, 0);
16166   ;
16167   return 0;
16168 }
16169 _ACEOF
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172   (eval $ac_link) 2>conftest.er1
16173   ac_status=$?
16174   grep -v '^ *+' conftest.er1 >conftest.err
16175   rm -f conftest.er1
16176   cat conftest.err >&5
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); } &&
16179          { ac_try='test -z "$ac_c_werror_flag"
16180                          || test ! -s conftest.err'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; } &&
16186          { ac_try='test -s conftest$ac_exeext'
16187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188   (eval $ac_try) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; }; then
16192   ac_cv_func_fseeko=yes
16193 else
16194   echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 ac_cv_func_fseeko=no
16198 fi
16199 rm -f conftest.err conftest.$ac_objext \
16200       conftest$ac_exeext conftest.$ac_ext
16201 fi
16202 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16203 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16204 if test $ac_cv_func_fseeko = yes; then
16205
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_FSEEKO 1
16208 _ACEOF
16209
16210 fi
16211
16212
16213 #
16214 # Pthreads
16215 #
16216 # For each platform, we need to know about any special compile and link
16217 # libraries, and whether the normal C function names are thread-safe.
16218 # See the comment at the top of src/port/thread.c for more information.
16219 #
16220 if test "$enable_thread_safety" = yes; then
16221
16222
16223
16224
16225 ac_ext=c
16226 ac_cpp='$CPP $CPPFLAGS'
16227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16230
16231 acx_pthread_ok=no
16232
16233 # We used to check for pthread.h first, but this fails if pthread.h
16234 # requires special compiler flags (e.g. on True64 or Sequent).
16235 # It gets checked for in the link test anyway.
16236
16237 # First of all, check if the user has set any of the PTHREAD_LIBS,
16238 # etcetera environment variables, and if threads linking works using
16239 # them:
16240 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16241         save_CFLAGS="$CFLAGS"
16242         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16243         save_LIBS="$LIBS"
16244         LIBS="$PTHREAD_LIBS $LIBS"
16245         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16246 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16247         cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253
16254 /* Override any gcc2 internal prototype to avoid an error.  */
16255 #ifdef __cplusplus
16256 extern "C"
16257 #endif
16258 /* We use char because int might match the return type of a gcc2
16259    builtin and then its argument prototype would still apply.  */
16260 char pthread_join ();
16261 int
16262 main ()
16263 {
16264 pthread_join ();
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271   (eval $ac_link) 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -z "$ac_c_werror_flag"
16279                          || test ! -s conftest.err'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; } &&
16285          { ac_try='test -s conftest$ac_exeext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   acx_pthread_ok=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 fi
16297 rm -f conftest.err conftest.$ac_objext \
16298       conftest$ac_exeext conftest.$ac_ext
16299         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16300 echo "${ECHO_T}$acx_pthread_ok" >&6
16301         if test x"$acx_pthread_ok" = xno; then
16302                 PTHREAD_LIBS=""
16303                 PTHREAD_CFLAGS=""
16304         fi
16305         LIBS="$save_LIBS"
16306         CFLAGS="$save_CFLAGS"
16307 fi
16308
16309 # We must check for the threads library under a number of different
16310 # names; the ordering is very important because some systems
16311 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16312 # libraries is broken (non-POSIX).
16313
16314 # Create a list of thread flags to try.  Items starting with a "-" are
16315 # C compiler flags, and other items are library names, except for "none"
16316 # which indicates that we try without any flags at all, and "pthread-config"
16317 # which is a program returning the flags for the Pth emulation library.
16318
16319 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16320
16321 # The ordering *is* (sometimes) important.  Some notes on the
16322 # individual items follow:
16323
16324 # pthreads: AIX (must check this before -lpthread)
16325 # none: in case threads are in libc; should be tried before -Kthread and
16326 #       other compiler flags to prevent continual compiler warnings
16327 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16328 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16329 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16330 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16331 # -pthreads: Solaris/gcc
16332 # -mthreads: Mingw32/gcc, Lynx/gcc
16333 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16334 #      doesn't hurt to check since this sometimes defines pthreads too;
16335 #      also defines -D_REENTRANT)
16336 # pthread: Linux, etcetera
16337 # --thread-safe: KAI C++
16338 # pthread-config: use pthread-config program (for GNU Pth library)
16339
16340 case "${host_cpu}-${host_os}" in
16341         *solaris*)
16342
16343         # On Solaris (at least, for some versions), libc contains stubbed
16344         # (non-functional) versions of the pthreads routines, so link-based
16345         # tests will erroneously succeed.  (We need to link with -pthread or
16346         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16347         # a function called by this macro, so we could check for that, but
16348         # who knows whether they'll stub that too in a future libc.)  So,
16349         # we'll just look for -pthreads and -lpthread first:
16350
16351         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16352         ;;
16353 esac
16354
16355 if test x"$acx_pthread_ok" = xno; then
16356 for flag in $acx_pthread_flags; do
16357
16358         tryPTHREAD_CFLAGS=""
16359         tryPTHREAD_LIBS=""
16360         case $flag in
16361                 none)
16362                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16363 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16364                 ;;
16365
16366                 -*)
16367                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16368 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16369                 tryPTHREAD_CFLAGS="$flag"
16370                 ;;
16371
16372                 pthread-config)
16373                 # skip this if we already have flags defined, for PostgreSQL
16374                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16375                 # Extract the first word of "pthread-config", so it can be a program name with args.
16376 set dummy pthread-config; ac_word=$2
16377 echo "$as_me:$LINENO: checking for $ac_word" >&5
16378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16379 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   if test -n "$acx_pthread_config"; then
16383   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16384 else
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16387 do
16388   IFS=$as_save_IFS
16389   test -z "$as_dir" && as_dir=.
16390   for ac_exec_ext in '' $ac_executable_extensions; do
16391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392     ac_cv_prog_acx_pthread_config="yes"
16393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16394     break 2
16395   fi
16396 done
16397 done
16398
16399   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16400 fi
16401 fi
16402 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16403 if test -n "$acx_pthread_config"; then
16404   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16405 echo "${ECHO_T}$acx_pthread_config" >&6
16406 else
16407   echo "$as_me:$LINENO: result: no" >&5
16408 echo "${ECHO_T}no" >&6
16409 fi
16410
16411                 if test x"$acx_pthread_config" = xno; then continue; fi
16412                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16413                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16414                 ;;
16415
16416                 *)
16417                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16418 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16419                 tryPTHREAD_LIBS="-l$flag"
16420                 ;;
16421         esac
16422
16423         save_LIBS="$LIBS"
16424         save_CFLAGS="$CFLAGS"
16425         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16426         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16427
16428         # Check for various functions.  We must include pthread.h,
16429         # since some functions may be macros.  (On the Sequent, we
16430         # need a special flag -Kthread to make this header compile.)
16431         # We check for pthread_join because it is in -lpthread on IRIX
16432         # while pthread_create is in libc.  We check for pthread_attr_init
16433         # due to DEC craziness with -lpthreads.  We check for
16434         # pthread_cleanup_push because it is one of the few pthread
16435         # functions on Solaris that doesn't have a non-functional libc stub.
16436         # We try pthread_create on general principles.
16437         cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 #include <pthread.h>
16444 int
16445 main ()
16446 {
16447 pthread_t th; pthread_join(th, 0);
16448                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16449                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456   (eval $ac_link) 2>conftest.er1
16457   ac_status=$?
16458   grep -v '^ *+' conftest.er1 >conftest.err
16459   rm -f conftest.er1
16460   cat conftest.err >&5
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); } &&
16463          { ac_try='test -z "$ac_c_werror_flag"
16464                          || test ! -s conftest.err'
16465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466   (eval $ac_try) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; } &&
16470          { ac_try='test -s conftest$ac_exeext'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; }; then
16476   acx_pthread_ok=yes
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 acx_pthread_ok=no
16482 fi
16483 rm -f conftest.err conftest.$ac_objext \
16484       conftest$ac_exeext conftest.$ac_ext
16485
16486         if test "x$acx_pthread_ok" = xyes; then
16487             # Don't use options that are ignored by the compiler.
16488             # We find them by checking stderror.
16489             cat >conftest.$ac_ext <<_ACEOF
16490 int
16491 main (int argc, char **argv)
16492 {
16493   (void) argc;
16494   (void) argv;
16495   return 0;
16496 }
16497 _ACEOF
16498             rm -f conftest.$ac_objext conftest$ac_exeext
16499             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16500                 # we continue with more flags because Linux needs -lpthread
16501                 # for libpq builds on PostgreSQL.  The test above only
16502                 # tests for building binaries, not shared libraries.
16503                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16504                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16505             else   acx_pthread_ok=no
16506             fi
16507         fi
16508
16509         LIBS="$save_LIBS"
16510         CFLAGS="$save_CFLAGS"
16511
16512         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16513 echo "${ECHO_T}$acx_pthread_ok" >&6
16514 done
16515 fi
16516
16517 # Various other checks:
16518 if test "x$acx_pthread_ok" = xyes; then
16519         save_LIBS="$LIBS"
16520         LIBS="$PTHREAD_LIBS $LIBS"
16521         save_CFLAGS="$CFLAGS"
16522         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16523
16524         # Detect AIX lossage: threads are created detached by default
16525         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16526         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16527 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16528         cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 #include <pthread.h>
16535 int
16536 main ()
16537 {
16538 int attr=PTHREAD_CREATE_JOINABLE;
16539   ;
16540   return 0;
16541 }
16542 _ACEOF
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545   (eval $ac_link) 2>conftest.er1
16546   ac_status=$?
16547   grep -v '^ *+' conftest.er1 >conftest.err
16548   rm -f conftest.er1
16549   cat conftest.err >&5
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } &&
16552          { ac_try='test -z "$ac_c_werror_flag"
16553                          || test ! -s conftest.err'
16554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555   (eval $ac_try) 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); }; } &&
16559          { ac_try='test -s conftest$ac_exeext'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   ok=PTHREAD_CREATE_JOINABLE
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 ok=unknown
16571 fi
16572 rm -f conftest.err conftest.$ac_objext \
16573       conftest$ac_exeext conftest.$ac_ext
16574         if test x"$ok" = xunknown; then
16575                 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 #include <pthread.h>
16582 int
16583 main ()
16584 {
16585 int attr=PTHREAD_CREATE_UNDETACHED;
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592   (eval $ac_link) 2>conftest.er1
16593   ac_status=$?
16594   grep -v '^ *+' conftest.er1 >conftest.err
16595   rm -f conftest.er1
16596   cat conftest.err >&5
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } &&
16599          { ac_try='test -z "$ac_c_werror_flag"
16600                          || test ! -s conftest.err'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; } &&
16606          { ac_try='test -s conftest$ac_exeext'
16607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608   (eval $ac_try) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ok=PTHREAD_CREATE_UNDETACHED
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617 ok=unknown
16618 fi
16619 rm -f conftest.err conftest.$ac_objext \
16620       conftest$ac_exeext conftest.$ac_ext
16621         fi
16622         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16623
16624 cat >>confdefs.h <<\_ACEOF
16625 #define PTHREAD_CREATE_JOINABLE $ok
16626 _ACEOF
16627
16628         fi
16629         echo "$as_me:$LINENO: result: ${ok}" >&5
16630 echo "${ECHO_T}${ok}" >&6
16631         if test x"$ok" = xunknown; then
16632                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16633 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16634         fi
16635
16636         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16637 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16638         flag=no
16639 # We always add these in PostgreSQL
16640 #       case "${host_cpu}-${host_os}" in
16641 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16642 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16643 #       esac
16644         echo "$as_me:$LINENO: result: ${flag}" >&5
16645 echo "${ECHO_T}${flag}" >&6
16646         if test "x$flag" != xno; then
16647                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16648         fi
16649
16650         LIBS="$save_LIBS"
16651         CFLAGS="$save_CFLAGS"
16652
16653 # Supporting cc_r would require a special CC in all places that
16654 # use libpq, and that is ugly, so we don't do it.  Users can still
16655 # define their compiler as cc_r to do thread builds of everything.
16656         # More AIX lossage: must compile with cc_r
16657         # Extract the first word of "cc_r", so it can be a program name with args.
16658 set dummy cc_r; ac_word=$2
16659 echo "$as_me:$LINENO: checking for $ac_word" >&5
16660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16661 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16662   echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664   if test -n "$PTHREAD_CC"; then
16665   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16666 else
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $PATH
16669 do
16670   IFS=$as_save_IFS
16671   test -z "$as_dir" && as_dir=.
16672   for ac_exec_ext in '' $ac_executable_extensions; do
16673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674     ac_cv_prog_PTHREAD_CC="cc_r"
16675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16676     break 2
16677   fi
16678 done
16679 done
16680
16681   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16682 fi
16683 fi
16684 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16685 if test -n "$PTHREAD_CC"; then
16686   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16687 echo "${ECHO_T}$PTHREAD_CC" >&6
16688 else
16689   echo "$as_me:$LINENO: result: no" >&5
16690 echo "${ECHO_T}no" >&6
16691 fi
16692
16693 else
16694         PTHREAD_CC="$CC"
16695 fi
16696
16697
16698
16699
16700
16701 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16702 if test x"$acx_pthread_ok" = xyes; then
16703
16704 cat >>confdefs.h <<\_ACEOF
16705 #define HAVE_PTHREAD 1
16706 _ACEOF
16707
16708         :
16709 else
16710         acx_pthread_ok=no
16711
16712 fi
16713 ac_ext=c
16714 ac_cpp='$CPP $CPPFLAGS'
16715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16718
16719         # set thread flags
16720
16721 # Some platforms use these, so just defineed them.  They can't hurt if they
16722 # are not supported.
16723 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16724
16725
16726 # At this point, we don't want to muck with the compiler name for threading.
16727 # Let's see who fails, perhaps AIX.  2004-04-23
16728 if test "$PTHREAD_CC" != "$CC"; then
16729 { { echo "$as_me:$LINENO: error:
16730 PostgreSQL does not support platforms that require a special
16731 compiler binary for thread-safety.
16732 " >&5
16733 echo "$as_me: error:
16734 PostgreSQL does not support platforms that require a special
16735 compiler binary for thread-safety.
16736 " >&2;}
16737    { (exit 1); exit 1; }; }
16738 fi
16739
16740 if test "$THREAD_SUPPORT" = no; then
16741 { { echo "$as_me:$LINENO: error:
16742 Cannot enable threads on your platform.
16743 Your platform is known to not support thread-safe programs.
16744 For details, compile and run src/bin/pg_thread_test.
16745 " >&5
16746 echo "$as_me: error:
16747 Cannot enable threads on your platform.
16748 Your platform is known to not support thread-safe programs.
16749 For details, compile and run src/bin/pg_thread_test.
16750 " >&2;}
16751    { (exit 1); exit 1; }; }
16752 fi
16753
16754 # Check for *_r functions
16755 _CFLAGS="$CFLAGS"
16756 _LIBS="$LIBS"
16757 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16758 LIBS="$LIBS $PTHREAD_LIBS"
16759
16760 if test "${ac_cv_header_pthread_h+set}" = set; then
16761   echo "$as_me:$LINENO: checking for pthread.h" >&5
16762 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16763 if test "${ac_cv_header_pthread_h+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 fi
16766 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16767 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16768 else
16769   # Is the header compilable?
16770 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16771 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 $ac_includes_default
16779 #include <pthread.h>
16780 _ACEOF
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783   (eval $ac_compile) 2>conftest.er1
16784   ac_status=$?
16785   grep -v '^ *+' conftest.er1 >conftest.err
16786   rm -f conftest.er1
16787   cat conftest.err >&5
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); } &&
16790          { ac_try='test -z "$ac_c_werror_flag"
16791                          || test ! -s conftest.err'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; } &&
16797          { ac_try='test -s conftest.$ac_objext'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   ac_header_compiler=yes
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_header_compiler=no
16809 fi
16810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16812 echo "${ECHO_T}$ac_header_compiler" >&6
16813
16814 # Is the header present?
16815 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16816 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 #include <pthread.h>
16824 _ACEOF
16825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16827   ac_status=$?
16828   grep -v '^ *+' conftest.er1 >conftest.err
16829   rm -f conftest.er1
16830   cat conftest.err >&5
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); } >/dev/null; then
16833   if test -s conftest.err; then
16834     ac_cpp_err=$ac_c_preproc_warn_flag
16835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16836   else
16837     ac_cpp_err=
16838   fi
16839 else
16840   ac_cpp_err=yes
16841 fi
16842 if test -z "$ac_cpp_err"; then
16843   ac_header_preproc=yes
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848   ac_header_preproc=no
16849 fi
16850 rm -f conftest.err conftest.$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16852 echo "${ECHO_T}$ac_header_preproc" >&6
16853
16854 # So?  What about this header?
16855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16856   yes:no: )
16857     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16858 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16860 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16861     ac_header_preproc=yes
16862     ;;
16863   no:yes:* )
16864     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16865 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16866     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
16867 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
16868     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16869 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16870     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
16871 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16872     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16874     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16875 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16876     (
16877       cat <<\_ASBOX
16878 ## ---------------------------------------- ##
16879 ## Report this to pgsql-bugs@postgresql.org ##
16880 ## ---------------------------------------- ##
16881 _ASBOX
16882     ) |
16883       sed "s/^/$as_me: WARNING:     /" >&2
16884     ;;
16885 esac
16886 echo "$as_me:$LINENO: checking for pthread.h" >&5
16887 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16888 if test "${ac_cv_header_pthread_h+set}" = set; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891   ac_cv_header_pthread_h=$ac_header_preproc
16892 fi
16893 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16894 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16895
16896 fi
16897 if test $ac_cv_header_pthread_h = yes; then
16898   :
16899 else
16900   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16901 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16902    { (exit 1); exit 1; }; }
16903 fi
16904
16905
16906
16907
16908
16909
16910 for ac_func in strerror_r getpwuid_r gethostbyname_r
16911 do
16912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16913 echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16915 if eval "test \"\${$as_ac_var+set}\" = set"; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16926 #define $ac_func innocuous_$ac_func
16927
16928 /* System header to define __stub macros and hopefully few prototypes,
16929     which can conflict with char $ac_func (); below.
16930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931     <limits.h> exists even on freestanding compilers.  */
16932
16933 #ifdef __STDC__
16934 # include <limits.h>
16935 #else
16936 # include <assert.h>
16937 #endif
16938
16939 #undef $ac_func
16940
16941 /* Override any gcc2 internal prototype to avoid an error.  */
16942 #ifdef __cplusplus
16943 extern "C"
16944 {
16945 #endif
16946 /* We use char because int might match the return type of a gcc2
16947    builtin and then its argument prototype would still apply.  */
16948 char $ac_func ();
16949 /* The GNU C library defines this for functions which it implements
16950     to always fail with ENOSYS.  Some functions are actually named
16951     something starting with __ and the normal name is an alias.  */
16952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16953 choke me
16954 #else
16955 char (*f) () = $ac_func;
16956 #endif
16957 #ifdef __cplusplus
16958 }
16959 #endif
16960
16961 int
16962 main ()
16963 {
16964 return f != $ac_func;
16965   ;
16966   return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971   (eval $ac_link) 2>conftest.er1
16972   ac_status=$?
16973   grep -v '^ *+' conftest.er1 >conftest.err
16974   rm -f conftest.er1
16975   cat conftest.err >&5
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); } &&
16978          { ac_try='test -z "$ac_c_werror_flag"
16979                          || test ! -s conftest.err'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; } &&
16985          { ac_try='test -s conftest$ac_exeext'
16986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987   (eval $ac_try) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991   eval "$as_ac_var=yes"
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 eval "$as_ac_var=no"
16997 fi
16998 rm -f conftest.err conftest.$ac_objext \
16999       conftest$ac_exeext conftest.$ac_ext
17000 fi
17001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004   cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17006 _ACEOF
17007
17008 fi
17009 done
17010
17011
17012 # Do test here with the proper thread flags
17013 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17014 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17015 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 #include <sys/types.h>
17025 #include <pwd.h>
17026 int
17027 main ()
17028 {
17029 uid_t uid;
17030 struct passwd *space;
17031 char *buf;
17032 size_t bufsize;
17033 struct passwd **result;
17034 getpwuid_r(uid, space, buf, bufsize, result);
17035   ;
17036   return 0;
17037 }
17038 _ACEOF
17039 rm -f conftest.$ac_objext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17041   (eval $ac_compile) 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_objext'
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   pgac_func_getpwuid_r_5arg=yes
17062 else
17063   echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 pgac_func_getpwuid_r_5arg=no
17067 fi
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17071 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17072 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17073
17074 cat >>confdefs.h <<\_ACEOF
17075 #define GETPWUID_R_5ARG
17076 _ACEOF
17077
17078 fi
17079
17080 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17081 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17082 if test "${pgac_func_strerror_r_int+set}" = set; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085   cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 #include <string.h>
17092 int
17093 main ()
17094 {
17095 #ifndef _AIX
17096 int strerror_r(int, char *, size_t);
17097 #else
17098 /* Older AIX has 'int' for the third argument so we don't test the args. */
17099 int strerror_r();
17100 #endif
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107   (eval $ac_compile) 2>conftest.er1
17108   ac_status=$?
17109   grep -v '^ *+' conftest.er1 >conftest.err
17110   rm -f conftest.er1
17111   cat conftest.err >&5
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } &&
17114          { ac_try='test -z "$ac_c_werror_flag"
17115                          || test ! -s conftest.err'
17116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117   (eval $ac_try) 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; } &&
17121          { ac_try='test -s conftest.$ac_objext'
17122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123   (eval $ac_try) 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; }; then
17127   pgac_func_strerror_r_int=yes
17128 else
17129   echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132 pgac_func_strerror_r_int=no
17133 fi
17134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17135 fi
17136 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17137 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17138 if test x"$pgac_func_strerror_r_int" = xyes ; then
17139
17140 cat >>confdefs.h <<\_ACEOF
17141 #define STRERROR_R_INT
17142 _ACEOF
17143
17144 fi
17145
17146
17147 CFLAGS="$_CFLAGS"
17148 LIBS="$_LIBS"
17149
17150 else
17151 # do not use values from template file
17152 PTHREAD_CFLAGS=
17153 PTHREAD_LIBS=
17154 fi
17155
17156
17157
17158
17159
17160 # This test makes sure that run tests work at all.  Sometimes a shared
17161 # library is found by the linker, but the runtime linker can't find it.
17162 # This check should come after all modifications of compiler or linker
17163 # variables, and before any other run tests.
17164 echo "$as_me:$LINENO: checking test program" >&5
17165 echo $ECHO_N "checking test program... $ECHO_C" >&6
17166 if test "$cross_compiling" = yes; then
17167   echo "$as_me:$LINENO: result: cross-compiling" >&5
17168 echo "${ECHO_T}cross-compiling" >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 int main() { return 0; }
17177 _ACEOF
17178 rm -f conftest$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180   (eval $ac_link) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185   (eval $ac_try) 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; }; then
17189   echo "$as_me:$LINENO: result: ok" >&5
17190 echo "${ECHO_T}ok" >&6
17191 else
17192   echo "$as_me: program exited with status $ac_status" >&5
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 ( exit $ac_status )
17197 echo "$as_me:$LINENO: result: failed" >&5
17198 echo "${ECHO_T}failed" >&6
17199 { { echo "$as_me:$LINENO: error:
17200 *** Could not execute a simple test program.  This may be a problem
17201 *** related to locating shared libraries.  Check the file 'config.log'
17202 *** for the exact reason." >&5
17203 echo "$as_me: error:
17204 *** Could not execute a simple test program.  This may be a problem
17205 *** related to locating shared libraries.  Check the file 'config.log'
17206 *** for the exact reason." >&2;}
17207    { (exit 1); exit 1; }; }
17208 fi
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 fi
17211
17212 # --------------------
17213 # Run tests below here
17214 # --------------------
17215
17216 # Force use of our snprintf if system's doesn't do arg control
17217 # See comment above at snprintf test for details.
17218 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17219   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17220 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17221 if test "${pgac_cv_printf_arg_control+set}" = set; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224   if test "$cross_compiling" = yes; then
17225   pgac_cv_printf_arg_control=cross
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233 #include <stdio.h>
17234 #include <string.h>
17235
17236 int main()
17237 {
17238   char buf[100];
17239
17240   /* can it swap arguments? */
17241   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17242   if (strcmp(buf, "4 3") != 0)
17243     return 1;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249   (eval $ac_link) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   pgac_cv_printf_arg_control=yes
17259 else
17260   echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ( exit $ac_status )
17265 pgac_cv_printf_arg_control=no
17266 fi
17267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17268 fi
17269
17270 fi
17271 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17272 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17273
17274   if test $pgac_cv_printf_arg_control != yes ; then
17275     pgac_need_repl_snprintf=yes
17276   fi
17277 fi
17278
17279
17280
17281 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17282 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17283 if test "${pgac_cv_type_long_int_64+set}" = set; then
17284   echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286   if test "$cross_compiling" = yes; then
17287   # If cross-compiling, check the size reported by the compiler and
17288 # trust that the arithmetic works.
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295
17296 int
17297 main ()
17298 {
17299 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17300 test_array [0] = 0
17301
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308   (eval $ac_compile) 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag"
17316                          || test ! -s conftest.err'
17317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318   (eval $ac_try) 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; } &&
17322          { ac_try='test -s conftest.$ac_objext'
17323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324   (eval $ac_try) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; }; then
17328   pgac_cv_type_long_int_64=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 pgac_cv_type_long_int_64=no
17334 fi
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17336 else
17337   cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 typedef long int ac_int64;
17344
17345 /*
17346  * These are globals to discourage the compiler from folding all the
17347  * arithmetic tests down to compile-time constants.
17348  */
17349 ac_int64 a = 20000001;
17350 ac_int64 b = 40000005;
17351
17352 int does_int64_work()
17353 {
17354   ac_int64 c,d;
17355
17356   if (sizeof(ac_int64) != 8)
17357     return 0;                   /* definitely not the right size */
17358
17359   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17360   c = a * b;
17361   d = (c + b) / b;
17362   if (d != a+1)
17363     return 0;
17364   return 1;
17365 }
17366 main() {
17367   exit(! does_int64_work());
17368 }
17369 _ACEOF
17370 rm -f conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372   (eval $ac_link) 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377   (eval $ac_try) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; }; then
17381   pgac_cv_type_long_int_64=yes
17382 else
17383   echo "$as_me: program exited with status $ac_status" >&5
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387 ( exit $ac_status )
17388 pgac_cv_type_long_int_64=no
17389 fi
17390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 fi
17392 fi
17393 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17394 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17395
17396 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17397 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_LONG_INT_64
17401 _ACEOF
17402
17403 fi
17404
17405
17406 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17407   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17408 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17409 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   if test "$cross_compiling" = yes; then
17413   # If cross-compiling, check the size reported by the compiler and
17414 # trust that the arithmetic works.
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h.  */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h.  */
17421
17422 int
17423 main ()
17424 {
17425 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17426 test_array [0] = 0
17427
17428   ;
17429   return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434   (eval $ac_compile) 2>conftest.er1
17435   ac_status=$?
17436   grep -v '^ *+' conftest.er1 >conftest.err
17437   rm -f conftest.er1
17438   cat conftest.err >&5
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } &&
17441          { ac_try='test -z "$ac_c_werror_flag"
17442                          || test ! -s conftest.err'
17443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444   (eval $ac_try) 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); }; } &&
17448          { ac_try='test -s conftest.$ac_objext'
17449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450   (eval $ac_try) 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; }; then
17454   pgac_cv_type_long_long_int_64=yes
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 pgac_cv_type_long_long_int_64=no
17460 fi
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 typedef long long int ac_int64;
17470
17471 /*
17472  * These are globals to discourage the compiler from folding all the
17473  * arithmetic tests down to compile-time constants.
17474  */
17475 ac_int64 a = 20000001;
17476 ac_int64 b = 40000005;
17477
17478 int does_int64_work()
17479 {
17480   ac_int64 c,d;
17481
17482   if (sizeof(ac_int64) != 8)
17483     return 0;                   /* definitely not the right size */
17484
17485   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17486   c = a * b;
17487   d = (c + b) / b;
17488   if (d != a+1)
17489     return 0;
17490   return 1;
17491 }
17492 main() {
17493   exit(! does_int64_work());
17494 }
17495 _ACEOF
17496 rm -f conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498   (eval $ac_link) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; }; then
17507   pgac_cv_type_long_long_int_64=yes
17508 else
17509   echo "$as_me: program exited with status $ac_status" >&5
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513 ( exit $ac_status )
17514 pgac_cv_type_long_long_int_64=no
17515 fi
17516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17517 fi
17518 fi
17519 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17520 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17521
17522 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17523 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17524
17525 cat >>confdefs.h <<\_ACEOF
17526 #define HAVE_LONG_LONG_INT_64
17527 _ACEOF
17528
17529 fi
17530
17531 fi
17532
17533
17534
17535 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17536   cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h.  */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h.  */
17542
17543 #define INT64CONST(x)  x##LL
17544 long long int foo = INT64CONST(0x1234567890123456);
17545
17546 int
17547 main ()
17548 {
17549
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556   (eval $ac_compile) 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag"
17564                          || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_LL_CONSTANTS 1
17579 _ACEOF
17580
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 fi
17586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 fi
17588
17589
17590 # If we found "long int" is 64 bits, assume snprintf handles it.  If
17591 # we found we need to use "long long int", better check.  We cope with
17592 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
17593 # work, fall back to our own snprintf emulation (which we know uses %lld).
17594
17595 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17596   if test $pgac_need_repl_snprintf = no; then
17597     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17598 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17599 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   for pgac_format in '%lld' '%qd' '%I64d'; do
17603 if test "$cross_compiling" = yes; then
17604   pgac_cv_snprintf_long_long_int_format=cross; break
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612 #include <stdio.h>
17613 typedef long long int ac_int64;
17614 #define INT64_FORMAT "$pgac_format"
17615
17616 ac_int64 a = 20000001;
17617 ac_int64 b = 40000005;
17618
17619 int does_int64_snprintf_work()
17620 {
17621   ac_int64 c;
17622   char buf[100];
17623
17624   if (sizeof(ac_int64) != 8)
17625     return 0;                   /* doesn't look like the right size */
17626
17627   c = a * b;
17628   snprintf(buf, 100, INT64_FORMAT, c);
17629   if (strcmp(buf, "800000140000005") != 0)
17630     return 0;                   /* either multiply or snprintf is busted */
17631   return 1;
17632 }
17633 main() {
17634   exit(! does_int64_snprintf_work());
17635 }
17636 _ACEOF
17637 rm -f conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639   (eval $ac_link) 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17649 else
17650   echo "$as_me: program exited with status $ac_status" >&5
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654 fi
17655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17656 fi
17657 done
17658 fi
17659
17660 LONG_LONG_INT_FORMAT=''
17661
17662 case $pgac_cv_snprintf_long_long_int_format in
17663   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17664 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17665   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17666 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17667          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17668   *)     echo "$as_me:$LINENO: result: none" >&5
17669 echo "${ECHO_T}none" >&6;;
17670 esac
17671     if test "$LONG_LONG_INT_FORMAT" = ""; then
17672       # Force usage of our own snprintf, since system snprintf is broken
17673       pgac_need_repl_snprintf=yes
17674       LONG_LONG_INT_FORMAT='%lld'
17675     fi
17676   else
17677     # Here if we previously decided we needed to use our own snprintf
17678     LONG_LONG_INT_FORMAT='%lld'
17679   fi
17680   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17681   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17682   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17683 else
17684   # Here if we are not using 'long long int' at all
17685   INT64_FORMAT='"%ld"'
17686   UINT64_FORMAT='"%lu"'
17687 fi
17688
17689
17690 cat >>confdefs.h <<_ACEOF
17691 #define INT64_FORMAT $INT64_FORMAT
17692 _ACEOF
17693
17694
17695
17696 cat >>confdefs.h <<_ACEOF
17697 #define UINT64_FORMAT $UINT64_FORMAT
17698 _ACEOF
17699
17700
17701 # Now we have checked all the reasons to replace snprintf
17702 if test $pgac_need_repl_snprintf = yes; then
17703
17704 cat >>confdefs.h <<\_ACEOF
17705 #define USE_REPL_SNPRINTF 1
17706 _ACEOF
17707
17708   case $LIBOBJS in
17709     "snprintf.$ac_objext"   | \
17710   *" snprintf.$ac_objext"   | \
17711     "snprintf.$ac_objext "* | \
17712   *" snprintf.$ac_objext "* ) ;;
17713   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17714 esac
17715
17716 fi
17717
17718 # Need a #define for the size of Datum (unsigned long)
17719 echo "$as_me:$LINENO: checking for unsigned long" >&5
17720 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17721 if test "${ac_cv_type_unsigned_long+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 $ac_includes_default
17731 int
17732 main ()
17733 {
17734 if ((unsigned long *) 0)
17735   return 0;
17736 if (sizeof (unsigned long))
17737   return 0;
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744   (eval $ac_compile) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_c_werror_flag"
17752                          || test ! -s conftest.err'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest.$ac_objext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_cv_type_unsigned_long=yes
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ac_cv_type_unsigned_long=no
17770 fi
17771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17772 fi
17773 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17774 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17775
17776 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17777 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17778 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17779   echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781   if test "$ac_cv_type_unsigned_long" = yes; then
17782   # The cast to unsigned long works around a bug in the HP C Compiler
17783   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17784   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17785   # This bug is HP SR number 8606223364.
17786   if test "$cross_compiling" = yes; then
17787   # Depending upon the size, compute the lo and hi bounds.
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 $ac_includes_default
17795 int
17796 main ()
17797 {
17798 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17799 test_array [0] = 0
17800
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807   (eval $ac_compile) 2>conftest.er1
17808   ac_status=$?
17809   grep -v '^ *+' conftest.er1 >conftest.err
17810   rm -f conftest.er1
17811   cat conftest.err >&5
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } &&
17814          { ac_try='test -z "$ac_c_werror_flag"
17815                          || test ! -s conftest.err'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest.$ac_objext'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_lo=0 ac_mid=0
17828   while :; do
17829     cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h.  */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h.  */
17835 $ac_includes_default
17836 int
17837 main ()
17838 {
17839 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17840 test_array [0] = 0
17841
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848   (eval $ac_compile) 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag"
17856                          || test ! -s conftest.err'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; } &&
17862          { ac_try='test -s conftest.$ac_objext'
17863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864   (eval $ac_try) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   ac_hi=$ac_mid; break
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_lo=`expr $ac_mid + 1`
17874                     if test $ac_lo -le $ac_mid; then
17875                       ac_lo= ac_hi=
17876                       break
17877                     fi
17878                     ac_mid=`expr 2 '*' $ac_mid + 1`
17879 fi
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17881   done
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892 $ac_includes_default
17893 int
17894 main ()
17895 {
17896 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17897 test_array [0] = 0
17898
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905   (eval $ac_compile) 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -z "$ac_c_werror_flag"
17913                          || test ! -s conftest.err'
17914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915   (eval $ac_try) 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; } &&
17919          { ac_try='test -s conftest.$ac_objext'
17920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921   (eval $ac_try) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; }; then
17925   ac_hi=-1 ac_mid=-1
17926   while :; do
17927     cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h.  */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h.  */
17933 $ac_includes_default
17934 int
17935 main ()
17936 {
17937 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17938 test_array [0] = 0
17939
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946   (eval $ac_compile) 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag"
17954                          || test ! -s conftest.err'
17955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956   (eval $ac_try) 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; } &&
17960          { ac_try='test -s conftest.$ac_objext'
17961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962   (eval $ac_try) 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   ac_lo=$ac_mid; break
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 ac_hi=`expr '(' $ac_mid ')' - 1`
17972                        if test $ac_mid -le $ac_hi; then
17973                          ac_lo= ac_hi=
17974                          break
17975                        fi
17976                        ac_mid=`expr 2 '*' $ac_mid`
17977 fi
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17979   done
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 ac_lo= ac_hi=
17985 fi
17986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17987 fi
17988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17989 # Binary search between lo and hi bounds.
17990 while test "x$ac_lo" != "x$ac_hi"; do
17991   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17992   cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h.  */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h.  */
17998 $ac_includes_default
17999 int
18000 main ()
18001 {
18002 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18003 test_array [0] = 0
18004
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011   (eval $ac_compile) 2>conftest.er1
18012   ac_status=$?
18013   grep -v '^ *+' conftest.er1 >conftest.err
18014   rm -f conftest.er1
18015   cat conftest.err >&5
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); } &&
18018          { ac_try='test -z "$ac_c_werror_flag"
18019                          || test ! -s conftest.err'
18020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021   (eval $ac_try) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; } &&
18025          { ac_try='test -s conftest.$ac_objext'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   ac_hi=$ac_mid
18032 else
18033   echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ac_lo=`expr '(' $ac_mid ')' + 1`
18037 fi
18038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18039 done
18040 case $ac_lo in
18041 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18043 See \`config.log' for more details." >&5
18044 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18045 See \`config.log' for more details." >&2;}
18046    { (exit 1); exit 1; }; } ;;
18047 esac
18048 else
18049   if test "$cross_compiling" = yes; then
18050   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18051 See \`config.log' for more details." >&5
18052 echo "$as_me: error: cannot run test program while cross compiling
18053 See \`config.log' for more details." >&2;}
18054    { (exit 1); exit 1; }; }
18055 else
18056   cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 $ac_includes_default
18063 long longval () { return (long) (sizeof (unsigned long)); }
18064 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18065 #include <stdio.h>
18066 #include <stdlib.h>
18067 int
18068 main ()
18069 {
18070
18071   FILE *f = fopen ("conftest.val", "w");
18072   if (! f)
18073     exit (1);
18074   if (((long) (sizeof (unsigned long))) < 0)
18075     {
18076       long i = longval ();
18077       if (i != ((long) (sizeof (unsigned long))))
18078         exit (1);
18079       fprintf (f, "%ld\n", i);
18080     }
18081   else
18082     {
18083       unsigned long i = ulongval ();
18084       if (i != ((long) (sizeof (unsigned long))))
18085         exit (1);
18086       fprintf (f, "%lu\n", i);
18087     }
18088   exit (ferror (f) || fclose (f) != 0);
18089
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 rm -f conftest$ac_exeext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096   (eval $ac_link) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; }; then
18105   ac_cv_sizeof_unsigned_long=`cat conftest.val`
18106 else
18107   echo "$as_me: program exited with status $ac_status" >&5
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 ( exit $ac_status )
18112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18113 See \`config.log' for more details." >&5
18114 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18115 See \`config.log' for more details." >&2;}
18116    { (exit 1); exit 1; }; }
18117 fi
18118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18119 fi
18120 fi
18121 rm -f conftest.val
18122 else
18123   ac_cv_sizeof_unsigned_long=0
18124 fi
18125 fi
18126 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18127 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18128 cat >>confdefs.h <<_ACEOF
18129 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18130 _ACEOF
18131
18132
18133
18134 # And one for the size of size_t (enables tweaks for > 32bit address space)
18135 echo "$as_me:$LINENO: checking for size_t" >&5
18136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18137 if test "${ac_cv_type_size_t+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 $ac_includes_default
18147 int
18148 main ()
18149 {
18150 if ((size_t *) 0)
18151   return 0;
18152 if (sizeof (size_t))
18153   return 0;
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18160   (eval $ac_compile) 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } &&
18167          { ac_try='test -z "$ac_c_werror_flag"
18168                          || test ! -s conftest.err'
18169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170   (eval $ac_try) 2>&5
18171   ac_status=$?
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); }; } &&
18174          { ac_try='test -s conftest.$ac_objext'
18175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176   (eval $ac_try) 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180   ac_cv_type_size_t=yes
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 ac_cv_type_size_t=no
18186 fi
18187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188 fi
18189 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18190 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18191
18192 echo "$as_me:$LINENO: checking size of size_t" >&5
18193 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18194 if test "${ac_cv_sizeof_size_t+set}" = set; then
18195   echo $ECHO_N "(cached) $ECHO_C" >&6
18196 else
18197   if test "$ac_cv_type_size_t" = yes; then
18198   # The cast to unsigned long works around a bug in the HP C Compiler
18199   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18200   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18201   # This bug is HP SR number 8606223364.
18202   if test "$cross_compiling" = yes; then
18203   # Depending upon the size, compute the lo and hi bounds.
18204 cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210 $ac_includes_default
18211 int
18212 main ()
18213 {
18214 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18215 test_array [0] = 0
18216
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223   (eval $ac_compile) 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag"
18231                          || test ! -s conftest.err'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest.$ac_objext'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243   ac_lo=0 ac_mid=0
18244   while :; do
18245     cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251 $ac_includes_default
18252 int
18253 main ()
18254 {
18255 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18256 test_array [0] = 0
18257
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264   (eval $ac_compile) 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -z "$ac_c_werror_flag"
18272                          || test ! -s conftest.err'
18273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274   (eval $ac_try) 2>&5
18275   ac_status=$?
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); }; } &&
18278          { ac_try='test -s conftest.$ac_objext'
18279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280   (eval $ac_try) 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; }; then
18284   ac_hi=$ac_mid; break
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ac_lo=`expr $ac_mid + 1`
18290                     if test $ac_lo -le $ac_mid; then
18291                       ac_lo= ac_hi=
18292                       break
18293                     fi
18294                     ac_mid=`expr 2 '*' $ac_mid + 1`
18295 fi
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18297   done
18298 else
18299   echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308 $ac_includes_default
18309 int
18310 main ()
18311 {
18312 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18313 test_array [0] = 0
18314
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321   (eval $ac_compile) 2>conftest.er1
18322   ac_status=$?
18323   grep -v '^ *+' conftest.er1 >conftest.err
18324   rm -f conftest.er1
18325   cat conftest.err >&5
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } &&
18328          { ac_try='test -z "$ac_c_werror_flag"
18329                          || test ! -s conftest.err'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest.$ac_objext'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_hi=-1 ac_mid=-1
18342   while :; do
18343     cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349 $ac_includes_default
18350 int
18351 main ()
18352 {
18353 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18354 test_array [0] = 0
18355
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362   (eval $ac_compile) 2>conftest.er1
18363   ac_status=$?
18364   grep -v '^ *+' conftest.er1 >conftest.err
18365   rm -f conftest.er1
18366   cat conftest.err >&5
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } &&
18369          { ac_try='test -z "$ac_c_werror_flag"
18370                          || test ! -s conftest.err'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; } &&
18376          { ac_try='test -s conftest.$ac_objext'
18377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378   (eval $ac_try) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   ac_lo=$ac_mid; break
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_hi=`expr '(' $ac_mid ')' - 1`
18388                        if test $ac_mid -le $ac_hi; then
18389                          ac_lo= ac_hi=
18390                          break
18391                        fi
18392                        ac_mid=`expr 2 '*' $ac_mid`
18393 fi
18394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18395   done
18396 else
18397   echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_lo= ac_hi=
18401 fi
18402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18403 fi
18404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18405 # Binary search between lo and hi bounds.
18406 while test "x$ac_lo" != "x$ac_hi"; do
18407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18408   cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 $ac_includes_default
18415 int
18416 main ()
18417 {
18418 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18419 test_array [0] = 0
18420
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427   (eval $ac_compile) 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -z "$ac_c_werror_flag"
18435                          || test ! -s conftest.err'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; } &&
18441          { ac_try='test -s conftest.$ac_objext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_hi=$ac_mid
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_lo=`expr '(' $ac_mid ')' + 1`
18453 fi
18454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18455 done
18456 case $ac_lo in
18457 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18458 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18459 See \`config.log' for more details." >&5
18460 echo "$as_me: error: cannot compute sizeof (size_t), 77
18461 See \`config.log' for more details." >&2;}
18462    { (exit 1); exit 1; }; } ;;
18463 esac
18464 else
18465   if test "$cross_compiling" = yes; then
18466   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18467 See \`config.log' for more details." >&5
18468 echo "$as_me: error: cannot run test program while cross compiling
18469 See \`config.log' for more details." >&2;}
18470    { (exit 1); exit 1; }; }
18471 else
18472   cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478 $ac_includes_default
18479 long longval () { return (long) (sizeof (size_t)); }
18480 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18481 #include <stdio.h>
18482 #include <stdlib.h>
18483 int
18484 main ()
18485 {
18486
18487   FILE *f = fopen ("conftest.val", "w");
18488   if (! f)
18489     exit (1);
18490   if (((long) (sizeof (size_t))) < 0)
18491     {
18492       long i = longval ();
18493       if (i != ((long) (sizeof (size_t))))
18494         exit (1);
18495       fprintf (f, "%ld\n", i);
18496     }
18497   else
18498     {
18499       unsigned long i = ulongval ();
18500       if (i != ((long) (sizeof (size_t))))
18501         exit (1);
18502       fprintf (f, "%lu\n", i);
18503     }
18504   exit (ferror (f) || fclose (f) != 0);
18505
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512   (eval $ac_link) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517   (eval $ac_try) 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); }; }; then
18521   ac_cv_sizeof_size_t=`cat conftest.val`
18522 else
18523   echo "$as_me: program exited with status $ac_status" >&5
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527 ( exit $ac_status )
18528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18529 See \`config.log' for more details." >&5
18530 echo "$as_me: error: cannot compute sizeof (size_t), 77
18531 See \`config.log' for more details." >&2;}
18532    { (exit 1); exit 1; }; }
18533 fi
18534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18535 fi
18536 fi
18537 rm -f conftest.val
18538 else
18539   ac_cv_sizeof_size_t=0
18540 fi
18541 fi
18542 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18543 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18544 cat >>confdefs.h <<_ACEOF
18545 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18546 _ACEOF
18547
18548
18549
18550 # Determine memory alignment requirements for the basic C data types.
18551
18552 echo "$as_me:$LINENO: checking for short" >&5
18553 echo $ECHO_N "checking for short... $ECHO_C" >&6
18554 if test "${ac_cv_type_short+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 $ac_includes_default
18564 int
18565 main ()
18566 {
18567 if ((short *) 0)
18568   return 0;
18569 if (sizeof (short))
18570   return 0;
18571   ;
18572   return 0;
18573 }
18574 _ACEOF
18575 rm -f conftest.$ac_objext
18576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18577   (eval $ac_compile) 2>conftest.er1
18578   ac_status=$?
18579   grep -v '^ *+' conftest.er1 >conftest.err
18580   rm -f conftest.er1
18581   cat conftest.err >&5
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); } &&
18584          { ac_try='test -z "$ac_c_werror_flag"
18585                          || test ! -s conftest.err'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; } &&
18591          { ac_try='test -s conftest.$ac_objext'
18592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593   (eval $ac_try) 2>&5
18594   ac_status=$?
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); }; }; then
18597   ac_cv_type_short=yes
18598 else
18599   echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18601
18602 ac_cv_type_short=no
18603 fi
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18605 fi
18606 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18607 echo "${ECHO_T}$ac_cv_type_short" >&6
18608
18609 echo "$as_me:$LINENO: checking alignment of short" >&5
18610 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18611 if test "${pgac_cv_alignof_short+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   if test "$ac_cv_type_short" = yes; then
18615   if test "$cross_compiling" = yes; then
18616   # Depending upon the size, compute the lo and hi bounds.
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h.  */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h.  */
18623 $ac_includes_default
18624 struct { char filler; short field; } pgac_struct;
18625 int
18626 main ()
18627 {
18628 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18629 test_array [0] = 0
18630
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637   (eval $ac_compile) 2>conftest.er1
18638   ac_status=$?
18639   grep -v '^ *+' conftest.er1 >conftest.err
18640   rm -f conftest.er1
18641   cat conftest.err >&5
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); } &&
18644          { ac_try='test -z "$ac_c_werror_flag"
18645                          || test ! -s conftest.err'
18646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647   (eval $ac_try) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; } &&
18651          { ac_try='test -s conftest.$ac_objext'
18652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653   (eval $ac_try) 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; }; then
18657   ac_lo=0 ac_mid=0
18658   while :; do
18659     cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665 $ac_includes_default
18666 struct { char filler; short field; } pgac_struct;
18667 int
18668 main ()
18669 {
18670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18671 test_array [0] = 0
18672
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679   (eval $ac_compile) 2>conftest.er1
18680   ac_status=$?
18681   grep -v '^ *+' conftest.er1 >conftest.err
18682   rm -f conftest.er1
18683   cat conftest.err >&5
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } &&
18686          { ac_try='test -z "$ac_c_werror_flag"
18687                          || test ! -s conftest.err'
18688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689   (eval $ac_try) 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); }; } &&
18693          { ac_try='test -s conftest.$ac_objext'
18694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695   (eval $ac_try) 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; }; then
18699   ac_hi=$ac_mid; break
18700 else
18701   echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 ac_lo=`expr $ac_mid + 1`
18705                     if test $ac_lo -le $ac_mid; then
18706                       ac_lo= ac_hi=
18707                       break
18708                     fi
18709                     ac_mid=`expr 2 '*' $ac_mid + 1`
18710 fi
18711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18712   done
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 $ac_includes_default
18724 struct { char filler; short field; } pgac_struct;
18725 int
18726 main ()
18727 {
18728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18729 test_array [0] = 0
18730
18731   ;
18732   return 0;
18733 }
18734 _ACEOF
18735 rm -f conftest.$ac_objext
18736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18737   (eval $ac_compile) 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } &&
18744          { ac_try='test -z "$ac_c_werror_flag"
18745                          || test ! -s conftest.err'
18746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747   (eval $ac_try) 2>&5
18748   ac_status=$?
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); }; } &&
18751          { ac_try='test -s conftest.$ac_objext'
18752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753   (eval $ac_try) 2>&5
18754   ac_status=$?
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); }; }; then
18757   ac_hi=-1 ac_mid=-1
18758   while :; do
18759     cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765 $ac_includes_default
18766 struct { char filler; short field; } pgac_struct;
18767 int
18768 main ()
18769 {
18770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18771 test_array [0] = 0
18772
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779   (eval $ac_compile) 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } &&
18786          { ac_try='test -z "$ac_c_werror_flag"
18787                          || test ! -s conftest.err'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; } &&
18793          { ac_try='test -s conftest.$ac_objext'
18794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795   (eval $ac_try) 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799   ac_lo=$ac_mid; break
18800 else
18801   echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_hi=`expr '(' $ac_mid ')' - 1`
18805                        if test $ac_mid -le $ac_hi; then
18806                          ac_lo= ac_hi=
18807                          break
18808                        fi
18809                        ac_mid=`expr 2 '*' $ac_mid`
18810 fi
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812   done
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_lo= ac_hi=
18818 fi
18819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18820 fi
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822 # Binary search between lo and hi bounds.
18823 while test "x$ac_lo" != "x$ac_hi"; do
18824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 $ac_includes_default
18832 struct { char filler; short field; } pgac_struct;
18833 int
18834 main ()
18835 {
18836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18837 test_array [0] = 0
18838
18839   ;
18840   return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845   (eval $ac_compile) 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } &&
18852          { ac_try='test -z "$ac_c_werror_flag"
18853                          || test ! -s conftest.err'
18854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855   (eval $ac_try) 2>&5
18856   ac_status=$?
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); }; } &&
18859          { ac_try='test -s conftest.$ac_objext'
18860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861   (eval $ac_try) 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; }; then
18865   ac_hi=$ac_mid
18866 else
18867   echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_lo=`expr '(' $ac_mid ')' + 1`
18871 fi
18872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18873 done
18874 case $ac_lo in
18875 ?*) pgac_cv_alignof_short=$ac_lo;;
18876 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18877 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18878    { (exit 1); exit 1; }; } ;;
18879 esac
18880 else
18881   if test "$cross_compiling" = yes; then
18882   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18883 See \`config.log' for more details." >&5
18884 echo "$as_me: error: cannot run test program while cross compiling
18885 See \`config.log' for more details." >&2;}
18886    { (exit 1); exit 1; }; }
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 $ac_includes_default
18895 struct { char filler; short field; } pgac_struct;
18896 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18897 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18898 #include <stdio.h>
18899 #include <stdlib.h>
18900 int
18901 main ()
18902 {
18903
18904   FILE *f = fopen ("conftest.val", "w");
18905   if (! f)
18906     exit (1);
18907   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18908     {
18909       long i = longval ();
18910       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18911         exit (1);
18912       fprintf (f, "%ld\n", i);
18913     }
18914   else
18915     {
18916       unsigned long i = ulongval ();
18917       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18918         exit (1);
18919       fprintf (f, "%lu\n", i);
18920     }
18921   exit (ferror (f) || fclose (f) != 0);
18922
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929   (eval $ac_link) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; }; then
18938   pgac_cv_alignof_short=`cat conftest.val`
18939 else
18940   echo "$as_me: program exited with status $ac_status" >&5
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ( exit $ac_status )
18945 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18946 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18947    { (exit 1); exit 1; }; }
18948 fi
18949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18950 fi
18951 fi
18952 rm -f conftest.val
18953 else
18954   pgac_cv_alignof_short=0
18955 fi
18956 fi
18957 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18958 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18959 cat >>confdefs.h <<_ACEOF
18960 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18961 _ACEOF
18962
18963
18964 echo "$as_me:$LINENO: checking for int" >&5
18965 echo $ECHO_N "checking for int... $ECHO_C" >&6
18966 if test "${ac_cv_type_int+set}" = set; then
18967   echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969   cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975 $ac_includes_default
18976 int
18977 main ()
18978 {
18979 if ((int *) 0)
18980   return 0;
18981 if (sizeof (int))
18982   return 0;
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989   (eval $ac_compile) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag"
18997                          || test ! -s conftest.err'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest.$ac_objext'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; }; then
19009   ac_cv_type_int=yes
19010 else
19011   echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014 ac_cv_type_int=no
19015 fi
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 fi
19018 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19019 echo "${ECHO_T}$ac_cv_type_int" >&6
19020
19021 echo "$as_me:$LINENO: checking alignment of int" >&5
19022 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19023 if test "${pgac_cv_alignof_int+set}" = set; then
19024   echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026   if test "$ac_cv_type_int" = yes; then
19027   if test "$cross_compiling" = yes; then
19028   # Depending upon the size, compute the lo and hi bounds.
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h.  */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h.  */
19035 $ac_includes_default
19036 struct { char filler; int field; } pgac_struct;
19037 int
19038 main ()
19039 {
19040 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19041 test_array [0] = 0
19042
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049   (eval $ac_compile) 2>conftest.er1
19050   ac_status=$?
19051   grep -v '^ *+' conftest.er1 >conftest.err
19052   rm -f conftest.er1
19053   cat conftest.err >&5
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); } &&
19056          { ac_try='test -z "$ac_c_werror_flag"
19057                          || test ! -s conftest.err'
19058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059   (eval $ac_try) 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); }; } &&
19063          { ac_try='test -s conftest.$ac_objext'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069   ac_lo=0 ac_mid=0
19070   while :; do
19071     cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h.  */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h.  */
19077 $ac_includes_default
19078 struct { char filler; int field; } pgac_struct;
19079 int
19080 main ()
19081 {
19082 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19083 test_array [0] = 0
19084
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19091   (eval $ac_compile) 2>conftest.er1
19092   ac_status=$?
19093   grep -v '^ *+' conftest.er1 >conftest.err
19094   rm -f conftest.er1
19095   cat conftest.err >&5
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); } &&
19098          { ac_try='test -z "$ac_c_werror_flag"
19099                          || test ! -s conftest.err'
19100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101   (eval $ac_try) 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; } &&
19105          { ac_try='test -s conftest.$ac_objext'
19106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107   (eval $ac_try) 2>&5
19108   ac_status=$?
19109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); }; }; then
19111   ac_hi=$ac_mid; break
19112 else
19113   echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19115
19116 ac_lo=`expr $ac_mid + 1`
19117                     if test $ac_lo -le $ac_mid; then
19118                       ac_lo= ac_hi=
19119                       break
19120                     fi
19121                     ac_mid=`expr 2 '*' $ac_mid + 1`
19122 fi
19123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124   done
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 $ac_includes_default
19136 struct { char filler; int field; } pgac_struct;
19137 int
19138 main ()
19139 {
19140 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19141 test_array [0] = 0
19142
19143   ;
19144   return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149   (eval $ac_compile) 2>conftest.er1
19150   ac_status=$?
19151   grep -v '^ *+' conftest.er1 >conftest.err
19152   rm -f conftest.er1
19153   cat conftest.err >&5
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -z "$ac_c_werror_flag"
19157                          || test ! -s conftest.err'
19158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159   (eval $ac_try) 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; } &&
19163          { ac_try='test -s conftest.$ac_objext'
19164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165   (eval $ac_try) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; }; then
19169   ac_hi=-1 ac_mid=-1
19170   while :; do
19171     cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177 $ac_includes_default
19178 struct { char filler; int field; } pgac_struct;
19179 int
19180 main ()
19181 {
19182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19183 test_array [0] = 0
19184
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191   (eval $ac_compile) 2>conftest.er1
19192   ac_status=$?
19193   grep -v '^ *+' conftest.er1 >conftest.err
19194   rm -f conftest.er1
19195   cat conftest.err >&5
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } &&
19198          { ac_try='test -z "$ac_c_werror_flag"
19199                          || test ! -s conftest.err'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; } &&
19205          { ac_try='test -s conftest.$ac_objext'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; }; then
19211   ac_lo=$ac_mid; break
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_hi=`expr '(' $ac_mid ')' - 1`
19217                        if test $ac_mid -le $ac_hi; then
19218                          ac_lo= ac_hi=
19219                          break
19220                        fi
19221                        ac_mid=`expr 2 '*' $ac_mid`
19222 fi
19223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19224   done
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_lo= ac_hi=
19230 fi
19231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19234 # Binary search between lo and hi bounds.
19235 while test "x$ac_lo" != "x$ac_hi"; do
19236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19237   cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 $ac_includes_default
19244 struct { char filler; int field; } pgac_struct;
19245 int
19246 main ()
19247 {
19248 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19249 test_array [0] = 0
19250
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257   (eval $ac_compile) 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } &&
19264          { ac_try='test -z "$ac_c_werror_flag"
19265                          || test ! -s conftest.err'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; } &&
19271          { ac_try='test -s conftest.$ac_objext'
19272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273   (eval $ac_try) 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; }; then
19277   ac_hi=$ac_mid
19278 else
19279   echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282 ac_lo=`expr '(' $ac_mid ')' + 1`
19283 fi
19284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19285 done
19286 case $ac_lo in
19287 ?*) pgac_cv_alignof_int=$ac_lo;;
19288 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19289 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19290    { (exit 1); exit 1; }; } ;;
19291 esac
19292 else
19293   if test "$cross_compiling" = yes; then
19294   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19295 See \`config.log' for more details." >&5
19296 echo "$as_me: error: cannot run test program while cross compiling
19297 See \`config.log' for more details." >&2;}
19298    { (exit 1); exit 1; }; }
19299 else
19300   cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 $ac_includes_default
19307 struct { char filler; int field; } pgac_struct;
19308 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19309 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19310 #include <stdio.h>
19311 #include <stdlib.h>
19312 int
19313 main ()
19314 {
19315
19316   FILE *f = fopen ("conftest.val", "w");
19317   if (! f)
19318     exit (1);
19319   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19320     {
19321       long i = longval ();
19322       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19323         exit (1);
19324       fprintf (f, "%ld\n", i);
19325     }
19326   else
19327     {
19328       unsigned long i = ulongval ();
19329       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19330         exit (1);
19331       fprintf (f, "%lu\n", i);
19332     }
19333   exit (ferror (f) || fclose (f) != 0);
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341   (eval $ac_link) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; }; then
19350   pgac_cv_alignof_int=`cat conftest.val`
19351 else
19352   echo "$as_me: program exited with status $ac_status" >&5
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356 ( exit $ac_status )
19357 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19358 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19359    { (exit 1); exit 1; }; }
19360 fi
19361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19362 fi
19363 fi
19364 rm -f conftest.val
19365 else
19366   pgac_cv_alignof_int=0
19367 fi
19368 fi
19369 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19370 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19371 cat >>confdefs.h <<_ACEOF
19372 #define ALIGNOF_INT $pgac_cv_alignof_int
19373 _ACEOF
19374
19375
19376 echo "$as_me:$LINENO: checking for long" >&5
19377 echo $ECHO_N "checking for long... $ECHO_C" >&6
19378 if test "${ac_cv_type_long+set}" = set; then
19379   echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381   cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387 $ac_includes_default
19388 int
19389 main ()
19390 {
19391 if ((long *) 0)
19392   return 0;
19393 if (sizeof (long))
19394   return 0;
19395   ;
19396   return 0;
19397 }
19398 _ACEOF
19399 rm -f conftest.$ac_objext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19401   (eval $ac_compile) 2>conftest.er1
19402   ac_status=$?
19403   grep -v '^ *+' conftest.er1 >conftest.err
19404   rm -f conftest.er1
19405   cat conftest.err >&5
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } &&
19408          { ac_try='test -z "$ac_c_werror_flag"
19409                          || test ! -s conftest.err'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; } &&
19415          { ac_try='test -s conftest.$ac_objext'
19416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417   (eval $ac_try) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); }; }; then
19421   ac_cv_type_long=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 ac_cv_type_long=no
19427 fi
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19429 fi
19430 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19431 echo "${ECHO_T}$ac_cv_type_long" >&6
19432
19433 echo "$as_me:$LINENO: checking alignment of long" >&5
19434 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19435 if test "${pgac_cv_alignof_long+set}" = set; then
19436   echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438   if test "$ac_cv_type_long" = yes; then
19439   if test "$cross_compiling" = yes; then
19440   # Depending upon the size, compute the lo and hi bounds.
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447 $ac_includes_default
19448 struct { char filler; long field; } pgac_struct;
19449 int
19450 main ()
19451 {
19452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19453 test_array [0] = 0
19454
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461   (eval $ac_compile) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } &&
19468          { ac_try='test -z "$ac_c_werror_flag"
19469                          || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_lo=0 ac_mid=0
19482   while :; do
19483     cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 $ac_includes_default
19490 struct { char filler; long field; } pgac_struct;
19491 int
19492 main ()
19493 {
19494 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19495 test_array [0] = 0
19496
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503   (eval $ac_compile) 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } &&
19510          { ac_try='test -z "$ac_c_werror_flag"
19511                          || test ! -s conftest.err'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; } &&
19517          { ac_try='test -s conftest.$ac_objext'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   ac_hi=$ac_mid; break
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 ac_lo=`expr $ac_mid + 1`
19529                     if test $ac_lo -le $ac_mid; then
19530                       ac_lo= ac_hi=
19531                       break
19532                     fi
19533                     ac_mid=`expr 2 '*' $ac_mid + 1`
19534 fi
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19536   done
19537 else
19538   echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h.  */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h.  */
19547 $ac_includes_default
19548 struct { char filler; long field; } pgac_struct;
19549 int
19550 main ()
19551 {
19552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19553 test_array [0] = 0
19554
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561   (eval $ac_compile) 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } &&
19568          { ac_try='test -z "$ac_c_werror_flag"
19569                          || test ! -s conftest.err'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; } &&
19575          { ac_try='test -s conftest.$ac_objext'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; }; then
19581   ac_hi=-1 ac_mid=-1
19582   while :; do
19583     cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 $ac_includes_default
19590 struct { char filler; long field; } pgac_struct;
19591 int
19592 main ()
19593 {
19594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19595 test_array [0] = 0
19596
19597   ;
19598   return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603   (eval $ac_compile) 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } &&
19610          { ac_try='test -z "$ac_c_werror_flag"
19611                          || test ! -s conftest.err'
19612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613   (eval $ac_try) 2>&5
19614   ac_status=$?
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); }; } &&
19617          { ac_try='test -s conftest.$ac_objext'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; }; then
19623   ac_lo=$ac_mid; break
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 ac_hi=`expr '(' $ac_mid ')' - 1`
19629                        if test $ac_mid -le $ac_hi; then
19630                          ac_lo= ac_hi=
19631                          break
19632                        fi
19633                        ac_mid=`expr 2 '*' $ac_mid`
19634 fi
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636   done
19637 else
19638   echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_lo= ac_hi=
19642 fi
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 fi
19645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19646 # Binary search between lo and hi bounds.
19647 while test "x$ac_lo" != "x$ac_hi"; do
19648   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 $ac_includes_default
19656 struct { char filler; long field; } pgac_struct;
19657 int
19658 main ()
19659 {
19660 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19661 test_array [0] = 0
19662
19663   ;
19664   return 0;
19665 }
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669   (eval $ac_compile) 2>conftest.er1
19670   ac_status=$?
19671   grep -v '^ *+' conftest.er1 >conftest.err
19672   rm -f conftest.er1
19673   cat conftest.err >&5
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); } &&
19676          { ac_try='test -z "$ac_c_werror_flag"
19677                          || test ! -s conftest.err'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; } &&
19683          { ac_try='test -s conftest.$ac_objext'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; }; then
19689   ac_hi=$ac_mid
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 ac_lo=`expr '(' $ac_mid ')' + 1`
19695 fi
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697 done
19698 case $ac_lo in
19699 ?*) pgac_cv_alignof_long=$ac_lo;;
19700 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19701 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19702    { (exit 1); exit 1; }; } ;;
19703 esac
19704 else
19705   if test "$cross_compiling" = yes; then
19706   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19707 See \`config.log' for more details." >&5
19708 echo "$as_me: error: cannot run test program while cross compiling
19709 See \`config.log' for more details." >&2;}
19710    { (exit 1); exit 1; }; }
19711 else
19712   cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 $ac_includes_default
19719 struct { char filler; long field; } pgac_struct;
19720 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19721 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19722 #include <stdio.h>
19723 #include <stdlib.h>
19724 int
19725 main ()
19726 {
19727
19728   FILE *f = fopen ("conftest.val", "w");
19729   if (! f)
19730     exit (1);
19731   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19732     {
19733       long i = longval ();
19734       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19735         exit (1);
19736       fprintf (f, "%ld\n", i);
19737     }
19738   else
19739     {
19740       unsigned long i = ulongval ();
19741       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19742         exit (1);
19743       fprintf (f, "%lu\n", i);
19744     }
19745   exit (ferror (f) || fclose (f) != 0);
19746
19747   ;
19748   return 0;
19749 }
19750 _ACEOF
19751 rm -f conftest$ac_exeext
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753   (eval $ac_link) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758   (eval $ac_try) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); }; }; then
19762   pgac_cv_alignof_long=`cat conftest.val`
19763 else
19764   echo "$as_me: program exited with status $ac_status" >&5
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ( exit $ac_status )
19769 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19770 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19771    { (exit 1); exit 1; }; }
19772 fi
19773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19774 fi
19775 fi
19776 rm -f conftest.val
19777 else
19778   pgac_cv_alignof_long=0
19779 fi
19780 fi
19781 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19782 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19783 cat >>confdefs.h <<_ACEOF
19784 #define ALIGNOF_LONG $pgac_cv_alignof_long
19785 _ACEOF
19786
19787
19788 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19789   echo "$as_me:$LINENO: checking for long long int" >&5
19790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19791 if test "${ac_cv_type_long_long_int+set}" = set; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794   cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 $ac_includes_default
19801 int
19802 main ()
19803 {
19804 if ((long long int *) 0)
19805   return 0;
19806 if (sizeof (long long int))
19807   return 0;
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814   (eval $ac_compile) 2>conftest.er1
19815   ac_status=$?
19816   grep -v '^ *+' conftest.er1 >conftest.err
19817   rm -f conftest.er1
19818   cat conftest.err >&5
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); } &&
19821          { ac_try='test -z "$ac_c_werror_flag"
19822                          || test ! -s conftest.err'
19823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824   (eval $ac_try) 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); }; } &&
19828          { ac_try='test -s conftest.$ac_objext'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; }; then
19834   ac_cv_type_long_long_int=yes
19835 else
19836   echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839 ac_cv_type_long_long_int=no
19840 fi
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842 fi
19843 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19844 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19845
19846 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19847 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19848 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   if test "$ac_cv_type_long_long_int" = yes; then
19852   if test "$cross_compiling" = yes; then
19853   # Depending upon the size, compute the lo and hi bounds.
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 $ac_includes_default
19861 struct { char filler; long long int field; } pgac_struct;
19862 int
19863 main ()
19864 {
19865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19866 test_array [0] = 0
19867
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874   (eval $ac_compile) 2>conftest.er1
19875   ac_status=$?
19876   grep -v '^ *+' conftest.er1 >conftest.err
19877   rm -f conftest.er1
19878   cat conftest.err >&5
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } &&
19881          { ac_try='test -z "$ac_c_werror_flag"
19882                          || test ! -s conftest.err'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; } &&
19888          { ac_try='test -s conftest.$ac_objext'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   ac_lo=0 ac_mid=0
19895   while :; do
19896     cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h.  */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h.  */
19902 $ac_includes_default
19903 struct { char filler; long long int field; } pgac_struct;
19904 int
19905 main ()
19906 {
19907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19908 test_array [0] = 0
19909
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916   (eval $ac_compile) 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag"
19924                          || test ! -s conftest.err'
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); }; } &&
19930          { ac_try='test -s conftest.$ac_objext'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; }; then
19936   ac_hi=$ac_mid; break
19937 else
19938   echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_lo=`expr $ac_mid + 1`
19942                     if test $ac_lo -le $ac_mid; then
19943                       ac_lo= ac_hi=
19944                       break
19945                     fi
19946                     ac_mid=`expr 2 '*' $ac_mid + 1`
19947 fi
19948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19949   done
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 $ac_includes_default
19961 struct { char filler; long long int field; } pgac_struct;
19962 int
19963 main ()
19964 {
19965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19966 test_array [0] = 0
19967
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974   (eval $ac_compile) 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag"
19982                          || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest.$ac_objext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   ac_hi=-1 ac_mid=-1
19995   while :; do
19996     cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h.  */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h.  */
20002 $ac_includes_default
20003 struct { char filler; long long int field; } pgac_struct;
20004 int
20005 main ()
20006 {
20007 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20008 test_array [0] = 0
20009
20010   ;
20011   return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016   (eval $ac_compile) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_c_werror_flag"
20024                          || test ! -s conftest.err'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_lo=$ac_mid; break
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_hi=`expr '(' $ac_mid ')' - 1`
20042                        if test $ac_mid -le $ac_hi; then
20043                          ac_lo= ac_hi=
20044                          break
20045                        fi
20046                        ac_mid=`expr 2 '*' $ac_mid`
20047 fi
20048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20049   done
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_lo= ac_hi=
20055 fi
20056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20057 fi
20058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 # Binary search between lo and hi bounds.
20060 while test "x$ac_lo" != "x$ac_hi"; do
20061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 $ac_includes_default
20069 struct { char filler; long long int field; } pgac_struct;
20070 int
20071 main ()
20072 {
20073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20074 test_array [0] = 0
20075
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082   (eval $ac_compile) 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -z "$ac_c_werror_flag"
20090                          || test ! -s conftest.err'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; } &&
20096          { ac_try='test -s conftest.$ac_objext'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; }; then
20102   ac_hi=$ac_mid
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 ac_lo=`expr '(' $ac_mid ')' + 1`
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 done
20111 case $ac_lo in
20112 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20113 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20114 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20115    { (exit 1); exit 1; }; } ;;
20116 esac
20117 else
20118   if test "$cross_compiling" = yes; then
20119   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20120 See \`config.log' for more details." >&5
20121 echo "$as_me: error: cannot run test program while cross compiling
20122 See \`config.log' for more details." >&2;}
20123    { (exit 1); exit 1; }; }
20124 else
20125   cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 $ac_includes_default
20132 struct { char filler; long long int field; } pgac_struct;
20133 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20134 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20135 #include <stdio.h>
20136 #include <stdlib.h>
20137 int
20138 main ()
20139 {
20140
20141   FILE *f = fopen ("conftest.val", "w");
20142   if (! f)
20143     exit (1);
20144   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20145     {
20146       long i = longval ();
20147       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20148         exit (1);
20149       fprintf (f, "%ld\n", i);
20150     }
20151   else
20152     {
20153       unsigned long i = ulongval ();
20154       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20155         exit (1);
20156       fprintf (f, "%lu\n", i);
20157     }
20158   exit (ferror (f) || fclose (f) != 0);
20159
20160   ;
20161   return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest$ac_exeext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20166   (eval $ac_link) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171   (eval $ac_try) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; }; then
20175   pgac_cv_alignof_long_long_int=`cat conftest.val`
20176 else
20177   echo "$as_me: program exited with status $ac_status" >&5
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181 ( exit $ac_status )
20182 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20183 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20184    { (exit 1); exit 1; }; }
20185 fi
20186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20187 fi
20188 fi
20189 rm -f conftest.val
20190 else
20191   pgac_cv_alignof_long_long_int=0
20192 fi
20193 fi
20194 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20195 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20196 cat >>confdefs.h <<_ACEOF
20197 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20198 _ACEOF
20199
20200
20201 fi
20202 echo "$as_me:$LINENO: checking for double" >&5
20203 echo $ECHO_N "checking for double... $ECHO_C" >&6
20204 if test "${ac_cv_type_double+set}" = set; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 int
20215 main ()
20216 {
20217 if ((double *) 0)
20218   return 0;
20219 if (sizeof (double))
20220   return 0;
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227   (eval $ac_compile) 2>conftest.er1
20228   ac_status=$?
20229   grep -v '^ *+' conftest.er1 >conftest.err
20230   rm -f conftest.er1
20231   cat conftest.err >&5
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } &&
20234          { ac_try='test -z "$ac_c_werror_flag"
20235                          || test ! -s conftest.err'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; } &&
20241          { ac_try='test -s conftest.$ac_objext'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; }; then
20247   ac_cv_type_double=yes
20248 else
20249   echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_cv_type_double=no
20253 fi
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20257 echo "${ECHO_T}$ac_cv_type_double" >&6
20258
20259 echo "$as_me:$LINENO: checking alignment of double" >&5
20260 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20261 if test "${pgac_cv_alignof_double+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   if test "$ac_cv_type_double" = yes; then
20265   if test "$cross_compiling" = yes; then
20266   # Depending upon the size, compute the lo and hi bounds.
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 $ac_includes_default
20274 struct { char filler; double field; } pgac_struct;
20275 int
20276 main ()
20277 {
20278 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20279 test_array [0] = 0
20280
20281   ;
20282   return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287   (eval $ac_compile) 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } &&
20294          { ac_try='test -z "$ac_c_werror_flag"
20295                          || test ! -s conftest.err'
20296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297   (eval $ac_try) 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); }; } &&
20301          { ac_try='test -s conftest.$ac_objext'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; }; then
20307   ac_lo=0 ac_mid=0
20308   while :; do
20309     cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315 $ac_includes_default
20316 struct { char filler; double field; } pgac_struct;
20317 int
20318 main ()
20319 {
20320 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20321 test_array [0] = 0
20322
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329   (eval $ac_compile) 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag"
20337                          || test ! -s conftest.err'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; } &&
20343          { ac_try='test -s conftest.$ac_objext'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   ac_hi=$ac_mid; break
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_lo=`expr $ac_mid + 1`
20355                     if test $ac_lo -le $ac_mid; then
20356                       ac_lo= ac_hi=
20357                       break
20358                     fi
20359                     ac_mid=`expr 2 '*' $ac_mid + 1`
20360 fi
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20362   done
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h.  */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h.  */
20373 $ac_includes_default
20374 struct { char filler; double field; } pgac_struct;
20375 int
20376 main ()
20377 {
20378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20379 test_array [0] = 0
20380
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387   (eval $ac_compile) 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag"
20395                          || test ! -s conftest.err'
20396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); }; } &&
20401          { ac_try='test -s conftest.$ac_objext'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   ac_hi=-1 ac_mid=-1
20408   while :; do
20409     cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 struct { char filler; double field; } pgac_struct;
20417 int
20418 main ()
20419 {
20420 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20421 test_array [0] = 0
20422
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429   (eval $ac_compile) 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_c_werror_flag"
20437                          || test ! -s conftest.err'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; } &&
20443          { ac_try='test -s conftest.$ac_objext'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   ac_lo=$ac_mid; break
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_hi=`expr '(' $ac_mid ')' - 1`
20455                        if test $ac_mid -le $ac_hi; then
20456                          ac_lo= ac_hi=
20457                          break
20458                        fi
20459                        ac_mid=`expr 2 '*' $ac_mid`
20460 fi
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462   done
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ac_lo= ac_hi=
20468 fi
20469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20470 fi
20471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20472 # Binary search between lo and hi bounds.
20473 while test "x$ac_lo" != "x$ac_hi"; do
20474   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20475   cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482 struct { char filler; double field; } pgac_struct;
20483 int
20484 main ()
20485 {
20486 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20487 test_array [0] = 0
20488
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495   (eval $ac_compile) 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } &&
20502          { ac_try='test -z "$ac_c_werror_flag"
20503                          || test ! -s conftest.err'
20504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505   (eval $ac_try) 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; } &&
20509          { ac_try='test -s conftest.$ac_objext'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; }; then
20515   ac_hi=$ac_mid
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ac_lo=`expr '(' $ac_mid ')' + 1`
20521 fi
20522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20523 done
20524 case $ac_lo in
20525 ?*) pgac_cv_alignof_double=$ac_lo;;
20526 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20527 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20528    { (exit 1); exit 1; }; } ;;
20529 esac
20530 else
20531   if test "$cross_compiling" = yes; then
20532   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20533 See \`config.log' for more details." >&5
20534 echo "$as_me: error: cannot run test program while cross compiling
20535 See \`config.log' for more details." >&2;}
20536    { (exit 1); exit 1; }; }
20537 else
20538   cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 $ac_includes_default
20545 struct { char filler; double field; } pgac_struct;
20546 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20547 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20548 #include <stdio.h>
20549 #include <stdlib.h>
20550 int
20551 main ()
20552 {
20553
20554   FILE *f = fopen ("conftest.val", "w");
20555   if (! f)
20556     exit (1);
20557   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20558     {
20559       long i = longval ();
20560       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20561         exit (1);
20562       fprintf (f, "%ld\n", i);
20563     }
20564   else
20565     {
20566       unsigned long i = ulongval ();
20567       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20568         exit (1);
20569       fprintf (f, "%lu\n", i);
20570     }
20571   exit (ferror (f) || fclose (f) != 0);
20572
20573   ;
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579   (eval $ac_link) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   pgac_cv_alignof_double=`cat conftest.val`
20589 else
20590   echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594 ( exit $ac_status )
20595 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20596 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20597    { (exit 1); exit 1; }; }
20598 fi
20599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20600 fi
20601 fi
20602 rm -f conftest.val
20603 else
20604   pgac_cv_alignof_double=0
20605 fi
20606 fi
20607 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20608 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20609 cat >>confdefs.h <<_ACEOF
20610 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20611 _ACEOF
20612
20613
20614
20615 # Compute maximum alignment of any basic type.
20616 # We assume long's alignment is at least as strong as char, short, or int;
20617 # but we must check long long (if it exists) and double.
20618
20619 MAX_ALIGNOF=$pgac_cv_alignof_long
20620 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20621   MAX_ALIGNOF=$pgac_cv_alignof_double
20622 fi
20623 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20624   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20625 fi
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20629 _ACEOF
20630
20631
20632
20633 # Some platforms predefine the types int8, int16, etc.  Only check
20634 # a (hopefully) representative subset.
20635 echo "$as_me:$LINENO: checking for int8" >&5
20636 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20637 if test "${ac_cv_type_int8+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646 #include <stdio.h>
20647 #ifdef HAVE_SUPPORTDEFS_H
20648 #include <SupportDefs.h>
20649 #endif
20650
20651 int
20652 main ()
20653 {
20654 if ((int8 *) 0)
20655   return 0;
20656 if (sizeof (int8))
20657   return 0;
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664   (eval $ac_compile) 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } &&
20671          { ac_try='test -z "$ac_c_werror_flag"
20672                          || test ! -s conftest.err'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; } &&
20678          { ac_try='test -s conftest.$ac_objext'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; }; then
20684   ac_cv_type_int8=yes
20685 else
20686   echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_type_int8=no
20690 fi
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20694 echo "${ECHO_T}$ac_cv_type_int8" >&6
20695 if test $ac_cv_type_int8 = yes; then
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_INT8 1
20699 _ACEOF
20700
20701
20702 fi
20703 echo "$as_me:$LINENO: checking for uint8" >&5
20704 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20705 if test "${ac_cv_type_uint8+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708   cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714 #include <stdio.h>
20715 #ifdef HAVE_SUPPORTDEFS_H
20716 #include <SupportDefs.h>
20717 #endif
20718
20719 int
20720 main ()
20721 {
20722 if ((uint8 *) 0)
20723   return 0;
20724 if (sizeof (uint8))
20725   return 0;
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732   (eval $ac_compile) 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -z "$ac_c_werror_flag"
20740                          || test ! -s conftest.err'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; } &&
20746          { ac_try='test -s conftest.$ac_objext'
20747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748   (eval $ac_try) 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_cv_type_uint8=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ac_cv_type_uint8=no
20758 fi
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760 fi
20761 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20762 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20763 if test $ac_cv_type_uint8 = yes; then
20764
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_UINT8 1
20767 _ACEOF
20768
20769
20770 fi
20771 echo "$as_me:$LINENO: checking for int64" >&5
20772 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20773 if test "${ac_cv_type_int64+set}" = set; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776   cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782 #include <stdio.h>
20783 #ifdef HAVE_SUPPORTDEFS_H
20784 #include <SupportDefs.h>
20785 #endif
20786
20787 int
20788 main ()
20789 {
20790 if ((int64 *) 0)
20791   return 0;
20792 if (sizeof (int64))
20793   return 0;
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800   (eval $ac_compile) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"
20808                          || test ! -s conftest.err'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } &&
20814          { ac_try='test -s conftest.$ac_objext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_cv_type_int64=yes
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 ac_cv_type_int64=no
20826 fi
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20828 fi
20829 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20830 echo "${ECHO_T}$ac_cv_type_int64" >&6
20831 if test $ac_cv_type_int64 = yes; then
20832
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_INT64 1
20835 _ACEOF
20836
20837
20838 fi
20839 echo "$as_me:$LINENO: checking for uint64" >&5
20840 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20841 if test "${ac_cv_type_uint64+set}" = set; then
20842   echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844   cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850 #include <stdio.h>
20851 #ifdef HAVE_SUPPORTDEFS_H
20852 #include <SupportDefs.h>
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858 if ((uint64 *) 0)
20859   return 0;
20860 if (sizeof (uint64))
20861   return 0;
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20868   (eval $ac_compile) 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_c_werror_flag"
20876                          || test ! -s conftest.err'
20877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878   (eval $ac_try) 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; } &&
20882          { ac_try='test -s conftest.$ac_objext'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; }; then
20888   ac_cv_type_uint64=yes
20889 else
20890   echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_cv_type_uint64=no
20894 fi
20895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20896 fi
20897 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20898 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20899 if test $ac_cv_type_uint64 = yes; then
20900
20901 cat >>confdefs.h <<_ACEOF
20902 #define HAVE_UINT64 1
20903 _ACEOF
20904
20905
20906 fi
20907
20908
20909 # We also check for sig_atomic_t, which *should* be defined per ANSI
20910 # C, but is missing on some old platforms.
20911 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20912 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20913 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922 #include <signal.h>
20923
20924 int
20925 main ()
20926 {
20927 if ((sig_atomic_t *) 0)
20928   return 0;
20929 if (sizeof (sig_atomic_t))
20930   return 0;
20931   ;
20932   return 0;
20933 }
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937   (eval $ac_compile) 2>conftest.er1
20938   ac_status=$?
20939   grep -v '^ *+' conftest.er1 >conftest.err
20940   rm -f conftest.er1
20941   cat conftest.err >&5
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); } &&
20944          { ac_try='test -z "$ac_c_werror_flag"
20945                          || test ! -s conftest.err'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; } &&
20951          { ac_try='test -s conftest.$ac_objext'
20952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953   (eval $ac_try) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; }; then
20957   ac_cv_type_sig_atomic_t=yes
20958 else
20959   echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 ac_cv_type_sig_atomic_t=no
20963 fi
20964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20965 fi
20966 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20967 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20968 if test $ac_cv_type_sig_atomic_t = yes; then
20969
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_SIG_ATOMIC_T 1
20972 _ACEOF
20973
20974
20975 fi
20976
20977
20978
20979 if test x"$template" != x"win32"
20980 then
20981 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20982 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20983 if test "${pgac_cv_func_posix_signals+set}" = set; then
20984   echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986   cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h.  */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h.  */
20992 #include <signal.h>
20993
20994 int
20995 main ()
20996 {
20997 struct sigaction act, oact;
20998 sigemptyset(&act.sa_mask);
20999 act.sa_flags = SA_RESTART;
21000 sigaction(0, &act, &oact);
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21007   (eval $ac_link) 2>conftest.er1
21008   ac_status=$?
21009   grep -v '^ *+' conftest.er1 >conftest.err
21010   rm -f conftest.er1
21011   cat conftest.err >&5
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } &&
21014          { ac_try='test -z "$ac_c_werror_flag"
21015                          || test ! -s conftest.err'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; } &&
21021          { ac_try='test -s conftest$ac_exeext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   pgac_cv_func_posix_signals=yes
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 pgac_cv_func_posix_signals=no
21033 fi
21034 rm -f conftest.err conftest.$ac_objext \
21035       conftest$ac_exeext conftest.$ac_ext
21036 fi
21037 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21038 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21039 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21040
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_POSIX_SIGNALS
21043 _ACEOF
21044
21045 fi
21046 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21047
21048 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21049   { { echo "$as_me:$LINENO: error:
21050 *** Thread-safety requires POSIX signals, which are not supported by your
21051 *** operating system.
21052 " >&5
21053 echo "$as_me: error:
21054 *** Thread-safety requires POSIX signals, which are not supported by your
21055 *** operating system.
21056 " >&2;}
21057    { (exit 1); exit 1; }; }
21058 fi
21059 fi
21060
21061 if test $ac_cv_func_fseeko = yes; then
21062 # Check whether --enable-largefile or --disable-largefile was given.
21063 if test "${enable_largefile+set}" = set; then
21064   enableval="$enable_largefile"
21065
21066 fi;
21067 if test "$enable_largefile" != no; then
21068
21069   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21070 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21071 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21072   echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074   ac_cv_sys_largefile_CC=no
21075      if test "$GCC" != yes; then
21076        ac_save_CC=$CC
21077        while :; do
21078          # IRIX 6.2 and later do not support large files by default,
21079          # so use the C compiler's -n32 option if that helps.
21080          cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086 #include <sys/types.h>
21087  /* Check that off_t can represent 2**63 - 1 correctly.
21088     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21089     since some C++ compilers masquerading as C compilers
21090     incorrectly reject 9223372036854775807.  */
21091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21092   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21093                        && LARGE_OFF_T % 2147483647 == 1)
21094                       ? 1 : -1];
21095 int
21096 main ()
21097 {
21098
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103          rm -f conftest.$ac_objext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105   (eval $ac_compile) 2>conftest.er1
21106   ac_status=$?
21107   grep -v '^ *+' conftest.er1 >conftest.err
21108   rm -f conftest.er1
21109   cat conftest.err >&5
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); } &&
21112          { ac_try='test -z "$ac_c_werror_flag"
21113                          || test ! -s conftest.err'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; } &&
21119          { ac_try='test -s conftest.$ac_objext'
21120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121   (eval $ac_try) 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   break
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 fi
21131 rm -f conftest.err conftest.$ac_objext
21132          CC="$CC -n32"
21133          rm -f conftest.$ac_objext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21135   (eval $ac_compile) 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } &&
21142          { ac_try='test -z "$ac_c_werror_flag"
21143                          || test ! -s conftest.err'
21144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145   (eval $ac_try) 2>&5
21146   ac_status=$?
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); }; } &&
21149          { ac_try='test -s conftest.$ac_objext'
21150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151   (eval $ac_try) 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   ac_cv_sys_largefile_CC=' -n32'; break
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 fi
21161 rm -f conftest.err conftest.$ac_objext
21162          break
21163        done
21164        CC=$ac_save_CC
21165        rm -f conftest.$ac_ext
21166     fi
21167 fi
21168 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21169 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21170   if test "$ac_cv_sys_largefile_CC" != no; then
21171     CC=$CC$ac_cv_sys_largefile_CC
21172   fi
21173
21174   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21175 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21176 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   while :; do
21180   ac_cv_sys_file_offset_bits=no
21181   cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 #include <sys/types.h>
21188  /* Check that off_t can represent 2**63 - 1 correctly.
21189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21190     since some C++ compilers masquerading as C compilers
21191     incorrectly reject 9223372036854775807.  */
21192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21194                        && LARGE_OFF_T % 2147483647 == 1)
21195                       ? 1 : -1];
21196 int
21197 main ()
21198 {
21199
21200   ;
21201   return 0;
21202 }
21203 _ACEOF
21204 rm -f conftest.$ac_objext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21206   (eval $ac_compile) 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } &&
21213          { ac_try='test -z "$ac_c_werror_flag"
21214                          || test ! -s conftest.err'
21215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216   (eval $ac_try) 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; } &&
21220          { ac_try='test -s conftest.$ac_objext'
21221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222   (eval $ac_try) 2>&5
21223   ac_status=$?
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); }; }; then
21226   break
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 fi
21232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21233   cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239 #define _FILE_OFFSET_BITS 64
21240 #include <sys/types.h>
21241  /* Check that off_t can represent 2**63 - 1 correctly.
21242     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21243     since some C++ compilers masquerading as C compilers
21244     incorrectly reject 9223372036854775807.  */
21245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21246   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21247                        && LARGE_OFF_T % 2147483647 == 1)
21248                       ? 1 : -1];
21249 int
21250 main ()
21251 {
21252
21253   ;
21254   return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259   (eval $ac_compile) 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_c_werror_flag"
21267                          || test ! -s conftest.err'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; } &&
21273          { ac_try='test -s conftest.$ac_objext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   ac_cv_sys_file_offset_bits=64; break
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 fi
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286   break
21287 done
21288 fi
21289 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21290 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21291 if test "$ac_cv_sys_file_offset_bits" != no; then
21292
21293 cat >>confdefs.h <<_ACEOF
21294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21295 _ACEOF
21296
21297 fi
21298 rm -f conftest*
21299   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21300 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21301 if test "${ac_cv_sys_large_files+set}" = set; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304   while :; do
21305   ac_cv_sys_large_files=no
21306   cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312 #include <sys/types.h>
21313  /* Check that off_t can represent 2**63 - 1 correctly.
21314     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21315     since some C++ compilers masquerading as C compilers
21316     incorrectly reject 9223372036854775807.  */
21317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21318   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21319                        && LARGE_OFF_T % 2147483647 == 1)
21320                       ? 1 : -1];
21321 int
21322 main ()
21323 {
21324
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 rm -f conftest.$ac_objext
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331   (eval $ac_compile) 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } &&
21338          { ac_try='test -z "$ac_c_werror_flag"
21339                          || test ! -s conftest.err'
21340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341   (eval $ac_try) 2>&5
21342   ac_status=$?
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); }; } &&
21345          { ac_try='test -s conftest.$ac_objext'
21346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347   (eval $ac_try) 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   break
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 fi
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21358   cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364 #define _LARGE_FILES 1
21365 #include <sys/types.h>
21366  /* Check that off_t can represent 2**63 - 1 correctly.
21367     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21368     since some C++ compilers masquerading as C compilers
21369     incorrectly reject 9223372036854775807.  */
21370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21371   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21372                        && LARGE_OFF_T % 2147483647 == 1)
21373                       ? 1 : -1];
21374 int
21375 main ()
21376 {
21377
21378   ;
21379   return 0;
21380 }
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21384   (eval $ac_compile) 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } &&
21391          { ac_try='test -z "$ac_c_werror_flag"
21392                          || test ! -s conftest.err'
21393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394   (eval $ac_try) 2>&5
21395   ac_status=$?
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); }; } &&
21398          { ac_try='test -s conftest.$ac_objext'
21399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; }; then
21404   ac_cv_sys_large_files=1; break
21405 else
21406   echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 fi
21410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21411   break
21412 done
21413 fi
21414 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21415 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21416 if test "$ac_cv_sys_large_files" != no; then
21417
21418 cat >>confdefs.h <<_ACEOF
21419 #define _LARGE_FILES $ac_cv_sys_large_files
21420 _ACEOF
21421
21422 fi
21423 rm -f conftest*
21424 fi
21425
21426 fi
21427
21428 # SunOS doesn't handle negative byte comparisons properly with +/- return
21429 echo "$as_me:$LINENO: checking for working memcmp" >&5
21430 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21431 if test "${ac_cv_func_memcmp_working+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   if test "$cross_compiling" = yes; then
21435   ac_cv_func_memcmp_working=no
21436 else
21437   cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443 $ac_includes_default
21444 int
21445 main ()
21446 {
21447
21448   /* Some versions of memcmp are not 8-bit clean.  */
21449   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21450   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21451     exit (1);
21452
21453   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21454      or more and with at least one buffer not starting on a 4-byte boundary.
21455      William Lewis provided this test program.   */
21456   {
21457     char foo[21];
21458     char bar[21];
21459     int i;
21460     for (i = 0; i < 4; i++)
21461       {
21462         char *a = foo + i;
21463         char *b = bar + i;
21464         strcpy (a, "--------01111111");
21465         strcpy (b, "--------10000000");
21466         if (memcmp (a, b, 16) >= 0)
21467           exit (1);
21468       }
21469     exit (0);
21470   }
21471
21472   ;
21473   return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest$ac_exeext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21478   (eval $ac_link) 2>&5
21479   ac_status=$?
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; }; then
21487   ac_cv_func_memcmp_working=yes
21488 else
21489   echo "$as_me: program exited with status $ac_status" >&5
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 ( exit $ac_status )
21494 ac_cv_func_memcmp_working=no
21495 fi
21496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21497 fi
21498 fi
21499 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21500 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21501 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21502     "memcmp.$ac_objext"   | \
21503   *" memcmp.$ac_objext"   | \
21504     "memcmp.$ac_objext "* | \
21505   *" memcmp.$ac_objext "* ) ;;
21506   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21507 esac
21508
21509
21510
21511
21512 # Select semaphore implementation type.
21513 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define USE_NAMED_POSIX_SEMAPHORES 1
21517 _ACEOF
21518
21519   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21520 else
21521   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21522
21523 cat >>confdefs.h <<\_ACEOF
21524 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21525 _ACEOF
21526
21527     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21528   else
21529
21530 cat >>confdefs.h <<\_ACEOF
21531 #define USE_SYSV_SEMAPHORES 1
21532 _ACEOF
21533
21534     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21535   fi
21536 fi
21537
21538
21539 # Select shared-memory implementation type.
21540
21541 cat >>confdefs.h <<\_ACEOF
21542 #define USE_SYSV_SHARED_MEMORY 1
21543 _ACEOF
21544
21545 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21546
21547
21548 # If not set in template file, set bytes to use libc memset()
21549 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21550   MEMSET_LOOP_LIMIT=1024
21551 fi
21552
21553 cat >>confdefs.h <<_ACEOF
21554 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21555 _ACEOF
21556
21557
21558
21559 if test "$enable_nls" = yes ; then
21560
21561   echo "$as_me:$LINENO: checking for library containing gettext" >&5
21562 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21563 if test "${ac_cv_search_gettext+set}" = set; then
21564   echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566   ac_func_search_save_LIBS=$LIBS
21567 ac_cv_search_gettext=no
21568 cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574
21575 /* Override any gcc2 internal prototype to avoid an error.  */
21576 #ifdef __cplusplus
21577 extern "C"
21578 #endif
21579 /* We use char because int might match the return type of a gcc2
21580    builtin and then its argument prototype would still apply.  */
21581 char gettext ();
21582 int
21583 main ()
21584 {
21585 gettext ();
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592   (eval $ac_link) 2>conftest.er1
21593   ac_status=$?
21594   grep -v '^ *+' conftest.er1 >conftest.err
21595   rm -f conftest.er1
21596   cat conftest.err >&5
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } &&
21599          { ac_try='test -z "$ac_c_werror_flag"
21600                          || test ! -s conftest.err'
21601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602   (eval $ac_try) 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest$ac_exeext'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_cv_search_gettext="none required"
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 fi
21618 rm -f conftest.err conftest.$ac_objext \
21619       conftest$ac_exeext conftest.$ac_ext
21620 if test "$ac_cv_search_gettext" = no; then
21621   for ac_lib in intl; do
21622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21623     cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629
21630 /* Override any gcc2 internal prototype to avoid an error.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 /* We use char because int might match the return type of a gcc2
21635    builtin and then its argument prototype would still apply.  */
21636 char gettext ();
21637 int
21638 main ()
21639 {
21640 gettext ();
21641   ;
21642   return 0;
21643 }
21644 _ACEOF
21645 rm -f conftest.$ac_objext conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647   (eval $ac_link) 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } &&
21654          { ac_try='test -z "$ac_c_werror_flag"
21655                          || test ! -s conftest.err'
21656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657   (eval $ac_try) 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); }; } &&
21661          { ac_try='test -s conftest$ac_exeext'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; }; then
21667   ac_cv_search_gettext="-l$ac_lib"
21668 break
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673 fi
21674 rm -f conftest.err conftest.$ac_objext \
21675       conftest$ac_exeext conftest.$ac_ext
21676   done
21677 fi
21678 LIBS=$ac_func_search_save_LIBS
21679 fi
21680 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21681 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21682 if test "$ac_cv_search_gettext" != no; then
21683   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21684
21685 else
21686   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21687 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21688    { (exit 1); exit 1; }; }
21689 fi
21690
21691   if test "${ac_cv_header_libintl_h+set}" = set; then
21692   echo "$as_me:$LINENO: checking for libintl.h" >&5
21693 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21694 if test "${ac_cv_header_libintl_h+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 fi
21697 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21698 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21699 else
21700   # Is the header compilable?
21701 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21702 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 $ac_includes_default
21710 #include <libintl.h>
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714   (eval $ac_compile) 2>conftest.er1
21715   ac_status=$?
21716   grep -v '^ *+' conftest.er1 >conftest.err
21717   rm -f conftest.er1
21718   cat conftest.err >&5
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } &&
21721          { ac_try='test -z "$ac_c_werror_flag"
21722                          || test ! -s conftest.err'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; } &&
21728          { ac_try='test -s conftest.$ac_objext'
21729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730   (eval $ac_try) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); }; }; then
21734   ac_header_compiler=yes
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 ac_header_compiler=no
21740 fi
21741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21743 echo "${ECHO_T}$ac_header_compiler" >&6
21744
21745 # Is the header present?
21746 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21747 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 #include <libintl.h>
21755 _ACEOF
21756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } >/dev/null; then
21764   if test -s conftest.err; then
21765     ac_cpp_err=$ac_c_preproc_warn_flag
21766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21767   else
21768     ac_cpp_err=
21769   fi
21770 else
21771   ac_cpp_err=yes
21772 fi
21773 if test -z "$ac_cpp_err"; then
21774   ac_header_preproc=yes
21775 else
21776   echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779   ac_header_preproc=no
21780 fi
21781 rm -f conftest.err conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21783 echo "${ECHO_T}$ac_header_preproc" >&6
21784
21785 # So?  What about this header?
21786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21787   yes:no: )
21788     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21789 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21790     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21791 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21792     ac_header_preproc=yes
21793     ;;
21794   no:yes:* )
21795     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21796 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21797     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
21798 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
21799     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21800 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21801     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
21802 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21803     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21804 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21805     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21806 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21807     (
21808       cat <<\_ASBOX
21809 ## ---------------------------------------- ##
21810 ## Report this to pgsql-bugs@postgresql.org ##
21811 ## ---------------------------------------- ##
21812 _ASBOX
21813     ) |
21814       sed "s/^/$as_me: WARNING:     /" >&2
21815     ;;
21816 esac
21817 echo "$as_me:$LINENO: checking for libintl.h" >&5
21818 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21819 if test "${ac_cv_header_libintl_h+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   ac_cv_header_libintl_h=$ac_header_preproc
21823 fi
21824 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21825 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21826
21827 fi
21828 if test $ac_cv_header_libintl_h = yes; then
21829   :
21830 else
21831   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21832 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21833    { (exit 1); exit 1; }; }
21834 fi
21835
21836
21837   for ac_prog in msgfmt
21838 do
21839   # Extract the first word of "$ac_prog", so it can be a program name with args.
21840 set dummy $ac_prog; ac_word=$2
21841 echo "$as_me:$LINENO: checking for $ac_word" >&5
21842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21843 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   if test -n "$MSGFMT"; then
21847   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21848 else
21849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21850 for as_dir in $PATH
21851 do
21852   IFS=$as_save_IFS
21853   test -z "$as_dir" && as_dir=.
21854   for ac_exec_ext in '' $ac_executable_extensions; do
21855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21856     ac_cv_prog_MSGFMT="$ac_prog"
21857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21858     break 2
21859   fi
21860 done
21861 done
21862
21863 fi
21864 fi
21865 MSGFMT=$ac_cv_prog_MSGFMT
21866 if test -n "$MSGFMT"; then
21867   echo "$as_me:$LINENO: result: $MSGFMT" >&5
21868 echo "${ECHO_T}$MSGFMT" >&6
21869 else
21870   echo "$as_me:$LINENO: result: no" >&5
21871 echo "${ECHO_T}no" >&6
21872 fi
21873
21874   test -n "$MSGFMT" && break
21875 done
21876
21877   if test -z "$MSGFMT"; then
21878     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21879 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21880    { (exit 1); exit 1; }; }
21881   fi
21882   for ac_prog in msgmerge
21883 do
21884   # Extract the first word of "$ac_prog", so it can be a program name with args.
21885 set dummy $ac_prog; ac_word=$2
21886 echo "$as_me:$LINENO: checking for $ac_word" >&5
21887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21888 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21889   echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891   if test -n "$MSGMERGE"; then
21892   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21893 else
21894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895 for as_dir in $PATH
21896 do
21897   IFS=$as_save_IFS
21898   test -z "$as_dir" && as_dir=.
21899   for ac_exec_ext in '' $ac_executable_extensions; do
21900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21901     ac_cv_prog_MSGMERGE="$ac_prog"
21902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21903     break 2
21904   fi
21905 done
21906 done
21907
21908 fi
21909 fi
21910 MSGMERGE=$ac_cv_prog_MSGMERGE
21911 if test -n "$MSGMERGE"; then
21912   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21913 echo "${ECHO_T}$MSGMERGE" >&6
21914 else
21915   echo "$as_me:$LINENO: result: no" >&5
21916 echo "${ECHO_T}no" >&6
21917 fi
21918
21919   test -n "$MSGMERGE" && break
21920 done
21921
21922   for ac_prog in xgettext
21923 do
21924   # Extract the first word of "$ac_prog", so it can be a program name with args.
21925 set dummy $ac_prog; ac_word=$2
21926 echo "$as_me:$LINENO: checking for $ac_word" >&5
21927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21928 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21929   echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931   if test -n "$XGETTEXT"; then
21932   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21933 else
21934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21935 for as_dir in $PATH
21936 do
21937   IFS=$as_save_IFS
21938   test -z "$as_dir" && as_dir=.
21939   for ac_exec_ext in '' $ac_executable_extensions; do
21940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21941     ac_cv_prog_XGETTEXT="$ac_prog"
21942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21943     break 2
21944   fi
21945 done
21946 done
21947
21948 fi
21949 fi
21950 XGETTEXT=$ac_cv_prog_XGETTEXT
21951 if test -n "$XGETTEXT"; then
21952   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21953 echo "${ECHO_T}$XGETTEXT" >&6
21954 else
21955   echo "$as_me:$LINENO: result: no" >&5
21956 echo "${ECHO_T}no" >&6
21957 fi
21958
21959   test -n "$XGETTEXT" && break
21960 done
21961
21962
21963   # Note: share/locale is always the default, independent of $datadir
21964   localedir='${prefix}/share/locale'
21965   if test x"$prefix" = x"NONE"; then
21966     exp_localedir="$ac_default_prefix/share/locale"
21967   else
21968     exp_localedir="$prefix/share/locale"
21969   fi
21970
21971
21972
21973 cat >>confdefs.h <<_ACEOF
21974 #define LOCALEDIR "$exp_localedir"
21975 _ACEOF
21976
21977
21978 fi
21979
21980 # Check for Tcl configuration script tclConfig.sh
21981 if test "$with_tcl" = yes; then
21982     for ac_prog in tclsh tcl
21983 do
21984   # Extract the first word of "$ac_prog", so it can be a program name with args.
21985 set dummy $ac_prog; ac_word=$2
21986 echo "$as_me:$LINENO: checking for $ac_word" >&5
21987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21988 if test "${ac_cv_path_TCLSH+set}" = set; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991   case $TCLSH in
21992   [\\/]* | ?:[\\/]*)
21993   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21994   ;;
21995   *)
21996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21997 for as_dir in $PATH
21998 do
21999   IFS=$as_save_IFS
22000   test -z "$as_dir" && as_dir=.
22001   for ac_exec_ext in '' $ac_executable_extensions; do
22002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22003     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22005     break 2
22006   fi
22007 done
22008 done
22009
22010   ;;
22011 esac
22012 fi
22013 TCLSH=$ac_cv_path_TCLSH
22014
22015 if test -n "$TCLSH"; then
22016   echo "$as_me:$LINENO: result: $TCLSH" >&5
22017 echo "${ECHO_T}$TCLSH" >&6
22018 else
22019   echo "$as_me:$LINENO: result: no" >&5
22020 echo "${ECHO_T}no" >&6
22021 fi
22022
22023   test -n "$TCLSH" && break
22024 done
22025
22026 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22027 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22028 # Let user override test
22029 if test -z "$TCL_CONFIG_SH"; then
22030     pgac_test_dirs="$with_tclconfig"
22031
22032     set X $pgac_test_dirs; shift
22033     if test $# -eq 0; then
22034         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22035 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22036    { (exit 1); exit 1; }; }
22037         set X `echo 'puts $auto_path' | $TCLSH`; shift
22038     fi
22039
22040     for pgac_dir do
22041         if test -r "$pgac_dir/tclConfig.sh"; then
22042             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22043             break
22044         fi
22045     done
22046 fi
22047
22048 if test -z "$TCL_CONFIG_SH"; then
22049     echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6
22051     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22052 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22053    { (exit 1); exit 1; }; }
22054 else
22055     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22056 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22057 fi
22058
22059
22060
22061     . "$TCL_CONFIG_SH"
22062 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22063 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22064 eval TCL_LIBS=\"$TCL_LIBS\"
22065 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22066 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22067
22068         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22069     ac_save_CPPFLAGS=$CPPFLAGS
22070     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22071     if test "${ac_cv_header_tcl_h+set}" = set; then
22072   echo "$as_me:$LINENO: checking for tcl.h" >&5
22073 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22074 if test "${ac_cv_header_tcl_h+set}" = set; then
22075   echo $ECHO_N "(cached) $ECHO_C" >&6
22076 fi
22077 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22078 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22079 else
22080   # Is the header compilable?
22081 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22082 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22083 cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h.  */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h.  */
22089 $ac_includes_default
22090 #include <tcl.h>
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22094   (eval $ac_compile) 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } &&
22101          { ac_try='test -z "$ac_c_werror_flag"
22102                          || test ! -s conftest.err'
22103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104   (eval $ac_try) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; } &&
22108          { ac_try='test -s conftest.$ac_objext'
22109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110   (eval $ac_try) 2>&5
22111   ac_status=$?
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); }; }; then
22114   ac_header_compiler=yes
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_header_compiler=no
22120 fi
22121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22123 echo "${ECHO_T}$ac_header_compiler" >&6
22124
22125 # Is the header present?
22126 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22127 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 #include <tcl.h>
22135 _ACEOF
22136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } >/dev/null; then
22144   if test -s conftest.err; then
22145     ac_cpp_err=$ac_c_preproc_warn_flag
22146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22147   else
22148     ac_cpp_err=
22149   fi
22150 else
22151   ac_cpp_err=yes
22152 fi
22153 if test -z "$ac_cpp_err"; then
22154   ac_header_preproc=yes
22155 else
22156   echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159   ac_header_preproc=no
22160 fi
22161 rm -f conftest.err conftest.$ac_ext
22162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22163 echo "${ECHO_T}$ac_header_preproc" >&6
22164
22165 # So?  What about this header?
22166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22167   yes:no: )
22168     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22169 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22171 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22172     ac_header_preproc=yes
22173     ;;
22174   no:yes:* )
22175     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22176 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22177     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
22178 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22180 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
22182 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22184 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22185     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22186 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22187     (
22188       cat <<\_ASBOX
22189 ## ---------------------------------------- ##
22190 ## Report this to pgsql-bugs@postgresql.org ##
22191 ## ---------------------------------------- ##
22192 _ASBOX
22193     ) |
22194       sed "s/^/$as_me: WARNING:     /" >&2
22195     ;;
22196 esac
22197 echo "$as_me:$LINENO: checking for tcl.h" >&5
22198 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22199 if test "${ac_cv_header_tcl_h+set}" = set; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202   ac_cv_header_tcl_h=$ac_header_preproc
22203 fi
22204 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22205 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22206
22207 fi
22208 if test $ac_cv_header_tcl_h = yes; then
22209   :
22210 else
22211   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22212 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22213    { (exit 1); exit 1; }; }
22214 fi
22215
22216
22217     CPPFLAGS=$ac_save_CPPFLAGS
22218 fi
22219
22220 #
22221 # Check for DocBook and tools
22222 #
22223 for ac_prog in onsgmls nsgmls
22224 do
22225   # Extract the first word of "$ac_prog", so it can be a program name with args.
22226 set dummy $ac_prog; ac_word=$2
22227 echo "$as_me:$LINENO: checking for $ac_word" >&5
22228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22229 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232   if test -n "$NSGMLS"; then
22233   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22234 else
22235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22236 for as_dir in $PATH
22237 do
22238   IFS=$as_save_IFS
22239   test -z "$as_dir" && as_dir=.
22240   for ac_exec_ext in '' $ac_executable_extensions; do
22241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22242     ac_cv_prog_NSGMLS="$ac_prog"
22243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22244     break 2
22245   fi
22246 done
22247 done
22248
22249 fi
22250 fi
22251 NSGMLS=$ac_cv_prog_NSGMLS
22252 if test -n "$NSGMLS"; then
22253   echo "$as_me:$LINENO: result: $NSGMLS" >&5
22254 echo "${ECHO_T}$NSGMLS" >&6
22255 else
22256   echo "$as_me:$LINENO: result: no" >&5
22257 echo "${ECHO_T}no" >&6
22258 fi
22259
22260   test -n "$NSGMLS" && break
22261 done
22262
22263 for ac_prog in openjade jade
22264 do
22265   # Extract the first word of "$ac_prog", so it can be a program name with args.
22266 set dummy $ac_prog; ac_word=$2
22267 echo "$as_me:$LINENO: checking for $ac_word" >&5
22268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22269 if test "${ac_cv_prog_JADE+set}" = set; then
22270   echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272   if test -n "$JADE"; then
22273   ac_cv_prog_JADE="$JADE" # Let the user override the test.
22274 else
22275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22276 for as_dir in $PATH
22277 do
22278   IFS=$as_save_IFS
22279   test -z "$as_dir" && as_dir=.
22280   for ac_exec_ext in '' $ac_executable_extensions; do
22281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22282     ac_cv_prog_JADE="$ac_prog"
22283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22284     break 2
22285   fi
22286 done
22287 done
22288
22289 fi
22290 fi
22291 JADE=$ac_cv_prog_JADE
22292 if test -n "$JADE"; then
22293   echo "$as_me:$LINENO: result: $JADE" >&5
22294 echo "${ECHO_T}$JADE" >&6
22295 else
22296   echo "$as_me:$LINENO: result: no" >&5
22297 echo "${ECHO_T}no" >&6
22298 fi
22299
22300   test -n "$JADE" && break
22301 done
22302
22303
22304 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22305 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22306 if test "${pgac_cv_check_docbook+set}" = set; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   cat >conftest.sgml <<EOF
22310 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22311 <book>
22312  <title>test</title>
22313  <chapter>
22314   <title>random</title>
22315    <sect1>
22316     <title>testsect</title>
22317     <para>text</para>
22318   </sect1>
22319  </chapter>
22320 </book>
22321 EOF
22322
22323 pgac_cv_check_docbook=no
22324
22325 if test -n "$NSGMLS"; then
22326   $NSGMLS -s conftest.sgml 1>&5 2>&1
22327   if test $? -eq 0; then
22328     pgac_cv_check_docbook=yes
22329   fi
22330 fi
22331 rm -f conftest.sgml
22332 fi
22333 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22334 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22335
22336 have_docbook=$pgac_cv_check_docbook
22337
22338
22339 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22340 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22341 if test "${pgac_cv_path_stylesheets+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   if test -n "$DOCBOOKSTYLE"; then
22345   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22346 else
22347   for pgac_prefix in /usr /usr/local /opt; do
22348     for pgac_infix in share lib; do
22349       for pgac_postfix in \
22350         sgml/stylesheets/nwalsh-modular \
22351         sgml/stylesheets/docbook \
22352                 sgml/docbook-dsssl \
22353         sgml/docbook/dsssl/modular \
22354         sgml/docbook/stylesheet/dsssl/modular \
22355         sgml/docbook/dsssl-stylesheets
22356       do
22357         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22358         if test -r "$pgac_candidate/html/docbook.dsl" \
22359            && test -r "$pgac_candidate/print/docbook.dsl"
22360         then
22361           pgac_cv_path_stylesheets=$pgac_candidate
22362           break 3
22363         fi
22364       done
22365     done
22366   done
22367 fi
22368 fi
22369
22370 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22371
22372 if test -n "$DOCBOOKSTYLE"; then
22373   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22374 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22375 else
22376   echo "$as_me:$LINENO: result: no" >&5
22377 echo "${ECHO_T}no" >&6
22378 fi
22379 if test -n "$DOCBOOKSTYLE"; then
22380   for ac_prog in collateindex.pl
22381 do
22382   # Extract the first word of "$ac_prog", so it can be a program name with args.
22383 set dummy $ac_prog; ac_word=$2
22384 echo "$as_me:$LINENO: checking for $ac_word" >&5
22385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22386 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   case $COLLATEINDEX in
22390   [\\/]* | ?:[\\/]*)
22391   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22392   ;;
22393   *)
22394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22395 for as_dir in $DOCBOOKSTYLE/bin $PATH
22396 do
22397   IFS=$as_save_IFS
22398   test -z "$as_dir" && as_dir=.
22399   for ac_exec_ext in '' $ac_executable_extensions; do
22400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22401     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22403     break 2
22404   fi
22405 done
22406 done
22407
22408   ;;
22409 esac
22410 fi
22411 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22412
22413 if test -n "$COLLATEINDEX"; then
22414   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22415 echo "${ECHO_T}$COLLATEINDEX" >&6
22416 else
22417   echo "$as_me:$LINENO: result: no" >&5
22418 echo "${ECHO_T}no" >&6
22419 fi
22420
22421   test -n "$COLLATEINDEX" && break
22422 done
22423
22424 else
22425   for ac_prog in collateindex.pl
22426 do
22427   # Extract the first word of "$ac_prog", so it can be a program name with args.
22428 set dummy $ac_prog; ac_word=$2
22429 echo "$as_me:$LINENO: checking for $ac_word" >&5
22430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22431 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434   case $COLLATEINDEX in
22435   [\\/]* | ?:[\\/]*)
22436   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22437   ;;
22438   *)
22439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22440 for as_dir in $PATH
22441 do
22442   IFS=$as_save_IFS
22443   test -z "$as_dir" && as_dir=.
22444   for ac_exec_ext in '' $ac_executable_extensions; do
22445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22446     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22448     break 2
22449   fi
22450 done
22451 done
22452
22453   ;;
22454 esac
22455 fi
22456 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22457
22458 if test -n "$COLLATEINDEX"; then
22459   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22460 echo "${ECHO_T}$COLLATEINDEX" >&6
22461 else
22462   echo "$as_me:$LINENO: result: no" >&5
22463 echo "${ECHO_T}no" >&6
22464 fi
22465
22466   test -n "$COLLATEINDEX" && break
22467 done
22468
22469 fi
22470 for ac_prog in sgmlspl
22471 do
22472   # Extract the first word of "$ac_prog", so it can be a program name with args.
22473 set dummy $ac_prog; ac_word=$2
22474 echo "$as_me:$LINENO: checking for $ac_word" >&5
22475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22476 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   if test -n "$SGMLSPL"; then
22480   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22481 else
22482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22483 for as_dir in $PATH
22484 do
22485   IFS=$as_save_IFS
22486   test -z "$as_dir" && as_dir=.
22487   for ac_exec_ext in '' $ac_executable_extensions; do
22488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22489     ac_cv_prog_SGMLSPL="$ac_prog"
22490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22491     break 2
22492   fi
22493 done
22494 done
22495
22496 fi
22497 fi
22498 SGMLSPL=$ac_cv_prog_SGMLSPL
22499 if test -n "$SGMLSPL"; then
22500   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22501 echo "${ECHO_T}$SGMLSPL" >&6
22502 else
22503   echo "$as_me:$LINENO: result: no" >&5
22504 echo "${ECHO_T}no" >&6
22505 fi
22506
22507   test -n "$SGMLSPL" && break
22508 done
22509
22510
22511 # Thread testing
22512
22513 # We have to run the thread test near the end so we have all our symbols
22514 # defined.  Cross compiling throws a warning.
22515 #
22516 if test "$enable_thread_safety_force" = yes; then
22517 if test x"$template" != x"win32"
22518 then
22519   { echo "$as_me:$LINENO: WARNING:
22520 *** Skipping thread test program.  --enable-thread-safety-force was used.
22521 *** Run the program in src/test/thread on the your machine and add
22522 proper locking function calls to your applications to guarantee thread
22523 safety.
22524 " >&5
22525 echo "$as_me: WARNING:
22526 *** Skipping thread test program.  --enable-thread-safety-force was used.
22527 *** Run the program in src/test/thread on the your machine and add
22528 proper locking function calls to your applications to guarantee thread
22529 safety.
22530 " >&2;}
22531 else
22532 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22533 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22534 fi
22535 elif test "$enable_thread_safety" = yes; then
22536 if test x"$template" != x"win32"
22537 then
22538 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22539 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22540
22541 _CFLAGS="$CFLAGS"
22542 _LIBS="$LIBS"
22543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22544 LIBS="$LIBS $PTHREAD_LIBS"
22545 if test "$cross_compiling" = yes; then
22546   echo "$as_me:$LINENO: result: maybe" >&5
22547 echo "${ECHO_T}maybe" >&6
22548   { echo "$as_me:$LINENO: WARNING:
22549 *** Skipping thread test program because of cross-compile build.
22550 *** Run the program in src/test/thread on the target machine.
22551 " >&5
22552 echo "$as_me: WARNING:
22553 *** Skipping thread test program because of cross-compile build.
22554 *** Run the program in src/test/thread on the target machine.
22555 " >&2;}
22556 else
22557   cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563 #include "$srcdir/src/test/thread/thread_test.c"
22564 _ACEOF
22565 rm -f conftest$ac_exeext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567   (eval $ac_link) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572   (eval $ac_try) 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); }; }; then
22576   echo "$as_me:$LINENO: result: yes" >&5
22577 echo "${ECHO_T}yes" >&6
22578 else
22579   echo "$as_me: program exited with status $ac_status" >&5
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 ( exit $ac_status )
22584 echo "$as_me:$LINENO: result: no" >&5
22585 echo "${ECHO_T}no" >&6
22586   { { echo "$as_me:$LINENO: error:
22587 *** Thread test program failed.  Your platform is not thread-safe.
22588 *** Check the file 'config.log'for the exact reason.
22589 ***
22590 *** You can use the configure option --enable-thread-safety-force
22591 *** to force threads to be enabled.  However, you must then run
22592 *** the program in src/test/thread and add locking function calls
22593 *** to your applications to guarantee thread safety.
22594 " >&5
22595 echo "$as_me: error:
22596 *** Thread test program failed.  Your platform is not thread-safe.
22597 *** Check the file 'config.log'for the exact reason.
22598 ***
22599 *** You can use the configure option --enable-thread-safety-force
22600 *** to force threads to be enabled.  However, you must then run
22601 *** the program in src/test/thread and add locking function calls
22602 *** to your applications to guarantee thread safety.
22603 " >&2;}
22604    { (exit 1); exit 1; }; }
22605 fi
22606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 fi
22608 CFLAGS="$_CFLAGS"
22609 LIBS="$_LIBS"
22610 else
22611 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22612 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22613 fi
22614 fi
22615
22616 # prepare build tree if outside source tree
22617 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22618 # Note 2: /bin/pwd might be better than shell's built-in at getting
22619 #         a symlink-free name.
22620 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22621   vpath_build=no
22622 else
22623   vpath_build=yes
22624   if test "$no_create" != yes; then
22625     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22626     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22627     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22628       || { { echo "$as_me:$LINENO: error: failed" >&5
22629 echo "$as_me: error: failed" >&2;}
22630    { (exit 1); exit 1; }; }
22631     echo "$as_me:$LINENO: result: done" >&5
22632 echo "${ECHO_T}done" >&6
22633   fi
22634 fi
22635
22636
22637
22638                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22639
22640
22641                                                             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}"
22642
22643
22644 if test "$PORTNAME" = "win32"; then
22645           ac_config_commands="$ac_config_commands check_win32_symlinks"
22646
22647 fi
22648
22649           ac_config_headers="$ac_config_headers src/include/pg_config.h"
22650
22651
22652 cat >confcache <<\_ACEOF
22653 # This file is a shell script that caches the results of configure
22654 # tests run on this system so they can be shared between configure
22655 # scripts and configure runs, see configure's option --config-cache.
22656 # It is not useful on other systems.  If it contains results you don't
22657 # want to keep, you may remove or edit it.
22658 #
22659 # config.status only pays attention to the cache file if you give it
22660 # the --recheck option to rerun configure.
22661 #
22662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22664 # following values.
22665
22666 _ACEOF
22667
22668 # The following way of writing the cache mishandles newlines in values,
22669 # but we know of no workaround that is simple, portable, and efficient.
22670 # So, don't put newlines in cache variables' values.
22671 # Ultrix sh set writes to stderr and can't be redirected directly,
22672 # and sets the high bit in the cache file unless we assign to the vars.
22673 {
22674   (set) 2>&1 |
22675     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22676     *ac_space=\ *)
22677       # `set' does not quote correctly, so add quotes (double-quote
22678       # substitution turns \\\\ into \\, and sed turns \\ into \).
22679       sed -n \
22680         "s/'/'\\\\''/g;
22681           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22682       ;;
22683     *)
22684       # `set' quotes correctly as required by POSIX, so do not add quotes.
22685       sed -n \
22686         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22687       ;;
22688     esac;
22689 } |
22690   sed '
22691      t clear
22692      : clear
22693      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22694      t end
22695      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22696      : end' >>confcache
22697 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22698   if test -w $cache_file; then
22699     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22700     cat confcache >$cache_file
22701   else
22702     echo "not updating unwritable cache $cache_file"
22703   fi
22704 fi
22705 rm -f confcache
22706
22707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22708 # Let make expand exec_prefix.
22709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22710
22711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22713 # trailing colons and then remove the whole line if VPATH becomes empty
22714 # (actually we leave an empty line to preserve line numbers).
22715 if test "x$srcdir" = x.; then
22716   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22717 s/:*\$(srcdir):*/:/;
22718 s/:*\${srcdir}:*/:/;
22719 s/:*@srcdir@:*/:/;
22720 s/^\([^=]*=[     ]*\):*/\1/;
22721 s/:*$//;
22722 s/^[^=]*=[       ]*$//;
22723 }'
22724 fi
22725
22726 DEFS=-DHAVE_CONFIG_H
22727
22728 ac_libobjs=
22729 ac_ltlibobjs=
22730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22731   # 1. Remove the extension, and $U if already installed.
22732   ac_i=`echo "$ac_i" |
22733          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22734   # 2. Add them.
22735   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22736   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22737 done
22738 LIBOBJS=$ac_libobjs
22739
22740 LTLIBOBJS=$ac_ltlibobjs
22741
22742
22743
22744 : ${CONFIG_STATUS=./config.status}
22745 ac_clean_files_save=$ac_clean_files
22746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22749 cat >$CONFIG_STATUS <<_ACEOF
22750 #! $SHELL
22751 # Generated by $as_me.
22752 # Run this file to recreate the current configuration.
22753 # Compiler output produced by configure, useful for debugging
22754 # configure, is in config.log if it exists.
22755
22756 debug=false
22757 ac_cs_recheck=false
22758 ac_cs_silent=false
22759 SHELL=\${CONFIG_SHELL-$SHELL}
22760 _ACEOF
22761
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22763 ## --------------------- ##
22764 ## M4sh Initialization.  ##
22765 ## --------------------- ##
22766
22767 # Be Bourne compatible
22768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22769   emulate sh
22770   NULLCMD=:
22771   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22772   # is contrary to our usage.  Disable this feature.
22773   alias -g '${1+"$@"}'='"$@"'
22774 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22775   set -o posix
22776 fi
22777 DUALCASE=1; export DUALCASE # for MKS sh
22778
22779 # Support unset when possible.
22780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22781   as_unset=unset
22782 else
22783   as_unset=false
22784 fi
22785
22786
22787 # Work around bugs in pre-3.0 UWIN ksh.
22788 $as_unset ENV MAIL MAILPATH
22789 PS1='$ '
22790 PS2='> '
22791 PS4='+ '
22792
22793 # NLS nuisances.
22794 for as_var in \
22795   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22796   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22797   LC_TELEPHONE LC_TIME
22798 do
22799   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22800     eval $as_var=C; export $as_var
22801   else
22802     $as_unset $as_var
22803   fi
22804 done
22805
22806 # Required to use basename.
22807 if expr a : '\(a\)' >/dev/null 2>&1; then
22808   as_expr=expr
22809 else
22810   as_expr=false
22811 fi
22812
22813 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22814   as_basename=basename
22815 else
22816   as_basename=false
22817 fi
22818
22819
22820 # Name of the executable.
22821 as_me=`$as_basename "$0" ||
22822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22823          X"$0" : 'X\(//\)$' \| \
22824          X"$0" : 'X\(/\)$' \| \
22825          .     : '\(.\)' 2>/dev/null ||
22826 echo X/"$0" |
22827     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22828           /^X\/\(\/\/\)$/{ s//\1/; q; }
22829           /^X\/\(\/\).*/{ s//\1/; q; }
22830           s/.*/./; q'`
22831
22832
22833 # PATH needs CR, and LINENO needs CR and PATH.
22834 # Avoid depending upon Character Ranges.
22835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22838 as_cr_digits='0123456789'
22839 as_cr_alnum=$as_cr_Letters$as_cr_digits
22840
22841 # The user is always right.
22842 if test "${PATH_SEPARATOR+set}" != set; then
22843   echo "#! /bin/sh" >conf$$.sh
22844   echo  "exit 0"   >>conf$$.sh
22845   chmod +x conf$$.sh
22846   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22847     PATH_SEPARATOR=';'
22848   else
22849     PATH_SEPARATOR=:
22850   fi
22851   rm -f conf$$.sh
22852 fi
22853
22854
22855   as_lineno_1=$LINENO
22856   as_lineno_2=$LINENO
22857   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22858   test "x$as_lineno_1" != "x$as_lineno_2" &&
22859   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22860   # Find who we are.  Look in the path if we contain no path at all
22861   # relative or not.
22862   case $0 in
22863     *[\\/]* ) as_myself=$0 ;;
22864     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22865 for as_dir in $PATH
22866 do
22867   IFS=$as_save_IFS
22868   test -z "$as_dir" && as_dir=.
22869   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22870 done
22871
22872        ;;
22873   esac
22874   # We did not find ourselves, most probably we were run as `sh COMMAND'
22875   # in which case we are not to be found in the path.
22876   if test "x$as_myself" = x; then
22877     as_myself=$0
22878   fi
22879   if test ! -f "$as_myself"; then
22880     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22881 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22882    { (exit 1); exit 1; }; }
22883   fi
22884   case $CONFIG_SHELL in
22885   '')
22886     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22888 do
22889   IFS=$as_save_IFS
22890   test -z "$as_dir" && as_dir=.
22891   for as_base in sh bash ksh sh5; do
22892          case $as_dir in
22893          /*)
22894            if ("$as_dir/$as_base" -c '
22895   as_lineno_1=$LINENO
22896   as_lineno_2=$LINENO
22897   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898   test "x$as_lineno_1" != "x$as_lineno_2" &&
22899   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22900              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22901              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22902              CONFIG_SHELL=$as_dir/$as_base
22903              export CONFIG_SHELL
22904              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22905            fi;;
22906          esac
22907        done
22908 done
22909 ;;
22910   esac
22911
22912   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22913   # uniformly replaced by the line number.  The first 'sed' inserts a
22914   # line-number line before each line; the second 'sed' does the real
22915   # work.  The second script uses 'N' to pair each line-number line
22916   # with the numbered line, and appends trailing '-' during
22917   # substitution so that $LINENO is not a special case at line end.
22918   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22919   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22920   sed '=' <$as_myself |
22921     sed '
22922       N
22923       s,$,-,
22924       : loop
22925       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22926       t loop
22927       s,-$,,
22928       s,^['$as_cr_digits']*\n,,
22929     ' >$as_me.lineno &&
22930   chmod +x $as_me.lineno ||
22931     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22932 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22933    { (exit 1); exit 1; }; }
22934
22935   # Don't try to exec as it changes $[0], causing all sort of problems
22936   # (the dirname of $[0] is not the place where we might find the
22937   # original and so on.  Autoconf is especially sensible to this).
22938   . ./$as_me.lineno
22939   # Exit status is that of the last command.
22940   exit
22941 }
22942
22943
22944 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22945   *c*,-n*) ECHO_N= ECHO_C='
22946 ' ECHO_T='      ' ;;
22947   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22948   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22949 esac
22950
22951 if expr a : '\(a\)' >/dev/null 2>&1; then
22952   as_expr=expr
22953 else
22954   as_expr=false
22955 fi
22956
22957 rm -f conf$$ conf$$.exe conf$$.file
22958 echo >conf$$.file
22959 if ln -s conf$$.file conf$$ 2>/dev/null; then
22960   # We could just check for DJGPP; but this test a) works b) is more generic
22961   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22962   if test -f conf$$.exe; then
22963     # Don't use ln at all; we don't have any links
22964     as_ln_s='cp -p'
22965   else
22966     as_ln_s='ln -s'
22967   fi
22968 elif ln conf$$.file conf$$ 2>/dev/null; then
22969   as_ln_s=ln
22970 else
22971   as_ln_s='cp -p'
22972 fi
22973 rm -f conf$$ conf$$.exe conf$$.file
22974
22975 if mkdir -p . 2>/dev/null; then
22976   as_mkdir_p=:
22977 else
22978   test -d ./-p && rmdir ./-p
22979   as_mkdir_p=false
22980 fi
22981
22982 as_executable_p="test -f"
22983
22984 # Sed expression to map a string onto a valid CPP name.
22985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22986
22987 # Sed expression to map a string onto a valid variable name.
22988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22989
22990
22991 # IFS
22992 # We need space, tab and new line, in precisely that order.
22993 as_nl='
22994 '
22995 IFS="   $as_nl"
22996
22997 # CDPATH.
22998 $as_unset CDPATH
22999
23000 exec 6>&1
23001
23002 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23003 # report actual input values of CONFIG_FILES etc. instead of their
23004 # values after options handling.  Logging --version etc. is OK.
23005 exec 5>>config.log
23006 {
23007   echo
23008   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23009 ## Running $as_me. ##
23010 _ASBOX
23011 } >&5
23012 cat >&5 <<_CSEOF
23013
23014 This file was extended by PostgreSQL $as_me 8.2devel, which was
23015 generated by GNU Autoconf 2.59.  Invocation command line was
23016
23017   CONFIG_FILES    = $CONFIG_FILES
23018   CONFIG_HEADERS  = $CONFIG_HEADERS
23019   CONFIG_LINKS    = $CONFIG_LINKS
23020   CONFIG_COMMANDS = $CONFIG_COMMANDS
23021   $ $0 $@
23022
23023 _CSEOF
23024 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23025 echo >&5
23026 _ACEOF
23027
23028 # Files that config.status was made for.
23029 if test -n "$ac_config_files"; then
23030   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23031 fi
23032
23033 if test -n "$ac_config_headers"; then
23034   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23035 fi
23036
23037 if test -n "$ac_config_links"; then
23038   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23039 fi
23040
23041 if test -n "$ac_config_commands"; then
23042   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23043 fi
23044
23045 cat >>$CONFIG_STATUS <<\_ACEOF
23046
23047 ac_cs_usage="\
23048 \`$as_me' instantiates files from templates according to the
23049 current configuration.
23050
23051 Usage: $0 [OPTIONS] [FILE]...
23052
23053   -h, --help       print this help, then exit
23054   -V, --version    print version number, then exit
23055   -q, --quiet      do not print progress messages
23056   -d, --debug      don't remove temporary files
23057       --recheck    update $as_me by reconfiguring in the same conditions
23058   --file=FILE[:TEMPLATE]
23059                    instantiate the configuration file FILE
23060   --header=FILE[:TEMPLATE]
23061                    instantiate the configuration header FILE
23062
23063 Configuration files:
23064 $config_files
23065
23066 Configuration headers:
23067 $config_headers
23068
23069 Configuration links:
23070 $config_links
23071
23072 Configuration commands:
23073 $config_commands
23074
23075 Report bugs to <bug-autoconf@gnu.org>."
23076 _ACEOF
23077
23078 cat >>$CONFIG_STATUS <<_ACEOF
23079 ac_cs_version="\\
23080 PostgreSQL config.status 8.2devel
23081 configured by $0, generated by GNU Autoconf 2.59,
23082   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23083
23084 Copyright (C) 2003 Free Software Foundation, Inc.
23085 This config.status script is free software; the Free Software Foundation
23086 gives unlimited permission to copy, distribute and modify it."
23087 srcdir=$srcdir
23088 _ACEOF
23089
23090 cat >>$CONFIG_STATUS <<\_ACEOF
23091 # If no file are specified by the user, then we need to provide default
23092 # value.  By we need to know if files were specified by the user.
23093 ac_need_defaults=:
23094 while test $# != 0
23095 do
23096   case $1 in
23097   --*=*)
23098     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23099     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23100     ac_shift=:
23101     ;;
23102   -*)
23103     ac_option=$1
23104     ac_optarg=$2
23105     ac_shift=shift
23106     ;;
23107   *) # This is not an option, so the user has probably given explicit
23108      # arguments.
23109      ac_option=$1
23110      ac_need_defaults=false;;
23111   esac
23112
23113   case $ac_option in
23114   # Handling of the options.
23115 _ACEOF
23116 cat >>$CONFIG_STATUS <<\_ACEOF
23117   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23118     ac_cs_recheck=: ;;
23119   --version | --vers* | -V )
23120     echo "$ac_cs_version"; exit 0 ;;
23121   --he | --h)
23122     # Conflict between --help and --header
23123     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23124 Try \`$0 --help' for more information." >&5
23125 echo "$as_me: error: ambiguous option: $1
23126 Try \`$0 --help' for more information." >&2;}
23127    { (exit 1); exit 1; }; };;
23128   --help | --hel | -h )
23129     echo "$ac_cs_usage"; exit 0 ;;
23130   --debug | --d* | -d )
23131     debug=: ;;
23132   --file | --fil | --fi | --f )
23133     $ac_shift
23134     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23135     ac_need_defaults=false;;
23136   --header | --heade | --head | --hea )
23137     $ac_shift
23138     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23139     ac_need_defaults=false;;
23140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23141   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23142     ac_cs_silent=: ;;
23143
23144   # This is an error.
23145   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23146 Try \`$0 --help' for more information." >&5
23147 echo "$as_me: error: unrecognized option: $1
23148 Try \`$0 --help' for more information." >&2;}
23149    { (exit 1); exit 1; }; } ;;
23150
23151   *) ac_config_targets="$ac_config_targets $1" ;;
23152
23153   esac
23154   shift
23155 done
23156
23157 ac_configure_extra_args=
23158
23159 if $ac_cs_silent; then
23160   exec 6>/dev/null
23161   ac_configure_extra_args="$ac_configure_extra_args --silent"
23162 fi
23163
23164 _ACEOF
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23169 fi
23170
23171 _ACEOF
23172
23173
23174
23175
23176
23177 cat >>$CONFIG_STATUS <<\_ACEOF
23178 for ac_config_target in $ac_config_targets
23179 do
23180   case "$ac_config_target" in
23181   # Handling of arguments.
23182   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23183   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23184   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23185   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23186   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23187   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23188   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23189   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23190   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23191   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23192   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23193   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23194 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23195    { (exit 1); exit 1; }; };;
23196   esac
23197 done
23198
23199 # If the user did not use the arguments to specify the items to instantiate,
23200 # then the envvar interface is used.  Set only those that are not.
23201 # We use the long form for the default assignment because of an extremely
23202 # bizarre bug on SunOS 4.1.3.
23203 if $ac_need_defaults; then
23204   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23205   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23206   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23207   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23208 fi
23209
23210 # Have a temporary directory for convenience.  Make it in the build tree
23211 # simply because there is no reason to put it here, and in addition,
23212 # creating and moving files from /tmp can sometimes cause problems.
23213 # Create a temporary directory, and hook for its removal unless debugging.
23214 $debug ||
23215 {
23216   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23217   trap '{ (exit 1); exit 1; }' 1 2 13 15
23218 }
23219
23220 # Create a (secure) tmp directory for tmp files.
23221
23222 {
23223   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23224   test -n "$tmp" && test -d "$tmp"
23225 }  ||
23226 {
23227   tmp=./confstat$$-$RANDOM
23228   (umask 077 && mkdir $tmp)
23229 } ||
23230 {
23231    echo "$me: cannot create a temporary directory in ." >&2
23232    { (exit 1); exit 1; }
23233 }
23234
23235 _ACEOF
23236
23237 cat >>$CONFIG_STATUS <<_ACEOF
23238
23239 #
23240 # CONFIG_FILES section.
23241 #
23242
23243 # No need to generate the scripts if there are no CONFIG_FILES.
23244 # This happens for instance when ./config.status config.h
23245 if test -n "\$CONFIG_FILES"; then
23246   # Protect against being on the right side of a sed subst in config.status.
23247   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23248    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23249 s,@SHELL@,$SHELL,;t t
23250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23256 s,@exec_prefix@,$exec_prefix,;t t
23257 s,@prefix@,$prefix,;t t
23258 s,@program_transform_name@,$program_transform_name,;t t
23259 s,@bindir@,$bindir,;t t
23260 s,@sbindir@,$sbindir,;t t
23261 s,@libexecdir@,$libexecdir,;t t
23262 s,@datadir@,$datadir,;t t
23263 s,@sysconfdir@,$sysconfdir,;t t
23264 s,@sharedstatedir@,$sharedstatedir,;t t
23265 s,@localstatedir@,$localstatedir,;t t
23266 s,@libdir@,$libdir,;t t
23267 s,@includedir@,$includedir,;t t
23268 s,@oldincludedir@,$oldincludedir,;t t
23269 s,@infodir@,$infodir,;t t
23270 s,@mandir@,$mandir,;t t
23271 s,@build_alias@,$build_alias,;t t
23272 s,@host_alias@,$host_alias,;t t
23273 s,@target_alias@,$target_alias,;t t
23274 s,@DEFS@,$DEFS,;t t
23275 s,@ECHO_C@,$ECHO_C,;t t
23276 s,@ECHO_N@,$ECHO_N,;t t
23277 s,@ECHO_T@,$ECHO_T,;t t
23278 s,@LIBS@,$LIBS,;t t
23279 s,@configure_args@,$configure_args,;t t
23280 s,@build@,$build,;t t
23281 s,@build_cpu@,$build_cpu,;t t
23282 s,@build_vendor@,$build_vendor,;t t
23283 s,@build_os@,$build_os,;t t
23284 s,@host@,$host,;t t
23285 s,@host_cpu@,$host_cpu,;t t
23286 s,@host_vendor@,$host_vendor,;t t
23287 s,@host_os@,$host_os,;t t
23288 s,@PORTNAME@,$PORTNAME,;t t
23289 s,@docdir@,$docdir,;t t
23290 s,@enable_nls@,$enable_nls,;t t
23291 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23292 s,@default_port@,$default_port,;t t
23293 s,@enable_shared@,$enable_shared,;t t
23294 s,@enable_rpath@,$enable_rpath,;t t
23295 s,@enable_debug@,$enable_debug,;t t
23296 s,@CC@,$CC,;t t
23297 s,@CFLAGS@,$CFLAGS,;t t
23298 s,@LDFLAGS@,$LDFLAGS,;t t
23299 s,@CPPFLAGS@,$CPPFLAGS,;t t
23300 s,@ac_ct_CC@,$ac_ct_CC,;t t
23301 s,@EXEEXT@,$EXEEXT,;t t
23302 s,@OBJEXT@,$OBJEXT,;t t
23303 s,@CPP@,$CPP,;t t
23304 s,@GCC@,$GCC,;t t
23305 s,@TAS@,$TAS,;t t
23306 s,@autodepend@,$autodepend,;t t
23307 s,@INCLUDES@,$INCLUDES,;t t
23308 s,@enable_thread_safety@,$enable_thread_safety,;t t
23309 s,@with_tcl@,$with_tcl,;t t
23310 s,@with_perl@,$with_perl,;t t
23311 s,@with_python@,$with_python,;t t
23312 s,@with_krb5@,$with_krb5,;t t
23313 s,@krb_srvtab@,$krb_srvtab,;t t
23314 s,@with_pam@,$with_pam,;t t
23315 s,@with_ldap@,$with_ldap,;t t
23316 s,@with_bonjour@,$with_bonjour,;t t
23317 s,@with_openssl@,$with_openssl,;t t
23318 s,@with_zlib@,$with_zlib,;t t
23319 s,@EGREP@,$EGREP,;t t
23320 s,@ELF_SYS@,$ELF_SYS,;t t
23321 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23322 s,@AWK@,$AWK,;t t
23323 s,@FLEX@,$FLEX,;t t
23324 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23325 s,@LN_S@,$LN_S,;t t
23326 s,@LD@,$LD,;t t
23327 s,@with_gnu_ld@,$with_gnu_ld,;t t
23328 s,@ld_R_works@,$ld_R_works,;t t
23329 s,@RANLIB@,$RANLIB,;t t
23330 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23331 s,@TAR@,$TAR,;t t
23332 s,@STRIP@,$STRIP,;t t
23333 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23334 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23335 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23336 s,@YACC@,$YACC,;t t
23337 s,@YFLAGS@,$YFLAGS,;t t
23338 s,@PERL@,$PERL,;t t
23339 s,@perl_archlibexp@,$perl_archlibexp,;t t
23340 s,@perl_privlibexp@,$perl_privlibexp,;t t
23341 s,@perl_useshrplib@,$perl_useshrplib,;t t
23342 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23343 s,@PYTHON@,$PYTHON,;t t
23344 s,@python_version@,$python_version,;t t
23345 s,@python_configdir@,$python_configdir,;t t
23346 s,@python_includespec@,$python_includespec,;t t
23347 s,@python_libdir@,$python_libdir,;t t
23348 s,@python_libspec@,$python_libspec,;t t
23349 s,@python_additional_libs@,$python_additional_libs,;t t
23350 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23351 s,@LIBOBJS@,$LIBOBJS,;t t
23352 s,@acx_pthread_config@,$acx_pthread_config,;t t
23353 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23354 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23355 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23356 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23357 s,@MSGFMT@,$MSGFMT,;t t
23358 s,@MSGMERGE@,$MSGMERGE,;t t
23359 s,@XGETTEXT@,$XGETTEXT,;t t
23360 s,@localedir@,$localedir,;t t
23361 s,@TCLSH@,$TCLSH,;t t
23362 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23363 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23364 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23365 s,@TCL_LIBS@,$TCL_LIBS,;t t
23366 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23367 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23368 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23369 s,@NSGMLS@,$NSGMLS,;t t
23370 s,@JADE@,$JADE,;t t
23371 s,@have_docbook@,$have_docbook,;t t
23372 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23373 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23374 s,@SGMLSPL@,$SGMLSPL,;t t
23375 s,@vpath_build@,$vpath_build,;t t
23376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23377 CEOF
23378
23379 _ACEOF
23380
23381   cat >>$CONFIG_STATUS <<\_ACEOF
23382   # Split the substitutions into bite-sized pieces for seds with
23383   # small command number limits, like on Digital OSF/1 and HP-UX.
23384   ac_max_sed_lines=48
23385   ac_sed_frag=1 # Number of current file.
23386   ac_beg=1 # First line for current file.
23387   ac_end=$ac_max_sed_lines # Line after last line for current file.
23388   ac_more_lines=:
23389   ac_sed_cmds=
23390   while $ac_more_lines; do
23391     if test $ac_beg -gt 1; then
23392       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23393     else
23394       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23395     fi
23396     if test ! -s $tmp/subs.frag; then
23397       ac_more_lines=false
23398     else
23399       # The purpose of the label and of the branching condition is to
23400       # speed up the sed processing (if there are no `@' at all, there
23401       # is no need to browse any of the substitutions).
23402       # These are the two extra sed commands mentioned above.
23403       (echo ':t
23404   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23405       if test -z "$ac_sed_cmds"; then
23406         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23407       else
23408         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23409       fi
23410       ac_sed_frag=`expr $ac_sed_frag + 1`
23411       ac_beg=$ac_end
23412       ac_end=`expr $ac_end + $ac_max_sed_lines`
23413     fi
23414   done
23415   if test -z "$ac_sed_cmds"; then
23416     ac_sed_cmds=cat
23417   fi
23418 fi # test -n "$CONFIG_FILES"
23419
23420 _ACEOF
23421 cat >>$CONFIG_STATUS <<\_ACEOF
23422 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23423   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23424   case $ac_file in
23425   - | *:- | *:-:* ) # input from stdin
23426         cat >$tmp/stdin
23427         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23428         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23429   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23431   * )   ac_file_in=$ac_file.in ;;
23432   esac
23433
23434   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23435   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23437          X"$ac_file" : 'X\(//\)[^/]' \| \
23438          X"$ac_file" : 'X\(//\)$' \| \
23439          X"$ac_file" : 'X\(/\)' \| \
23440          .     : '\(.\)' 2>/dev/null ||
23441 echo X"$ac_file" |
23442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23444           /^X\(\/\/\)$/{ s//\1/; q; }
23445           /^X\(\/\).*/{ s//\1/; q; }
23446           s/.*/./; q'`
23447   { if $as_mkdir_p; then
23448     mkdir -p "$ac_dir"
23449   else
23450     as_dir="$ac_dir"
23451     as_dirs=
23452     while test ! -d "$as_dir"; do
23453       as_dirs="$as_dir $as_dirs"
23454       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23456          X"$as_dir" : 'X\(//\)[^/]' \| \
23457          X"$as_dir" : 'X\(//\)$' \| \
23458          X"$as_dir" : 'X\(/\)' \| \
23459          .     : '\(.\)' 2>/dev/null ||
23460 echo X"$as_dir" |
23461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23463           /^X\(\/\/\)$/{ s//\1/; q; }
23464           /^X\(\/\).*/{ s//\1/; q; }
23465           s/.*/./; q'`
23466     done
23467     test ! -n "$as_dirs" || mkdir $as_dirs
23468   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23470    { (exit 1); exit 1; }; }; }
23471
23472   ac_builddir=.
23473
23474 if test "$ac_dir" != .; then
23475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23476   # A "../" for each directory in $ac_dir_suffix.
23477   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23478 else
23479   ac_dir_suffix= ac_top_builddir=
23480 fi
23481
23482 case $srcdir in
23483   .)  # No --srcdir option.  We are building in place.
23484     ac_srcdir=.
23485     if test -z "$ac_top_builddir"; then
23486        ac_top_srcdir=.
23487     else
23488        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23489     fi ;;
23490   [\\/]* | ?:[\\/]* )  # Absolute path.
23491     ac_srcdir=$srcdir$ac_dir_suffix;
23492     ac_top_srcdir=$srcdir ;;
23493   *) # Relative path.
23494     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23495     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23496 esac
23497
23498 # Do not use `cd foo && pwd` to compute absolute paths, because
23499 # the directories may not exist.
23500 case `pwd` in
23501 .) ac_abs_builddir="$ac_dir";;
23502 *)
23503   case "$ac_dir" in
23504   .) ac_abs_builddir=`pwd`;;
23505   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23506   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23507   esac;;
23508 esac
23509 case $ac_abs_builddir in
23510 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23511 *)
23512   case ${ac_top_builddir}. in
23513   .) ac_abs_top_builddir=$ac_abs_builddir;;
23514   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23515   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23516   esac;;
23517 esac
23518 case $ac_abs_builddir in
23519 .) ac_abs_srcdir=$ac_srcdir;;
23520 *)
23521   case $ac_srcdir in
23522   .) ac_abs_srcdir=$ac_abs_builddir;;
23523   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23524   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23525   esac;;
23526 esac
23527 case $ac_abs_builddir in
23528 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23529 *)
23530   case $ac_top_srcdir in
23531   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23532   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23533   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23534   esac;;
23535 esac
23536
23537
23538
23539   if test x"$ac_file" != x-; then
23540     { echo "$as_me:$LINENO: creating $ac_file" >&5
23541 echo "$as_me: creating $ac_file" >&6;}
23542     rm -f "$ac_file"
23543   fi
23544   # Let's still pretend it is `configure' which instantiates (i.e., don't
23545   # use $as_me), people would be surprised to read:
23546   #    /* config.h.  Generated by config.status.  */
23547   if test x"$ac_file" = x-; then
23548     configure_input=
23549   else
23550     configure_input="$ac_file.  "
23551   fi
23552   configure_input=$configure_input"Generated from `echo $ac_file_in |
23553                                      sed 's,.*/,,'` by configure."
23554
23555   # First look for the input files in the build tree, otherwise in the
23556   # src tree.
23557   ac_file_inputs=`IFS=:
23558     for f in $ac_file_in; do
23559       case $f in
23560       -) echo $tmp/stdin ;;
23561       [\\/$]*)
23562          # Absolute (can't be DOS-style, as IFS=:)
23563          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23564 echo "$as_me: error: cannot find input file: $f" >&2;}
23565    { (exit 1); exit 1; }; }
23566          echo "$f";;
23567       *) # Relative
23568          if test -f "$f"; then
23569            # Build tree
23570            echo "$f"
23571          elif test -f "$srcdir/$f"; then
23572            # Source tree
23573            echo "$srcdir/$f"
23574          else
23575            # /dev/null tree
23576            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23577 echo "$as_me: error: cannot find input file: $f" >&2;}
23578    { (exit 1); exit 1; }; }
23579          fi;;
23580       esac
23581     done` || { (exit 1); exit 1; }
23582 _ACEOF
23583 cat >>$CONFIG_STATUS <<_ACEOF
23584   sed "$ac_vpsub
23585 $extrasub
23586 _ACEOF
23587 cat >>$CONFIG_STATUS <<\_ACEOF
23588 :t
23589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23590 s,@configure_input@,$configure_input,;t t
23591 s,@srcdir@,$ac_srcdir,;t t
23592 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23593 s,@top_srcdir@,$ac_top_srcdir,;t t
23594 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23595 s,@builddir@,$ac_builddir,;t t
23596 s,@abs_builddir@,$ac_abs_builddir,;t t
23597 s,@top_builddir@,$ac_top_builddir,;t t
23598 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23600   rm -f $tmp/stdin
23601   if test x"$ac_file" != x-; then
23602     mv $tmp/out $ac_file
23603   else
23604     cat $tmp/out
23605     rm -f $tmp/out
23606   fi
23607
23608 done
23609 _ACEOF
23610 cat >>$CONFIG_STATUS <<\_ACEOF
23611
23612 #
23613 # CONFIG_HEADER section.
23614 #
23615
23616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23618 #
23619 # ac_d sets the value in "#define NAME VALUE" lines.
23620 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23621 ac_dB='[         ].*$,\1#\2'
23622 ac_dC=' '
23623 ac_dD=',;t'
23624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23625 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23626 ac_uB='$,\1#\2define\3'
23627 ac_uC=' '
23628 ac_uD=',;t'
23629
23630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23631   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23632   case $ac_file in
23633   - | *:- | *:-:* ) # input from stdin
23634         cat >$tmp/stdin
23635         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23637   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23638         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23639   * )   ac_file_in=$ac_file.in ;;
23640   esac
23641
23642   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23643 echo "$as_me: creating $ac_file" >&6;}
23644
23645   # First look for the input files in the build tree, otherwise in the
23646   # src tree.
23647   ac_file_inputs=`IFS=:
23648     for f in $ac_file_in; do
23649       case $f in
23650       -) echo $tmp/stdin ;;
23651       [\\/$]*)
23652          # Absolute (can't be DOS-style, as IFS=:)
23653          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23654 echo "$as_me: error: cannot find input file: $f" >&2;}
23655    { (exit 1); exit 1; }; }
23656          # Do quote $f, to prevent DOS paths from being IFS'd.
23657          echo "$f";;
23658       *) # Relative
23659          if test -f "$f"; then
23660            # Build tree
23661            echo "$f"
23662          elif test -f "$srcdir/$f"; then
23663            # Source tree
23664            echo "$srcdir/$f"
23665          else
23666            # /dev/null tree
23667            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23668 echo "$as_me: error: cannot find input file: $f" >&2;}
23669    { (exit 1); exit 1; }; }
23670          fi;;
23671       esac
23672     done` || { (exit 1); exit 1; }
23673   # Remove the trailing spaces.
23674   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23675
23676 _ACEOF
23677
23678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23679 # `conftest.undefs', that substitutes the proper values into
23680 # config.h.in to produce config.h.  The first handles `#define'
23681 # templates, and the second `#undef' templates.
23682 # And first: Protect against being on the right side of a sed subst in
23683 # config.status.  Protect against being in an unquoted here document
23684 # in config.status.
23685 rm -f conftest.defines conftest.undefs
23686 # Using a here document instead of a string reduces the quoting nightmare.
23687 # Putting comments in sed scripts is not portable.
23688 #
23689 # `end' is used to avoid that the second main sed command (meant for
23690 # 0-ary CPP macros) applies to n-ary macro definitions.
23691 # See the Autoconf documentation for `clear'.
23692 cat >confdef2sed.sed <<\_ACEOF
23693 s/[\\&,]/\\&/g
23694 s,[\\$`],\\&,g
23695 t clear
23696 : clear
23697 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23698 t end
23699 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23700 : end
23701 _ACEOF
23702 # If some macros were called several times there might be several times
23703 # the same #defines, which is useless.  Nevertheless, we may not want to
23704 # sort them, since we want the *last* AC-DEFINE to be honored.
23705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23707 rm -f confdef2sed.sed
23708
23709 # This sed command replaces #undef with comments.  This is necessary, for
23710 # example, in the case of _POSIX_SOURCE, which is predefined and required
23711 # on some systems where configure will not decide to define it.
23712 cat >>conftest.undefs <<\_ACEOF
23713 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23714 _ACEOF
23715
23716 # Break up conftest.defines because some shells have a limit on the size
23717 # of here documents, and old seds have small limits too (100 cmds).
23718 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23719 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23720 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23721 echo '  :' >>$CONFIG_STATUS
23722 rm -f conftest.tail
23723 while grep . conftest.defines >/dev/null
23724 do
23725   # Write a limited-size here document to $tmp/defines.sed.
23726   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23727   # Speed up: don't consider the non `#define' lines.
23728   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23729   # Work around the forget-to-reset-the-flag bug.
23730   echo 't clr' >>$CONFIG_STATUS
23731   echo ': clr' >>$CONFIG_STATUS
23732   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23733   echo 'CEOF
23734   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23735   rm -f $tmp/in
23736   mv $tmp/out $tmp/in
23737 ' >>$CONFIG_STATUS
23738   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23739   rm -f conftest.defines
23740   mv conftest.tail conftest.defines
23741 done
23742 rm -f conftest.defines
23743 echo '  fi # grep' >>$CONFIG_STATUS
23744 echo >>$CONFIG_STATUS
23745
23746 # Break up conftest.undefs because some shells have a limit on the size
23747 # of here documents, and old seds have small limits too (100 cmds).
23748 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23749 rm -f conftest.tail
23750 while grep . conftest.undefs >/dev/null
23751 do
23752   # Write a limited-size here document to $tmp/undefs.sed.
23753   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23754   # Speed up: don't consider the non `#undef'
23755   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23756   # Work around the forget-to-reset-the-flag bug.
23757   echo 't clr' >>$CONFIG_STATUS
23758   echo ': clr' >>$CONFIG_STATUS
23759   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23760   echo 'CEOF
23761   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23762   rm -f $tmp/in
23763   mv $tmp/out $tmp/in
23764 ' >>$CONFIG_STATUS
23765   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23766   rm -f conftest.undefs
23767   mv conftest.tail conftest.undefs
23768 done
23769 rm -f conftest.undefs
23770
23771 cat >>$CONFIG_STATUS <<\_ACEOF
23772   # Let's still pretend it is `configure' which instantiates (i.e., don't
23773   # use $as_me), people would be surprised to read:
23774   #    /* config.h.  Generated by config.status.  */
23775   if test x"$ac_file" = x-; then
23776     echo "/* Generated by configure.  */" >$tmp/config.h
23777   else
23778     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23779   fi
23780   cat $tmp/in >>$tmp/config.h
23781   rm -f $tmp/in
23782   if test x"$ac_file" != x-; then
23783     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23784       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23785 echo "$as_me: $ac_file is unchanged" >&6;}
23786     else
23787       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23789          X"$ac_file" : 'X\(//\)[^/]' \| \
23790          X"$ac_file" : 'X\(//\)$' \| \
23791          X"$ac_file" : 'X\(/\)' \| \
23792          .     : '\(.\)' 2>/dev/null ||
23793 echo X"$ac_file" |
23794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23796           /^X\(\/\/\)$/{ s//\1/; q; }
23797           /^X\(\/\).*/{ s//\1/; q; }
23798           s/.*/./; q'`
23799       { if $as_mkdir_p; then
23800     mkdir -p "$ac_dir"
23801   else
23802     as_dir="$ac_dir"
23803     as_dirs=
23804     while test ! -d "$as_dir"; do
23805       as_dirs="$as_dir $as_dirs"
23806       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23808          X"$as_dir" : 'X\(//\)[^/]' \| \
23809          X"$as_dir" : 'X\(//\)$' \| \
23810          X"$as_dir" : 'X\(/\)' \| \
23811          .     : '\(.\)' 2>/dev/null ||
23812 echo X"$as_dir" |
23813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23814           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23815           /^X\(\/\/\)$/{ s//\1/; q; }
23816           /^X\(\/\).*/{ s//\1/; q; }
23817           s/.*/./; q'`
23818     done
23819     test ! -n "$as_dirs" || mkdir $as_dirs
23820   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23822    { (exit 1); exit 1; }; }; }
23823
23824       rm -f $ac_file
23825       mv $tmp/config.h $ac_file
23826     fi
23827   else
23828     cat $tmp/config.h
23829     rm -f $tmp/config.h
23830   fi
23831   # Run the commands associated with the file.
23832   case $ac_file in
23833     src/include/pg_config.h )
23834 # Update timestamp for pg_config.h (see Makefile.global)
23835 echo >src/include/stamp-h
23836  ;;
23837   esac
23838 done
23839 _ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841
23842 #
23843 # CONFIG_LINKS section.
23844 #
23845
23846 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23847   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23848   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23849
23850   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23851 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23852
23853   if test ! -r $srcdir/$ac_source; then
23854     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23855 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23856    { (exit 1); exit 1; }; }
23857   fi
23858   rm -f $ac_dest
23859
23860   # Make relative symlinks.
23861   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23863          X"$ac_dest" : 'X\(//\)[^/]' \| \
23864          X"$ac_dest" : 'X\(//\)$' \| \
23865          X"$ac_dest" : 'X\(/\)' \| \
23866          .     : '\(.\)' 2>/dev/null ||
23867 echo X"$ac_dest" |
23868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23870           /^X\(\/\/\)$/{ s//\1/; q; }
23871           /^X\(\/\).*/{ s//\1/; q; }
23872           s/.*/./; q'`
23873   { if $as_mkdir_p; then
23874     mkdir -p "$ac_dest_dir"
23875   else
23876     as_dir="$ac_dest_dir"
23877     as_dirs=
23878     while test ! -d "$as_dir"; do
23879       as_dirs="$as_dir $as_dirs"
23880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23882          X"$as_dir" : 'X\(//\)[^/]' \| \
23883          X"$as_dir" : 'X\(//\)$' \| \
23884          X"$as_dir" : 'X\(/\)' \| \
23885          .     : '\(.\)' 2>/dev/null ||
23886 echo X"$as_dir" |
23887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23889           /^X\(\/\/\)$/{ s//\1/; q; }
23890           /^X\(\/\).*/{ s//\1/; q; }
23891           s/.*/./; q'`
23892     done
23893     test ! -n "$as_dirs" || mkdir $as_dirs
23894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23895 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23896    { (exit 1); exit 1; }; }; }
23897
23898   ac_builddir=.
23899
23900 if test "$ac_dest_dir" != .; then
23901   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23902   # A "../" for each directory in $ac_dir_suffix.
23903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23904 else
23905   ac_dir_suffix= ac_top_builddir=
23906 fi
23907
23908 case $srcdir in
23909   .)  # No --srcdir option.  We are building in place.
23910     ac_srcdir=.
23911     if test -z "$ac_top_builddir"; then
23912        ac_top_srcdir=.
23913     else
23914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23915     fi ;;
23916   [\\/]* | ?:[\\/]* )  # Absolute path.
23917     ac_srcdir=$srcdir$ac_dir_suffix;
23918     ac_top_srcdir=$srcdir ;;
23919   *) # Relative path.
23920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23922 esac
23923
23924 # Do not use `cd foo && pwd` to compute absolute paths, because
23925 # the directories may not exist.
23926 case `pwd` in
23927 .) ac_abs_builddir="$ac_dest_dir";;
23928 *)
23929   case "$ac_dest_dir" in
23930   .) ac_abs_builddir=`pwd`;;
23931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23932   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23933   esac;;
23934 esac
23935 case $ac_abs_builddir in
23936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23937 *)
23938   case ${ac_top_builddir}. in
23939   .) ac_abs_top_builddir=$ac_abs_builddir;;
23940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23942   esac;;
23943 esac
23944 case $ac_abs_builddir in
23945 .) ac_abs_srcdir=$ac_srcdir;;
23946 *)
23947   case $ac_srcdir in
23948   .) ac_abs_srcdir=$ac_abs_builddir;;
23949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23951   esac;;
23952 esac
23953 case $ac_abs_builddir in
23954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23955 *)
23956   case $ac_top_srcdir in
23957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23960   esac;;
23961 esac
23962
23963
23964   case $srcdir in
23965   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23966       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23967   esac
23968
23969   # Try a symlink, then a hard link, then a copy.
23970   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23971     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23972     cp -p $srcdir/$ac_source $ac_dest ||
23973     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23974 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23975    { (exit 1); exit 1; }; }
23976 done
23977 _ACEOF
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23979
23980 #
23981 # CONFIG_COMMANDS section.
23982 #
23983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23984   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23985   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23986   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988          X"$ac_dest" : 'X\(//\)[^/]' \| \
23989          X"$ac_dest" : 'X\(//\)$' \| \
23990          X"$ac_dest" : 'X\(/\)' \| \
23991          .     : '\(.\)' 2>/dev/null ||
23992 echo X"$ac_dest" |
23993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23995           /^X\(\/\/\)$/{ s//\1/; q; }
23996           /^X\(\/\).*/{ s//\1/; q; }
23997           s/.*/./; q'`
23998   { if $as_mkdir_p; then
23999     mkdir -p "$ac_dir"
24000   else
24001     as_dir="$ac_dir"
24002     as_dirs=
24003     while test ! -d "$as_dir"; do
24004       as_dirs="$as_dir $as_dirs"
24005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24007          X"$as_dir" : 'X\(//\)[^/]' \| \
24008          X"$as_dir" : 'X\(//\)$' \| \
24009          X"$as_dir" : 'X\(/\)' \| \
24010          .     : '\(.\)' 2>/dev/null ||
24011 echo X"$as_dir" |
24012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24014           /^X\(\/\/\)$/{ s//\1/; q; }
24015           /^X\(\/\).*/{ s//\1/; q; }
24016           s/.*/./; q'`
24017     done
24018     test ! -n "$as_dirs" || mkdir $as_dirs
24019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24021    { (exit 1); exit 1; }; }; }
24022
24023   ac_builddir=.
24024
24025 if test "$ac_dir" != .; then
24026   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24027   # A "../" for each directory in $ac_dir_suffix.
24028   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24029 else
24030   ac_dir_suffix= ac_top_builddir=
24031 fi
24032
24033 case $srcdir in
24034   .)  # No --srcdir option.  We are building in place.
24035     ac_srcdir=.
24036     if test -z "$ac_top_builddir"; then
24037        ac_top_srcdir=.
24038     else
24039        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24040     fi ;;
24041   [\\/]* | ?:[\\/]* )  # Absolute path.
24042     ac_srcdir=$srcdir$ac_dir_suffix;
24043     ac_top_srcdir=$srcdir ;;
24044   *) # Relative path.
24045     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24046     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24047 esac
24048
24049 # Do not use `cd foo && pwd` to compute absolute paths, because
24050 # the directories may not exist.
24051 case `pwd` in
24052 .) ac_abs_builddir="$ac_dir";;
24053 *)
24054   case "$ac_dir" in
24055   .) ac_abs_builddir=`pwd`;;
24056   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24057   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24058   esac;;
24059 esac
24060 case $ac_abs_builddir in
24061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24062 *)
24063   case ${ac_top_builddir}. in
24064   .) ac_abs_top_builddir=$ac_abs_builddir;;
24065   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24066   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24067   esac;;
24068 esac
24069 case $ac_abs_builddir in
24070 .) ac_abs_srcdir=$ac_srcdir;;
24071 *)
24072   case $ac_srcdir in
24073   .) ac_abs_srcdir=$ac_abs_builddir;;
24074   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24075   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24076   esac;;
24077 esac
24078 case $ac_abs_builddir in
24079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24080 *)
24081   case $ac_top_srcdir in
24082   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24083   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24084   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24085   esac;;
24086 esac
24087
24088
24089   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24090 echo "$as_me: executing $ac_dest commands" >&6;}
24091   case $ac_dest in
24092     check_win32_symlinks )
24093 # Links sometimes fail undetected on Mingw -
24094 # so here we detect it and warn the user
24095 for FILE in $CONFIG_LINKS
24096  do
24097         # test -e works for symlinks in the MinGW console
24098         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24099 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24100  done
24101  ;;
24102   esac
24103 done
24104 _ACEOF
24105
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24107
24108 { (exit 0); exit 0; }
24109 _ACEOF
24110 chmod +x $CONFIG_STATUS
24111 ac_clean_files=$ac_clean_files_save
24112
24113
24114 # configure is writing to config.log, and then calls config.status.
24115 # config.status does its own redirection, appending to config.log.
24116 # Unfortunately, on DOS this fails, as config.log is still kept open
24117 # by configure, so config.status won't be able to write to it; its
24118 # output is simply discarded.  So we exec the FD to /dev/null,
24119 # effectively closing config.log, so it can be properly (re)opened and
24120 # appended to by config.status.  When coming back to configure, we
24121 # need to make the FD available again.
24122 if test "$no_create" != yes; then
24123   ac_cs_success=:
24124   ac_config_status_args=
24125   test "$silent" = yes &&
24126     ac_config_status_args="$ac_config_status_args --quiet"
24127   exec 5>/dev/null
24128   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24129   exec 5>>config.log
24130   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24131   # would make configure fail if this is the last instruction.
24132   $ac_cs_success || { (exit 1); exit 1; }
24133 fi
24134
24135