]> granicus.if.org Git - postgresql/blob - configure
Code cleanup: use "bool" for Boolean variables, rather than "int".
[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.3devel.
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-2007, 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.3devel'
275 PACKAGE_STRING='PostgreSQL 8.3devel'
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 enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt 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 LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
318 ac_subst_files=''
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.3devel 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.3devel:";;
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-profiling      build with profiling enabled
869   --enable-dtrace         build with DTrace support
870   --enable-depend         turn on automatic dependency tracking
871   --enable-cassert        enable assertion checks (for debugging)
872   --enable-thread-safety  make client libraries thread-safe
873   --enable-thread-safety-force  force thread-safety in spite of thread test failure
874   --disable-largefile     omit support for large files
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879
880   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
881   --without-docdir        do not install the documentation
882   --with-includes=DIRS    look for additional header files in DIRS
883   --with-libraries=DIRS   look for additional libraries in DIRS
884   --with-libs=DIRS        alternative spelling of --with-libraries
885   --with-pgport=PORTNUM   change default port number [5432]
886   --with-tcl              build Tcl modules (PL/Tcl)
887   --with-tclconfig=DIR    tclConfig.sh is in DIR
888   --with-perl             build Perl modules (PL/Perl)
889   --with-python           build Python modules (PL/Python)
890   --with-krb5             build with Kerberos 5 support
891   --with-krb-srvnam=NAME  name of the default service principal in Kerberos [postgres]
892   --with-pam              build with PAM support
893   --with-ldap             build with LDAP support
894   --with-bonjour          build with Bonjour support
895   --with-openssl          build with OpenSSL support
896   --without-readline      do not use GNU Readline nor BSD Libedit for editing
897   --with-libedit-preferred  prefer BSD Libedit over GNU Readline
898   --with-ossp-uuid        build with OSSP UUID library for UUID generation
899   --with-libxml           build with XML support
900   --with-libxslt          build with XSLT support
901   --without-zlib          do not use Zlib
902   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
903
904 Some influential environment variables:
905   CC          C compiler command
906   CFLAGS      C compiler flags
907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
908               nonstandard directory <lib dir>
909   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
910               headers in a nonstandard directory <include dir>
911   CPP         C preprocessor
912   LDFLAGS_SL
913   DOCBOOKSTYLE
914               location of DocBook stylesheets
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 Report bugs to <pgsql-bugs@postgresql.org>.
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
958 *)
959   case "$ac_dir" in
960   .) ac_abs_builddir=`pwd`;;
961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
963   esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *)
968   case ${ac_top_builddir}. in
969   .) ac_abs_top_builddir=$ac_abs_builddir;;
970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972   esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
976 *)
977   case $ac_srcdir in
978   .) ac_abs_srcdir=$ac_abs_builddir;;
979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981   esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *)
986   case $ac_top_srcdir in
987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990   esac;;
991 esac
992
993     cd $ac_dir
994     # Check for guested configure; otherwise get Cygnus style configure.
995     if test -f $ac_srcdir/configure.gnu; then
996       echo
997       $SHELL $ac_srcdir/configure.gnu  --help=recursive
998     elif test -f $ac_srcdir/configure; then
999       echo
1000       $SHELL $ac_srcdir/configure  --help=recursive
1001     elif test -f $ac_srcdir/configure.ac ||
1002            test -f $ac_srcdir/configure.in; then
1003       echo
1004       $ac_configure --help
1005     else
1006       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007     fi
1008     cd $ac_popdir
1009   done
1010 fi
1011
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014   cat <<\_ACEOF
1015 PostgreSQL configure 8.3devel
1016 generated by GNU Autoconf 2.59
1017
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021
1022 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1023 _ACEOF
1024   exit 0
1025 fi
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1030
1031 It was created by PostgreSQL $as_me 8.3devel, which was
1032 generated by GNU Autoconf 2.59.  Invocation command line was
1033
1034   $ $0 $@
1035
1036 _ACEOF
1037 {
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1042
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1051
1052 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1053 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1056 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1057 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1058 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1059
1060 _ASUNAME
1061
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1064 do
1065   IFS=$as_save_IFS
1066   test -z "$as_dir" && as_dir=.
1067   echo "PATH: $as_dir"
1068 done
1069
1070 } >&5
1071
1072 cat >&5 <<_ACEOF
1073
1074
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1078
1079 _ACEOF
1080
1081
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1093 do
1094   for ac_arg
1095   do
1096     case $ac_arg in
1097     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099     | -silent | --silent | --silen | --sile | --sil)
1100       continue ;;
1101     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103     esac
1104     case $ac_pass in
1105     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106     2)
1107       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108       if test $ac_must_keep_next = true; then
1109         ac_must_keep_next=false # Got value, back to normal.
1110       else
1111         case $ac_arg in
1112           *=* | --config-cache | -C | -disable-* | --disable-* \
1113           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115           | -with-* | --with-* | -without-* | --without-* | --x)
1116             case "$ac_configure_args0 " in
1117               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118             esac
1119             ;;
1120           -* ) ac_must_keep_next=true ;;
1121         esac
1122       fi
1123       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124       # Get rid of the leading space.
1125       ac_sep=" "
1126       ;;
1127     esac
1128   done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log.  We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139   # Save into config.log some information that might help in debugging.
1140   {
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148     echo
1149     # The following way of writing the cache mishandles newlines in values,
1150 {
1151   (set) 2>&1 |
1152     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153     *ac_space=\ *)
1154       sed -n \
1155         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157       ;;
1158     *)
1159       sed -n \
1160         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161       ;;
1162     esac;
1163 }
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171     echo
1172     for ac_var in $ac_subst_vars
1173     do
1174       eval ac_val=$`echo $ac_var`
1175       echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178
1179     if test -n "$ac_subst_files"; then
1180       cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185       echo
1186       for ac_var in $ac_subst_files
1187       do
1188         eval ac_val=$`echo $ac_var`
1189         echo "$ac_var='"'"'$ac_val'"'"'"
1190       done | sort
1191       echo
1192     fi
1193
1194     if test -s confdefs.h; then
1195       cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200       echo
1201       sed "/^$/d" confdefs.h | sort
1202       echo
1203     fi
1204     test "$ac_signal" != 0 &&
1205       echo "$as_me: caught signal $ac_signal"
1206     echo "$as_me: exit $exit_status"
1207   } >&5
1208   rm -f core *.core &&
1209   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210     exit $exit_status
1211      ' 0
1212 for ac_signal in 1 2 13 15; do
1213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1216
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1221
1222 # Predefined preprocessor variables.
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1247
1248
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252   if test "x$prefix" != xNONE; then
1253     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254   else
1255     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256   fi
1257 fi
1258 for ac_site_file in $CONFIG_SITE; do
1259   if test -r "$ac_site_file"; then
1260     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262     sed 's/^/| /' "$ac_site_file" >&5
1263     . "$ac_site_file"
1264   fi
1265 done
1266
1267 if test -r "$cache_file"; then
1268   # Some versions of bash will fail to source /dev/null (special
1269   # files actually), so we avoid doing that.
1270   if test -f "$cache_file"; then
1271     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273     case $cache_file in
1274       [\\/]* | ?:[\\/]* ) . $cache_file;;
1275       *)                      . ./$cache_file;;
1276     esac
1277   fi
1278 else
1279   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281   >$cache_file
1282 fi
1283
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290   eval ac_new_set=\$ac_env_${ac_var}_set
1291   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292   eval ac_new_val="\$ac_env_${ac_var}_value"
1293   case $ac_old_set,$ac_new_set in
1294     set,)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,set)
1299       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301       ac_cache_corrupted=: ;;
1302     ,);;
1303     *)
1304       if test "x$ac_old_val" != "x$ac_new_val"; then
1305         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1308 echo "$as_me:   former value:  $ac_old_val" >&2;}
1309         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1310 echo "$as_me:   current value: $ac_new_val" >&2;}
1311         ac_cache_corrupted=:
1312       fi;;
1313   esac
1314   # Pass precious variables to config.status.
1315   if test "$ac_new_set" = set; then
1316     case $ac_new_val in
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     *) ac_arg=$ac_var=$ac_new_val ;;
1320     esac
1321     case " $ac_configure_args " in
1322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324     esac
1325   fi
1326 done
1327 if $ac_cache_corrupted; then
1328   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1367
1368
1369
1370
1371 ac_aux_dir=
1372 for ac_dir in config $srcdir/config; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396
1397 configure_args=$ac_configure_args
1398
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PG_VERSION "$PACKAGE_VERSION"
1403 _ACEOF
1404
1405
1406 # Make sure we can run config.sub.
1407 $ac_config_sub sun4 >/dev/null 2>&1 ||
1408   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1410    { (exit 1); exit 1; }; }
1411
1412 echo "$as_me:$LINENO: checking build system type" >&5
1413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1414 if test "${ac_cv_build+set}" = set; then
1415   echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417   ac_cv_build_alias=$build_alias
1418 test -z "$ac_cv_build_alias" &&
1419   ac_cv_build_alias=`$ac_config_guess`
1420 test -z "$ac_cv_build_alias" &&
1421   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1423    { (exit 1); exit 1; }; }
1424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1425   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1427    { (exit 1); exit 1; }; }
1428
1429 fi
1430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1431 echo "${ECHO_T}$ac_cv_build" >&6
1432 build=$ac_cv_build
1433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436
1437
1438 echo "$as_me:$LINENO: checking host system type" >&5
1439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1440 if test "${ac_cv_host+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   ac_cv_host_alias=$host_alias
1444 test -z "$ac_cv_host_alias" &&
1445   ac_cv_host_alias=$ac_cv_build_alias
1446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1453 echo "${ECHO_T}$ac_cv_host" >&6
1454 host=$ac_cv_host
1455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460
1461 template=
1462 echo "$as_me:$LINENO: checking which template to use" >&5
1463 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1464
1465
1466 pgac_args="$pgac_args with_template"
1467
1468
1469 # Check whether --with-template or --without-template was given.
1470 if test "${with_template+set}" = set; then
1471   withval="$with_template"
1472
1473   case $withval in
1474     yes)
1475       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1476 echo "$as_me: error: argument required for --with-template option" >&2;}
1477    { (exit 1); exit 1; }; }
1478       ;;
1479     no)
1480       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1481 echo "$as_me: error: argument required for --with-template option" >&2;}
1482    { (exit 1); exit 1; }; }
1483       ;;
1484     *)
1485
1486   case $withval in
1487     list)   echo; ls "$srcdir/src/template"; exit;;
1488     *)      if test -f "$srcdir/src/template/$with_template" ; then
1489               template=$withval
1490             else
1491               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1492 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1493    { (exit 1); exit 1; }; }
1494             fi;;
1495   esac
1496
1497       ;;
1498   esac
1499
1500 else
1501
1502 # --with-template not given
1503
1504 case $host_os in
1505      aix*) template=aix ;;
1506     bsdi*) template=bsdi ;;
1507   cygwin*) template=cygwin ;;
1508   darwin*) template=darwin ;;
1509     dgux*) template=dgux ;;
1510  freebsd*) template=freebsd ;;
1511     hpux*) template=hpux ;;
1512     irix*) template=irix ;;
1513  linux*|gnu*|k*bsd*-gnu)
1514            template=linux ;;
1515    mingw*) template=win32 ;;
1516   netbsd*) template=netbsd ;;
1517 nextstep*) template=nextstep ;;
1518  openbsd*) template=openbsd ;;
1519      osf*) template=osf ;;
1520      sco*) template=sco ;;
1521  solaris*) template=solaris ;;
1522    sunos*) template=sunos4 ;;
1523  sysv4.2*)
1524         case $host_vendor in
1525           univel) template=univel ;;
1526         esac ;;
1527    sysv4*) template=svr4 ;;
1528    sysv5*) template=unixware ;;
1529   ultrix*) template=ultrix4 ;;
1530 esac
1531
1532   if test x"$template" = x"" ; then
1533     { { echo "$as_me:$LINENO: error:
1534 *******************************************************************
1535 PostgreSQL has apparently not been ported to your platform yet.
1536 To try a manual configuration, look into the src/template directory
1537 for a similar platform and use the '--with-template=' option.
1538
1539 Please also contact <pgsql-ports@postgresql.org> to see about
1540 rectifying this.  Include the above 'checking host system type...'
1541 line.
1542 *******************************************************************
1543 " >&5
1544 echo "$as_me: error:
1545 *******************************************************************
1546 PostgreSQL has apparently not been ported to your platform yet.
1547 To try a manual configuration, look into the src/template directory
1548 for a similar platform and use the '--with-template=' option.
1549
1550 Please also contact <pgsql-ports@postgresql.org> to see about
1551 rectifying this.  Include the above 'checking host system type...'
1552 line.
1553 *******************************************************************
1554 " >&2;}
1555    { (exit 1); exit 1; }; }
1556   fi
1557
1558
1559 fi;
1560
1561
1562 echo "$as_me:$LINENO: result: $template" >&5
1563 echo "${ECHO_T}$template" >&6
1564
1565 PORTNAME=$template
1566
1567
1568 # Initialize default assumption that we do not need separate assembly code
1569 # for TAS (test-and-set).  This can be overridden by the template file
1570 # when it's executed.
1571 need_tas=no
1572 tas_file=dummy.s
1573
1574
1575
1576 ##
1577 ## Command line options
1578 ##
1579
1580 #
1581 # Installation directory for documentation
1582 #
1583
1584 pgac_args="$pgac_args with_docdir"
1585
1586
1587 # Check whether --with-docdir or --without-docdir was given.
1588 if test "${with_docdir+set}" = set; then
1589   withval="$with_docdir"
1590
1591   case $withval in
1592     yes)
1593       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1594 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1595    { (exit 1); exit 1; }; }
1596       ;;
1597     no)
1598       docdir=
1599       ;;
1600     *)
1601       docdir=$withval
1602       ;;
1603   esac
1604
1605 else
1606   docdir='${prefix}/doc'
1607 fi;
1608
1609
1610
1611
1612 #
1613 # Add non-standard directories to the include path
1614 #
1615
1616 pgac_args="$pgac_args with_includes"
1617
1618
1619 # Check whether --with-includes or --without-includes was given.
1620 if test "${with_includes+set}" = set; then
1621   withval="$with_includes"
1622
1623   case $withval in
1624     yes)
1625       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1626 echo "$as_me: error: argument required for --with-includes option" >&2;}
1627    { (exit 1); exit 1; }; }
1628       ;;
1629     no)
1630       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1631 echo "$as_me: error: argument required for --with-includes option" >&2;}
1632    { (exit 1); exit 1; }; }
1633       ;;
1634     *)
1635
1636       ;;
1637   esac
1638
1639 fi;
1640
1641
1642
1643 #
1644 # Add non-standard directories to the library search path
1645 #
1646
1647 pgac_args="$pgac_args with_libraries"
1648
1649
1650 # Check whether --with-libraries or --without-libraries was given.
1651 if test "${with_libraries+set}" = set; then
1652   withval="$with_libraries"
1653
1654   case $withval in
1655     yes)
1656       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1657 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1658    { (exit 1); exit 1; }; }
1659       ;;
1660     no)
1661       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1662 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1663    { (exit 1); exit 1; }; }
1664       ;;
1665     *)
1666       LIBRARY_DIRS=$withval
1667       ;;
1668   esac
1669
1670 fi;
1671
1672
1673
1674 pgac_args="$pgac_args with_libs"
1675
1676
1677 # Check whether --with-libs or --without-libs was given.
1678 if test "${with_libs+set}" = set; then
1679   withval="$with_libs"
1680
1681   case $withval in
1682     yes)
1683       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1684 echo "$as_me: error: argument required for --with-libs option" >&2;}
1685    { (exit 1); exit 1; }; }
1686       ;;
1687     no)
1688       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1689 echo "$as_me: error: argument required for --with-libs option" >&2;}
1690    { (exit 1); exit 1; }; }
1691       ;;
1692     *)
1693       LIBRARY_DIRS=$withval
1694       ;;
1695   esac
1696
1697 fi;
1698
1699
1700
1701 #
1702 # 64-bit integer date/time storage (--enable-integer-datetimes)
1703 #
1704 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1705 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1706
1707 pgac_args="$pgac_args enable_integer_datetimes"
1708
1709 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1710 if test "${enable_integer_datetimes+set}" = set; then
1711   enableval="$enable_integer_datetimes"
1712
1713   case $enableval in
1714     yes)
1715
1716 cat >>confdefs.h <<\_ACEOF
1717 #define USE_INTEGER_DATETIMES 1
1718 _ACEOF
1719
1720       ;;
1721     no)
1722       :
1723       ;;
1724     *)
1725       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1726 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1727    { (exit 1); exit 1; }; }
1728       ;;
1729   esac
1730
1731 else
1732   enable_integer_datetimes=no
1733
1734 fi;
1735
1736 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1737 echo "${ECHO_T}$enable_integer_datetimes" >&6
1738
1739
1740 #
1741 # NLS
1742 #
1743 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1744 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1745
1746 pgac_args="$pgac_args enable_nls"
1747
1748 # Check whether --enable-nls or --disable-nls was given.
1749 if test "${enable_nls+set}" = set; then
1750   enableval="$enable_nls"
1751
1752   case $enableval in
1753     yes)
1754       :
1755       ;;
1756     no)
1757       :
1758       ;;
1759     *)
1760       enable_nls=yes
1761 WANTED_LANGUAGES=$enableval
1762       ;;
1763   esac
1764
1765 else
1766   enable_nls=no
1767 fi;
1768
1769
1770 if test "$enable_nls" = yes; then
1771
1772 cat >>confdefs.h <<\_ACEOF
1773 #define ENABLE_NLS 1
1774 _ACEOF
1775
1776 fi
1777
1778 echo "$as_me:$LINENO: result: $enable_nls" >&5
1779 echo "${ECHO_T}$enable_nls" >&6
1780
1781
1782
1783 #
1784 # Default port number (--with-pgport), default 5432
1785 #
1786 echo "$as_me:$LINENO: checking for default port number" >&5
1787 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1788
1789 pgac_args="$pgac_args with_pgport"
1790
1791
1792 # Check whether --with-pgport or --without-pgport was given.
1793 if test "${with_pgport+set}" = set; then
1794   withval="$with_pgport"
1795
1796   case $withval in
1797     yes)
1798       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1799 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1800    { (exit 1); exit 1; }; }
1801       ;;
1802     no)
1803       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1804 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1805    { (exit 1); exit 1; }; }
1806       ;;
1807     *)
1808       default_port=$withval
1809       ;;
1810   esac
1811
1812 else
1813   default_port=5432
1814 fi;
1815
1816 echo "$as_me:$LINENO: result: $default_port" >&5
1817 echo "${ECHO_T}$default_port" >&6
1818 # Need both of these because some places want an integer and some a string
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define DEF_PGPORT ${default_port}
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define DEF_PGPORT_STR "${default_port}"
1827 _ACEOF
1828
1829
1830
1831 #
1832 # Option to disable shared libraries
1833 #
1834
1835 pgac_args="$pgac_args enable_shared"
1836
1837 # Check whether --enable-shared or --disable-shared was given.
1838 if test "${enable_shared+set}" = set; then
1839   enableval="$enable_shared"
1840
1841   case $enableval in
1842     yes)
1843       :
1844       ;;
1845     no)
1846       :
1847       ;;
1848     *)
1849       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1850 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1851    { (exit 1); exit 1; }; }
1852       ;;
1853   esac
1854
1855 else
1856   enable_shared=yes
1857
1858 fi;
1859
1860
1861
1862 #
1863 # '-rpath'-like feature can be disabled
1864 #
1865
1866 pgac_args="$pgac_args enable_rpath"
1867
1868 # Check whether --enable-rpath or --disable-rpath was given.
1869 if test "${enable_rpath+set}" = set; then
1870   enableval="$enable_rpath"
1871
1872   case $enableval in
1873     yes)
1874       :
1875       ;;
1876     no)
1877       :
1878       ;;
1879     *)
1880       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1881 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1882    { (exit 1); exit 1; }; }
1883       ;;
1884   esac
1885
1886 else
1887   enable_rpath=yes
1888
1889 fi;
1890
1891
1892
1893 #
1894 # Spinlocks
1895 #
1896
1897 pgac_args="$pgac_args enable_spinlocks"
1898
1899 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1900 if test "${enable_spinlocks+set}" = set; then
1901   enableval="$enable_spinlocks"
1902
1903   case $enableval in
1904     yes)
1905       :
1906       ;;
1907     no)
1908       :
1909       ;;
1910     *)
1911       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1912 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1913    { (exit 1); exit 1; }; }
1914       ;;
1915   esac
1916
1917 else
1918   enable_spinlocks=yes
1919
1920 fi;
1921
1922
1923 #
1924 # --enable-debug adds -g to compiler flags
1925 #
1926
1927 pgac_args="$pgac_args enable_debug"
1928
1929 # Check whether --enable-debug or --disable-debug was given.
1930 if test "${enable_debug+set}" = set; then
1931   enableval="$enable_debug"
1932
1933   case $enableval in
1934     yes)
1935       :
1936       ;;
1937     no)
1938       :
1939       ;;
1940     *)
1941       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1942 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1943    { (exit 1); exit 1; }; }
1944       ;;
1945   esac
1946
1947 else
1948   enable_debug=no
1949
1950 fi;
1951
1952
1953
1954 #
1955 # --enable-profiling enables gcc profiling
1956 #
1957
1958 pgac_args="$pgac_args enable_profiling"
1959
1960 # Check whether --enable-profiling or --disable-profiling was given.
1961 if test "${enable_profiling+set}" = set; then
1962   enableval="$enable_profiling"
1963
1964   case $enableval in
1965     yes)
1966       :
1967       ;;
1968     no)
1969       :
1970       ;;
1971     *)
1972       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1973 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1974    { (exit 1); exit 1; }; }
1975       ;;
1976   esac
1977
1978 else
1979   enable_profiling=no
1980
1981 fi;
1982
1983
1984
1985 #
1986 # DTrace
1987 #
1988
1989 pgac_args="$pgac_args enable_dtrace"
1990
1991 # Check whether --enable-dtrace or --disable-dtrace was given.
1992 if test "${enable_dtrace+set}" = set; then
1993   enableval="$enable_dtrace"
1994
1995   case $enableval in
1996     yes)
1997
1998 cat >>confdefs.h <<\_ACEOF
1999 #define ENABLE_DTRACE 1
2000 _ACEOF
2001
2002 for ac_prog in dtrace
2003 do
2004   # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_DTRACE+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$DTRACE"; then
2012   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_DTRACE="$ac_prog"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 DTRACE=$ac_cv_prog_DTRACE
2031 if test -n "$DTRACE"; then
2032   echo "$as_me:$LINENO: result: $DTRACE" >&5
2033 echo "${ECHO_T}$DTRACE" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039   test -n "$DTRACE" && break
2040 done
2041
2042 if test -z "$DTRACE"; then
2043   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2044 echo "$as_me: error: dtrace not found" >&2;}
2045    { (exit 1); exit 1; }; }
2046 fi
2047
2048       ;;
2049     no)
2050       :
2051       ;;
2052     *)
2053       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2054 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2055    { (exit 1); exit 1; }; }
2056       ;;
2057   esac
2058
2059 else
2060   enable_dtrace=no
2061
2062 fi;
2063
2064
2065
2066 #
2067 # C compiler
2068 #
2069
2070 # For historical reasons you can also use --with-CC to specify the C compiler
2071 # to use, although the standard way to do this is to set the CC environment
2072 # variable.
2073
2074 pgac_args="$pgac_args with_CC"
2075
2076
2077 # Check whether --with-CC or --without-CC was given.
2078 if test "${with_CC+set}" = set; then
2079   withval="$with_CC"
2080
2081   case $withval in
2082     yes)
2083       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2084 echo "$as_me: error: argument required for --with-CC option" >&2;}
2085    { (exit 1); exit 1; }; }
2086       ;;
2087     no)
2088       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2089 echo "$as_me: error: argument required for --with-CC option" >&2;}
2090    { (exit 1); exit 1; }; }
2091       ;;
2092     *)
2093       CC=$with_CC
2094       ;;
2095   esac
2096
2097 fi;
2098
2099
2100 case $template in
2101   aix) pgac_cc_list="gcc xlc";;
2102  irix) pgac_cc_list="cc";; # no gcc
2103     *) pgac_cc_list="gcc cc";;
2104 esac
2105
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112   for ac_prog in $pgac_cc_list
2113   do
2114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$CC"; then
2122   ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142   echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149     test -n "$CC" && break
2150   done
2151 fi
2152 if test -z "$CC"; then
2153   ac_ct_CC=$CC
2154   for ac_prog in $pgac_cc_list
2155 do
2156   # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$ac_ct_CC"; then
2164   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173     ac_cv_prog_ac_ct_CC="$ac_prog"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 fi
2181 fi
2182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183 if test -n "$ac_ct_CC"; then
2184   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185 echo "${ECHO_T}$ac_ct_CC" >&6
2186 else
2187   echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2189 fi
2190
2191   test -n "$ac_ct_CC" && break
2192 done
2193
2194   CC=$ac_ct_CC
2195 fi
2196
2197
2198 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&2;}
2202    { (exit 1); exit 1; }; }
2203
2204 # Provide some information about the compiler.
2205 echo "$as_me:$LINENO:" \
2206      "checking for C compiler version" >&5
2207 ac_compiler=`set X $ac_compile; echo $2`
2208 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2209   (eval $ac_compiler --version </dev/null >&5) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }
2213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2214   (eval $ac_compiler -v </dev/null >&5) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2219   (eval $ac_compiler -V </dev/null >&5) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }
2223
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h.  */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h.  */
2230
2231 int
2232 main ()
2233 {
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 ac_clean_files_save=$ac_clean_files
2240 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2241 # Try to create an executable without -o first, disregard a.out.
2242 # It will help us diagnose broken compilers, and finding out an intuition
2243 # of exeext.
2244 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2245 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2246 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2247 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2248   (eval $ac_link_default) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; then
2252   # Find the output, starting from the most likely.  This scheme is
2253 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2254 # resort.
2255
2256 # Be careful to initialize this variable, since it used to be cached.
2257 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2258 ac_cv_exeext=
2259 # b.out is created by i960 compilers.
2260 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2261 do
2262   test -f "$ac_file" || continue
2263   case $ac_file in
2264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2265         ;;
2266     conftest.$ac_ext )
2267         # This is the source file.
2268         ;;
2269     [ab].out )
2270         # We found the default executable, but exeext='' is most
2271         # certainly right.
2272         break;;
2273     *.* )
2274         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275         # FIXME: I believe we export ac_cv_exeext for Libtool,
2276         # but it would be cool to find out if it's true.  Does anybody
2277         # maintain Libtool? --akim.
2278         export ac_cv_exeext
2279         break;;
2280     * )
2281         break;;
2282   esac
2283 done
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&2;}
2292    { (exit 77); exit 77; }; }
2293 fi
2294
2295 ac_exeext=$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_file" >&5
2297 echo "${ECHO_T}$ac_file" >&6
2298
2299 # Check the compiler produces executables we can run.  If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2302 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2303 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2304 # If not cross compiling, check that we can run a simple program.
2305 if test "$cross_compiling" != yes; then
2306   if { ac_try='./$ac_file'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; }; then
2312     cross_compiling=no
2313   else
2314     if test "$cross_compiling" = maybe; then
2315         cross_compiling=yes
2316     else
2317         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2318 If you meant to cross compile, use \`--host'.
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot run C compiled programs.
2321 If you meant to cross compile, use \`--host'.
2322 See \`config.log' for more details." >&2;}
2323    { (exit 1); exit 1; }; }
2324     fi
2325   fi
2326 fi
2327 echo "$as_me:$LINENO: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6
2329
2330 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2331 ac_clean_files=$ac_clean_files_save
2332 # Check the compiler produces executables we can run.  If not, either
2333 # the compiler is broken, or we cross compile.
2334 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2335 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2336 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2337 echo "${ECHO_T}$cross_compiling" >&6
2338
2339 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2340 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2342   (eval $ac_link) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; then
2346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2348 # work properly (i.e., refer to `conftest.exe'), while it won't with
2349 # `rm'.
2350 for ac_file in conftest.exe conftest conftest.*; do
2351   test -f "$ac_file" || continue
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2355           export ac_cv_exeext
2356           break;;
2357     * ) break;;
2358   esac
2359 done
2360 else
2361   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }
2366 fi
2367
2368 rm -f conftest$ac_cv_exeext
2369 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2370 echo "${ECHO_T}$ac_cv_exeext" >&6
2371
2372 rm -f conftest.$ac_ext
2373 EXEEXT=$ac_cv_exeext
2374 ac_exeext=$EXEEXT
2375 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2376 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2377 if test "${ac_cv_objext+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h.  */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h.  */
2386
2387 int
2388 main ()
2389 {
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.o conftest.obj
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; then
2401   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2404     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2405        break;;
2406   esac
2407 done
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418
2419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2420 fi
2421 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422 echo "${ECHO_T}$ac_cv_objext" >&6
2423 OBJEXT=$ac_cv_objext
2424 ac_objext=$OBJEXT
2425 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436
2437 int
2438 main ()
2439 {
2440 #ifndef __GNUC__
2441        choke me
2442 #endif
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_compiler_gnu=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_compiler_gnu=no
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2479
2480 fi
2481 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2482 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2483 GCC=`test $ac_compiler_gnu = yes && echo yes`
2484 ac_test_CFLAGS=${CFLAGS+set}
2485 ac_save_CFLAGS=$CFLAGS
2486 CFLAGS="-g"
2487 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_g+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h.  */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h.  */
2498
2499 int
2500 main ()
2501 {
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag"
2517                          || test ! -s conftest.err'
2518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   ac_cv_prog_cc_g=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_cv_prog_cc_g=no
2535 fi
2536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537 fi
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2540 if test "$ac_test_CFLAGS" = set; then
2541   CFLAGS=$ac_save_CFLAGS
2542 elif test $ac_cv_prog_cc_g = yes; then
2543   if test "$GCC" = yes; then
2544     CFLAGS="-g -O2"
2545   else
2546     CFLAGS="-g"
2547   fi
2548 else
2549   if test "$GCC" = yes; then
2550     CFLAGS="-O2"
2551   else
2552     CFLAGS=
2553   fi
2554 fi
2555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   ac_cv_prog_cc_stdc=no
2561 ac_save_CC=$CC
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568 #include <stdarg.h>
2569 #include <stdio.h>
2570 #include <sys/types.h>
2571 #include <sys/stat.h>
2572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2573 struct buf { int x; };
2574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2575 static char *e (p, i)
2576      char **p;
2577      int i;
2578 {
2579   return p[i];
2580 }
2581 static char *f (char * (*g) (char **, int), char **p, ...)
2582 {
2583   char *s;
2584   va_list v;
2585   va_start (v,p);
2586   s = g (p, va_arg (v,int));
2587   va_end (v);
2588   return s;
2589 }
2590
2591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2592    function prototypes and stuff, but not '\xHH' hex character constants.
2593    These don't provoke an error unfortunately, instead are silently treated
2594    as 'x'.  The following induces an error, until -std1 is added to get
2595    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2596    array size at least.  It's necessary to write '\x00'==0 to get something
2597    that's true only with -std1.  */
2598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2599
2600 int test (int i, double x);
2601 struct s1 {int (*f) (int a);};
2602 struct s2 {int (*f) (double a);};
2603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2604 int argc;
2605 char **argv;
2606 int
2607 main ()
2608 {
2609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 # Don't try gcc -ansi; that turns off useful extensions and
2615 # breaks some systems' header files.
2616 # AIX                   -qlanglvl=ansi
2617 # Ultrix and OSF/1      -std1
2618 # HP-UX 10.20 and later -Ae
2619 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2620 # SVR4                  -Xc -D__EXTENSIONS__
2621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2622 do
2623   CC="$ac_save_CC $ac_arg"
2624   rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_cv_prog_cc_stdc=$ac_arg
2647 break
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 fi
2653 rm -f conftest.err conftest.$ac_objext
2654 done
2655 rm -f conftest.$ac_ext conftest.$ac_objext
2656 CC=$ac_save_CC
2657
2658 fi
2659
2660 case "x$ac_cv_prog_cc_stdc" in
2661   x|xno)
2662     echo "$as_me:$LINENO: result: none needed" >&5
2663 echo "${ECHO_T}none needed" >&6 ;;
2664   *)
2665     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2667     CC="$CC $ac_cv_prog_cc_stdc" ;;
2668 esac
2669
2670 # Some people use a C++ compiler to compile C.  Since we use `exit',
2671 # in C++ we need to declare it.  In case someone uses the same compiler
2672 # for both compiling C and C++ we need to have the C++ compiler decide
2673 # the declaration of exit, since it's the most demanding environment.
2674 cat >conftest.$ac_ext <<_ACEOF
2675 #ifndef __cplusplus
2676   choke me
2677 #endif
2678 _ACEOF
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681   (eval $ac_compile) 2>conftest.er1
2682   ac_status=$?
2683   grep -v '^ *+' conftest.er1 >conftest.err
2684   rm -f conftest.er1
2685   cat conftest.err >&5
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); } &&
2688          { ac_try='test -z "$ac_c_werror_flag"
2689                          || test ! -s conftest.err'
2690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691   (eval $ac_try) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }; } &&
2695          { ac_try='test -s conftest.$ac_objext'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; }; then
2701   for ac_declaration in \
2702    '' \
2703    'extern "C" void std::exit (int) throw (); using std::exit;' \
2704    'extern "C" void std::exit (int); using std::exit;' \
2705    'extern "C" void exit (int) throw ();' \
2706    'extern "C" void exit (int);' \
2707    'void exit (int);'
2708 do
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715 $ac_declaration
2716 #include <stdlib.h>
2717 int
2718 main ()
2719 {
2720 exit (42);
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag"
2735                          || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   :
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 continue
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755   cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761 $ac_declaration
2762 int
2763 main ()
2764 {
2765 exit (42);
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772   (eval $ac_compile) 2>conftest.er1
2773   ac_status=$?
2774   grep -v '^ *+' conftest.er1 >conftest.err
2775   rm -f conftest.er1
2776   cat conftest.err >&5
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); } &&
2779          { ac_try='test -z "$ac_c_werror_flag"
2780                          || test ! -s conftest.err'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; } &&
2786          { ac_try='test -s conftest.$ac_objext'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; }; then
2792   break
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 done
2800 rm -f conftest*
2801 if test -n "$ac_declaration"; then
2802   echo '#ifdef __cplusplus' >>confdefs.h
2803   echo $ac_declaration      >>confdefs.h
2804   echo '#endif'             >>confdefs.h
2805 fi
2806
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819
2820 unset CFLAGS
2821
2822 #
2823 # Read the template
2824 #
2825 . "$srcdir/src/template/$template" || exit
2826
2827 # CFLAGS are selected so:
2828 # If the user specifies something in the environment, that is used.
2829 # else:  If the template file set something, that is used.
2830 # else:  If the compiler is GCC, then we use -O2.
2831 # else:  If the compiler is something else, then we use -0.
2832
2833 if test "$ac_env_CFLAGS_set" = set; then
2834   CFLAGS=$ac_env_CFLAGS_value
2835 elif test "${CFLAGS+set}" = set; then
2836   : # (keep what template set)
2837 elif test "$GCC" = yes; then
2838   CFLAGS="-O2"
2839 else
2840   # if the user selected debug mode, don't use -O
2841   if test "$enable_debug" != yes; then
2842     CFLAGS="-O"
2843   fi
2844 fi
2845
2846 # Some versions of GCC support some additional useful warning flags.
2847 # Check whether they are supported, and add them to CFLAGS if so.
2848
2849 if test "$GCC" = yes; then
2850
2851 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2852 # So we have to check if "GCC" is really ICC.
2853
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861 int
2862 main ()
2863 {
2864 #ifndef __INTEL_COMPILER
2865 choke me
2866 #endif
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873   (eval $ac_compile) 2>conftest.er1
2874   ac_status=$?
2875   grep -v '^ *+' conftest.er1 >conftest.err
2876   rm -f conftest.er1
2877   cat conftest.err >&5
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } &&
2880          { ac_try='test -z "$ac_c_werror_flag"
2881                          || test ! -s conftest.err'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; } &&
2887          { ac_try='test -s conftest.$ac_objext'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; }; then
2893   ICC=yes
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 ICC=no
2899 fi
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901
2902   if test "$ICC" = no; then
2903     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2904
2905     echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2906 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2907 pgac_save_CFLAGS=$CFLAGS
2908 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926   (eval $ac_compile) 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } &&
2933          { ac_try='test -z "$ac_c_werror_flag"
2934                          || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 CFLAGS="$pgac_save_CFLAGS"
2953                     echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2955 fi
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957
2958     echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2959 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2960 pgac_save_CFLAGS=$CFLAGS
2961 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968
2969 int
2970 main ()
2971 {
2972
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979   (eval $ac_compile) 2>conftest.er1
2980   ac_status=$?
2981   grep -v '^ *+' conftest.er1 >conftest.err
2982   rm -f conftest.er1
2983   cat conftest.err >&5
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } &&
2986          { ac_try='test -z "$ac_c_werror_flag"
2987                          || test ! -s conftest.err'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; }; then
2999   echo "$as_me:$LINENO: result: yes" >&5
3000 echo "${ECHO_T}yes" >&6
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 CFLAGS="$pgac_save_CFLAGS"
3006                     echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 fi
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010
3011   else
3012     # Intel compiler has a bug/misoptimization in checking for
3013     # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
3014     # CFLAGS.
3015     echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3016 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3017 pgac_save_CFLAGS=$CFLAGS
3018 CFLAGS="$pgac_save_CFLAGS -mp1"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025
3026 int
3027 main ()
3028 {
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036   (eval $ac_compile) 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } &&
3043          { ac_try='test -z "$ac_c_werror_flag"
3044                          || test ! -s conftest.err'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 CFLAGS="$pgac_save_CFLAGS"
3063                     echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067
3068   fi
3069
3070   # Disable strict-aliasing rules; needed for gcc 3.3+
3071   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3072 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3073 pgac_save_CFLAGS=$CFLAGS
3074 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3075 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092   (eval $ac_compile) 2>conftest.er1
3093   ac_status=$?
3094   grep -v '^ *+' conftest.er1 >conftest.err
3095   rm -f conftest.er1
3096   cat conftest.err >&5
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -z "$ac_c_werror_flag"
3100                          || test ! -s conftest.err'
3101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102   (eval $ac_try) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108   (eval $ac_try) 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; }; then
3112   echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 CFLAGS="$pgac_save_CFLAGS"
3119                     echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6
3121 fi
3122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3123
3124 elif test x"${CC}" = x"xlc"; then
3125   # AIX xlc has to have strict aliasing turned off too
3126   echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3127 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3128 pgac_save_CFLAGS=$CFLAGS
3129 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
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
3137 int
3138 main ()
3139 {
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147   (eval $ac_compile) 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } &&
3154          { ac_try='test -z "$ac_c_werror_flag"
3155                          || test ! -s conftest.err'
3156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157   (eval $ac_try) 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; } &&
3161          { ac_try='test -s conftest.$ac_objext'
3162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163   (eval $ac_try) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; }; then
3167   echo "$as_me:$LINENO: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 CFLAGS="$pgac_save_CFLAGS"
3174                     echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178
3179 fi
3180
3181 # supply -g if --enable-debug
3182 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3183   CFLAGS="$CFLAGS -g"
3184 fi
3185
3186 # enable profiling if --enable-profiling
3187 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3188   if test "$GCC" = yes; then
3189
3190 cat >>confdefs.h <<\_ACEOF
3191 #define PROFILE_PID_DIR 1
3192 _ACEOF
3193
3194     CFLAGS="$CFLAGS -pg"
3195   else
3196     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3197 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3198    { (exit 1); exit 1; }; }
3199   fi
3200 fi
3201
3202 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3203 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3204
3205 # We already have this in Makefile.win32, but configure needs it too
3206 if test "$PORTNAME" = "win32"; then
3207   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3208 fi
3209
3210 # Check if the compiler still works with the template settings
3211 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3212 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223 return 0;
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext conftest$ac_exeext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230   (eval $ac_link) 2>conftest.er1
3231   ac_status=$?
3232   grep -v '^ *+' conftest.er1 >conftest.err
3233   rm -f conftest.er1
3234   cat conftest.err >&5
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } &&
3237          { ac_try='test -z "$ac_c_werror_flag"
3238                          || test ! -s conftest.err'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; } &&
3244          { ac_try='test -s conftest$ac_exeext'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; }; then
3250   echo "$as_me:$LINENO: result: yes" >&5
3251 echo "${ECHO_T}yes" >&6
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3259 echo "$as_me: error: cannot proceed" >&2;}
3260    { (exit 1); exit 1; }; }
3261 fi
3262 rm -f conftest.err conftest.$ac_objext \
3263       conftest$ac_exeext conftest.$ac_ext
3264
3265 # Defend against gcc -ffast-math
3266 if test "$GCC" = yes; then
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273
3274 int
3275 main ()
3276 {
3277 #ifdef __FAST_MATH__
3278 choke me
3279 #endif
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286   (eval $ac_compile) 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } &&
3293          { ac_try='test -z "$ac_c_werror_flag"
3294                          || test ! -s conftest.err'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; } &&
3300          { ac_try='test -s conftest.$ac_objext'
3301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302   (eval $ac_try) 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); }; }; then
3306   :
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3312 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3313    { (exit 1); exit 1; }; }
3314 fi
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 fi
3317
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3327   CPP=
3328 fi
3329 if test -z "$CPP"; then
3330   if test "${ac_cv_prog_CPP+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333       # Double quotes because CPP needs to be expanded
3334     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335     do
3336       ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342   # <limits.h> exists even on freestanding compilers.
3343   # On the NeXT, cc -E runs the code through the compiler's parser,
3344   # not just through cpp. "Syntax error" is here to catch this case.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   :
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Broken: fails on valid input.
3382 continue
3383 fi
3384 rm -f conftest.err conftest.$ac_ext
3385
3386   # OK, works on sane cases.  Now check whether non-existent headers
3387   # can be detected and how.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <ac_nonexistent.h>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   # Broken: success on invalid input.
3415 continue
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Passes both tests.
3421 ac_preproc_ok=:
3422 break
3423 fi
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   break
3431 fi
3432
3433     done
3434     ac_cv_prog_CPP=$CPP
3435
3436 fi
3437   CPP=$ac_cv_prog_CPP
3438 else
3439   ac_cv_prog_CPP=$CPP
3440 fi
3441 echo "$as_me:$LINENO: result: $CPP" >&5
3442 echo "${ECHO_T}$CPP" >&6
3443 ac_preproc_ok=false
3444 for ac_c_preproc_warn_flag in '' yes
3445 do
3446   # Use a header file that comes with gcc, so configuring glibc
3447   # with a fresh cross-compiler works.
3448   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449   # <limits.h> exists even on freestanding compilers.
3450   # On the NeXT, cc -E runs the code through the compiler's parser,
3451   # not just through cpp. "Syntax error" is here to catch this case.
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 #ifdef __STDC__
3459 # include <limits.h>
3460 #else
3461 # include <assert.h>
3462 #endif
3463                      Syntax error
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } >/dev/null; then
3473   if test -s conftest.err; then
3474     ac_cpp_err=$ac_c_preproc_warn_flag
3475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476   else
3477     ac_cpp_err=
3478   fi
3479 else
3480   ac_cpp_err=yes
3481 fi
3482 if test -z "$ac_cpp_err"; then
3483   :
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488   # Broken: fails on valid input.
3489 continue
3490 fi
3491 rm -f conftest.err conftest.$ac_ext
3492
3493   # OK, works on sane cases.  Now check whether non-existent headers
3494   # can be detected and how.
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 #include <ac_nonexistent.h>
3502 _ACEOF
3503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514   else
3515     ac_cpp_err=
3516   fi
3517 else
3518   ac_cpp_err=yes
3519 fi
3520 if test -z "$ac_cpp_err"; then
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3530 fi
3531 rm -f conftest.err conftest.$ac_ext
3532
3533 done
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3537   :
3538 else
3539   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&2;}
3543    { (exit 1); exit 1; }; }
3544 fi
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553
3554 # Create compiler version string
3555 if test x"$GCC" = x"yes" ; then
3556   cc_string="GCC `${CC} --version | sed q`"
3557 else
3558   cc_string=$CC
3559 fi
3560
3561 cat >>confdefs.h <<_ACEOF
3562 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3563 _ACEOF
3564
3565
3566
3567 #
3568 # Set up TAS assembly code if needed; the template file has now had its
3569 # chance to request this.
3570 #
3571           ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3572
3573
3574 if test "$need_tas" = yes ; then
3575   TAS=tas.o
3576 else
3577   TAS=""
3578 fi
3579
3580
3581
3582 #
3583 # Automatic dependency tracking
3584 #
3585
3586 pgac_args="$pgac_args enable_depend"
3587
3588 # Check whether --enable-depend or --disable-depend was given.
3589 if test "${enable_depend+set}" = set; then
3590   enableval="$enable_depend"
3591
3592   case $enableval in
3593     yes)
3594       autodepend=yes
3595       ;;
3596     no)
3597       :
3598       ;;
3599     *)
3600       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3601 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3602    { (exit 1); exit 1; }; }
3603       ;;
3604   esac
3605
3606 else
3607   enable_depend=no
3608
3609 fi;
3610
3611
3612
3613
3614 #
3615 # Enable assert checks
3616 #
3617
3618 pgac_args="$pgac_args enable_cassert"
3619
3620 # Check whether --enable-cassert or --disable-cassert was given.
3621 if test "${enable_cassert+set}" = set; then
3622   enableval="$enable_cassert"
3623
3624   case $enableval in
3625     yes)
3626
3627 cat >>confdefs.h <<\_ACEOF
3628 #define USE_ASSERT_CHECKING 1
3629 _ACEOF
3630
3631       ;;
3632     no)
3633       :
3634       ;;
3635     *)
3636       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3637 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3638    { (exit 1); exit 1; }; }
3639       ;;
3640   esac
3641
3642 else
3643   enable_cassert=no
3644
3645 fi;
3646
3647
3648
3649 #
3650 # Include directories
3651 #
3652 ac_save_IFS=$IFS
3653 IFS="${IFS}${PATH_SEPARATOR}"
3654 # SRCH_INC comes from the template file
3655 for dir in $with_includes $SRCH_INC; do
3656   if test -d "$dir"; then
3657     INCLUDES="$INCLUDES -I$dir"
3658   else
3659     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3660 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3661   fi
3662 done
3663 IFS=$ac_save_IFS
3664
3665
3666
3667 #
3668 # Library directories
3669 #
3670 ac_save_IFS=$IFS
3671 IFS="${IFS}${PATH_SEPARATOR}"
3672 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3673 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3674   if test -d "$dir"; then
3675     LIBDIRS="$LIBDIRS -L$dir"
3676   else
3677     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3678 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3679   fi
3680 done
3681 IFS=$ac_save_IFS
3682
3683 #
3684 # Enable thread-safe client libraries
3685 #
3686 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3687 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3688 if test "$PORTNAME" != "win32"; then
3689
3690 pgac_args="$pgac_args enable_thread_safety"
3691
3692 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3693 if test "${enable_thread_safety+set}" = set; then
3694   enableval="$enable_thread_safety"
3695
3696   case $enableval in
3697     yes)
3698       :
3699       ;;
3700     no)
3701       :
3702       ;;
3703     *)
3704       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3705 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3706    { (exit 1); exit 1; }; }
3707       ;;
3708   esac
3709
3710 else
3711   enable_thread_safety=no
3712
3713 fi;
3714
3715 else
3716 # Win32 should always use threads
3717
3718 pgac_args="$pgac_args enable_thread_safety"
3719
3720 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3721 if test "${enable_thread_safety+set}" = set; then
3722   enableval="$enable_thread_safety"
3723
3724   case $enableval in
3725     yes)
3726       :
3727       ;;
3728     no)
3729       :
3730       ;;
3731     *)
3732       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3733 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3734    { (exit 1); exit 1; }; }
3735       ;;
3736   esac
3737
3738 else
3739   enable_thread_safety=yes
3740
3741 fi;
3742
3743 fi
3744
3745
3746 pgac_args="$pgac_args enable_thread_safety_force"
3747
3748 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3749 if test "${enable_thread_safety_force+set}" = set; then
3750   enableval="$enable_thread_safety_force"
3751
3752   case $enableval in
3753     yes)
3754       :
3755       ;;
3756     no)
3757       :
3758       ;;
3759     *)
3760       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3761 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3762    { (exit 1); exit 1; }; }
3763       ;;
3764   esac
3765
3766 else
3767   enable_thread_safety_force=no
3768
3769 fi;
3770
3771 if test "$enable_thread_safety" = yes -o \
3772         "$enable_thread_safety_force" = yes; then
3773   enable_thread_safety="yes"    # for 'force'
3774
3775 cat >>confdefs.h <<\_ACEOF
3776 #define ENABLE_THREAD_SAFETY 1
3777 _ACEOF
3778
3779 fi
3780 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3781 echo "${ECHO_T}$enable_thread_safety" >&6
3782
3783
3784 #
3785 # Optionally build Tcl modules (PL/Tcl)
3786 #
3787 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3788 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3789
3790 pgac_args="$pgac_args with_tcl"
3791
3792
3793 # Check whether --with-tcl or --without-tcl was given.
3794 if test "${with_tcl+set}" = set; then
3795   withval="$with_tcl"
3796
3797   case $withval in
3798     yes)
3799       :
3800       ;;
3801     no)
3802       :
3803       ;;
3804     *)
3805       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3806 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3807    { (exit 1); exit 1; }; }
3808       ;;
3809   esac
3810
3811 else
3812   with_tcl=no
3813
3814 fi;
3815
3816 echo "$as_me:$LINENO: result: $with_tcl" >&5
3817 echo "${ECHO_T}$with_tcl" >&6
3818
3819
3820 # We see if the path to the Tcl/Tk configuration scripts is specified.
3821 # This will override the use of tclsh to find the paths to search.
3822
3823
3824 pgac_args="$pgac_args with_tclconfig"
3825
3826
3827 # Check whether --with-tclconfig or --without-tclconfig was given.
3828 if test "${with_tclconfig+set}" = set; then
3829   withval="$with_tclconfig"
3830
3831   case $withval in
3832     yes)
3833       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3834 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3835    { (exit 1); exit 1; }; }
3836       ;;
3837     no)
3838       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3839 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3840    { (exit 1); exit 1; }; }
3841       ;;
3842     *)
3843
3844       ;;
3845   esac
3846
3847 fi;
3848
3849
3850 #
3851 # Optionally build Perl modules (PL/Perl)
3852 #
3853 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3854 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3855
3856 pgac_args="$pgac_args with_perl"
3857
3858
3859 # Check whether --with-perl or --without-perl was given.
3860 if test "${with_perl+set}" = set; then
3861   withval="$with_perl"
3862
3863   case $withval in
3864     yes)
3865       :
3866       ;;
3867     no)
3868       :
3869       ;;
3870     *)
3871       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3872 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3873    { (exit 1); exit 1; }; }
3874       ;;
3875   esac
3876
3877 else
3878   with_perl=no
3879
3880 fi;
3881
3882 echo "$as_me:$LINENO: result: $with_perl" >&5
3883 echo "${ECHO_T}$with_perl" >&6
3884
3885
3886 #
3887 # Optionally build Python modules (PL/Python)
3888 #
3889 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3890 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3891
3892 pgac_args="$pgac_args with_python"
3893
3894
3895 # Check whether --with-python or --without-python was given.
3896 if test "${with_python+set}" = set; then
3897   withval="$with_python"
3898
3899   case $withval in
3900     yes)
3901       :
3902       ;;
3903     no)
3904       :
3905       ;;
3906     *)
3907       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3908 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3909    { (exit 1); exit 1; }; }
3910       ;;
3911   esac
3912
3913 else
3914   with_python=no
3915
3916 fi;
3917
3918 echo "$as_me:$LINENO: result: $with_python" >&5
3919 echo "${ECHO_T}$with_python" >&6
3920
3921
3922 #
3923 # Kerberos 5
3924 #
3925 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3926 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3927
3928 pgac_args="$pgac_args with_krb5"
3929
3930
3931 # Check whether --with-krb5 or --without-krb5 was given.
3932 if test "${with_krb5+set}" = set; then
3933   withval="$with_krb5"
3934
3935   case $withval in
3936     yes)
3937
3938
3939 cat >>confdefs.h <<\_ACEOF
3940 #define KRB5 1
3941 _ACEOF
3942
3943   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3944
3945       ;;
3946     no)
3947       :
3948       ;;
3949     *)
3950       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3951 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3952    { (exit 1); exit 1; }; }
3953       ;;
3954   esac
3955
3956 else
3957   with_krb5=no
3958
3959 fi;
3960
3961 echo "$as_me:$LINENO: result: $with_krb5" >&5
3962 echo "${ECHO_T}$with_krb5" >&6
3963
3964
3965
3966
3967
3968
3969 #
3970 # Kerberos configuration parameters
3971 #
3972
3973 pgac_args="$pgac_args with_krb_srvnam"
3974
3975
3976 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3977 if test "${with_krb_srvnam+set}" = set; then
3978   withval="$with_krb_srvnam"
3979
3980   case $withval in
3981     yes)
3982       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3983 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3984    { (exit 1); exit 1; }; }
3985       ;;
3986     no)
3987       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3988 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3989    { (exit 1); exit 1; }; }
3990       ;;
3991     *)
3992
3993       ;;
3994   esac
3995
3996 else
3997   with_krb_srvnam="postgres"
3998 fi;
3999
4000
4001 cat >>confdefs.h <<_ACEOF
4002 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4003 _ACEOF
4004
4005
4006
4007 #
4008 # PAM
4009 #
4010 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4011 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4012
4013 pgac_args="$pgac_args with_pam"
4014
4015
4016 # Check whether --with-pam or --without-pam was given.
4017 if test "${with_pam+set}" = set; then
4018   withval="$with_pam"
4019
4020   case $withval in
4021     yes)
4022
4023 cat >>confdefs.h <<\_ACEOF
4024 #define USE_PAM 1
4025 _ACEOF
4026
4027       ;;
4028     no)
4029       :
4030       ;;
4031     *)
4032       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4033 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4034    { (exit 1); exit 1; }; }
4035       ;;
4036   esac
4037
4038 else
4039   with_pam=no
4040
4041 fi;
4042
4043 echo "$as_me:$LINENO: result: $with_pam" >&5
4044 echo "${ECHO_T}$with_pam" >&6
4045
4046
4047
4048 #
4049 # LDAP
4050 #
4051 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4052 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4053
4054 pgac_args="$pgac_args with_ldap"
4055
4056
4057 # Check whether --with-ldap or --without-ldap was given.
4058 if test "${with_ldap+set}" = set; then
4059   withval="$with_ldap"
4060
4061   case $withval in
4062     yes)
4063
4064 cat >>confdefs.h <<\_ACEOF
4065 #define USE_LDAP 1
4066 _ACEOF
4067
4068       ;;
4069     no)
4070       :
4071       ;;
4072     *)
4073       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4074 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4075    { (exit 1); exit 1; }; }
4076       ;;
4077   esac
4078
4079 else
4080   with_ldap=no
4081
4082 fi;
4083
4084 echo "$as_me:$LINENO: result: $with_ldap" >&5
4085 echo "${ECHO_T}$with_ldap" >&6
4086
4087
4088
4089 #
4090 # Bonjour
4091 #
4092 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4093 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4094
4095 pgac_args="$pgac_args with_bonjour"
4096
4097
4098 # Check whether --with-bonjour or --without-bonjour was given.
4099 if test "${with_bonjour+set}" = set; then
4100   withval="$with_bonjour"
4101
4102   case $withval in
4103     yes)
4104
4105 cat >>confdefs.h <<\_ACEOF
4106 #define USE_BONJOUR 1
4107 _ACEOF
4108
4109       ;;
4110     no)
4111       :
4112       ;;
4113     *)
4114       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4115 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4116    { (exit 1); exit 1; }; }
4117       ;;
4118   esac
4119
4120 else
4121   with_bonjour=no
4122
4123 fi;
4124
4125 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4126 echo "${ECHO_T}$with_bonjour" >&6
4127
4128
4129
4130 #
4131 # OpenSSL
4132 #
4133 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4134 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4135
4136 pgac_args="$pgac_args with_openssl"
4137
4138
4139 # Check whether --with-openssl or --without-openssl was given.
4140 if test "${with_openssl+set}" = set; then
4141   withval="$with_openssl"
4142
4143   case $withval in
4144     yes)
4145
4146 cat >>confdefs.h <<\_ACEOF
4147 #define USE_SSL 1
4148 _ACEOF
4149
4150       ;;
4151     no)
4152       :
4153       ;;
4154     *)
4155       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4156 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4157    { (exit 1); exit 1; }; }
4158       ;;
4159   esac
4160
4161 else
4162   with_openssl=no
4163
4164 fi;
4165
4166 echo "$as_me:$LINENO: result: $with_openssl" >&5
4167 echo "${ECHO_T}$with_openssl" >&6
4168
4169
4170
4171 #
4172 # Readline
4173 #
4174
4175 pgac_args="$pgac_args with_readline"
4176
4177
4178 # Check whether --with-readline or --without-readline was given.
4179 if test "${with_readline+set}" = set; then
4180   withval="$with_readline"
4181
4182   case $withval in
4183     yes)
4184       :
4185       ;;
4186     no)
4187       :
4188       ;;
4189     *)
4190       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4191 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4192    { (exit 1); exit 1; }; }
4193       ;;
4194   esac
4195
4196 else
4197   with_readline=yes
4198
4199 fi;
4200
4201 # readline on MinGW has problems with backslashes in psql and other bugs.
4202 # This is particularly a problem with non-US code pages.
4203 # Therefore disable its use until we understand the cause. 2004-07-20
4204 if test "$PORTNAME" = "win32"; then
4205   if test "$with_readline" = yes; then
4206     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4207 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4208     with_readline=no
4209   fi
4210 fi
4211
4212
4213 #
4214 # Prefer libedit
4215 #
4216
4217 pgac_args="$pgac_args with_libedit_preferred"
4218
4219
4220 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4221 if test "${with_libedit_preferred+set}" = set; then
4222   withval="$with_libedit_preferred"
4223
4224   case $withval in
4225     yes)
4226       :
4227       ;;
4228     no)
4229       :
4230       ;;
4231     *)
4232       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4233 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4234    { (exit 1); exit 1; }; }
4235       ;;
4236   esac
4237
4238 else
4239   with_libedit_preferred=no
4240
4241 fi;
4242
4243
4244
4245 #
4246 # OSSP UUID library
4247 #
4248
4249 pgac_args="$pgac_args with_ossp_uuid"
4250
4251
4252 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4253 if test "${with_ossp_uuid+set}" = set; then
4254   withval="$with_ossp_uuid"
4255
4256   case $withval in
4257     yes)
4258       :
4259       ;;
4260     no)
4261       :
4262       ;;
4263     *)
4264       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4265 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4266    { (exit 1); exit 1; }; }
4267       ;;
4268   esac
4269
4270 else
4271   with_ossp_uuid=no
4272
4273 fi;
4274
4275
4276
4277
4278 #
4279 # XML
4280 #
4281
4282 pgac_args="$pgac_args with_libxml"
4283
4284
4285 # Check whether --with-libxml or --without-libxml was given.
4286 if test "${with_libxml+set}" = set; then
4287   withval="$with_libxml"
4288
4289   case $withval in
4290     yes)
4291
4292 cat >>confdefs.h <<\_ACEOF
4293 #define USE_LIBXML 1
4294 _ACEOF
4295
4296       ;;
4297     no)
4298       :
4299       ;;
4300     *)
4301       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4302 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4303    { (exit 1); exit 1; }; }
4304       ;;
4305   esac
4306
4307 else
4308   with_libxml=no
4309
4310 fi;
4311
4312
4313 if test "$with_libxml" = yes ; then
4314   for ac_prog in xml2-config
4315 do
4316   # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$XML2_CONFIG"; then
4324   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_XML2_CONFIG="$ac_prog"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340 fi
4341 fi
4342 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4343 if test -n "$XML2_CONFIG"; then
4344   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4345 echo "${ECHO_T}$XML2_CONFIG" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351   test -n "$XML2_CONFIG" && break
4352 done
4353
4354   if test -n "$XML2_CONFIG"; then
4355     for pgac_option in `$XML2_CONFIG --cflags`; do
4356       case $pgac_option in
4357         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4358       esac
4359     done
4360     for pgac_option in `$XML2_CONFIG --libs`; do
4361       case $pgac_option in
4362         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4363       esac
4364     done
4365   fi
4366 fi
4367
4368
4369
4370 #
4371 # XSLT
4372 #
4373
4374 pgac_args="$pgac_args with_libxslt"
4375
4376
4377 # Check whether --with-libxslt or --without-libxslt was given.
4378 if test "${with_libxslt+set}" = set; then
4379   withval="$with_libxslt"
4380
4381   case $withval in
4382     yes)
4383
4384 cat >>confdefs.h <<\_ACEOF
4385 #define USE_LIBXSLT 1
4386 _ACEOF
4387
4388       ;;
4389     no)
4390       :
4391       ;;
4392     *)
4393       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4394 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4395    { (exit 1); exit 1; }; }
4396       ;;
4397   esac
4398
4399 else
4400   with_libxslt=no
4401
4402 fi;
4403
4404
4405
4406
4407
4408 #
4409 # Zlib
4410 #
4411
4412 pgac_args="$pgac_args with_zlib"
4413
4414
4415 # Check whether --with-zlib or --without-zlib was given.
4416 if test "${with_zlib+set}" = set; then
4417   withval="$with_zlib"
4418
4419   case $withval in
4420     yes)
4421       :
4422       ;;
4423     no)
4424       :
4425       ;;
4426     *)
4427       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4428 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4429    { (exit 1); exit 1; }; }
4430       ;;
4431   esac
4432
4433 else
4434   with_zlib=yes
4435
4436 fi;
4437
4438
4439
4440 #
4441 # Elf
4442 #
4443
4444 # Assume system is ELF if it predefines __ELF__ as 1,
4445 # otherwise believe host_os based default.
4446 case $host_os in
4447     freebsd1*|freebsd2*) elf=no;;
4448     freebsd3*|freebsd4*) elf=yes;;
4449 esac
4450
4451
4452 echo "$as_me:$LINENO: checking for egrep" >&5
4453 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4454 if test "${ac_cv_prog_egrep+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4458     then ac_cv_prog_egrep='grep -E'
4459     else ac_cv_prog_egrep='egrep'
4460     fi
4461 fi
4462 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4463 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4464  EGREP=$ac_cv_prog_egrep
4465
4466
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473 #if __ELF__
4474   yes
4475 #endif
4476
4477 _ACEOF
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479   $EGREP "yes" >/dev/null 2>&1; then
4480   ELF_SYS=true
4481 else
4482   if test "X$elf" = "Xyes" ; then
4483   ELF_SYS=true
4484 else
4485   ELF_SYS=
4486 fi
4487 fi
4488 rm -f conftest*
4489
4490
4491
4492 #
4493 # Assignments
4494 #
4495
4496 CPPFLAGS="$CPPFLAGS $INCLUDES"
4497 LDFLAGS="$LDFLAGS $LIBDIRS"
4498
4499 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4500 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4501 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4502 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4503
4504
4505
4506 for ac_prog in gawk mawk nawk awk
4507 do
4508   # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_AWK+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$AWK"; then
4516   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_prog_AWK="$ac_prog"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532 fi
4533 fi
4534 AWK=$ac_cv_prog_AWK
4535 if test -n "$AWK"; then
4536   echo "$as_me:$LINENO: result: $AWK" >&5
4537 echo "${ECHO_T}$AWK" >&6
4538 else
4539   echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542
4543   test -n "$AWK" && break
4544 done
4545
4546 echo "$as_me:$LINENO: checking for flex" >&5
4547 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4548 if test "${pgac_cv_path_flex+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   # Let the user override the test
4552 if test -n "$FLEX"; then
4553   pgac_cv_path_flex=$FLEX
4554 else
4555   pgac_save_IFS=$IFS
4556   IFS=$PATH_SEPARATOR
4557   for pgac_dir in $PATH; do
4558     IFS=$pgac_save_IFS
4559     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4560       pgac_dir=`pwd`
4561     fi
4562     for pgac_prog in flex lex; do
4563       pgac_candidate="$pgac_dir/$pgac_prog"
4564       if test -f "$pgac_candidate" \
4565         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4566       then
4567         echo '%%'  > conftest.l
4568         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4569           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4570             pgac_broken_flex=$pgac_candidate
4571             continue
4572           fi
4573
4574           pgac_cv_path_flex=$pgac_candidate
4575           break 2
4576         fi
4577       fi
4578     done
4579   done
4580   rm -f conftest.l lex.yy.c
4581   : ${pgac_cv_path_flex=no}
4582 fi
4583
4584 fi
4585 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4586 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4587 if test x"$pgac_cv_path_flex" = x"no"; then
4588   if test -n "$pgac_broken_flex"; then
4589     { echo "$as_me:$LINENO: WARNING:
4590 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4591 *** should get version 2.5.4 or later." >&5
4592 echo "$as_me: WARNING:
4593 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4594 *** should get version 2.5.4 or later." >&2;}
4595   fi
4596
4597   { echo "$as_me:$LINENO: WARNING:
4598 *** Without Flex you will not be able to build PostgreSQL from CVS or
4599 *** change any of the scanner definition files.  You can obtain Flex 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 Flex
4602 *** output is pre-generated.)" >&5
4603 echo "$as_me: WARNING:
4604 *** Without Flex you will not be able to build PostgreSQL from CVS or
4605 *** change any of the scanner definition files.  You can obtain Flex from
4606 *** a GNU mirror site.  (If you are using the official distribution of
4607 *** PostgreSQL then you do not need to worry about this because the Flex
4608 *** output is pre-generated.)" >&2;}
4609 fi
4610
4611 if test x"$pgac_cv_path_flex" = x"no"; then
4612   FLEX=
4613 else
4614   FLEX=$pgac_cv_path_flex
4615 fi
4616
4617
4618
4619
4620 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4621 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4622 LN_S=$as_ln_s
4623 if test "$LN_S" = "ln -s"; then
4624   echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4626 else
4627   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4628 echo "${ECHO_T}no, using $LN_S" >&6
4629 fi
4630
4631
4632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4633 if test "${with_gnu_ld+set}" = set; then
4634   withval="$with_gnu_ld"
4635   test "$withval" = no || with_gnu_ld=yes
4636 else
4637   with_gnu_ld=no
4638 fi;
4639 ac_prog=ld
4640 if test "$GCC" = yes; then
4641   # Check if gcc -print-prog-name=ld gives a path.
4642   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4643 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4644   case $host in
4645   *-*-mingw*)
4646     # gcc leaves a trailing carriage return which upsets mingw
4647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4648   *)
4649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4650   esac
4651   case "$ac_prog" in
4652     # Accept absolute paths.
4653     [\\/]* | [A-Za-z]:[\\/]*)
4654       re_direlt='/[^/][^/]*/\.\./'
4655       # Canonicalize the path of ld
4656       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4657       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4658         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4659       done
4660       test -z "$LD" && LD="$ac_prog"
4661       ;;
4662   "")
4663     # If it fails, then pretend we aren't using GCC.
4664     ac_prog=ld
4665     ;;
4666   *)
4667     # If it is relative, then search for the first ld in PATH.
4668     with_gnu_ld=unknown
4669     ;;
4670   esac
4671 elif test "$with_gnu_ld" = yes; then
4672   echo "$as_me:$LINENO: checking for GNU ld" >&5
4673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4674 else
4675   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4677 fi
4678 if test "${ac_cv_path_LD+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -z "$LD"; then
4682   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4683   for ac_dir in $PATH; do
4684     test -z "$ac_dir" && ac_dir=.
4685     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4686       ac_cv_path_LD="$ac_dir/$ac_prog"
4687       # Check to see if the program is GNU ld.  I'd rather use --version,
4688       # but apparently some GNU ld's only accept -v.
4689       # Break only if it was the GNU/non-GNU ld that we prefer.
4690       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4691         test "$with_gnu_ld" != no && break
4692       else
4693         test "$with_gnu_ld" != yes && break
4694       fi
4695     fi
4696   done
4697   IFS="$ac_save_ifs"
4698 else
4699   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4700 fi
4701 fi
4702
4703 LD="$ac_cv_path_LD"
4704 if test -n "$LD"; then
4705   echo "$as_me:$LINENO: result: $LD" >&5
4706 echo "${ECHO_T}$LD" >&6
4707 else
4708   echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4710 fi
4711 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4712 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4713    { (exit 1); exit 1; }; }
4714 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4715 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4716 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4720 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4721   ac_cv_prog_gnu_ld=yes
4722 else
4723   ac_cv_prog_gnu_ld=no
4724 fi
4725 fi
4726 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4727 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4728 with_gnu_ld=$ac_cv_prog_gnu_ld
4729
4730
4731
4732
4733 case $host_os in sysv5*)
4734   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4735 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4736 if test "${pgac_cv_prog_ld_R+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739
4740     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4741     cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 int
4749 main ()
4750 {
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758   (eval $ac_link) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_c_werror_flag"
4766                          || test ! -s conftest.err'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; } &&
4772          { ac_try='test -s conftest$ac_exeext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   pgac_cv_prog_ld_R=yes
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 pgac_cv_prog_ld_R=no
4784 fi
4785 rm -f conftest.err conftest.$ac_objext \
4786       conftest$ac_exeext conftest.$ac_ext
4787     LDFLAGS=$pgac_save_LDFLAGS
4788
4789 fi
4790 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4791 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4792   ld_R_works=$pgac_cv_prog_ld_R
4793
4794 esac
4795 if test -n "$ac_tool_prefix"; then
4796   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_RANLIB+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   if test -n "$RANLIB"; then
4804   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811   for ac_exec_ext in '' $ac_executable_extensions; do
4812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818 done
4819
4820 fi
4821 fi
4822 RANLIB=$ac_cv_prog_RANLIB
4823 if test -n "$RANLIB"; then
4824   echo "$as_me:$LINENO: result: $RANLIB" >&5
4825 echo "${ECHO_T}$RANLIB" >&6
4826 else
4827   echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4829 fi
4830
4831 fi
4832 if test -z "$ac_cv_prog_RANLIB"; then
4833   ac_ct_RANLIB=$RANLIB
4834   # Extract the first word of "ranlib", so it can be a program name with args.
4835 set dummy ranlib; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -n "$ac_ct_RANLIB"; then
4842   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851     ac_cv_prog_ac_ct_RANLIB="ranlib"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857
4858   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4859 fi
4860 fi
4861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4862 if test -n "$ac_ct_RANLIB"; then
4863   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4864 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4865 else
4866   echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870   RANLIB=$ac_ct_RANLIB
4871 else
4872   RANLIB="$ac_cv_prog_RANLIB"
4873 fi
4874
4875 # Extract the first word of "tar", so it can be a program name with args.
4876 set dummy tar; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_TAR+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   case $TAR in
4883   [\\/]* | ?:[\\/]*)
4884   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892   for ac_exec_ext in '' $ac_executable_extensions; do
4893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899 done
4900
4901   ;;
4902 esac
4903 fi
4904 TAR=$ac_cv_path_TAR
4905
4906 if test -n "$TAR"; then
4907   echo "$as_me:$LINENO: result: $TAR" >&5
4908 echo "${ECHO_T}$TAR" >&6
4909 else
4910   echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4912 fi
4913
4914
4915   if test -n "$ac_tool_prefix"; then
4916   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}strip; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_STRIP+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   if test -n "$STRIP"; then
4924   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939
4940 fi
4941 fi
4942 STRIP=$ac_cv_prog_STRIP
4943 if test -n "$STRIP"; then
4944   echo "$as_me:$LINENO: result: $STRIP" >&5
4945 echo "${ECHO_T}$STRIP" >&6
4946 else
4947   echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4949 fi
4950
4951 fi
4952 if test -z "$ac_cv_prog_STRIP"; then
4953   ac_ct_STRIP=$STRIP
4954   # Extract the first word of "strip", so it can be a program name with args.
4955 set dummy strip; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   if test -n "$ac_ct_STRIP"; then
4962   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971     ac_cv_prog_ac_ct_STRIP="strip"
4972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976 done
4977
4978   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4979 fi
4980 fi
4981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4982 if test -n "$ac_ct_STRIP"; then
4983   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4984 echo "${ECHO_T}$ac_ct_STRIP" >&6
4985 else
4986   echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4988 fi
4989
4990   STRIP=$ac_ct_STRIP
4991 else
4992   STRIP="$ac_cv_prog_STRIP"
4993 fi
4994
4995
4996   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4997 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4998   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4999     STRIP_STATIC_LIB="$STRIP -x"
5000     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5001     echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003   else
5004     STRIP_STATIC_LIB=:
5005     STRIP_SHARED_LIB=:
5006     echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008   fi
5009
5010
5011
5012
5013 if test -z "$YACC"; then
5014   for ac_prog in 'bison -y'
5015 do
5016   # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_YACC+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$YACC"; then
5024   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_prog_YACC="$ac_prog"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039
5040 fi
5041 fi
5042 YACC=$ac_cv_prog_YACC
5043 if test -n "$YACC"; then
5044   echo "$as_me:$LINENO: result: $YACC" >&5
5045 echo "${ECHO_T}$YACC" >&6
5046 else
5047   echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5049 fi
5050
5051   test -n "$YACC" && break
5052 done
5053
5054
5055   if test "$YACC"; then
5056     if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
5057       { echo "$as_me:$LINENO: WARNING:
5058 *** The installed version of Bison is too old to use with PostgreSQL.
5059 *** Bison version 1.875 or later is required." >&5
5060 echo "$as_me: WARNING:
5061 *** The installed version of Bison is too old to use with PostgreSQL.
5062 *** Bison version 1.875 or later is required." >&2;}
5063       YACC=""
5064     fi
5065   fi
5066
5067   if test -z "$YACC"; then
5068     { echo "$as_me:$LINENO: WARNING:
5069 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5070 *** change any of the parser definition files.  You can obtain Bison from
5071 *** a GNU mirror site.  (If you are using the official distribution of
5072 *** PostgreSQL then you do not need to worry about this, because the Bison
5073 *** output is pre-generated.)  To use a different yacc program (possible,
5074 *** but not recommended), set the environment variable YACC before running
5075 *** 'configure'." >&5
5076 echo "$as_me: WARNING:
5077 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5078 *** change any of the parser definition files.  You can obtain Bison from
5079 *** a GNU mirror site.  (If you are using the official distribution of
5080 *** PostgreSQL then you do not need to worry about this, because the Bison
5081 *** output is pre-generated.)  To use a different yacc program (possible,
5082 *** but not recommended), set the environment variable YACC before running
5083 *** 'configure'." >&2;}
5084   fi
5085 fi
5086
5087
5088 # Extract the first word of "perl", so it can be a program name with args.
5089 set dummy perl; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_path_PERL+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   case $PERL in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113
5114   ;;
5115 esac
5116 fi
5117 PERL=$ac_cv_path_PERL
5118
5119 if test -n "$PERL"; then
5120   echo "$as_me:$LINENO: result: $PERL" >&5
5121 echo "${ECHO_T}$PERL" >&6
5122 else
5123   echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6
5125 fi
5126
5127 if test "$with_perl" = yes; then
5128
5129 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5130 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5131 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5132 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5133 echo "${ECHO_T}$perl_archlibexp" >&6
5134 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5135 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5136 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5137 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5138 echo "${ECHO_T}$perl_privlibexp" >&6
5139 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5140 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5141 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5142 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5143 echo "${ECHO_T}$perl_useshrplib" >&6
5144
5145 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5146 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5147 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5148 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5149 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5150 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5151 echo "${ECHO_T}$perl_embed_ldflags" >&6
5152 fi
5153
5154 if test "$with_python" = yes; then
5155   # Extract the first word of "python", so it can be a program name with args.
5156 set dummy python; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_path_PYTHON+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   case $PYTHON in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172   for ac_exec_ext in '' $ac_executable_extensions; do
5173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180
5181   ;;
5182 esac
5183 fi
5184 PYTHON=$ac_cv_path_PYTHON
5185
5186 if test -n "$PYTHON"; then
5187   echo "$as_me:$LINENO: result: $PYTHON" >&5
5188 echo "${ECHO_T}$PYTHON" >&6
5189 else
5190   echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5192 fi
5193
5194 if test x"$PYTHON" = x""; then
5195   { { echo "$as_me:$LINENO: error: Python not found" >&5
5196 echo "$as_me: error: Python not found" >&2;}
5197    { (exit 1); exit 1; }; }
5198 fi
5199
5200
5201 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5202 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5203 if "${PYTHON}" 2>&- -c 'import distutils'
5204 then
5205     echo "$as_me:$LINENO: result: yes" >&5
5206 echo "${ECHO_T}yes" >&6
5207 else
5208     echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5211 echo "$as_me: error: distutils module not found" >&2;}
5212    { (exit 1); exit 1; }; }
5213 fi
5214 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5215 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5216 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5217 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')"`
5218 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5219
5220 # This should be enough of a message.
5221 echo "$as_me:$LINENO: result: $python_configdir" >&5
5222 echo "${ECHO_T}$python_configdir" >&6
5223
5224
5225 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5226 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5227
5228 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5229 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5230 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5231 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5232
5233 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5234 then
5235         # New way: use the official shared library
5236         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5237         python_libspec="-L${python_libdir} -l${ldlibrary}"
5238 else
5239         # Old way: use libpython from python_configdir
5240         python_libdir="${python_configdir}"
5241         python_libspec="-L${python_libdir} -lpython${python_version}"
5242 fi
5243
5244 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5245
5246 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5247 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5248
5249
5250 # threaded python is not supported on bsd's
5251 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5252 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5253 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5254 if test "$pythreads" = "1"; then
5255   echo "$as_me:$LINENO: result: yes" >&5
5256 echo "${ECHO_T}yes" >&6
5257   case $host_os in
5258   openbsd*|freebsd*)
5259     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5260 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5261    { (exit 1); exit 1; }; }
5262     ;;
5263   esac
5264 else
5265   echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 fi
5271
5272 # Supply a numeric version string for use by 3rd party add-ons
5273 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5274 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5275 tr '.' '        ' |
5276 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5277
5278 cat >>confdefs.h <<_ACEOF
5279 #define PG_VERSION_NUM $PG_VERSION_NUM
5280 _ACEOF
5281
5282
5283 ##
5284 ## Libraries
5285 ##
5286 ## Most libraries are included only if they demonstrably provide a function
5287 ## we need, but libm is an exception: always include it, because there are
5288 ## too many compilers that play cute optimization games that will break
5289 ## probes for standard functions such as pow().
5290 ##
5291
5292
5293 echo "$as_me:$LINENO: checking for main in -lm" >&5
5294 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5295 if test "${ac_cv_lib_m_main+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   ac_check_lib_save_LIBS=$LIBS
5299 LIBS="-lm  $LIBS"
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307
5308 int
5309 main ()
5310 {
5311 main ();
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 rm -f conftest.$ac_objext conftest$ac_exeext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5318   (eval $ac_link) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } &&
5325          { ac_try='test -z "$ac_c_werror_flag"
5326                          || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest$ac_exeext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_lib_m_main=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_lib_m_main=no
5344 fi
5345 rm -f conftest.err conftest.$ac_objext \
5346       conftest$ac_exeext conftest.$ac_ext
5347 LIBS=$ac_check_lib_save_LIBS
5348 fi
5349 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5350 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5351 if test $ac_cv_lib_m_main = yes; then
5352   cat >>confdefs.h <<_ACEOF
5353 #define HAVE_LIBM 1
5354 _ACEOF
5355
5356   LIBS="-lm $LIBS"
5357
5358 fi
5359
5360 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5361 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5362 if test "${ac_cv_search_setproctitle+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   ac_func_search_save_LIBS=$LIBS
5366 ac_cv_search_setproctitle=no
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373
5374 /* Override any gcc2 internal prototype to avoid an error.  */
5375 #ifdef __cplusplus
5376 extern "C"
5377 #endif
5378 /* We use char because int might match the return type of a gcc2
5379    builtin and then its argument prototype would still apply.  */
5380 char setproctitle ();
5381 int
5382 main ()
5383 {
5384 setproctitle ();
5385   ;
5386   return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391   (eval $ac_link) 2>conftest.er1
5392   ac_status=$?
5393   grep -v '^ *+' conftest.er1 >conftest.err
5394   rm -f conftest.er1
5395   cat conftest.err >&5
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } &&
5398          { ac_try='test -z "$ac_c_werror_flag"
5399                          || test ! -s conftest.err'
5400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401   (eval $ac_try) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; } &&
5405          { ac_try='test -s conftest$ac_exeext'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; }; then
5411   ac_cv_search_setproctitle="none required"
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 fi
5417 rm -f conftest.err conftest.$ac_objext \
5418       conftest$ac_exeext conftest.$ac_ext
5419 if test "$ac_cv_search_setproctitle" = no; then
5420   for ac_lib in util; do
5421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5422     cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428
5429 /* Override any gcc2 internal prototype to avoid an error.  */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434    builtin and then its argument prototype would still apply.  */
5435 char setproctitle ();
5436 int
5437 main ()
5438 {
5439 setproctitle ();
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446   (eval $ac_link) 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -z "$ac_c_werror_flag"
5454                          || test ! -s conftest.err'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; } &&
5460          { ac_try='test -s conftest$ac_exeext'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; }; then
5466   ac_cv_search_setproctitle="-l$ac_lib"
5467 break
5468 else
5469   echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 fi
5473 rm -f conftest.err conftest.$ac_objext \
5474       conftest$ac_exeext conftest.$ac_ext
5475   done
5476 fi
5477 LIBS=$ac_func_search_save_LIBS
5478 fi
5479 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5480 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5481 if test "$ac_cv_search_setproctitle" != no; then
5482   test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5483
5484 fi
5485
5486 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5487 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5488 if test "${ac_cv_search_dlopen+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   ac_func_search_save_LIBS=$LIBS
5492 ac_cv_search_dlopen=no
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499
5500 /* Override any gcc2 internal prototype to avoid an error.  */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505    builtin and then its argument prototype would still apply.  */
5506 char dlopen ();
5507 int
5508 main ()
5509 {
5510 dlopen ();
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517   (eval $ac_link) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -z "$ac_c_werror_flag"
5525                          || test ! -s conftest.err'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; } &&
5531          { ac_try='test -s conftest$ac_exeext'
5532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); }; }; then
5537   ac_cv_search_dlopen="none required"
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 fi
5543 rm -f conftest.err conftest.$ac_objext \
5544       conftest$ac_exeext conftest.$ac_ext
5545 if test "$ac_cv_search_dlopen" = no; then
5546   for ac_lib in dl; do
5547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5548     cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554
5555 /* Override any gcc2 internal prototype to avoid an error.  */
5556 #ifdef __cplusplus
5557 extern "C"
5558 #endif
5559 /* We use char because int might match the return type of a gcc2
5560    builtin and then its argument prototype would still apply.  */
5561 char dlopen ();
5562 int
5563 main ()
5564 {
5565 dlopen ();
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572   (eval $ac_link) 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } &&
5579          { ac_try='test -z "$ac_c_werror_flag"
5580                          || test ! -s conftest.err'
5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582   (eval $ac_try) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; } &&
5586          { ac_try='test -s conftest$ac_exeext'
5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); }; }; then
5592   ac_cv_search_dlopen="-l$ac_lib"
5593 break
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 fi
5599 rm -f conftest.err conftest.$ac_objext \
5600       conftest$ac_exeext conftest.$ac_ext
5601   done
5602 fi
5603 LIBS=$ac_func_search_save_LIBS
5604 fi
5605 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5606 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5607 if test "$ac_cv_search_dlopen" != no; then
5608   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5609
5610 fi
5611
5612 echo "$as_me:$LINENO: checking for library containing socket" >&5
5613 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5614 if test "${ac_cv_search_socket+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   ac_func_search_save_LIBS=$LIBS
5618 ac_cv_search_socket=no
5619 cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625
5626 /* Override any gcc2 internal prototype to avoid an error.  */
5627 #ifdef __cplusplus
5628 extern "C"
5629 #endif
5630 /* We use char because int might match the return type of a gcc2
5631    builtin and then its argument prototype would still apply.  */
5632 char socket ();
5633 int
5634 main ()
5635 {
5636 socket ();
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643   (eval $ac_link) 2>conftest.er1
5644   ac_status=$?
5645   grep -v '^ *+' conftest.er1 >conftest.err
5646   rm -f conftest.er1
5647   cat conftest.err >&5
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); } &&
5650          { ac_try='test -z "$ac_c_werror_flag"
5651                          || test ! -s conftest.err'
5652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653   (eval $ac_try) 2>&5
5654   ac_status=$?
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); }; } &&
5657          { ac_try='test -s conftest$ac_exeext'
5658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659   (eval $ac_try) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; }; then
5663   ac_cv_search_socket="none required"
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 fi
5669 rm -f conftest.err conftest.$ac_objext \
5670       conftest$ac_exeext conftest.$ac_ext
5671 if test "$ac_cv_search_socket" = no; then
5672   for ac_lib in socket wsock32; do
5673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5674     cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 #endif
5685 /* We use char because int might match the return type of a gcc2
5686    builtin and then its argument prototype would still apply.  */
5687 char socket ();
5688 int
5689 main ()
5690 {
5691 socket ();
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>conftest.er1
5699   ac_status=$?
5700   grep -v '^ *+' conftest.er1 >conftest.err
5701   rm -f conftest.er1
5702   cat conftest.err >&5
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -z "$ac_c_werror_flag"
5706                          || test ! -s conftest.err'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_cv_search_socket="-l$ac_lib"
5719 break
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 fi
5725 rm -f conftest.err conftest.$ac_objext \
5726       conftest$ac_exeext conftest.$ac_ext
5727   done
5728 fi
5729 LIBS=$ac_func_search_save_LIBS
5730 fi
5731 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5732 echo "${ECHO_T}$ac_cv_search_socket" >&6
5733 if test "$ac_cv_search_socket" != no; then
5734   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5735
5736 fi
5737
5738 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5739 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5740 if test "${ac_cv_search_shl_load+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   ac_func_search_save_LIBS=$LIBS
5744 ac_cv_search_shl_load=no
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751
5752 /* Override any gcc2 internal prototype to avoid an error.  */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757    builtin and then its argument prototype would still apply.  */
5758 char shl_load ();
5759 int
5760 main ()
5761 {
5762 shl_load ();
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769   (eval $ac_link) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -z "$ac_c_werror_flag"
5777                          || test ! -s conftest.err'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest$ac_exeext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_cv_search_shl_load="none required"
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 fi
5795 rm -f conftest.err conftest.$ac_objext \
5796       conftest$ac_exeext conftest.$ac_ext
5797 if test "$ac_cv_search_shl_load" = no; then
5798   for ac_lib in dld; do
5799     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5800     cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806
5807 /* Override any gcc2 internal prototype to avoid an error.  */
5808 #ifdef __cplusplus
5809 extern "C"
5810 #endif
5811 /* We use char because int might match the return type of a gcc2
5812    builtin and then its argument prototype would still apply.  */
5813 char shl_load ();
5814 int
5815 main ()
5816 {
5817 shl_load ();
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext conftest$ac_exeext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824   (eval $ac_link) 2>conftest.er1
5825   ac_status=$?
5826   grep -v '^ *+' conftest.er1 >conftest.err
5827   rm -f conftest.er1
5828   cat conftest.err >&5
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); } &&
5831          { ac_try='test -z "$ac_c_werror_flag"
5832                          || test ! -s conftest.err'
5833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834   (eval $ac_try) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; } &&
5838          { ac_try='test -s conftest$ac_exeext'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; }; then
5844   ac_cv_search_shl_load="-l$ac_lib"
5845 break
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 fi
5851 rm -f conftest.err conftest.$ac_objext \
5852       conftest$ac_exeext conftest.$ac_ext
5853   done
5854 fi
5855 LIBS=$ac_func_search_save_LIBS
5856 fi
5857 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5858 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5859 if test "$ac_cv_search_shl_load" != no; then
5860   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5861
5862 fi
5863
5864 # We only use libld in port/dynloader/aix.c
5865 case $host_os in
5866      aix*)
5867         echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5868 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5869 if test "${ac_cv_search_ldopen+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   ac_func_search_save_LIBS=$LIBS
5873 ac_cv_search_ldopen=no
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880
5881 /* Override any gcc2 internal prototype to avoid an error.  */
5882 #ifdef __cplusplus
5883 extern "C"
5884 #endif
5885 /* We use char because int might match the return type of a gcc2
5886    builtin and then its argument prototype would still apply.  */
5887 char ldopen ();
5888 int
5889 main ()
5890 {
5891 ldopen ();
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898   (eval $ac_link) 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -z "$ac_c_werror_flag"
5906                          || test ! -s conftest.err'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; } &&
5912          { ac_try='test -s conftest$ac_exeext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   ac_cv_search_ldopen="none required"
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926 if test "$ac_cv_search_ldopen" = no; then
5927   for ac_lib in ld; do
5928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5929     cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935
5936 /* Override any gcc2 internal prototype to avoid an error.  */
5937 #ifdef __cplusplus
5938 extern "C"
5939 #endif
5940 /* We use char because int might match the return type of a gcc2
5941    builtin and then its argument prototype would still apply.  */
5942 char ldopen ();
5943 int
5944 main ()
5945 {
5946 ldopen ();
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953   (eval $ac_link) 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -z "$ac_c_werror_flag"
5961                          || test ! -s conftest.err'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; } &&
5967          { ac_try='test -s conftest$ac_exeext'
5968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969   (eval $ac_try) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); }; }; then
5973   ac_cv_search_ldopen="-l$ac_lib"
5974 break
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 fi
5980 rm -f conftest.err conftest.$ac_objext \
5981       conftest$ac_exeext conftest.$ac_ext
5982   done
5983 fi
5984 LIBS=$ac_func_search_save_LIBS
5985 fi
5986 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5987 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5988 if test "$ac_cv_search_ldopen" != no; then
5989   test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5990
5991 fi
5992
5993         ;;
5994 esac
5995 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5996 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5997 if test "${ac_cv_search_getopt_long+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   ac_func_search_save_LIBS=$LIBS
6001 ac_cv_search_getopt_long=no
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008
6009 /* Override any gcc2 internal prototype to avoid an error.  */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 /* We use char because int might match the return type of a gcc2
6014    builtin and then its argument prototype would still apply.  */
6015 char getopt_long ();
6016 int
6017 main ()
6018 {
6019 getopt_long ();
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026   (eval $ac_link) 2>conftest.er1
6027   ac_status=$?
6028   grep -v '^ *+' conftest.er1 >conftest.err
6029   rm -f conftest.er1
6030   cat conftest.err >&5
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); } &&
6033          { ac_try='test -z "$ac_c_werror_flag"
6034                          || test ! -s conftest.err'
6035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036   (eval $ac_try) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; } &&
6040          { ac_try='test -s conftest$ac_exeext'
6041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042   (eval $ac_try) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); }; }; then
6046   ac_cv_search_getopt_long="none required"
6047 else
6048   echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053       conftest$ac_exeext conftest.$ac_ext
6054 if test "$ac_cv_search_getopt_long" = no; then
6055   for ac_lib in getopt gnugetopt; do
6056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6057     cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063
6064 /* Override any gcc2 internal prototype to avoid an error.  */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 /* We use char because int might match the return type of a gcc2
6069    builtin and then its argument prototype would still apply.  */
6070 char getopt_long ();
6071 int
6072 main ()
6073 {
6074 getopt_long ();
6075   ;
6076   return 0;
6077 }
6078 _ACEOF
6079 rm -f conftest.$ac_objext conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081   (eval $ac_link) 2>conftest.er1
6082   ac_status=$?
6083   grep -v '^ *+' conftest.er1 >conftest.err
6084   rm -f conftest.er1
6085   cat conftest.err >&5
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -z "$ac_c_werror_flag"
6089                          || test ! -s conftest.err'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; } &&
6095          { ac_try='test -s conftest$ac_exeext'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; }; then
6101   ac_cv_search_getopt_long="-l$ac_lib"
6102 break
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 fi
6108 rm -f conftest.err conftest.$ac_objext \
6109       conftest$ac_exeext conftest.$ac_ext
6110   done
6111 fi
6112 LIBS=$ac_func_search_save_LIBS
6113 fi
6114 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6115 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6116 if test "$ac_cv_search_getopt_long" != no; then
6117   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6118
6119 fi
6120
6121 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6122 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6123 if test "${ac_cv_search_crypt+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   ac_func_search_save_LIBS=$LIBS
6127 ac_cv_search_crypt=no
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134
6135 /* Override any gcc2 internal prototype to avoid an error.  */
6136 #ifdef __cplusplus
6137 extern "C"
6138 #endif
6139 /* We use char because int might match the return type of a gcc2
6140    builtin and then its argument prototype would still apply.  */
6141 char crypt ();
6142 int
6143 main ()
6144 {
6145 crypt ();
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152   (eval $ac_link) 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } &&
6159          { ac_try='test -z "$ac_c_werror_flag"
6160                          || test ! -s conftest.err'
6161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162   (eval $ac_try) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }; } &&
6166          { ac_try='test -s conftest$ac_exeext'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; }; then
6172   ac_cv_search_crypt="none required"
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 fi
6178 rm -f conftest.err conftest.$ac_objext \
6179       conftest$ac_exeext conftest.$ac_ext
6180 if test "$ac_cv_search_crypt" = no; then
6181   for ac_lib in crypt; do
6182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6183     cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189
6190 /* Override any gcc2 internal prototype to avoid an error.  */
6191 #ifdef __cplusplus
6192 extern "C"
6193 #endif
6194 /* We use char because int might match the return type of a gcc2
6195    builtin and then its argument prototype would still apply.  */
6196 char crypt ();
6197 int
6198 main ()
6199 {
6200 crypt ();
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext conftest$ac_exeext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207   (eval $ac_link) 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } &&
6214          { ac_try='test -z "$ac_c_werror_flag"
6215                          || test ! -s conftest.err'
6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217   (eval $ac_try) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); }; } &&
6221          { ac_try='test -s conftest$ac_exeext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_cv_search_crypt="-l$ac_lib"
6228 break
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 fi
6234 rm -f conftest.err conftest.$ac_objext \
6235       conftest$ac_exeext conftest.$ac_ext
6236   done
6237 fi
6238 LIBS=$ac_func_search_save_LIBS
6239 fi
6240 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6241 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6242 if test "$ac_cv_search_crypt" != no; then
6243   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6244
6245 fi
6246
6247 # Solaris:
6248 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6249 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6250 if test "${ac_cv_search_fdatasync+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   ac_func_search_save_LIBS=$LIBS
6254 ac_cv_search_fdatasync=no
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261
6262 /* Override any gcc2 internal prototype to avoid an error.  */
6263 #ifdef __cplusplus
6264 extern "C"
6265 #endif
6266 /* We use char because int might match the return type of a gcc2
6267    builtin and then its argument prototype would still apply.  */
6268 char fdatasync ();
6269 int
6270 main ()
6271 {
6272 fdatasync ();
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279   (eval $ac_link) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } &&
6286          { ac_try='test -z "$ac_c_werror_flag"
6287                          || test ! -s conftest.err'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; } &&
6293          { ac_try='test -s conftest$ac_exeext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   ac_cv_search_fdatasync="none required"
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 fi
6305 rm -f conftest.err conftest.$ac_objext \
6306       conftest$ac_exeext conftest.$ac_ext
6307 if test "$ac_cv_search_fdatasync" = no; then
6308   for ac_lib in rt posix4; do
6309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6310     cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316
6317 /* Override any gcc2 internal prototype to avoid an error.  */
6318 #ifdef __cplusplus
6319 extern "C"
6320 #endif
6321 /* We use char because int might match the return type of a gcc2
6322    builtin and then its argument prototype would still apply.  */
6323 char fdatasync ();
6324 int
6325 main ()
6326 {
6327 fdatasync ();
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334   (eval $ac_link) 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } &&
6341          { ac_try='test -z "$ac_c_werror_flag"
6342                          || test ! -s conftest.err'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest$ac_exeext'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   ac_cv_search_fdatasync="-l$ac_lib"
6355 break
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   done
6364 fi
6365 LIBS=$ac_func_search_save_LIBS
6366 fi
6367 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6368 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6369 if test "$ac_cv_search_fdatasync" != no; then
6370   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6371
6372 fi
6373
6374 # Cygwin:
6375 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6376 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6377 if test "${ac_cv_search_shmget+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   ac_func_search_save_LIBS=$LIBS
6381 ac_cv_search_shmget=no
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h.  */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h.  */
6388
6389 /* Override any gcc2 internal prototype to avoid an error.  */
6390 #ifdef __cplusplus
6391 extern "C"
6392 #endif
6393 /* We use char because int might match the return type of a gcc2
6394    builtin and then its argument prototype would still apply.  */
6395 char shmget ();
6396 int
6397 main ()
6398 {
6399 shmget ();
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406   (eval $ac_link) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_c_werror_flag"
6414                          || test ! -s conftest.err'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest$ac_exeext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_search_shmget="none required"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 fi
6432 rm -f conftest.err conftest.$ac_objext \
6433       conftest$ac_exeext conftest.$ac_ext
6434 if test "$ac_cv_search_shmget" = no; then
6435   for ac_lib in cygipc; do
6436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6437     cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443
6444 /* Override any gcc2 internal prototype to avoid an error.  */
6445 #ifdef __cplusplus
6446 extern "C"
6447 #endif
6448 /* We use char because int might match the return type of a gcc2
6449    builtin and then its argument prototype would still apply.  */
6450 char shmget ();
6451 int
6452 main ()
6453 {
6454 shmget ();
6455   ;
6456   return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461   (eval $ac_link) 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } &&
6468          { ac_try='test -z "$ac_c_werror_flag"
6469                          || test ! -s conftest.err'
6470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471   (eval $ac_try) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); }; } &&
6475          { ac_try='test -s conftest$ac_exeext'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; }; then
6481   ac_cv_search_shmget="-l$ac_lib"
6482 break
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 fi
6488 rm -f conftest.err conftest.$ac_objext \
6489       conftest$ac_exeext conftest.$ac_ext
6490   done
6491 fi
6492 LIBS=$ac_func_search_save_LIBS
6493 fi
6494 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6495 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6496 if test "$ac_cv_search_shmget" != no; then
6497   test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6498
6499 fi
6500
6501
6502 if test "$with_readline" = yes; then
6503
6504
6505 if test "${pgac_cv_check_readline+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   pgac_cv_check_readline=no
6509 pgac_save_LIBS=$LIBS
6510 if test x"$with_libedit_preferred" != x"yes"
6511 then    READLINE_ORDER="-lreadline -ledit"
6512 else    READLINE_ORDER="-ledit -lreadline"
6513 fi
6514 for pgac_rllib in $READLINE_ORDER ; do
6515   echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6516 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6517   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6518     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6519     cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525
6526 /* Override any gcc2 internal prototype to avoid an error.  */
6527 #ifdef __cplusplus
6528 extern "C"
6529 #endif
6530 /* We use char because int might match the return type of a gcc2
6531    builtin and then its argument prototype would still apply.  */
6532 char readline ();
6533 int
6534 main ()
6535 {
6536 readline ();
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543   (eval $ac_link) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } &&
6550          { ac_try='test -z "$ac_c_werror_flag"
6551                          || test ! -s conftest.err'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest$ac_exeext'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563
6564       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6565       # recognize dependent libraries; assume curses is needed if we didn't
6566       # find any dependency.
6567       case $host_os in
6568         netbsd* | openbsd* | irix*)
6569           if test x"$pgac_lib" = x"" ; then
6570             pgac_lib=" -lcurses"
6571           fi ;;
6572       esac
6573
6574       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6575       break
6576
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 fi
6582 rm -f conftest.err conftest.$ac_objext \
6583       conftest$ac_exeext conftest.$ac_ext
6584   done
6585   if test "$pgac_cv_check_readline" != no ; then
6586     echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6587 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6588     break
6589   else
6590     echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6592   fi
6593 done
6594 LIBS=$pgac_save_LIBS
6595
6596 fi
6597
6598 if test "$pgac_cv_check_readline" != no ; then
6599   LIBS="$pgac_cv_check_readline $LIBS"
6600
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_LIBREADLINE 1
6603 _ACEOF
6604
6605 fi
6606
6607
6608   if test x"$pgac_cv_check_readline" = x"no"; then
6609     { { echo "$as_me:$LINENO: error: readline library not found
6610 If you have readline already installed, see config.log for details on the
6611 failure.  It is possible the compiler isn't looking in the proper directory.
6612 Use --without-readline to disable readline support." >&5
6613 echo "$as_me: error: readline library not found
6614 If you have readline already installed, see config.log for details on the
6615 failure.  It is possible the compiler isn't looking in the proper directory.
6616 Use --without-readline to disable readline support." >&2;}
6617    { (exit 1); exit 1; }; }
6618   fi
6619 fi
6620
6621 if test "$with_zlib" = yes; then
6622
6623 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6624 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6625 if test "${ac_cv_lib_z_inflate+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   ac_check_lib_save_LIBS=$LIBS
6629 LIBS="-lz  $LIBS"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h.  */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h.  */
6636
6637 /* Override any gcc2 internal prototype to avoid an error.  */
6638 #ifdef __cplusplus
6639 extern "C"
6640 #endif
6641 /* We use char because int might match the return type of a gcc2
6642    builtin and then its argument prototype would still apply.  */
6643 char inflate ();
6644 int
6645 main ()
6646 {
6647 inflate ();
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654   (eval $ac_link) 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -z "$ac_c_werror_flag"
6662                          || test ! -s conftest.err'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; } &&
6668          { ac_try='test -s conftest$ac_exeext'
6669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670   (eval $ac_try) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }; }; then
6674   ac_cv_lib_z_inflate=yes
6675 else
6676   echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 ac_cv_lib_z_inflate=no
6680 fi
6681 rm -f conftest.err conftest.$ac_objext \
6682       conftest$ac_exeext conftest.$ac_ext
6683 LIBS=$ac_check_lib_save_LIBS
6684 fi
6685 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6686 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6687 if test $ac_cv_lib_z_inflate = yes; then
6688   cat >>confdefs.h <<_ACEOF
6689 #define HAVE_LIBZ 1
6690 _ACEOF
6691
6692   LIBS="-lz $LIBS"
6693
6694 else
6695   { { echo "$as_me:$LINENO: error: zlib library not found
6696 If you have zlib already installed, see config.log for details on the
6697 failure.  It is possible the compiler isn't looking in the proper directory.
6698 Use --without-zlib to disable zlib support." >&5
6699 echo "$as_me: error: zlib library not found
6700 If you have zlib already installed, see config.log for details on the
6701 failure.  It is possible the compiler isn't looking in the proper directory.
6702 Use --without-zlib to disable zlib support." >&2;}
6703    { (exit 1); exit 1; }; }
6704 fi
6705
6706 fi
6707
6708 if test "$enable_spinlocks" = yes; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_SPINLOCKS 1
6712 _ACEOF
6713
6714 else
6715   { echo "$as_me:$LINENO: WARNING:
6716 *** Not using spinlocks will cause poor performance." >&5
6717 echo "$as_me: WARNING:
6718 *** Not using spinlocks will cause poor performance." >&2;}
6719 fi
6720
6721 if test "$with_krb5" = yes ; then
6722   if test "$PORTNAME" != "win32"; then
6723      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6724 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6725 if test "${ac_cv_search_com_err+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   ac_func_search_save_LIBS=$LIBS
6729 ac_cv_search_com_err=no
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736
6737 /* Override any gcc2 internal prototype to avoid an error.  */
6738 #ifdef __cplusplus
6739 extern "C"
6740 #endif
6741 /* We use char because int might match the return type of a gcc2
6742    builtin and then its argument prototype would still apply.  */
6743 char com_err ();
6744 int
6745 main ()
6746 {
6747 com_err ();
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754   (eval $ac_link) 2>conftest.er1
6755   ac_status=$?
6756   grep -v '^ *+' conftest.er1 >conftest.err
6757   rm -f conftest.er1
6758   cat conftest.err >&5
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } &&
6761          { ac_try='test -z "$ac_c_werror_flag"
6762                          || test ! -s conftest.err'
6763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; } &&
6768          { ac_try='test -s conftest$ac_exeext'
6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770   (eval $ac_try) 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; }; then
6774   ac_cv_search_com_err="none required"
6775 else
6776   echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 fi
6780 rm -f conftest.err conftest.$ac_objext \
6781       conftest$ac_exeext conftest.$ac_ext
6782 if test "$ac_cv_search_com_err" = no; then
6783   for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
6784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6785     cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791
6792 /* Override any gcc2 internal prototype to avoid an error.  */
6793 #ifdef __cplusplus
6794 extern "C"
6795 #endif
6796 /* We use char because int might match the return type of a gcc2
6797    builtin and then its argument prototype would still apply.  */
6798 char com_err ();
6799 int
6800 main ()
6801 {
6802 com_err ();
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6809   (eval $ac_link) 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -z "$ac_c_werror_flag"
6817                          || test ! -s conftest.err'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; } &&
6823          { ac_try='test -s conftest$ac_exeext'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; }; then
6829   ac_cv_search_com_err="-l$ac_lib"
6830 break
6831 else
6832   echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 fi
6836 rm -f conftest.err conftest.$ac_objext \
6837       conftest$ac_exeext conftest.$ac_ext
6838   done
6839 fi
6840 LIBS=$ac_func_search_save_LIBS
6841 fi
6842 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6843 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6844 if test "$ac_cv_search_com_err" != no; then
6845   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6846
6847 else
6848   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6849 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6850    { (exit 1); exit 1; }; }
6851 fi
6852
6853      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6854 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6855 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   ac_func_search_save_LIBS=$LIBS
6859 ac_cv_search_krb5_sendauth=no
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866
6867 /* Override any gcc2 internal prototype to avoid an error.  */
6868 #ifdef __cplusplus
6869 extern "C"
6870 #endif
6871 /* We use char because int might match the return type of a gcc2
6872    builtin and then its argument prototype would still apply.  */
6873 char krb5_sendauth ();
6874 int
6875 main ()
6876 {
6877 krb5_sendauth ();
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884   (eval $ac_link) 2>conftest.er1
6885   ac_status=$?
6886   grep -v '^ *+' conftest.er1 >conftest.err
6887   rm -f conftest.er1
6888   cat conftest.err >&5
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -z "$ac_c_werror_flag"
6892                          || test ! -s conftest.err'
6893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894   (eval $ac_try) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; } &&
6898          { ac_try='test -s conftest$ac_exeext'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_search_krb5_sendauth="none required"
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 fi
6910 rm -f conftest.err conftest.$ac_objext \
6911       conftest$ac_exeext conftest.$ac_ext
6912 if test "$ac_cv_search_krb5_sendauth" = no; then
6913   for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
6914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6915     cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921
6922 /* Override any gcc2 internal prototype to avoid an error.  */
6923 #ifdef __cplusplus
6924 extern "C"
6925 #endif
6926 /* We use char because int might match the return type of a gcc2
6927    builtin and then its argument prototype would still apply.  */
6928 char krb5_sendauth ();
6929 int
6930 main ()
6931 {
6932 krb5_sendauth ();
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939   (eval $ac_link) 2>conftest.er1
6940   ac_status=$?
6941   grep -v '^ *+' conftest.er1 >conftest.err
6942   rm -f conftest.er1
6943   cat conftest.err >&5
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } &&
6946          { ac_try='test -z "$ac_c_werror_flag"
6947                          || test ! -s conftest.err'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; } &&
6953          { ac_try='test -s conftest$ac_exeext'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; }; then
6959   ac_cv_search_krb5_sendauth="-l$ac_lib"
6960 break
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 fi
6966 rm -f conftest.err conftest.$ac_objext \
6967       conftest$ac_exeext conftest.$ac_ext
6968   done
6969 fi
6970 LIBS=$ac_func_search_save_LIBS
6971 fi
6972 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6973 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6974 if test "$ac_cv_search_krb5_sendauth" != no; then
6975   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6976
6977 else
6978   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6979 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6980    { (exit 1); exit 1; }; }
6981 fi
6982
6983   else
6984      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6985 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6986 if test "${ac_cv_search_com_err+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   ac_func_search_save_LIBS=$LIBS
6990 ac_cv_search_com_err=no
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997
6998 /* Override any gcc2 internal prototype to avoid an error.  */
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 /* We use char because int might match the return type of a gcc2
7003    builtin and then its argument prototype would still apply.  */
7004 char com_err ();
7005 int
7006 main ()
7007 {
7008 com_err ();
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015   (eval $ac_link) 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -z "$ac_c_werror_flag"
7023                          || test ! -s conftest.err'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; } &&
7029          { ac_try='test -s conftest$ac_exeext'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; }; then
7035   ac_cv_search_com_err="none required"
7036 else
7037   echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 fi
7041 rm -f conftest.err conftest.$ac_objext \
7042       conftest$ac_exeext conftest.$ac_ext
7043 if test "$ac_cv_search_com_err" = no; then
7044   for ac_lib in 'comerr32 -lkrb5_32'; do
7045     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7046     cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052
7053 /* Override any gcc2 internal prototype to avoid an error.  */
7054 #ifdef __cplusplus
7055 extern "C"
7056 #endif
7057 /* We use char because int might match the return type of a gcc2
7058    builtin and then its argument prototype would still apply.  */
7059 char com_err ();
7060 int
7061 main ()
7062 {
7063 com_err ();
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070   (eval $ac_link) 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -z "$ac_c_werror_flag"
7078                          || test ! -s conftest.err'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; } &&
7084          { ac_try='test -s conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   ac_cv_search_com_err="-l$ac_lib"
7091 break
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 fi
7097 rm -f conftest.err conftest.$ac_objext \
7098       conftest$ac_exeext conftest.$ac_ext
7099   done
7100 fi
7101 LIBS=$ac_func_search_save_LIBS
7102 fi
7103 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7104 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7105 if test "$ac_cv_search_com_err" != no; then
7106   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7107
7108 else
7109   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7110 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7111    { (exit 1); exit 1; }; }
7112 fi
7113
7114   fi
7115 fi
7116
7117 if test "$with_openssl" = yes ; then
7118     if test "$PORTNAME" != "win32"; then
7119
7120 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7121 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7122 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   ac_check_lib_save_LIBS=$LIBS
7126 LIBS="-lcrypto  $LIBS"
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133
7134 /* Override any gcc2 internal prototype to avoid an error.  */
7135 #ifdef __cplusplus
7136 extern "C"
7137 #endif
7138 /* We use char because int might match the return type of a gcc2
7139    builtin and then its argument prototype would still apply.  */
7140 char CRYPTO_new_ex_data ();
7141 int
7142 main ()
7143 {
7144 CRYPTO_new_ex_data ();
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"
7159                          || test ! -s conftest.err'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; } &&
7165          { ac_try='test -s conftest$ac_exeext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7177 fi
7178 rm -f conftest.err conftest.$ac_objext \
7179       conftest$ac_exeext conftest.$ac_ext
7180 LIBS=$ac_check_lib_save_LIBS
7181 fi
7182 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7183 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7184 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7185   cat >>confdefs.h <<_ACEOF
7186 #define HAVE_LIBCRYPTO 1
7187 _ACEOF
7188
7189   LIBS="-lcrypto $LIBS"
7190
7191 else
7192   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7193 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7194    { (exit 1); exit 1; }; }
7195 fi
7196
7197
7198 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7199 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7200 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   ac_check_lib_save_LIBS=$LIBS
7204 LIBS="-lssl  $LIBS"
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211
7212 /* Override any gcc2 internal prototype to avoid an error.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 #endif
7216 /* We use char because int might match the return type of a gcc2
7217    builtin and then its argument prototype would still apply.  */
7218 char SSL_library_init ();
7219 int
7220 main ()
7221 {
7222 SSL_library_init ();
7223   ;
7224   return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229   (eval $ac_link) 2>conftest.er1
7230   ac_status=$?
7231   grep -v '^ *+' conftest.er1 >conftest.err
7232   rm -f conftest.er1
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } &&
7236          { ac_try='test -z "$ac_c_werror_flag"
7237                          || test ! -s conftest.err'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; } &&
7243          { ac_try='test -s conftest$ac_exeext'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; }; then
7249   ac_cv_lib_ssl_SSL_library_init=yes
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 ac_cv_lib_ssl_SSL_library_init=no
7255 fi
7256 rm -f conftest.err conftest.$ac_objext \
7257       conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7259 fi
7260 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7261 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7262 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7263   cat >>confdefs.h <<_ACEOF
7264 #define HAVE_LIBSSL 1
7265 _ACEOF
7266
7267   LIBS="-lssl $LIBS"
7268
7269 else
7270   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7271 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7272    { (exit 1); exit 1; }; }
7273 fi
7274
7275   else
7276
7277 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7278 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7279 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   ac_check_lib_save_LIBS=$LIBS
7283 LIBS="-leay32  $LIBS"
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290
7291 /* Override any gcc2 internal prototype to avoid an error.  */
7292 #ifdef __cplusplus
7293 extern "C"
7294 #endif
7295 /* We use char because int might match the return type of a gcc2
7296    builtin and then its argument prototype would still apply.  */
7297 char CRYPTO_new_ex_data ();
7298 int
7299 main ()
7300 {
7301 CRYPTO_new_ex_data ();
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308   (eval $ac_link) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -z "$ac_c_werror_flag"
7316                          || test ! -s conftest.err'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; } &&
7322          { ac_try='test -s conftest$ac_exeext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7334 fi
7335 rm -f conftest.err conftest.$ac_objext \
7336       conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7338 fi
7339 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7340 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7341 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7342   cat >>confdefs.h <<_ACEOF
7343 #define HAVE_LIBEAY32 1
7344 _ACEOF
7345
7346   LIBS="-leay32 $LIBS"
7347
7348 else
7349   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7350 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7351    { (exit 1); exit 1; }; }
7352 fi
7353
7354
7355 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7356 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7357 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   ac_check_lib_save_LIBS=$LIBS
7361 LIBS="-lssleay32  $LIBS"
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368
7369 /* Override any gcc2 internal prototype to avoid an error.  */
7370 #ifdef __cplusplus
7371 extern "C"
7372 #endif
7373 /* We use char because int might match the return type of a gcc2
7374    builtin and then its argument prototype would still apply.  */
7375 char SSL_library_init ();
7376 int
7377 main ()
7378 {
7379 SSL_library_init ();
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>conftest.er1
7387   ac_status=$?
7388   grep -v '^ *+' conftest.er1 >conftest.err
7389   rm -f conftest.er1
7390   cat conftest.err >&5
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); } &&
7393          { ac_try='test -z "$ac_c_werror_flag"
7394                          || test ! -s conftest.err'
7395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396   (eval $ac_try) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }; } &&
7400          { ac_try='test -s conftest$ac_exeext'
7401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402   (eval $ac_try) 2>&5
7403   ac_status=$?
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); }; }; then
7406   ac_cv_lib_ssleay32_SSL_library_init=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411 ac_cv_lib_ssleay32_SSL_library_init=no
7412 fi
7413 rm -f conftest.err conftest.$ac_objext \
7414       conftest$ac_exeext conftest.$ac_ext
7415 LIBS=$ac_check_lib_save_LIBS
7416 fi
7417 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7418 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7419 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7420   cat >>confdefs.h <<_ACEOF
7421 #define HAVE_LIBSSLEAY32 1
7422 _ACEOF
7423
7424   LIBS="-lssleay32 $LIBS"
7425
7426 else
7427   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7428 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7429    { (exit 1); exit 1; }; }
7430 fi
7431
7432   fi
7433 fi
7434
7435 if test "$with_pam" = yes ; then
7436
7437 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7438 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7439 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   ac_check_lib_save_LIBS=$LIBS
7443 LIBS="-lpam  $LIBS"
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h.  */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h.  */
7450
7451 /* Override any gcc2 internal prototype to avoid an error.  */
7452 #ifdef __cplusplus
7453 extern "C"
7454 #endif
7455 /* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457 char pam_start ();
7458 int
7459 main ()
7460 {
7461 pam_start ();
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468   (eval $ac_link) 2>conftest.er1
7469   ac_status=$?
7470   grep -v '^ *+' conftest.er1 >conftest.err
7471   rm -f conftest.er1
7472   cat conftest.err >&5
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } &&
7475          { ac_try='test -z "$ac_c_werror_flag"
7476                          || test ! -s conftest.err'
7477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478   (eval $ac_try) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); }; } &&
7482          { ac_try='test -s conftest$ac_exeext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   ac_cv_lib_pam_pam_start=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493 ac_cv_lib_pam_pam_start=no
7494 fi
7495 rm -f conftest.err conftest.$ac_objext \
7496       conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7500 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7501 if test $ac_cv_lib_pam_pam_start = yes; then
7502   cat >>confdefs.h <<_ACEOF
7503 #define HAVE_LIBPAM 1
7504 _ACEOF
7505
7506   LIBS="-lpam $LIBS"
7507
7508 else
7509   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7510 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7511    { (exit 1); exit 1; }; }
7512 fi
7513
7514 fi
7515
7516 if test "$with_libxml" = yes ; then
7517
7518 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7519 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7520 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   ac_check_lib_save_LIBS=$LIBS
7524 LIBS="-lxml2  $LIBS"
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531
7532 /* Override any gcc2 internal prototype to avoid an error.  */
7533 #ifdef __cplusplus
7534 extern "C"
7535 #endif
7536 /* We use char because int might match the return type of a gcc2
7537    builtin and then its argument prototype would still apply.  */
7538 char xmlSaveToBuffer ();
7539 int
7540 main ()
7541 {
7542 xmlSaveToBuffer ();
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549   (eval $ac_link) 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -z "$ac_c_werror_flag"
7557                          || test ! -s conftest.err'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; } &&
7563          { ac_try='test -s conftest$ac_exeext'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; }; then
7569   ac_cv_lib_xml2_xmlSaveToBuffer=yes
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 ac_cv_lib_xml2_xmlSaveToBuffer=no
7575 fi
7576 rm -f conftest.err conftest.$ac_objext \
7577       conftest$ac_exeext conftest.$ac_ext
7578 LIBS=$ac_check_lib_save_LIBS
7579 fi
7580 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7581 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7582 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7583   cat >>confdefs.h <<_ACEOF
7584 #define HAVE_LIBXML2 1
7585 _ACEOF
7586
7587   LIBS="-lxml2 $LIBS"
7588
7589 else
7590   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7591 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7592    { (exit 1); exit 1; }; }
7593 fi
7594
7595 fi
7596
7597 if test "$with_libxslt" = yes ; then
7598
7599 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7600 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7601 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   ac_check_lib_save_LIBS=$LIBS
7605 LIBS="-lxslt  $LIBS"
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612
7613 /* Override any gcc2 internal prototype to avoid an error.  */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 /* We use char because int might match the return type of a gcc2
7618    builtin and then its argument prototype would still apply.  */
7619 char xsltLibxmlVersion ();
7620 int
7621 main ()
7622 {
7623 xsltLibxmlVersion ();
7624   ;
7625   return 0;
7626 }
7627 _ACEOF
7628 rm -f conftest.$ac_objext conftest$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630   (eval $ac_link) 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } &&
7637          { ac_try='test -z "$ac_c_werror_flag"
7638                          || test ! -s conftest.err'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; } &&
7644          { ac_try='test -s conftest$ac_exeext'
7645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; }; then
7650   ac_cv_lib_xslt_xsltLibxmlVersion=yes
7651 else
7652   echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7654
7655 ac_cv_lib_xslt_xsltLibxmlVersion=no
7656 fi
7657 rm -f conftest.err conftest.$ac_objext \
7658       conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7660 fi
7661 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7662 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7663 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7664   cat >>confdefs.h <<_ACEOF
7665 #define HAVE_LIBXSLT 1
7666 _ACEOF
7667
7668   LIBS="-lxslt $LIBS"
7669
7670 else
7671   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7672 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7673    { (exit 1); exit 1; }; }
7674 fi
7675
7676 fi
7677
7678
7679 ##
7680 ## Header files
7681 ##
7682
7683 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7684 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7685 if test "${ac_cv_header_stdc+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h.  */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h.  */
7694 #include <stdlib.h>
7695 #include <stdarg.h>
7696 #include <string.h>
7697 #include <float.h>
7698
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709   (eval $ac_compile) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_cv_header_stdc=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_header_stdc=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737
7738 if test $ac_cv_header_stdc = yes; then
7739   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746 #include <string.h>
7747
7748 _ACEOF
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750   $EGREP "memchr" >/dev/null 2>&1; then
7751   :
7752 else
7753   ac_cv_header_stdc=no
7754 fi
7755 rm -f conftest*
7756
7757 fi
7758
7759 if test $ac_cv_header_stdc = yes; then
7760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7761   cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 #include <stdlib.h>
7768
7769 _ACEOF
7770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7771   $EGREP "free" >/dev/null 2>&1; then
7772   :
7773 else
7774   ac_cv_header_stdc=no
7775 fi
7776 rm -f conftest*
7777
7778 fi
7779
7780 if test $ac_cv_header_stdc = yes; then
7781   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7782   if test "$cross_compiling" = yes; then
7783   :
7784 else
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 #include <ctype.h>
7792 #if ((' ' & 0x0FF) == 0x020)
7793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7795 #else
7796 # define ISLOWER(c) \
7797                    (('a' <= (c) && (c) <= 'i') \
7798                      || ('j' <= (c) && (c) <= 'r') \
7799                      || ('s' <= (c) && (c) <= 'z'))
7800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7801 #endif
7802
7803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7804 int
7805 main ()
7806 {
7807   int i;
7808   for (i = 0; i < 256; i++)
7809     if (XOR (islower (i), ISLOWER (i))
7810         || toupper (i) != TOUPPER (i))
7811       exit(2);
7812   exit (0);
7813 }
7814 _ACEOF
7815 rm -f conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   :
7827 else
7828   echo "$as_me: program exited with status $ac_status" >&5
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ( exit $ac_status )
7833 ac_cv_header_stdc=no
7834 fi
7835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 fi
7838 fi
7839 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7840 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7841 if test $ac_cv_header_stdc = yes; then
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define STDC_HEADERS 1
7845 _ACEOF
7846
7847 fi
7848
7849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7860                   inttypes.h stdint.h unistd.h
7861 do
7862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 echo "$as_me:$LINENO: checking for $ac_header" >&5
7864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 $ac_includes_default
7875
7876 #include <$ac_header>
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880   (eval $ac_compile) 2>conftest.er1
7881   ac_status=$?
7882   grep -v '^ *+' conftest.er1 >conftest.err
7883   rm -f conftest.er1
7884   cat conftest.err >&5
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); } &&
7887          { ac_try='test -z "$ac_c_werror_flag"
7888                          || test ! -s conftest.err'
7889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890   (eval $ac_try) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; } &&
7894          { ac_try='test -s conftest.$ac_objext'
7895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896   (eval $ac_try) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   eval "$as_ac_Header=yes"
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 eval "$as_ac_Header=no"
7906 fi
7907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908 fi
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7912   cat >>confdefs.h <<_ACEOF
7913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7948 do
7949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7951   echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 fi
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 else
7959   # Is the header compilable?
7960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 $ac_includes_default
7969 #include <$ac_header>
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973   (eval $ac_compile) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"
7981                          || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest.$ac_objext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_header_compiler=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_header_compiler=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002 echo "${ECHO_T}$ac_header_compiler" >&6
8003
8004 # Is the header present?
8005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013 #include <$ac_header>
8014 _ACEOF
8015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017   ac_status=$?
8018   grep -v '^ *+' conftest.er1 >conftest.err
8019   rm -f conftest.er1
8020   cat conftest.err >&5
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); } >/dev/null; then
8023   if test -s conftest.err; then
8024     ac_cpp_err=$ac_c_preproc_warn_flag
8025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8026   else
8027     ac_cpp_err=
8028   fi
8029 else
8030   ac_cpp_err=yes
8031 fi
8032 if test -z "$ac_cpp_err"; then
8033   ac_header_preproc=yes
8034 else
8035   echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038   ac_header_preproc=no
8039 fi
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8043
8044 # So?  What about this header?
8045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046   yes:no: )
8047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8051     ac_header_preproc=yes
8052     ;;
8053   no:yes:* )
8054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8066     (
8067       cat <<\_ASBOX
8068 ## ---------------------------------------- ##
8069 ## Report this to pgsql-bugs@postgresql.org ##
8070 ## ---------------------------------------- ##
8071 _ASBOX
8072     ) |
8073       sed "s/^/$as_me: WARNING:     /" >&2
8074     ;;
8075 esac
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   eval "$as_ac_Header=\$ac_header_preproc"
8082 fi
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8085
8086 fi
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088   cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 _ACEOF
8091
8092 fi
8093
8094 done
8095
8096
8097 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8098 # netinet/in.h is included first.
8099
8100 for ac_header in netinet/in.h
8101 do
8102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104   echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 fi
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8111 else
8112   # Is the header compilable?
8113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 $ac_includes_default
8122 #include <$ac_header>
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126   (eval $ac_compile) 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag"
8134                          || test ! -s conftest.err'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; } &&
8140          { ac_try='test -s conftest.$ac_objext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_header_compiler=yes
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_header_compiler=no
8152 fi
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #include <$ac_header>
8167 _ACEOF
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } >/dev/null; then
8176   if test -s conftest.err; then
8177     ac_cpp_err=$ac_c_preproc_warn_flag
8178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8179   else
8180     ac_cpp_err=
8181   fi
8182 else
8183   ac_cpp_err=yes
8184 fi
8185 if test -z "$ac_cpp_err"; then
8186   ac_header_preproc=yes
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191   ac_header_preproc=no
8192 fi
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197 # So?  What about this header?
8198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199   yes:no: )
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8204     ac_header_preproc=yes
8205     ;;
8206   no:yes:* )
8207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8219     (
8220       cat <<\_ASBOX
8221 ## ---------------------------------------- ##
8222 ## Report this to pgsql-bugs@postgresql.org ##
8223 ## ---------------------------------------- ##
8224 _ASBOX
8225     ) |
8226       sed "s/^/$as_me: WARNING:     /" >&2
8227     ;;
8228 esac
8229 echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   eval "$as_ac_Header=\$ac_header_preproc"
8235 fi
8236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8238
8239 fi
8240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8241   cat >>confdefs.h <<_ACEOF
8242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8243 _ACEOF
8244
8245 fi
8246
8247 done
8248
8249
8250 for ac_header in netinet/tcp.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264 $ac_includes_default
8265 #ifdef HAVE_NETINET_IN_H
8266 #include <netinet/in.h>
8267 #endif
8268
8269
8270 #include <$ac_header>
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274   (eval $ac_compile) 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag"
8282                          || test ! -s conftest.err'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; } &&
8288          { ac_try='test -s conftest.$ac_objext'
8289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290   (eval $ac_try) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; }; then
8294   eval "$as_ac_Header=yes"
8295 else
8296   echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 eval "$as_ac_Header=no"
8300 fi
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8306   cat >>confdefs.h <<_ACEOF
8307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8308 _ACEOF
8309
8310 fi
8311
8312 done
8313
8314
8315 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8316
8317 for ac_header in readline/readline.h
8318 do
8319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321   echo "$as_me:$LINENO: checking for $ac_header" >&5
8322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 fi
8326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8328 else
8329   # Is the header compilable?
8330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 $ac_includes_default
8339 #include <$ac_header>
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343   (eval $ac_compile) 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag"
8351                          || test ! -s conftest.err'
8352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353   (eval $ac_try) 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; } &&
8357          { ac_try='test -s conftest.$ac_objext'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; }; then
8363   ac_header_compiler=yes
8364 else
8365   echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_header_compiler=no
8369 fi
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8372 echo "${ECHO_T}$ac_header_compiler" >&6
8373
8374 # Is the header present?
8375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383 #include <$ac_header>
8384 _ACEOF
8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } >/dev/null; then
8393   if test -s conftest.err; then
8394     ac_cpp_err=$ac_c_preproc_warn_flag
8395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8396   else
8397     ac_cpp_err=
8398   fi
8399 else
8400   ac_cpp_err=yes
8401 fi
8402 if test -z "$ac_cpp_err"; then
8403   ac_header_preproc=yes
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408   ac_header_preproc=no
8409 fi
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8413
8414 # So?  What about this header?
8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416   yes:no: )
8417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421     ac_header_preproc=yes
8422     ;;
8423   no:yes:* )
8424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8436     (
8437       cat <<\_ASBOX
8438 ## ---------------------------------------- ##
8439 ## Report this to pgsql-bugs@postgresql.org ##
8440 ## ---------------------------------------- ##
8441 _ASBOX
8442     ) |
8443       sed "s/^/$as_me: WARNING:     /" >&2
8444     ;;
8445 esac
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   eval "$as_ac_Header=\$ac_header_preproc"
8452 fi
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455
8456 fi
8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458   cat >>confdefs.h <<_ACEOF
8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8460 _ACEOF
8461
8462 else
8463
8464 for ac_header in readline.h
8465 do
8466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468   echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 fi
8473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8475 else
8476   # Is the header compilable?
8477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 $ac_includes_default
8486 #include <$ac_header>
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490   (eval $ac_compile) 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag"
8498                          || test ! -s conftest.err'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest.$ac_objext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_header_compiler=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_header_compiler=no
8516 fi
8517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6
8520
8521 # Is the header present?
8522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 #include <$ac_header>
8531 _ACEOF
8532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } >/dev/null; then
8540   if test -s conftest.err; then
8541     ac_cpp_err=$ac_c_preproc_warn_flag
8542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543   else
8544     ac_cpp_err=
8545   fi
8546 else
8547   ac_cpp_err=yes
8548 fi
8549 if test -z "$ac_cpp_err"; then
8550   ac_header_preproc=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555   ac_header_preproc=no
8556 fi
8557 rm -f conftest.err conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6
8560
8561 # So?  What about this header?
8562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563   yes:no: )
8564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568     ac_header_preproc=yes
8569     ;;
8570   no:yes:* )
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8583     (
8584       cat <<\_ASBOX
8585 ## ---------------------------------------- ##
8586 ## Report this to pgsql-bugs@postgresql.org ##
8587 ## ---------------------------------------- ##
8588 _ASBOX
8589     ) |
8590       sed "s/^/$as_me: WARNING:     /" >&2
8591     ;;
8592 esac
8593 echo "$as_me:$LINENO: checking for $ac_header" >&5
8594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   eval "$as_ac_Header=\$ac_header_preproc"
8599 fi
8600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602
8603 fi
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605   cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607 _ACEOF
8608
8609 else
8610   { { echo "$as_me:$LINENO: error: readline header not found
8611 If you have readline already installed, see config.log for details on the
8612 failure.  It is possible the compiler isn't looking in the proper directory.
8613 Use --without-readline to disable readline support." >&5
8614 echo "$as_me: error: readline header not found
8615 If you have readline already installed, see config.log for details on the
8616 failure.  It is possible the compiler isn't looking in the proper directory.
8617 Use --without-readline to disable readline support." >&2;}
8618    { (exit 1); exit 1; }; }
8619 fi
8620
8621 done
8622
8623 fi
8624
8625 done
8626
8627
8628 for ac_header in readline/history.h
8629 do
8630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632   echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635   echo $ECHO_N "(cached) $ECHO_C" >&6
8636 fi
8637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8639 else
8640   # Is the header compilable?
8641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 $ac_includes_default
8650 #include <$ac_header>
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654   (eval $ac_compile) 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } &&
8661          { ac_try='test -z "$ac_c_werror_flag"
8662                          || test ! -s conftest.err'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; } &&
8668          { ac_try='test -s conftest.$ac_objext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_header_compiler=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 ac_header_compiler=no
8680 fi
8681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6
8684
8685 # Is the header present?
8686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <$ac_header>
8695 _ACEOF
8696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } >/dev/null; then
8704   if test -s conftest.err; then
8705     ac_cpp_err=$ac_c_preproc_warn_flag
8706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8707   else
8708     ac_cpp_err=
8709   fi
8710 else
8711   ac_cpp_err=yes
8712 fi
8713 if test -z "$ac_cpp_err"; then
8714   ac_header_preproc=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719   ac_header_preproc=no
8720 fi
8721 rm -f conftest.err conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8723 echo "${ECHO_T}$ac_header_preproc" >&6
8724
8725 # So?  What about this header?
8726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8727   yes:no: )
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8732     ac_header_preproc=yes
8733     ;;
8734   no:yes:* )
8735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8747     (
8748       cat <<\_ASBOX
8749 ## ---------------------------------------- ##
8750 ## Report this to pgsql-bugs@postgresql.org ##
8751 ## ---------------------------------------- ##
8752 _ASBOX
8753     ) |
8754       sed "s/^/$as_me: WARNING:     /" >&2
8755     ;;
8756 esac
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   eval "$as_ac_Header=\$ac_header_preproc"
8763 fi
8764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8766
8767 fi
8768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8769   cat >>confdefs.h <<_ACEOF
8770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8771 _ACEOF
8772
8773 else
8774
8775 for ac_header in history.h
8776 do
8777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8779   echo "$as_me:$LINENO: checking for $ac_header" >&5
8780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 fi
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8786 else
8787   # Is the header compilable?
8788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796 $ac_includes_default
8797 #include <$ac_header>
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801   (eval $ac_compile) 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } &&
8808          { ac_try='test -z "$ac_c_werror_flag"
8809                          || test ! -s conftest.err'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; } &&
8815          { ac_try='test -s conftest.$ac_objext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_header_compiler=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_header_compiler=no
8827 fi
8828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8831
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841 #include <$ac_header>
8842 _ACEOF
8843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } >/dev/null; then
8851   if test -s conftest.err; then
8852     ac_cpp_err=$ac_c_preproc_warn_flag
8853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8854   else
8855     ac_cpp_err=
8856   fi
8857 else
8858   ac_cpp_err=yes
8859 fi
8860 if test -z "$ac_cpp_err"; then
8861   ac_header_preproc=yes
8862 else
8863   echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866   ac_header_preproc=no
8867 fi
8868 rm -f conftest.err conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8870 echo "${ECHO_T}$ac_header_preproc" >&6
8871
8872 # So?  What about this header?
8873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8874   yes:no: )
8875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8879     ac_header_preproc=yes
8880     ;;
8881   no:yes:* )
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8894     (
8895       cat <<\_ASBOX
8896 ## ---------------------------------------- ##
8897 ## Report this to pgsql-bugs@postgresql.org ##
8898 ## ---------------------------------------- ##
8899 _ASBOX
8900     ) |
8901       sed "s/^/$as_me: WARNING:     /" >&2
8902     ;;
8903 esac
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   eval "$as_ac_Header=\$ac_header_preproc"
8910 fi
8911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913
8914 fi
8915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8916   cat >>confdefs.h <<_ACEOF
8917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8918 _ACEOF
8919
8920 else
8921   { { echo "$as_me:$LINENO: error: history header not found
8922 If you have readline already installed, see config.log for details on the
8923 failure.  It is possible the compiler isn't looking in the proper directory.
8924 Use --without-readline to disable readline support." >&5
8925 echo "$as_me: error: history header not found
8926 If you have readline already installed, see config.log for details on the
8927 failure.  It is possible the compiler isn't looking in the proper directory.
8928 Use --without-readline to disable readline support." >&2;}
8929    { (exit 1); exit 1; }; }
8930 fi
8931
8932 done
8933
8934 fi
8935
8936 done
8937
8938 fi
8939
8940 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8941 # Some installations of libedit usurp /usr/include/readline/, which seems
8942 # bad practice, since in combined installations readline will have its headers
8943 # there.  We might have to resort to AC_EGREP checks to make sure we found
8944 # the proper header...
8945
8946 for ac_header in editline/readline.h
8947 do
8948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8950   echo "$as_me:$LINENO: checking for $ac_header" >&5
8951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 fi
8955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8957 else
8958   # Is the header compilable?
8959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 $ac_includes_default
8968 #include <$ac_header>
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } &&
8979          { ac_try='test -z "$ac_c_werror_flag"
8980                          || test ! -s conftest.err'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_header_compiler=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_header_compiler=no
8998 fi
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 echo "${ECHO_T}$ac_header_compiler" >&6
9002
9003 # Is the header present?
9004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012 #include <$ac_header>
9013 _ACEOF
9014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9016   ac_status=$?
9017   grep -v '^ *+' conftest.er1 >conftest.err
9018   rm -f conftest.er1
9019   cat conftest.err >&5
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); } >/dev/null; then
9022   if test -s conftest.err; then
9023     ac_cpp_err=$ac_c_preproc_warn_flag
9024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9025   else
9026     ac_cpp_err=
9027   fi
9028 else
9029   ac_cpp_err=yes
9030 fi
9031 if test -z "$ac_cpp_err"; then
9032   ac_header_preproc=yes
9033 else
9034   echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037   ac_header_preproc=no
9038 fi
9039 rm -f conftest.err conftest.$ac_ext
9040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6
9042
9043 # So?  What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9045   yes:no: )
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050     ac_header_preproc=yes
9051     ;;
9052   no:yes:* )
9053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9065     (
9066       cat <<\_ASBOX
9067 ## ---------------------------------------- ##
9068 ## Report this to pgsql-bugs@postgresql.org ##
9069 ## ---------------------------------------- ##
9070 _ASBOX
9071     ) |
9072       sed "s/^/$as_me: WARNING:     /" >&2
9073     ;;
9074 esac
9075 echo "$as_me:$LINENO: checking for $ac_header" >&5
9076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   eval "$as_ac_Header=\$ac_header_preproc"
9081 fi
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9084
9085 fi
9086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9087   cat >>confdefs.h <<_ACEOF
9088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9089 _ACEOF
9090
9091 else
9092
9093 for ac_header in readline.h
9094 do
9095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9097   echo "$as_me:$LINENO: checking for $ac_header" >&5
9098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 fi
9102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9104 else
9105   # Is the header compilable?
9106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 $ac_includes_default
9115 #include <$ac_header>
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119   (eval $ac_compile) 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } &&
9126          { ac_try='test -z "$ac_c_werror_flag"
9127                          || test ! -s conftest.err'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; } &&
9133          { ac_try='test -s conftest.$ac_objext'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; }; then
9139   ac_header_compiler=yes
9140 else
9141   echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144 ac_header_compiler=no
9145 fi
9146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6
9149
9150 # Is the header present?
9151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159 #include <$ac_header>
9160 _ACEOF
9161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } >/dev/null; then
9169   if test -s conftest.err; then
9170     ac_cpp_err=$ac_c_preproc_warn_flag
9171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9172   else
9173     ac_cpp_err=
9174   fi
9175 else
9176   ac_cpp_err=yes
9177 fi
9178 if test -z "$ac_cpp_err"; then
9179   ac_header_preproc=yes
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184   ac_header_preproc=no
9185 fi
9186 rm -f conftest.err conftest.$ac_ext
9187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9188 echo "${ECHO_T}$ac_header_preproc" >&6
9189
9190 # So?  What about this header?
9191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9192   yes:no: )
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9197     ac_header_preproc=yes
9198     ;;
9199   no:yes:* )
9200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9212     (
9213       cat <<\_ASBOX
9214 ## ---------------------------------------- ##
9215 ## Report this to pgsql-bugs@postgresql.org ##
9216 ## ---------------------------------------- ##
9217 _ASBOX
9218     ) |
9219       sed "s/^/$as_me: WARNING:     /" >&2
9220     ;;
9221 esac
9222 echo "$as_me:$LINENO: checking for $ac_header" >&5
9223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   eval "$as_ac_Header=\$ac_header_preproc"
9228 fi
9229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9231
9232 fi
9233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9234   cat >>confdefs.h <<_ACEOF
9235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 _ACEOF
9237
9238 else
9239
9240 for ac_header in readline/readline.h
9241 do
9242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244   echo "$as_me:$LINENO: checking for $ac_header" >&5
9245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 fi
9249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9251 else
9252   # Is the header compilable?
9253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 $ac_includes_default
9262 #include <$ac_header>
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266   (eval $ac_compile) 2>conftest.er1
9267   ac_status=$?
9268   grep -v '^ *+' conftest.er1 >conftest.err
9269   rm -f conftest.er1
9270   cat conftest.err >&5
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); } &&
9273          { ac_try='test -z "$ac_c_werror_flag"
9274                          || test ! -s conftest.err'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest.$ac_objext'
9281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282   (eval $ac_try) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; }; then
9286   ac_header_compiler=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291 ac_header_compiler=no
9292 fi
9293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9295 echo "${ECHO_T}$ac_header_compiler" >&6
9296
9297 # Is the header present?
9298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 #include <$ac_header>
9307 _ACEOF
9308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9310   ac_status=$?
9311   grep -v '^ *+' conftest.er1 >conftest.err
9312   rm -f conftest.er1
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } >/dev/null; then
9316   if test -s conftest.err; then
9317     ac_cpp_err=$ac_c_preproc_warn_flag
9318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9319   else
9320     ac_cpp_err=
9321   fi
9322 else
9323   ac_cpp_err=yes
9324 fi
9325 if test -z "$ac_cpp_err"; then
9326   ac_header_preproc=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331   ac_header_preproc=no
9332 fi
9333 rm -f conftest.err conftest.$ac_ext
9334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9335 echo "${ECHO_T}$ac_header_preproc" >&6
9336
9337 # So?  What about this header?
9338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9339   yes:no: )
9340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9344     ac_header_preproc=yes
9345     ;;
9346   no:yes:* )
9347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9359     (
9360       cat <<\_ASBOX
9361 ## ---------------------------------------- ##
9362 ## Report this to pgsql-bugs@postgresql.org ##
9363 ## ---------------------------------------- ##
9364 _ASBOX
9365     ) |
9366       sed "s/^/$as_me: WARNING:     /" >&2
9367     ;;
9368 esac
9369 echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   eval "$as_ac_Header=\$ac_header_preproc"
9375 fi
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378
9379 fi
9380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9381   cat >>confdefs.h <<_ACEOF
9382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9383 _ACEOF
9384
9385 else
9386   { { echo "$as_me:$LINENO: error: readline header not found
9387 If you have libedit already installed, see config.log for details on the
9388 failure.  It is possible the compiler isn't looking in the proper directory.
9389 Use --without-readline to disable libedit support." >&5
9390 echo "$as_me: error: readline header not found
9391 If you have libedit already installed, see config.log for details on the
9392 failure.  It is possible the compiler isn't looking in the proper directory.
9393 Use --without-readline to disable libedit support." >&2;}
9394    { (exit 1); exit 1; }; }
9395 fi
9396
9397 done
9398
9399 fi
9400
9401 done
9402
9403 fi
9404
9405 done
9406
9407 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9408 # not be there at all.  Hence, don't complain if not found.  We must check
9409 # though, since in yet other versions it is an independent header.
9410
9411 for ac_header in editline/history.h
9412 do
9413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415   echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 fi
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9422 else
9423   # Is the header compilable?
9424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 $ac_includes_default
9433 #include <$ac_header>
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437   (eval $ac_compile) 2>conftest.er1
9438   ac_status=$?
9439   grep -v '^ *+' conftest.er1 >conftest.err
9440   rm -f conftest.er1
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } &&
9444          { ac_try='test -z "$ac_c_werror_flag"
9445                          || test ! -s conftest.err'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; } &&
9451          { ac_try='test -s conftest.$ac_objext'
9452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453   (eval $ac_try) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; }; then
9457   ac_header_compiler=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ac_header_compiler=no
9463 fi
9464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9466 echo "${ECHO_T}$ac_header_compiler" >&6
9467
9468 # Is the header present?
9469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 #include <$ac_header>
9478 _ACEOF
9479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } >/dev/null; then
9487   if test -s conftest.err; then
9488     ac_cpp_err=$ac_c_preproc_warn_flag
9489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9490   else
9491     ac_cpp_err=
9492   fi
9493 else
9494   ac_cpp_err=yes
9495 fi
9496 if test -z "$ac_cpp_err"; then
9497   ac_header_preproc=yes
9498 else
9499   echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502   ac_header_preproc=no
9503 fi
9504 rm -f conftest.err conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9506 echo "${ECHO_T}$ac_header_preproc" >&6
9507
9508 # So?  What about this header?
9509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9510   yes:no: )
9511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9515     ac_header_preproc=yes
9516     ;;
9517   no:yes:* )
9518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9530     (
9531       cat <<\_ASBOX
9532 ## ---------------------------------------- ##
9533 ## Report this to pgsql-bugs@postgresql.org ##
9534 ## ---------------------------------------- ##
9535 _ASBOX
9536     ) |
9537       sed "s/^/$as_me: WARNING:     /" >&2
9538     ;;
9539 esac
9540 echo "$as_me:$LINENO: checking for $ac_header" >&5
9541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   eval "$as_ac_Header=\$ac_header_preproc"
9546 fi
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9549
9550 fi
9551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9552   cat >>confdefs.h <<_ACEOF
9553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554 _ACEOF
9555
9556 else
9557
9558 for ac_header in history.h
9559 do
9560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562   echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 fi
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 else
9570   # Is the header compilable?
9571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 $ac_includes_default
9580 #include <$ac_header>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584   (eval $ac_compile) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -z "$ac_c_werror_flag"
9592                          || test ! -s conftest.err'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; } &&
9598          { ac_try='test -s conftest.$ac_objext'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_header_compiler=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_header_compiler=no
9610 fi
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613 echo "${ECHO_T}$ac_header_compiler" >&6
9614
9615 # Is the header present?
9616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h.  */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h.  */
9624 #include <$ac_header>
9625 _ACEOF
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } >/dev/null; then
9634   if test -s conftest.err; then
9635     ac_cpp_err=$ac_c_preproc_warn_flag
9636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9637   else
9638     ac_cpp_err=
9639   fi
9640 else
9641   ac_cpp_err=yes
9642 fi
9643 if test -z "$ac_cpp_err"; then
9644   ac_header_preproc=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649   ac_header_preproc=no
9650 fi
9651 rm -f conftest.err conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653 echo "${ECHO_T}$ac_header_preproc" >&6
9654
9655 # So?  What about this header?
9656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9657   yes:no: )
9658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662     ac_header_preproc=yes
9663     ;;
9664   no:yes:* )
9665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9677     (
9678       cat <<\_ASBOX
9679 ## ---------------------------------------- ##
9680 ## Report this to pgsql-bugs@postgresql.org ##
9681 ## ---------------------------------------- ##
9682 _ASBOX
9683     ) |
9684       sed "s/^/$as_me: WARNING:     /" >&2
9685     ;;
9686 esac
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   eval "$as_ac_Header=\$ac_header_preproc"
9693 fi
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696
9697 fi
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699   cat >>confdefs.h <<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9701 _ACEOF
9702
9703 else
9704
9705 for ac_header in readline/history.h
9706 do
9707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9709   echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 fi
9714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9716 else
9717   # Is the header compilable?
9718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726 $ac_includes_default
9727 #include <$ac_header>
9728 _ACEOF
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731   (eval $ac_compile) 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } &&
9738          { ac_try='test -z "$ac_c_werror_flag"
9739                          || test ! -s conftest.err'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; } &&
9745          { ac_try='test -s conftest.$ac_objext'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; }; then
9751   ac_header_compiler=yes
9752 else
9753   echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_header_compiler=no
9757 fi
9758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9760 echo "${ECHO_T}$ac_header_compiler" >&6
9761
9762 # Is the header present?
9763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771 #include <$ac_header>
9772 _ACEOF
9773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } >/dev/null; then
9781   if test -s conftest.err; then
9782     ac_cpp_err=$ac_c_preproc_warn_flag
9783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9784   else
9785     ac_cpp_err=
9786   fi
9787 else
9788   ac_cpp_err=yes
9789 fi
9790 if test -z "$ac_cpp_err"; then
9791   ac_header_preproc=yes
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796   ac_header_preproc=no
9797 fi
9798 rm -f conftest.err conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6
9801
9802 # So?  What about this header?
9803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9804   yes:no: )
9805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9809     ac_header_preproc=yes
9810     ;;
9811   no:yes:* )
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9824     (
9825       cat <<\_ASBOX
9826 ## ---------------------------------------- ##
9827 ## Report this to pgsql-bugs@postgresql.org ##
9828 ## ---------------------------------------- ##
9829 _ASBOX
9830     ) |
9831       sed "s/^/$as_me: WARNING:     /" >&2
9832     ;;
9833 esac
9834 echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   eval "$as_ac_Header=\$ac_header_preproc"
9840 fi
9841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9843
9844 fi
9845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9846   cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848 _ACEOF
9849
9850 fi
9851
9852 done
9853
9854 fi
9855
9856 done
9857
9858 fi
9859
9860 done
9861
9862 fi
9863
9864 if test "$with_zlib" = yes; then
9865   if test "${ac_cv_header_zlib_h+set}" = set; then
9866   echo "$as_me:$LINENO: checking for zlib.h" >&5
9867 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9868 if test "${ac_cv_header_zlib_h+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9872 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9873 else
9874   # Is the header compilable?
9875 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9876 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 $ac_includes_default
9884 #include <zlib.h>
9885 _ACEOF
9886 rm -f conftest.$ac_objext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888   (eval $ac_compile) 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } &&
9895          { ac_try='test -z "$ac_c_werror_flag"
9896                          || test ! -s conftest.err'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; } &&
9902          { ac_try='test -s conftest.$ac_objext'
9903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904   (eval $ac_try) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; }; then
9908   ac_header_compiler=yes
9909 else
9910   echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_header_compiler=no
9914 fi
9915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9917 echo "${ECHO_T}$ac_header_compiler" >&6
9918
9919 # Is the header present?
9920 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9921 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 #include <zlib.h>
9929 _ACEOF
9930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9932   ac_status=$?
9933   grep -v '^ *+' conftest.er1 >conftest.err
9934   rm -f conftest.er1
9935   cat conftest.err >&5
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } >/dev/null; then
9938   if test -s conftest.err; then
9939     ac_cpp_err=$ac_c_preproc_warn_flag
9940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9941   else
9942     ac_cpp_err=
9943   fi
9944 else
9945   ac_cpp_err=yes
9946 fi
9947 if test -z "$ac_cpp_err"; then
9948   ac_header_preproc=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953   ac_header_preproc=no
9954 fi
9955 rm -f conftest.err conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957 echo "${ECHO_T}$ac_header_preproc" >&6
9958
9959 # So?  What about this header?
9960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961   yes:no: )
9962     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9963 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9965 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9966     ac_header_preproc=yes
9967     ;;
9968   no:yes:* )
9969     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9974 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
9976 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9977     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9978 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9979     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9980 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9981     (
9982       cat <<\_ASBOX
9983 ## ---------------------------------------- ##
9984 ## Report this to pgsql-bugs@postgresql.org ##
9985 ## ---------------------------------------- ##
9986 _ASBOX
9987     ) |
9988       sed "s/^/$as_me: WARNING:     /" >&2
9989     ;;
9990 esac
9991 echo "$as_me:$LINENO: checking for zlib.h" >&5
9992 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9993 if test "${ac_cv_header_zlib_h+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   ac_cv_header_zlib_h=$ac_header_preproc
9997 fi
9998 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9999 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10000
10001 fi
10002 if test $ac_cv_header_zlib_h = yes; then
10003   :
10004 else
10005   { { echo "$as_me:$LINENO: error: zlib header not found
10006 If you have zlib already installed, see config.log for details on the
10007 failure.  It is possible the compiler isn't looking in the proper directory.
10008 Use --without-zlib to disable zlib support." >&5
10009 echo "$as_me: error: zlib header not found
10010 If you have zlib already installed, see config.log for details on the
10011 failure.  It is possible the compiler isn't looking in the proper directory.
10012 Use --without-zlib to disable zlib support." >&2;}
10013    { (exit 1); exit 1; }; }
10014 fi
10015
10016
10017 fi
10018
10019 if test "$with_krb5" = yes ; then
10020   if test "${ac_cv_header_krb5_h+set}" = set; then
10021   echo "$as_me:$LINENO: checking for krb5.h" >&5
10022 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10023 if test "${ac_cv_header_krb5_h+set}" = set; then
10024   echo $ECHO_N "(cached) $ECHO_C" >&6
10025 fi
10026 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10027 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10028 else
10029   # Is the header compilable?
10030 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10031 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h.  */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h.  */
10038 $ac_includes_default
10039 #include <krb5.h>
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043   (eval $ac_compile) 2>conftest.er1
10044   ac_status=$?
10045   grep -v '^ *+' conftest.er1 >conftest.err
10046   rm -f conftest.er1
10047   cat conftest.err >&5
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -z "$ac_c_werror_flag"
10051                          || test ! -s conftest.err'
10052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053   (eval $ac_try) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; } &&
10057          { ac_try='test -s conftest.$ac_objext'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   ac_header_compiler=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_header_compiler=no
10069 fi
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10076 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 #include <krb5.h>
10084 _ACEOF
10085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087   ac_status=$?
10088   grep -v '^ *+' conftest.er1 >conftest.err
10089   rm -f conftest.er1
10090   cat conftest.err >&5
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } >/dev/null; then
10093   if test -s conftest.err; then
10094     ac_cpp_err=$ac_c_preproc_warn_flag
10095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10096   else
10097     ac_cpp_err=
10098   fi
10099 else
10100   ac_cpp_err=yes
10101 fi
10102 if test -z "$ac_cpp_err"; then
10103   ac_header_preproc=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108   ac_header_preproc=no
10109 fi
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114 # So?  What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116   yes:no: )
10117     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10120 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10121     ac_header_preproc=yes
10122     ;;
10123   no:yes:* )
10124     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10125 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10126     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
10127 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
10128     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10129 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10130     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
10131 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10134     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10135 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10136     (
10137       cat <<\_ASBOX
10138 ## ---------------------------------------- ##
10139 ## Report this to pgsql-bugs@postgresql.org ##
10140 ## ---------------------------------------- ##
10141 _ASBOX
10142     ) |
10143       sed "s/^/$as_me: WARNING:     /" >&2
10144     ;;
10145 esac
10146 echo "$as_me:$LINENO: checking for krb5.h" >&5
10147 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10148 if test "${ac_cv_header_krb5_h+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   ac_cv_header_krb5_h=$ac_header_preproc
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10154 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10155
10156 fi
10157 if test $ac_cv_header_krb5_h = yes; then
10158   :
10159 else
10160   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10161 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10162    { (exit 1); exit 1; }; }
10163 fi
10164
10165
10166 fi
10167
10168 if test "$with_openssl" = yes ; then
10169   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10170   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10171 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10172 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 fi
10175 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10176 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10177 else
10178   # Is the header compilable?
10179 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10180 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 $ac_includes_default
10188 #include <openssl/ssl.h>
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192   (eval $ac_compile) 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } &&
10199          { ac_try='test -z "$ac_c_werror_flag"
10200                          || test ! -s conftest.err'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; } &&
10206          { ac_try='test -s conftest.$ac_objext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_header_compiler=yes
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_header_compiler=no
10218 fi
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10221 echo "${ECHO_T}$ac_header_compiler" >&6
10222
10223 # Is the header present?
10224 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10225 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 #include <openssl/ssl.h>
10233 _ACEOF
10234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } >/dev/null; then
10242   if test -s conftest.err; then
10243     ac_cpp_err=$ac_c_preproc_warn_flag
10244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10245   else
10246     ac_cpp_err=
10247   fi
10248 else
10249   ac_cpp_err=yes
10250 fi
10251 if test -z "$ac_cpp_err"; then
10252   ac_header_preproc=yes
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257   ac_header_preproc=no
10258 fi
10259 rm -f conftest.err conftest.$ac_ext
10260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10261 echo "${ECHO_T}$ac_header_preproc" >&6
10262
10263 # So?  What about this header?
10264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10265   yes:no: )
10266     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10267 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10268     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10269 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10270     ac_header_preproc=yes
10271     ;;
10272   no:yes:* )
10273     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10274 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10275     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
10276 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
10277     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10278 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10279     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
10280 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10281     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10282 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10283     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10284 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10285     (
10286       cat <<\_ASBOX
10287 ## ---------------------------------------- ##
10288 ## Report this to pgsql-bugs@postgresql.org ##
10289 ## ---------------------------------------- ##
10290 _ASBOX
10291     ) |
10292       sed "s/^/$as_me: WARNING:     /" >&2
10293     ;;
10294 esac
10295 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10296 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10297 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   ac_cv_header_openssl_ssl_h=$ac_header_preproc
10301 fi
10302 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10303 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10304
10305 fi
10306 if test $ac_cv_header_openssl_ssl_h = yes; then
10307   :
10308 else
10309   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10310 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10311    { (exit 1); exit 1; }; }
10312 fi
10313
10314
10315   if test "${ac_cv_header_openssl_err_h+set}" = set; then
10316   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10317 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10318 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 fi
10321 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10322 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10323 else
10324   # Is the header compilable?
10325 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10326 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 $ac_includes_default
10334 #include <openssl/err.h>
10335 _ACEOF
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338   (eval $ac_compile) 2>conftest.er1
10339   ac_status=$?
10340   grep -v '^ *+' conftest.er1 >conftest.err
10341   rm -f conftest.er1
10342   cat conftest.err >&5
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } &&
10345          { ac_try='test -z "$ac_c_werror_flag"
10346                          || test ! -s conftest.err'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; } &&
10352          { ac_try='test -s conftest.$ac_objext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_header_compiler=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_header_compiler=no
10364 fi
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367 echo "${ECHO_T}$ac_header_compiler" >&6
10368
10369 # Is the header present?
10370 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10371 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378 #include <openssl/err.h>
10379 _ACEOF
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } >/dev/null; then
10388   if test -s conftest.err; then
10389     ac_cpp_err=$ac_c_preproc_warn_flag
10390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10391   else
10392     ac_cpp_err=
10393   fi
10394 else
10395   ac_cpp_err=yes
10396 fi
10397 if test -z "$ac_cpp_err"; then
10398   ac_header_preproc=yes
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403   ac_header_preproc=no
10404 fi
10405 rm -f conftest.err conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407 echo "${ECHO_T}$ac_header_preproc" >&6
10408
10409 # So?  What about this header?
10410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10411   yes:no: )
10412     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10413 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10415 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10416     ac_header_preproc=yes
10417     ;;
10418   no:yes:* )
10419     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10420 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10421     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
10422 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
10423     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10424 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10425     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
10426 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10427     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10428 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10429     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10430 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10431     (
10432       cat <<\_ASBOX
10433 ## ---------------------------------------- ##
10434 ## Report this to pgsql-bugs@postgresql.org ##
10435 ## ---------------------------------------- ##
10436 _ASBOX
10437     ) |
10438       sed "s/^/$as_me: WARNING:     /" >&2
10439     ;;
10440 esac
10441 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10442 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10443 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   ac_cv_header_openssl_err_h=$ac_header_preproc
10447 fi
10448 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10449 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10450
10451 fi
10452 if test $ac_cv_header_openssl_err_h = yes; then
10453   :
10454 else
10455   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10456 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10457    { (exit 1); exit 1; }; }
10458 fi
10459
10460
10461 fi
10462
10463 if test "$with_pam" = yes ; then
10464
10465 for ac_header in security/pam_appl.h
10466 do
10467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469   echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 fi
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10476 else
10477   # Is the header compilable?
10478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h.  */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h.  */
10486 $ac_includes_default
10487 #include <$ac_header>
10488 _ACEOF
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491   (eval $ac_compile) 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } &&
10498          { ac_try='test -z "$ac_c_werror_flag"
10499                          || test ! -s conftest.err'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; } &&
10505          { ac_try='test -s conftest.$ac_objext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_header_compiler=yes
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_header_compiler=no
10517 fi
10518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10520 echo "${ECHO_T}$ac_header_compiler" >&6
10521
10522 # Is the header present?
10523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531 #include <$ac_header>
10532 _ACEOF
10533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } >/dev/null; then
10541   if test -s conftest.err; then
10542     ac_cpp_err=$ac_c_preproc_warn_flag
10543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10544   else
10545     ac_cpp_err=
10546   fi
10547 else
10548   ac_cpp_err=yes
10549 fi
10550 if test -z "$ac_cpp_err"; then
10551   ac_header_preproc=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556   ac_header_preproc=no
10557 fi
10558 rm -f conftest.err conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10560 echo "${ECHO_T}$ac_header_preproc" >&6
10561
10562 # So?  What about this header?
10563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10564   yes:no: )
10565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10569     ac_header_preproc=yes
10570     ;;
10571   no:yes:* )
10572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10584     (
10585       cat <<\_ASBOX
10586 ## ---------------------------------------- ##
10587 ## Report this to pgsql-bugs@postgresql.org ##
10588 ## ---------------------------------------- ##
10589 _ASBOX
10590     ) |
10591       sed "s/^/$as_me: WARNING:     /" >&2
10592     ;;
10593 esac
10594 echo "$as_me:$LINENO: checking for $ac_header" >&5
10595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10597   echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599   eval "$as_ac_Header=\$ac_header_preproc"
10600 fi
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10603
10604 fi
10605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10606   cat >>confdefs.h <<_ACEOF
10607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10608 _ACEOF
10609
10610 else
10611
10612 for ac_header in pam/pam_appl.h
10613 do
10614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616   echo "$as_me:$LINENO: checking for $ac_header" >&5
10617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619   echo $ECHO_N "(cached) $ECHO_C" >&6
10620 fi
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10623 else
10624   # Is the header compilable?
10625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 $ac_includes_default
10634 #include <$ac_header>
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638   (eval $ac_compile) 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -z "$ac_c_werror_flag"
10646                          || test ! -s conftest.err'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654   (eval $ac_try) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; }; then
10658   ac_header_compiler=yes
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_header_compiler=no
10664 fi
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667 echo "${ECHO_T}$ac_header_compiler" >&6
10668
10669 # Is the header present?
10670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678 #include <$ac_header>
10679 _ACEOF
10680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } >/dev/null; then
10688   if test -s conftest.err; then
10689     ac_cpp_err=$ac_c_preproc_warn_flag
10690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10691   else
10692     ac_cpp_err=
10693   fi
10694 else
10695   ac_cpp_err=yes
10696 fi
10697 if test -z "$ac_cpp_err"; then
10698   ac_header_preproc=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703   ac_header_preproc=no
10704 fi
10705 rm -f conftest.err conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707 echo "${ECHO_T}$ac_header_preproc" >&6
10708
10709 # So?  What about this header?
10710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10711   yes:no: )
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10716     ac_header_preproc=yes
10717     ;;
10718   no:yes:* )
10719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10731     (
10732       cat <<\_ASBOX
10733 ## ---------------------------------------- ##
10734 ## Report this to pgsql-bugs@postgresql.org ##
10735 ## ---------------------------------------- ##
10736 _ASBOX
10737     ) |
10738       sed "s/^/$as_me: WARNING:     /" >&2
10739     ;;
10740 esac
10741 echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   eval "$as_ac_Header=\$ac_header_preproc"
10747 fi
10748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10750
10751 fi
10752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10753   cat >>confdefs.h <<_ACEOF
10754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10755 _ACEOF
10756
10757 else
10758   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10759 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10760    { (exit 1); exit 1; }; }
10761 fi
10762
10763 done
10764
10765 fi
10766
10767 done
10768
10769 fi
10770
10771 if test "$with_libxml" = yes ; then
10772   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10773   echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10774 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10775 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 fi
10778 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10779 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10780 else
10781   # Is the header compilable?
10782 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
10783 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790 $ac_includes_default
10791 #include <libxml/parser.h>
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795   (eval $ac_compile) 2>conftest.er1
10796   ac_status=$?
10797   grep -v '^ *+' conftest.er1 >conftest.err
10798   rm -f conftest.er1
10799   cat conftest.err >&5
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } &&
10802          { ac_try='test -z "$ac_c_werror_flag"
10803                          || test ! -s conftest.err'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; } &&
10809          { ac_try='test -s conftest.$ac_objext'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_header_compiler=yes
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_header_compiler=no
10821 fi
10822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10824 echo "${ECHO_T}$ac_header_compiler" >&6
10825
10826 # Is the header present?
10827 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
10828 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835 #include <libxml/parser.h>
10836 _ACEOF
10837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10839   ac_status=$?
10840   grep -v '^ *+' conftest.er1 >conftest.err
10841   rm -f conftest.er1
10842   cat conftest.err >&5
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); } >/dev/null; then
10845   if test -s conftest.err; then
10846     ac_cpp_err=$ac_c_preproc_warn_flag
10847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10848   else
10849     ac_cpp_err=
10850   fi
10851 else
10852   ac_cpp_err=yes
10853 fi
10854 if test -z "$ac_cpp_err"; then
10855   ac_header_preproc=yes
10856 else
10857   echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860   ac_header_preproc=no
10861 fi
10862 rm -f conftest.err conftest.$ac_ext
10863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10864 echo "${ECHO_T}$ac_header_preproc" >&6
10865
10866 # So?  What about this header?
10867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10868   yes:no: )
10869     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
10870 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
10872 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
10873     ac_header_preproc=yes
10874     ;;
10875   no:yes:* )
10876     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
10877 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
10878     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
10879 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
10880     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
10881 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
10882     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
10883 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
10885 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
10886     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
10887 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
10888     (
10889       cat <<\_ASBOX
10890 ## ---------------------------------------- ##
10891 ## Report this to pgsql-bugs@postgresql.org ##
10892 ## ---------------------------------------- ##
10893 _ASBOX
10894     ) |
10895       sed "s/^/$as_me: WARNING:     /" >&2
10896     ;;
10897 esac
10898 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10899 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10900 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   ac_cv_header_libxml_parser_h=$ac_header_preproc
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10906 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10907
10908 fi
10909 if test $ac_cv_header_libxml_parser_h = yes; then
10910   :
10911 else
10912   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
10913 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
10914    { (exit 1); exit 1; }; }
10915 fi
10916
10917
10918 fi
10919
10920 if test "$with_libxslt" = yes ; then
10921   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
10922   echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
10923 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
10928 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
10929 else
10930   # Is the header compilable?
10931 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
10932 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939 $ac_includes_default
10940 #include <libxslt/xslt.h>
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944   (eval $ac_compile) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } &&
10951          { ac_try='test -z "$ac_c_werror_flag"
10952                          || test ! -s conftest.err'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest.$ac_objext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_header_compiler=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_header_compiler=no
10970 fi
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6
10974
10975 # Is the header present?
10976 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
10977 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984 #include <libxslt/xslt.h>
10985 _ACEOF
10986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } >/dev/null; then
10994   if test -s conftest.err; then
10995     ac_cpp_err=$ac_c_preproc_warn_flag
10996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10997   else
10998     ac_cpp_err=
10999   fi
11000 else
11001   ac_cpp_err=yes
11002 fi
11003 if test -z "$ac_cpp_err"; then
11004   ac_header_preproc=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009   ac_header_preproc=no
11010 fi
11011 rm -f conftest.err conftest.$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11013 echo "${ECHO_T}$ac_header_preproc" >&6
11014
11015 # So?  What about this header?
11016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11017   yes:no: )
11018     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11019 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11020     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11021 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11022     ac_header_preproc=yes
11023     ;;
11024   no:yes:* )
11025     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11026 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
11028 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11030 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11031     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
11032 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11033     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11034 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11035     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11036 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11037     (
11038       cat <<\_ASBOX
11039 ## ---------------------------------------- ##
11040 ## Report this to pgsql-bugs@postgresql.org ##
11041 ## ---------------------------------------- ##
11042 _ASBOX
11043     ) |
11044       sed "s/^/$as_me: WARNING:     /" >&2
11045     ;;
11046 esac
11047 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11048 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11053 fi
11054 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11055 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11056
11057 fi
11058 if test $ac_cv_header_libxslt_xslt_h = yes; then
11059   :
11060 else
11061   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11062 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11063    { (exit 1); exit 1; }; }
11064 fi
11065
11066
11067 fi
11068
11069 if test "$with_ldap" = yes ; then
11070   if test "$PORTNAME" != "win32"; then
11071
11072 for ac_header in ldap.h
11073 do
11074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076   echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 fi
11081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11083 else
11084   # Is the header compilable?
11085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093 $ac_includes_default
11094 #include <$ac_header>
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098   (eval $ac_compile) 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -z "$ac_c_werror_flag"
11106                          || test ! -s conftest.err'
11107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108   (eval $ac_try) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; } &&
11112          { ac_try='test -s conftest.$ac_objext'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_header_compiler=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ac_header_compiler=no
11124 fi
11125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6
11128
11129 # Is the header present?
11130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <$ac_header>
11139 _ACEOF
11140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } >/dev/null; then
11148   if test -s conftest.err; then
11149     ac_cpp_err=$ac_c_preproc_warn_flag
11150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11151   else
11152     ac_cpp_err=
11153   fi
11154 else
11155   ac_cpp_err=yes
11156 fi
11157 if test -z "$ac_cpp_err"; then
11158   ac_header_preproc=yes
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163   ac_header_preproc=no
11164 fi
11165 rm -f conftest.err conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6
11168
11169 # So?  What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171   yes:no: )
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176     ac_header_preproc=yes
11177     ;;
11178   no:yes:* )
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191     (
11192       cat <<\_ASBOX
11193 ## ---------------------------------------- ##
11194 ## Report this to pgsql-bugs@postgresql.org ##
11195 ## ---------------------------------------- ##
11196 _ASBOX
11197     ) |
11198       sed "s/^/$as_me: WARNING:     /" >&2
11199     ;;
11200 esac
11201 echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   eval "$as_ac_Header=\$ac_header_preproc"
11207 fi
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11210
11211 fi
11212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11213   cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215 _ACEOF
11216
11217 else
11218   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11219 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11220    { (exit 1); exit 1; }; }
11221 fi
11222
11223 done
11224
11225   else
11226
11227 for ac_header in winldap.h
11228 do
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 $ac_includes_default
11242 #include <windows.h>
11243
11244
11245 #include <$ac_header>
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249   (eval $ac_compile) 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_c_werror_flag"
11257                          || test ! -s conftest.err'
11258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259   (eval $ac_try) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; } &&
11263          { ac_try='test -s conftest.$ac_objext'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   eval "$as_ac_Header=yes"
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 eval "$as_ac_Header=no"
11275 fi
11276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11277 fi
11278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11281   cat >>confdefs.h <<_ACEOF
11282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11283 _ACEOF
11284
11285 else
11286   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11287 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11288    { (exit 1); exit 1; }; }
11289 fi
11290
11291 done
11292
11293   fi
11294 fi
11295
11296 if test "$with_bonjour" = yes ; then
11297   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11298   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11299 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11300 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 fi
11303 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11304 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11305 else
11306   # Is the header compilable?
11307 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11308 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315 $ac_includes_default
11316 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320   (eval $ac_compile) 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } &&
11327          { ac_try='test -z "$ac_c_werror_flag"
11328                          || test ! -s conftest.err'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; } &&
11334          { ac_try='test -s conftest.$ac_objext'
11335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336   (eval $ac_try) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; }; then
11340   ac_header_compiler=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_header_compiler=no
11346 fi
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6
11350
11351 # Is the header present?
11352 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
11353 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11361 _ACEOF
11362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11364   ac_status=$?
11365   grep -v '^ *+' conftest.er1 >conftest.err
11366   rm -f conftest.er1
11367   cat conftest.err >&5
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } >/dev/null; then
11370   if test -s conftest.err; then
11371     ac_cpp_err=$ac_c_preproc_warn_flag
11372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11373   else
11374     ac_cpp_err=
11375   fi
11376 else
11377   ac_cpp_err=yes
11378 fi
11379 if test -z "$ac_cpp_err"; then
11380   ac_header_preproc=yes
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385   ac_header_preproc=no
11386 fi
11387 rm -f conftest.err conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 echo "${ECHO_T}$ac_header_preproc" >&6
11390
11391 # So?  What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393   yes:no: )
11394     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
11395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
11397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
11398     ac_header_preproc=yes
11399     ;;
11400   no:yes:* )
11401     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
11403     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
11405     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
11406 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
11407     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
11408 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
11412 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
11413     (
11414       cat <<\_ASBOX
11415 ## ---------------------------------------- ##
11416 ## Report this to pgsql-bugs@postgresql.org ##
11417 ## ---------------------------------------- ##
11418 _ASBOX
11419     ) |
11420       sed "s/^/$as_me: WARNING:     /" >&2
11421     ;;
11422 esac
11423 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11424 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11425 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11431 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11432
11433 fi
11434 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
11435   :
11436 else
11437   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
11438 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
11439    { (exit 1); exit 1; }; }
11440 fi
11441
11442
11443 fi
11444
11445
11446 ##
11447 ## Types, structures, compiler characteristics
11448 ##
11449
11450  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11451 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11452 if test "${ac_cv_c_bigendian+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   # See if sys/param.h defines the BYTE_ORDER macro.
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462 #include <sys/types.h>
11463 #include <sys/param.h>
11464
11465 int
11466 main ()
11467 {
11468 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11469  bogus endian macros
11470 #endif
11471
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478   (eval $ac_compile) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -z "$ac_c_werror_flag"
11486                          || test ! -s conftest.err'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; } &&
11492          { ac_try='test -s conftest.$ac_objext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   # It does; now see whether it defined to BIG_ENDIAN or not.
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 #include <sys/types.h>
11506 #include <sys/param.h>
11507
11508 int
11509 main ()
11510 {
11511 #if BYTE_ORDER != BIG_ENDIAN
11512  not big endian
11513 #endif
11514
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521   (eval $ac_compile) 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_c_werror_flag"
11529                          || test ! -s conftest.err'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest.$ac_objext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ac_cv_c_bigendian=yes
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546 ac_cv_c_bigendian=no
11547 fi
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11549 else
11550   echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 # It does not; compile a test program.
11554 if test "$cross_compiling" = yes; then
11555   # try to guess the endianness by grepping values into an object file
11556   ac_cv_c_bigendian=unknown
11557   cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11564 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11565 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11566 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11567 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11568 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11569 int
11570 main ()
11571 {
11572  _ascii (); _ebcdic ();
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579   (eval $ac_compile) 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -z "$ac_c_werror_flag"
11587                          || test ! -s conftest.err'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; } &&
11593          { ac_try='test -s conftest.$ac_objext'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; }; then
11599   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11600   ac_cv_c_bigendian=yes
11601 fi
11602 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11603   if test "$ac_cv_c_bigendian" = unknown; then
11604     ac_cv_c_bigendian=no
11605   else
11606     # finding both strings is unlikely to happen, but who knows?
11607     ac_cv_c_bigendian=unknown
11608   fi
11609 fi
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 fi
11615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11616 else
11617   cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h.  */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h.  */
11623 int
11624 main ()
11625 {
11626   /* Are we little or big endian?  From Harbison&Steele.  */
11627   union
11628   {
11629     long l;
11630     char c[sizeof (long)];
11631   } u;
11632   u.l = 1;
11633   exit (u.c[sizeof (long) - 1] == 1);
11634 }
11635 _ACEOF
11636 rm -f conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638   (eval $ac_link) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_cv_c_bigendian=no
11648 else
11649   echo "$as_me: program exited with status $ac_status" >&5
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 ( exit $ac_status )
11654 ac_cv_c_bigendian=yes
11655 fi
11656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11662 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11663 case $ac_cv_c_bigendian in
11664   yes)
11665
11666 cat >>confdefs.h <<\_ACEOF
11667 #define WORDS_BIGENDIAN 1
11668 _ACEOF
11669  ;;
11670   no)
11671      ;;
11672   *)
11673     { { echo "$as_me:$LINENO: error: unknown endianness
11674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11675 echo "$as_me: error: unknown endianness
11676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11677    { (exit 1); exit 1; }; } ;;
11678 esac
11679
11680 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11681 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11682 if test "${ac_cv_c_const+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 int
11693 main ()
11694 {
11695 /* FIXME: Include the comments suggested by Paul. */
11696 #ifndef __cplusplus
11697   /* Ultrix mips cc rejects this.  */
11698   typedef int charset[2];
11699   const charset x;
11700   /* SunOS 4.1.1 cc rejects this.  */
11701   char const *const *ccp;
11702   char **p;
11703   /* NEC SVR4.0.2 mips cc rejects this.  */
11704   struct point {int x, y;};
11705   static struct point const zero = {0,0};
11706   /* AIX XL C 1.02.0.0 rejects this.
11707      It does not let you subtract one const X* pointer from another in
11708      an arm of an if-expression whose if-part is not a constant
11709      expression */
11710   const char *g = "string";
11711   ccp = &g + (g ? g-g : 0);
11712   /* HPUX 7.0 cc rejects these. */
11713   ++ccp;
11714   p = (char**) ccp;
11715   ccp = (char const *const *) p;
11716   { /* SCO 3.2v4 cc rejects this.  */
11717     char *t;
11718     char const *s = 0 ? (char *) 0 : (char const *) 0;
11719
11720     *t++ = 0;
11721   }
11722   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11723     int x[] = {25, 17};
11724     const int *foo = &x[0];
11725     ++foo;
11726   }
11727   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11728     typedef const int *iptr;
11729     iptr p = 0;
11730     ++p;
11731   }
11732   { /* AIX XL C 1.02.0.0 rejects this saying
11733        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11734     struct s { int j; const int *ap[3]; };
11735     struct s *b; b->j = 5;
11736   }
11737   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11738     const int foo = 10;
11739   }
11740 #endif
11741
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11748   (eval $ac_compile) 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag"
11756                          || test ! -s conftest.err'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest.$ac_objext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_c_const=yes
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 ac_cv_c_const=no
11774 fi
11775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776 fi
11777 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11778 echo "${ECHO_T}$ac_cv_c_const" >&6
11779 if test $ac_cv_c_const = no; then
11780
11781 cat >>confdefs.h <<\_ACEOF
11782 #define const
11783 _ACEOF
11784
11785 fi
11786
11787
11788 echo "$as_me:$LINENO: checking for inline" >&5
11789 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11790 if test "${ac_cv_c_inline+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   ac_cv_c_inline=no
11794 for ac_kw in inline __inline__ __inline; do
11795   cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 #ifndef __cplusplus
11802 typedef int foo_t;
11803 static $ac_kw foo_t static_foo () {return 0; }
11804 $ac_kw int foo () {return 0; }
11805 #endif
11806
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810   (eval $ac_compile) 2>conftest.er1
11811   ac_status=$?
11812   grep -v '^ *+' conftest.er1 >conftest.err
11813   rm -f conftest.er1
11814   cat conftest.err >&5
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -z "$ac_c_werror_flag"
11818                          || test ! -s conftest.err'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; } &&
11824          { ac_try='test -s conftest.$ac_objext'
11825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826   (eval $ac_try) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; }; then
11830   ac_cv_c_inline=$ac_kw; break
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 fi
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11837 done
11838
11839 fi
11840 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11841 echo "${ECHO_T}$ac_cv_c_inline" >&6
11842 case $ac_cv_c_inline in
11843   inline | yes) ;;
11844   no)
11845 cat >>confdefs.h <<\_ACEOF
11846 #define inline
11847 _ACEOF
11848  ;;
11849   *)  cat >>confdefs.h <<_ACEOF
11850 #define inline $ac_cv_c_inline
11851 _ACEOF
11852  ;;
11853 esac
11854
11855 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11856 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11857 if test "${ac_cv_c_stringize+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866 #define x(y) #y
11867
11868 char *s = x(teststring);
11869 _ACEOF
11870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11871   $EGREP "#teststring" >/dev/null 2>&1; then
11872   ac_cv_c_stringize=no
11873 else
11874   ac_cv_c_stringize=yes
11875 fi
11876 rm -f conftest*
11877
11878 fi
11879 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11880 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11881 if test $ac_cv_c_stringize = yes; then
11882
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_STRINGIZE 1
11885 _ACEOF
11886
11887 fi
11888
11889 echo "$as_me:$LINENO: checking for signed types" >&5
11890 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11891 if test "${pgac_cv_c_signed+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900
11901 int
11902 main ()
11903 {
11904 signed char c; signed short s; signed int i;
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911   (eval $ac_compile) 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag"
11919                          || test ! -s conftest.err'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; } &&
11925          { ac_try='test -s conftest.$ac_objext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   pgac_cv_c_signed=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 pgac_cv_c_signed=no
11937 fi
11938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 fi
11940 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11941 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11942 if test x"$pgac_cv_c_signed" = xno ; then
11943
11944 cat >>confdefs.h <<\_ACEOF
11945 #define signed
11946 _ACEOF
11947
11948 fi
11949 echo "$as_me:$LINENO: checking for working volatile" >&5
11950 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11951 if test "${ac_cv_c_volatile+set}" = set; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960
11961 int
11962 main ()
11963 {
11964
11965 volatile int x;
11966 int * volatile y;
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973   (eval $ac_compile) 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -z "$ac_c_werror_flag"
11981                          || test ! -s conftest.err'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; } &&
11987          { ac_try='test -s conftest.$ac_objext'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   ac_cv_c_volatile=yes
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ac_cv_c_volatile=no
11999 fi
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 fi
12002 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12003 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12004 if test $ac_cv_c_volatile = no; then
12005
12006 cat >>confdefs.h <<\_ACEOF
12007 #define volatile
12008 _ACEOF
12009
12010 fi
12011
12012 echo "$as_me:$LINENO: checking for __func__" >&5
12013 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12014 if test "${pgac_cv_funcname_func_support+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 #include <stdio.h>
12024 int
12025 main ()
12026 {
12027 printf("%s\n", __func__);
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034   (eval $ac_compile) 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_c_werror_flag"
12042                          || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest.$ac_objext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   pgac_cv_funcname_func_support=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 pgac_cv_funcname_func_support=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12062 fi
12063 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12064 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12065 if test x"$pgac_cv_funcname_func_support" = xyes ; then
12066
12067 cat >>confdefs.h <<\_ACEOF
12068 #define HAVE_FUNCNAME__FUNC 1
12069 _ACEOF
12070
12071 else
12072 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12073 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12074 if test "${pgac_cv_funcname_function_support+set}" = set; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 #include <stdio.h>
12084 int
12085 main ()
12086 {
12087 printf("%s\n", __FUNCTION__);
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094   (eval $ac_compile) 2>conftest.er1
12095   ac_status=$?
12096   grep -v '^ *+' conftest.er1 >conftest.err
12097   rm -f conftest.er1
12098   cat conftest.err >&5
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } &&
12101          { ac_try='test -z "$ac_c_werror_flag"
12102                          || test ! -s conftest.err'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; } &&
12108          { ac_try='test -s conftest.$ac_objext'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; }; then
12114   pgac_cv_funcname_function_support=yes
12115 else
12116   echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 pgac_cv_funcname_function_support=no
12120 fi
12121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12124 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12125 if test x"$pgac_cv_funcname_function_support" = xyes ; then
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_FUNCNAME__FUNCTION 1
12129 _ACEOF
12130
12131 fi
12132 fi
12133 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12134 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12135 if test "${ac_cv_struct_tm+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h.  */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h.  */
12144 #include <sys/types.h>
12145 #include <time.h>
12146
12147 int
12148 main ()
12149 {
12150 struct tm *tp; tp->tm_sec;
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157   (eval $ac_compile) 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } &&
12164          { ac_try='test -z "$ac_c_werror_flag"
12165                          || test ! -s conftest.err'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; } &&
12171          { ac_try='test -s conftest.$ac_objext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_cv_struct_tm=time.h
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_cv_struct_tm=sys/time.h
12183 fi
12184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12185 fi
12186 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12187 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12188 if test $ac_cv_struct_tm = sys/time.h; then
12189
12190 cat >>confdefs.h <<\_ACEOF
12191 #define TM_IN_SYS_TIME 1
12192 _ACEOF
12193
12194 fi
12195
12196 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12197 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12198 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h.  */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h.  */
12207 #include <sys/types.h>
12208 #include <$ac_cv_struct_tm>
12209
12210
12211 int
12212 main ()
12213 {
12214 static struct tm ac_aggr;
12215 if (ac_aggr.tm_zone)
12216 return 0;
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223   (eval $ac_compile) 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag"
12231                          || test ! -s conftest.err'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; } &&
12237          { ac_try='test -s conftest.$ac_objext'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   ac_cv_member_struct_tm_tm_zone=yes
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 #include <sys/types.h>
12255 #include <$ac_cv_struct_tm>
12256
12257
12258 int
12259 main ()
12260 {
12261 static struct tm ac_aggr;
12262 if (sizeof ac_aggr.tm_zone)
12263 return 0;
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270   (eval $ac_compile) 2>conftest.er1
12271   ac_status=$?
12272   grep -v '^ *+' conftest.er1 >conftest.err
12273   rm -f conftest.er1
12274   cat conftest.err >&5
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } &&
12277          { ac_try='test -z "$ac_c_werror_flag"
12278                          || test ! -s conftest.err'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; } &&
12284          { ac_try='test -s conftest.$ac_objext'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; }; then
12290   ac_cv_member_struct_tm_tm_zone=yes
12291 else
12292   echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_cv_member_struct_tm_tm_zone=no
12296 fi
12297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298 fi
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12302 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12303 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12304
12305 cat >>confdefs.h <<_ACEOF
12306 #define HAVE_STRUCT_TM_TM_ZONE 1
12307 _ACEOF
12308
12309
12310 fi
12311
12312 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_TM_ZONE 1
12316 _ACEOF
12317
12318 fi
12319 echo "$as_me:$LINENO: checking for tzname" >&5
12320 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12321 if test "${ac_cv_var_tzname+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 #include <time.h>
12331 #ifndef tzname /* For SGI.  */
12332 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12333 #endif
12334
12335 int
12336 main ()
12337 {
12338 atoi(*tzname);
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345   (eval $ac_link) 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_c_werror_flag"
12353                          || test ! -s conftest.err'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; } &&
12359          { ac_try='test -s conftest$ac_exeext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   ac_cv_var_tzname=yes
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_cv_var_tzname=no
12371 fi
12372 rm -f conftest.err conftest.$ac_objext \
12373       conftest$ac_exeext conftest.$ac_ext
12374 fi
12375 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12376 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12377 if test $ac_cv_var_tzname = yes; then
12378
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_TZNAME 1
12381 _ACEOF
12382
12383 fi
12384
12385 echo "$as_me:$LINENO: checking for union semun" >&5
12386 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
12387 if test "${ac_cv_type_union_semun+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 #include <sys/types.h>
12397 #include <sys/ipc.h>
12398 #include <sys/sem.h>
12399
12400 int
12401 main ()
12402 {
12403 if ((union semun *) 0)
12404   return 0;
12405 if (sizeof (union semun))
12406   return 0;
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413   (eval $ac_compile) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_cv_type_union_semun=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438 ac_cv_type_union_semun=no
12439 fi
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
12443 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
12444 if test $ac_cv_type_union_semun = yes; then
12445
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_UNION_SEMUN 1
12448 _ACEOF
12449
12450
12451 fi
12452
12453 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
12454 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
12455 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464 #include <sys/types.h>
12465 #ifdef HAVE_SYS_UN_H
12466 #include <sys/un.h>
12467 #endif
12468
12469
12470 int
12471 main ()
12472 {
12473 if ((struct sockaddr_un *) 0)
12474   return 0;
12475 if (sizeof (struct sockaddr_un))
12476   return 0;
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483   (eval $ac_compile) 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_c_werror_flag"
12491                          || test ! -s conftest.err'
12492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493   (eval $ac_try) 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; } &&
12497          { ac_try='test -s conftest.$ac_objext'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503   ac_cv_type_struct_sockaddr_un=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 ac_cv_type_struct_sockaddr_un=no
12509 fi
12510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511 fi
12512 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
12513 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
12514 if test $ac_cv_type_struct_sockaddr_un = yes; then
12515
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_STRUCT_SOCKADDR_UN 1
12518 _ACEOF
12519
12520
12521 cat >>confdefs.h <<\_ACEOF
12522 #define HAVE_UNIX_SOCKETS 1
12523 _ACEOF
12524
12525 fi
12526
12527 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12528 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12529 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <sys/types.h>
12539 #ifdef HAVE_SYS_SOCKET_H
12540 #include <sys/socket.h>
12541 #endif
12542
12543
12544 int
12545 main ()
12546 {
12547 if ((struct sockaddr_storage *) 0)
12548   return 0;
12549 if (sizeof (struct sockaddr_storage))
12550   return 0;
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag"
12565                          || test ! -s conftest.err'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   ac_cv_type_struct_sockaddr_storage=yes
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_cv_type_struct_sockaddr_storage=no
12583 fi
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 fi
12586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12587 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
12588 if test $ac_cv_type_struct_sockaddr_storage = yes; then
12589
12590 cat >>confdefs.h <<_ACEOF
12591 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12592 _ACEOF
12593
12594
12595 fi
12596
12597 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
12598 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
12599 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 #include <sys/types.h>
12609 #ifdef HAVE_SYS_SOCKET_H
12610 #include <sys/socket.h>
12611 #endif
12612
12613
12614 int
12615 main ()
12616 {
12617 static struct sockaddr_storage ac_aggr;
12618 if (ac_aggr.ss_family)
12619 return 0;
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626   (eval $ac_compile) 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_c_werror_flag"
12634                          || test ! -s conftest.err'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ac_cv_member_struct_sockaddr_storage_ss_family=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657 #include <sys/types.h>
12658 #ifdef HAVE_SYS_SOCKET_H
12659 #include <sys/socket.h>
12660 #endif
12661
12662
12663 int
12664 main ()
12665 {
12666 static struct sockaddr_storage ac_aggr;
12667 if (sizeof ac_aggr.ss_family)
12668 return 0;
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675   (eval $ac_compile) 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -z "$ac_c_werror_flag"
12683                          || test ! -s conftest.err'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } &&
12689          { ac_try='test -s conftest.$ac_objext'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   ac_cv_member_struct_sockaddr_storage_ss_family=yes
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_cv_member_struct_sockaddr_storage_ss_family=no
12701 fi
12702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703 fi
12704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12705 fi
12706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12707 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
12708 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12712 _ACEOF
12713
12714
12715 fi
12716 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12717 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
12718 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727 #include <sys/types.h>
12728 #ifdef HAVE_SYS_SOCKET_H
12729 #include <sys/socket.h>
12730 #endif
12731
12732
12733 int
12734 main ()
12735 {
12736 static struct sockaddr_storage ac_aggr;
12737 if (ac_aggr.__ss_family)
12738 return 0;
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745   (eval $ac_compile) 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -z "$ac_c_werror_flag"
12753                          || test ! -s conftest.err'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; } &&
12759          { ac_try='test -s conftest.$ac_objext'
12760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761   (eval $ac_try) 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; }; then
12765   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <sys/types.h>
12777 #ifdef HAVE_SYS_SOCKET_H
12778 #include <sys/socket.h>
12779 #endif
12780
12781
12782 int
12783 main ()
12784 {
12785 static struct sockaddr_storage ac_aggr;
12786 if (sizeof ac_aggr.__ss_family)
12787 return 0;
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794   (eval $ac_compile) 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } &&
12801          { ac_try='test -z "$ac_c_werror_flag"
12802                          || test ! -s conftest.err'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; } &&
12808          { ac_try='test -s conftest.$ac_objext'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ac_cv_member_struct_sockaddr_storage___ss_family=no
12820 fi
12821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12824 fi
12825 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12826 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12827 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12828
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12831 _ACEOF
12832
12833
12834 fi
12835 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12836 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12837 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 #include <sys/types.h>
12847 #ifdef HAVE_SYS_SOCKET_H
12848 #include <sys/socket.h>
12849 #endif
12850
12851
12852 int
12853 main ()
12854 {
12855 static struct sockaddr_storage ac_aggr;
12856 if (ac_aggr.ss_len)
12857 return 0;
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864   (eval $ac_compile) 2>conftest.er1
12865   ac_status=$?
12866   grep -v '^ *+' conftest.er1 >conftest.err
12867   rm -f conftest.er1
12868   cat conftest.err >&5
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); } &&
12871          { ac_try='test -z "$ac_c_werror_flag"
12872                          || test ! -s conftest.err'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; } &&
12878          { ac_try='test -s conftest.$ac_objext'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; }; then
12884   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 #include <sys/types.h>
12896 #ifdef HAVE_SYS_SOCKET_H
12897 #include <sys/socket.h>
12898 #endif
12899
12900
12901 int
12902 main ()
12903 {
12904 static struct sockaddr_storage ac_aggr;
12905 if (sizeof ac_aggr.ss_len)
12906 return 0;
12907   ;
12908   return 0;
12909 }
12910 _ACEOF
12911 rm -f conftest.$ac_objext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12913   (eval $ac_compile) 2>conftest.er1
12914   ac_status=$?
12915   grep -v '^ *+' conftest.er1 >conftest.err
12916   rm -f conftest.er1
12917   cat conftest.err >&5
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } &&
12920          { ac_try='test -z "$ac_c_werror_flag"
12921                          || test ! -s conftest.err'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; } &&
12927          { ac_try='test -s conftest.$ac_objext'
12928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929   (eval $ac_try) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); }; }; then
12933   ac_cv_member_struct_sockaddr_storage_ss_len=yes
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 ac_cv_member_struct_sockaddr_storage_ss_len=no
12939 fi
12940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12941 fi
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12943 fi
12944 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12945 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12946 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12950 _ACEOF
12951
12952
12953 fi
12954 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12955 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12956 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h.  */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h.  */
12965 #include <sys/types.h>
12966 #ifdef HAVE_SYS_SOCKET_H
12967 #include <sys/socket.h>
12968 #endif
12969
12970
12971 int
12972 main ()
12973 {
12974 static struct sockaddr_storage ac_aggr;
12975 if (ac_aggr.__ss_len)
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_struct_sockaddr_storage___ss_len=yes
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 #include <sys/types.h>
13015 #ifdef HAVE_SYS_SOCKET_H
13016 #include <sys/socket.h>
13017 #endif
13018
13019
13020 int
13021 main ()
13022 {
13023 static struct sockaddr_storage ac_aggr;
13024 if (sizeof ac_aggr.__ss_len)
13025 return 0;
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest.$ac_objext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032   (eval $ac_compile) 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -z "$ac_c_werror_flag"
13040                          || test ! -s conftest.err'
13041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042   (eval $ac_try) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); }; } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   ac_cv_member_struct_sockaddr_storage___ss_len=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 ac_cv_member_struct_sockaddr_storage___ss_len=no
13058 fi
13059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13060 fi
13061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062 fi
13063 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13064 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13065 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13066
13067 cat >>confdefs.h <<_ACEOF
13068 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13069 _ACEOF
13070
13071
13072 fi
13073 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13074 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13075 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13076   echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078   cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #include <sys/types.h>
13085 #ifdef HAVE_SYS_SOCKET_H
13086 #include <sys/socket.h>
13087 #endif
13088
13089
13090 int
13091 main ()
13092 {
13093 static struct sockaddr ac_aggr;
13094 if (ac_aggr.sa_len)
13095 return 0;
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102   (eval $ac_compile) 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -z "$ac_c_werror_flag"
13110                          || test ! -s conftest.err'
13111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112   (eval $ac_try) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; } &&
13116          { ac_try='test -s conftest.$ac_objext'
13117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118   (eval $ac_try) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); }; }; then
13122   ac_cv_member_struct_sockaddr_sa_len=yes
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 #include <sys/types.h>
13134 #ifdef HAVE_SYS_SOCKET_H
13135 #include <sys/socket.h>
13136 #endif
13137
13138
13139 int
13140 main ()
13141 {
13142 static struct sockaddr ac_aggr;
13143 if (sizeof ac_aggr.sa_len)
13144 return 0;
13145   ;
13146   return 0;
13147 }
13148 _ACEOF
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151   (eval $ac_compile) 2>conftest.er1
13152   ac_status=$?
13153   grep -v '^ *+' conftest.er1 >conftest.err
13154   rm -f conftest.er1
13155   cat conftest.err >&5
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -z "$ac_c_werror_flag"
13159                          || test ! -s conftest.err'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; } &&
13165          { ac_try='test -s conftest.$ac_objext'
13166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167   (eval $ac_try) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); }; }; then
13171   ac_cv_member_struct_sockaddr_sa_len=yes
13172 else
13173   echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176 ac_cv_member_struct_sockaddr_sa_len=no
13177 fi
13178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13179 fi
13180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13181 fi
13182 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13183 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13184 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13185
13186 cat >>confdefs.h <<_ACEOF
13187 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13188 _ACEOF
13189
13190
13191 fi
13192
13193 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13194 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13195 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h.  */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h.  */
13204 #include <sys/types.h>
13205 #include <sys/socket.h>
13206 #include <netdb.h>
13207
13208
13209 int
13210 main ()
13211 {
13212 if ((struct addrinfo *) 0)
13213   return 0;
13214 if (sizeof (struct addrinfo))
13215   return 0;
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222   (eval $ac_compile) 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag"
13230                          || test ! -s conftest.err'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; } &&
13236          { ac_try='test -s conftest.$ac_objext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_cv_type_struct_addrinfo=yes
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_cv_type_struct_addrinfo=no
13248 fi
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13252 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13253 if test $ac_cv_type_struct_addrinfo = yes; then
13254
13255 cat >>confdefs.h <<_ACEOF
13256 #define HAVE_STRUCT_ADDRINFO 1
13257 _ACEOF
13258
13259
13260 fi
13261
13262
13263 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13264 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13265 if test "${ac_cv_type_struct_cmsgcred+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 <sys/param.h>
13275 #include <sys/types.h>
13276 #include <sys/socket.h>
13277 #include <sys/ucred.h>
13278
13279 int
13280 main ()
13281 {
13282 if ((struct cmsgcred *) 0)
13283   return 0;
13284 if (sizeof (struct cmsgcred))
13285   return 0;
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292   (eval $ac_compile) 2>conftest.er1
13293   ac_status=$?
13294   grep -v '^ *+' conftest.er1 >conftest.err
13295   rm -f conftest.er1
13296   cat conftest.err >&5
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } &&
13299          { ac_try='test -z "$ac_c_werror_flag"
13300                          || test ! -s conftest.err'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; } &&
13306          { ac_try='test -s conftest.$ac_objext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_type_struct_cmsgcred=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_type_struct_cmsgcred=no
13318 fi
13319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13320 fi
13321 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
13322 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
13323 if test $ac_cv_type_struct_cmsgcred = yes; then
13324
13325 cat >>confdefs.h <<_ACEOF
13326 #define HAVE_STRUCT_CMSGCRED 1
13327 _ACEOF
13328
13329
13330 fi
13331 echo "$as_me:$LINENO: checking for struct fcred" >&5
13332 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
13333 if test "${ac_cv_type_struct_fcred+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342 #include <sys/param.h>
13343 #include <sys/types.h>
13344 #include <sys/socket.h>
13345 #include <sys/ucred.h>
13346
13347 int
13348 main ()
13349 {
13350 if ((struct fcred *) 0)
13351   return 0;
13352 if (sizeof (struct fcred))
13353   return 0;
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360   (eval $ac_compile) 2>conftest.er1
13361   ac_status=$?
13362   grep -v '^ *+' conftest.er1 >conftest.err
13363   rm -f conftest.er1
13364   cat conftest.err >&5
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } &&
13367          { ac_try='test -z "$ac_c_werror_flag"
13368                          || test ! -s conftest.err'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest.$ac_objext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ac_cv_type_struct_fcred=yes
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ac_cv_type_struct_fcred=no
13386 fi
13387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13388 fi
13389 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
13390 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
13391 if test $ac_cv_type_struct_fcred = yes; then
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_STRUCT_FCRED 1
13395 _ACEOF
13396
13397
13398 fi
13399 echo "$as_me:$LINENO: checking for struct sockcred" >&5
13400 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
13401 if test "${ac_cv_type_struct_sockcred+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 #include <sys/param.h>
13411 #include <sys/types.h>
13412 #include <sys/socket.h>
13413 #include <sys/ucred.h>
13414
13415 int
13416 main ()
13417 {
13418 if ((struct sockcred *) 0)
13419   return 0;
13420 if (sizeof (struct sockcred))
13421   return 0;
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } &&
13435          { ac_try='test -z "$ac_c_werror_flag"
13436                          || test ! -s conftest.err'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_cv_type_struct_sockcred=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_cv_type_struct_sockcred=no
13454 fi
13455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13456 fi
13457 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
13458 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
13459 if test $ac_cv_type_struct_sockcred = yes; then
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_STRUCT_SOCKCRED 1
13463 _ACEOF
13464
13465
13466 fi
13467
13468
13469 echo "$as_me:$LINENO: checking for struct option" >&5
13470 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
13471 if test "${ac_cv_type_struct_option+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 #ifdef HAVE_GETOPT_H
13481 #include <getopt.h>
13482 #endif
13483
13484 int
13485 main ()
13486 {
13487 if ((struct option *) 0)
13488   return 0;
13489 if (sizeof (struct option))
13490   return 0;
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } &&
13504          { ac_try='test -z "$ac_c_werror_flag"
13505                          || test ! -s conftest.err'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; } &&
13511          { ac_try='test -s conftest.$ac_objext'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517   ac_cv_type_struct_option=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_cv_type_struct_option=no
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
13527 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
13528 if test $ac_cv_type_struct_option = yes; then
13529
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRUCT_OPTION 1
13532 _ACEOF
13533
13534
13535 fi
13536
13537
13538 if test "$with_zlib" = yes; then
13539   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
13540   # did not).  While we could work around the lack of z_streamp, it
13541   # seems unwise to encourage people to use such old zlib versions...
13542   echo "$as_me:$LINENO: checking for z_streamp" >&5
13543 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
13544 if test "${ac_cv_type_z_streamp+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547   cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 #include <zlib.h>
13554
13555 int
13556 main ()
13557 {
13558 if ((z_streamp *) 0)
13559   return 0;
13560 if (sizeof (z_streamp))
13561   return 0;
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -z "$ac_c_werror_flag"
13576                          || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest.$ac_objext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_type_z_streamp=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_type_z_streamp=no
13594 fi
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
13598 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
13599 if test $ac_cv_type_z_streamp = yes; then
13600   :
13601 else
13602   { { echo "$as_me:$LINENO: error: zlib version is too old
13603 Use --without-zlib to disable zlib support." >&5
13604 echo "$as_me: error: zlib version is too old
13605 Use --without-zlib to disable zlib support." >&2;}
13606    { (exit 1); exit 1; }; }
13607 fi
13608
13609 fi
13610
13611 if test "$with_krb5" = yes; then
13612 # Check for differences between MIT and Heimdal (KTH) releases
13613   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
13614 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
13615 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #include <krb5.h>
13625
13626 int
13627 main ()
13628 {
13629 static krb5_ticket ac_aggr;
13630 if (ac_aggr.enc_part2)
13631 return 0;
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638   (eval $ac_compile) 2>conftest.er1
13639   ac_status=$?
13640   grep -v '^ *+' conftest.er1 >conftest.err
13641   rm -f conftest.er1
13642   cat conftest.err >&5
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } &&
13645          { ac_try='test -z "$ac_c_werror_flag"
13646                          || test ! -s conftest.err'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; } &&
13652          { ac_try='test -s conftest.$ac_objext'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }; then
13658   ac_cv_member_krb5_ticket_enc_part2=yes
13659 else
13660   echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <krb5.h>
13670
13671 int
13672 main ()
13673 {
13674 static krb5_ticket ac_aggr;
13675 if (sizeof ac_aggr.enc_part2)
13676 return 0;
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683   (eval $ac_compile) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_c_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   ac_cv_member_krb5_ticket_enc_part2=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_cv_member_krb5_ticket_enc_part2=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
13715 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
13716 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
13717
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_KRB5_TICKET_ENC_PART2 1
13720 _ACEOF
13721
13722
13723 else
13724   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13725 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13726 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h.  */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h.  */
13735 #include <krb5.h>
13736
13737 int
13738 main ()
13739 {
13740 static krb5_ticket ac_aggr;
13741 if (ac_aggr.client)
13742 return 0;
13743   ;
13744   return 0;
13745 }
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749   (eval $ac_compile) 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_c_werror_flag"
13757                          || test ! -s conftest.err'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; } &&
13763          { ac_try='test -s conftest.$ac_objext'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_member_krb5_ticket_client=yes
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 #include <krb5.h>
13781
13782 int
13783 main ()
13784 {
13785 static krb5_ticket ac_aggr;
13786 if (sizeof ac_aggr.client)
13787 return 0;
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794   (eval $ac_compile) 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag"
13802                          || test ! -s conftest.err'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_cv_member_krb5_ticket_client=yes
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_cv_member_krb5_ticket_client=no
13820 fi
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 fi
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824 fi
13825 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13826 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13827 if test $ac_cv_member_krb5_ticket_client = yes; then
13828
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_KRB5_TICKET_CLIENT 1
13831 _ACEOF
13832
13833
13834 else
13835   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13836 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13837    { (exit 1); exit 1; }; }
13838 fi
13839
13840 fi
13841
13842   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13843 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13844 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853 #include <krb5.h>
13854
13855 int
13856 main ()
13857 {
13858 static krb5_error ac_aggr;
13859 if (ac_aggr.text.data)
13860 return 0;
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867   (eval $ac_compile) 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -z "$ac_c_werror_flag"
13875                          || test ! -s conftest.err'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; } &&
13881          { ac_try='test -s conftest.$ac_objext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_cv_member_krb5_error_text_data=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898 #include <krb5.h>
13899
13900 int
13901 main ()
13902 {
13903 static krb5_error ac_aggr;
13904 if (sizeof ac_aggr.text.data)
13905 return 0;
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912   (eval $ac_compile) 2>conftest.er1
13913   ac_status=$?
13914   grep -v '^ *+' conftest.er1 >conftest.err
13915   rm -f conftest.er1
13916   cat conftest.err >&5
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -z "$ac_c_werror_flag"
13920                          || test ! -s conftest.err'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; } &&
13926          { ac_try='test -s conftest.$ac_objext'
13927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928   (eval $ac_try) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_cv_member_krb5_error_text_data=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_cv_member_krb5_error_text_data=no
13938 fi
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13940 fi
13941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13942 fi
13943 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13944 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13945 if test $ac_cv_member_krb5_error_text_data = yes; then
13946
13947 cat >>confdefs.h <<_ACEOF
13948 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13949 _ACEOF
13950
13951
13952 else
13953   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13954 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13955 if test "${ac_cv_member_krb5_error_e_data+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 #include <krb5.h>
13965
13966 int
13967 main ()
13968 {
13969 static krb5_error ac_aggr;
13970 if (ac_aggr.e_data)
13971 return 0;
13972   ;
13973   return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978   (eval $ac_compile) 2>conftest.er1
13979   ac_status=$?
13980   grep -v '^ *+' conftest.er1 >conftest.err
13981   rm -f conftest.er1
13982   cat conftest.err >&5
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } &&
13985          { ac_try='test -z "$ac_c_werror_flag"
13986                          || test ! -s conftest.err'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; } &&
13992          { ac_try='test -s conftest.$ac_objext'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998   ac_cv_member_krb5_error_e_data=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009 #include <krb5.h>
14010
14011 int
14012 main ()
14013 {
14014 static krb5_error ac_aggr;
14015 if (sizeof ac_aggr.e_data)
14016 return 0;
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag"
14031                          || test ! -s conftest.err'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest.$ac_objext'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; }; then
14043   ac_cv_member_krb5_error_e_data=yes
14044 else
14045   echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 ac_cv_member_krb5_error_e_data=no
14049 fi
14050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14051 fi
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14055 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14056 if test $ac_cv_member_krb5_error_e_data = yes; then
14057
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_KRB5_ERROR_E_DATA 1
14060 _ACEOF
14061
14062
14063 else
14064   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14065 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14066    { (exit 1); exit 1; }; }
14067 fi
14068
14069 fi
14070
14071 fi
14072
14073
14074 ##
14075 ## Functions, global variables
14076 ##
14077
14078 echo "$as_me:$LINENO: checking for int timezone" >&5
14079 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14080 if test "${pgac_cv_var_int_timezone+set}" = set; then
14081   echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083   cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 #include <time.h>
14090 int res;
14091 int
14092 main ()
14093 {
14094 #ifndef __CYGWIN__
14095 res = timezone / 60;
14096 #else
14097 res = _timezone / 60;
14098 #endif
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105   (eval $ac_link) 2>conftest.er1
14106   ac_status=$?
14107   grep -v '^ *+' conftest.er1 >conftest.err
14108   rm -f conftest.er1
14109   cat conftest.err >&5
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } &&
14112          { ac_try='test -z "$ac_c_werror_flag"
14113                          || test ! -s conftest.err'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; } &&
14119          { ac_try='test -s conftest$ac_exeext'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }; then
14125   pgac_cv_var_int_timezone=yes
14126 else
14127   echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 pgac_cv_var_int_timezone=no
14131 fi
14132 rm -f conftest.err conftest.$ac_objext \
14133       conftest$ac_exeext conftest.$ac_ext
14134 fi
14135 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14136 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14137 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14138
14139 cat >>confdefs.h <<\_ACEOF
14140 #define HAVE_INT_TIMEZONE
14141 _ACEOF
14142
14143 fi
14144 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14145 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14146  if test "${ac_cv_func_accept_return+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149    if test "${ac_cv_func_accept_arg1+set}" = set; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152     if test "${ac_cv_func_accept_arg2+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155      if test "${ac_cv_func_accept_arg3+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14159       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14160        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14161         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14162          cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h.  */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h.  */
14168 #ifdef HAVE_SYS_TYPES_H
14169 #include <sys/types.h>
14170 #endif
14171 #ifdef HAVE_SYS_SOCKET_H
14172 #include <sys/socket.h>
14173 #endif
14174 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14175 int
14176 main ()
14177 {
14178
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185   (eval $ac_compile) 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } &&
14192          { ac_try='test -z "$ac_c_werror_flag"
14193                          || test ! -s conftest.err'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_not_found=no; break 4
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 ac_not_found=yes
14211 fi
14212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14213        done
14214       done
14215      done
14216     done
14217     if test "$ac_not_found" = yes; then
14218       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14219 echo "$as_me: error: could not determine argument types" >&2;}
14220    { (exit 1); exit 1; }; }
14221     fi
14222     if test "$ac_cv_func_accept_arg3" = "void"; then
14223       ac_cv_func_accept_arg3=int
14224     fi
14225
14226 fi
14227
14228 fi
14229
14230 fi
14231
14232 fi
14233  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
14234 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14238 _ACEOF
14239
14240
14241 cat >>confdefs.h <<_ACEOF
14242 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14243 _ACEOF
14244
14245
14246 cat >>confdefs.h <<_ACEOF
14247 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14248 _ACEOF
14249
14250
14251 cat >>confdefs.h <<_ACEOF
14252 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14253 _ACEOF
14254
14255
14256 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14257 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14258 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 #include <sys/time.h>
14268 int
14269 main ()
14270 {
14271 struct timeval *tp;
14272 struct timezone *tzp;
14273 gettimeofday(tp,tzp);
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag"
14288                          || test ! -s conftest.err'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   pgac_cv_func_gettimeofday_1arg=no
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 pgac_cv_func_gettimeofday_1arg=yes
14306 fi
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14308 fi
14309 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
14310 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
14311 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
14312
14313 cat >>confdefs.h <<\_ACEOF
14314 #define GETTIMEOFDAY_1ARG
14315 _ACEOF
14316
14317 fi
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
14342 do
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_var+set}\" = set"; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14357 #define $ac_func innocuous_$ac_func
14358
14359 /* System header to define __stub macros and hopefully few prototypes,
14360     which can conflict with char $ac_func (); below.
14361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362     <limits.h> exists even on freestanding compilers.  */
14363
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14369
14370 #undef $ac_func
14371
14372 /* Override any gcc2 internal prototype to avoid an error.  */
14373 #ifdef __cplusplus
14374 extern "C"
14375 {
14376 #endif
14377 /* We use char because int might match the return type of a gcc2
14378    builtin and then its argument prototype would still apply.  */
14379 char $ac_func ();
14380 /* The GNU C library defines this for functions which it implements
14381     to always fail with ENOSYS.  Some functions are actually named
14382     something starting with __ and the normal name is an alias.  */
14383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14384 choke me
14385 #else
14386 char (*f) () = $ac_func;
14387 #endif
14388 #ifdef __cplusplus
14389 }
14390 #endif
14391
14392 int
14393 main ()
14394 {
14395 return f != $ac_func;
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402   (eval $ac_link) 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_c_werror_flag"
14410                          || test ! -s conftest.err'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; } &&
14416          { ac_try='test -s conftest$ac_exeext'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   eval "$as_ac_var=yes"
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 eval "$as_ac_var=no"
14428 fi
14429 rm -f conftest.err conftest.$ac_objext \
14430       conftest$ac_exeext conftest.$ac_ext
14431 fi
14432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14434 if test `eval echo '${'$as_ac_var'}'` = yes; then
14435   cat >>confdefs.h <<_ACEOF
14436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14437 _ACEOF
14438
14439 fi
14440 done
14441
14442
14443 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
14444 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
14445 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h.  */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h.  */
14454 #include <unistd.h>
14455
14456 int
14457 main ()
14458 {
14459 #ifndef fdatasync
14460   char *p = (char *) fdatasync;
14461 #endif
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag"
14477                          || test ! -s conftest.err'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   ac_cv_have_decl_fdatasync=yes
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_cv_have_decl_fdatasync=no
14495 fi
14496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
14499 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
14500 if test $ac_cv_have_decl_fdatasync = yes; then
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_DECL_FDATASYNC 1
14504 _ACEOF
14505
14506
14507 else
14508   cat >>confdefs.h <<_ACEOF
14509 #define HAVE_DECL_FDATASYNC 0
14510 _ACEOF
14511
14512
14513 fi
14514
14515
14516 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
14517 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
14518 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
14519   echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521   cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527 #include <fcntl.h>
14528
14529 int
14530 main ()
14531 {
14532 #ifndef posix_fadvise
14533   char *p = (char *) posix_fadvise;
14534 #endif
14535
14536   ;
14537   return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542   (eval $ac_compile) 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -z "$ac_c_werror_flag"
14550                          || test ! -s conftest.err'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; } &&
14556          { ac_try='test -s conftest.$ac_objext'
14557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558   (eval $ac_try) 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562   ac_cv_have_decl_posix_fadvise=yes
14563 else
14564   echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 ac_cv_have_decl_posix_fadvise=no
14568 fi
14569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
14572 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
14573 if test $ac_cv_have_decl_posix_fadvise = yes; then
14574
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_DECL_POSIX_FADVISE 1
14577 _ACEOF
14578
14579
14580 else
14581   cat >>confdefs.h <<_ACEOF
14582 #define HAVE_DECL_POSIX_FADVISE 0
14583 _ACEOF
14584
14585
14586 fi
14587
14588
14589 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
14590 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
14591 if test "${ac_cv_have_decl_strlcat+set}" = set; then
14592   echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 $ac_includes_default
14601 int
14602 main ()
14603 {
14604 #ifndef strlcat
14605   char *p = (char *) strlcat;
14606 #endif
14607
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614   (eval $ac_compile) 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } &&
14621          { ac_try='test -z "$ac_c_werror_flag"
14622                          || test ! -s conftest.err'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; } &&
14628          { ac_try='test -s conftest.$ac_objext'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; }; then
14634   ac_cv_have_decl_strlcat=yes
14635 else
14636   echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 ac_cv_have_decl_strlcat=no
14640 fi
14641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
14644 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
14645 if test $ac_cv_have_decl_strlcat = yes; then
14646
14647 cat >>confdefs.h <<_ACEOF
14648 #define HAVE_DECL_STRLCAT 1
14649 _ACEOF
14650
14651
14652 else
14653   cat >>confdefs.h <<_ACEOF
14654 #define HAVE_DECL_STRLCAT 0
14655 _ACEOF
14656
14657
14658 fi
14659 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
14660 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
14661 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 $ac_includes_default
14671 int
14672 main ()
14673 {
14674 #ifndef strlcpy
14675   char *p = (char *) strlcpy;
14676 #endif
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -z "$ac_c_werror_flag"
14692                          || test ! -s conftest.err'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_cv_have_decl_strlcpy=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_cv_have_decl_strlcpy=no
14710 fi
14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712 fi
14713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
14714 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
14715 if test $ac_cv_have_decl_strlcpy = yes; then
14716
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_DECL_STRLCPY 1
14719 _ACEOF
14720
14721
14722 else
14723   cat >>confdefs.h <<_ACEOF
14724 #define HAVE_DECL_STRLCPY 0
14725 _ACEOF
14726
14727
14728 fi
14729
14730
14731 # This is probably only present on Darwin, but may as well check always
14732 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
14733 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
14734 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
14735   echo $ECHO_N "(cached) $ECHO_C" >&6
14736 else
14737   cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743 #include <fcntl.h>
14744
14745 int
14746 main ()
14747 {
14748 #ifndef F_FULLFSYNC
14749   char *p = (char *) F_FULLFSYNC;
14750 #endif
14751
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758   (eval $ac_compile) 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -z "$ac_c_werror_flag"
14766                          || test ! -s conftest.err'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; } &&
14772          { ac_try='test -s conftest.$ac_objext'
14773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774   (eval $ac_try) 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; }; then
14778   ac_cv_have_decl_F_FULLFSYNC=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_cv_have_decl_F_FULLFSYNC=no
14784 fi
14785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 fi
14787 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
14788 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
14789 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
14790
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_DECL_F_FULLFSYNC 1
14793 _ACEOF
14794
14795
14796 else
14797   cat >>confdefs.h <<_ACEOF
14798 #define HAVE_DECL_F_FULLFSYNC 0
14799 _ACEOF
14800
14801
14802 fi
14803
14804
14805
14806 HAVE_IPV6=no
14807 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14808 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
14809 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
14810   echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812   cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 $ac_includes_default
14819 #include <netinet/in.h>
14820
14821 int
14822 main ()
14823 {
14824 if ((struct sockaddr_in6 *) 0)
14825   return 0;
14826 if (sizeof (struct sockaddr_in6))
14827   return 0;
14828   ;
14829   return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834   (eval $ac_compile) 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } &&
14841          { ac_try='test -z "$ac_c_werror_flag"
14842                          || test ! -s conftest.err'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; } &&
14848          { ac_try='test -s conftest.$ac_objext'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   ac_cv_type_struct_sockaddr_in6=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 ac_cv_type_struct_sockaddr_in6=no
14860 fi
14861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14862 fi
14863 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
14864 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14865 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_IPV6 1
14869 _ACEOF
14870
14871          HAVE_IPV6=yes
14872 fi
14873
14874
14875
14876 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14877 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14878 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h.  */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h.  */
14887 #include <machine/vmparam.h>
14888 #include <sys/exec.h>
14889
14890 int
14891 main ()
14892 {
14893 PS_STRINGS->ps_nargvstr = 1;
14894 PS_STRINGS->ps_argvstr = "foo";
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901   (eval $ac_link) 2>conftest.er1
14902   ac_status=$?
14903   grep -v '^ *+' conftest.er1 >conftest.err
14904   rm -f conftest.er1
14905   cat conftest.err >&5
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); } &&
14908          { ac_try='test -z "$ac_c_werror_flag"
14909                          || test ! -s conftest.err'
14910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911   (eval $ac_try) 2>&5
14912   ac_status=$?
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; } &&
14915          { ac_try='test -s conftest$ac_exeext'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921   pgac_cv_var_PS_STRINGS=yes
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 pgac_cv_var_PS_STRINGS=no
14927 fi
14928 rm -f conftest.err conftest.$ac_objext \
14929       conftest$ac_exeext conftest.$ac_ext
14930 fi
14931 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14932 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14933 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14934
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_PS_STRINGS
14937 _ACEOF
14938
14939 fi
14940
14941
14942 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14943 # is missing.  Yes, there are machines that have only one.  We may
14944 # also decide to use snprintf.c if snprintf() is present but does not
14945 # have all the features we need --- see below.
14946
14947 if test "$PORTNAME" = "win32"; then
14948   # Win32 gets snprintf.c built unconditionally.
14949   #
14950   # To properly translate all NLS languages strings, we must support the
14951   # *printf() %$ format, which allows *printf() arguments to be selected
14952   # by position in the translated string.
14953   #
14954   # libintl versions < 0.13 use the native *printf() functions, and Win32
14955   # *printf() doesn't understand %$, so we must use our /port versions,
14956   # which do understand %$. libintl versions >= 0.13 include their own
14957   # *printf versions on Win32.  The libintl 0.13 release note text is:
14958   #
14959   #   C format strings with positions, as they arise when a translator
14960   #   needs to reorder a sentence, are now supported on all platforms.
14961   #   On those few platforms (NetBSD and Woe32) for which the native
14962   #   printf()/fprintf()/... functions don't support such format
14963   #   strings, replacements are provided through <libintl.h>.
14964   #
14965   # We could use libintl >= 0.13's *printf() if we were sure that we had
14966   # a litint >= 0.13 at runtime, but seeing that there is no clean way
14967   # to guarantee that, it is best to just use our own, so we are sure to
14968   # get %$ support. In include/port.h we disable the *printf() macros
14969   # that might have been defined by libintl.
14970   #
14971   # We do this unconditionally whether NLS is used or not so we are sure
14972   # that all Win32 libraries and binaries behave the same.
14973   pgac_need_repl_snprintf=yes
14974 else
14975   pgac_need_repl_snprintf=no
14976
14977 for ac_func in snprintf
14978 do
14979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14982 if eval "test \"\${$as_ac_var+set}\" = set"; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14993 #define $ac_func innocuous_$ac_func
14994
14995 /* System header to define __stub macros and hopefully few prototypes,
14996     which can conflict with char $ac_func (); below.
14997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998     <limits.h> exists even on freestanding compilers.  */
14999
15000 #ifdef __STDC__
15001 # include <limits.h>
15002 #else
15003 # include <assert.h>
15004 #endif
15005
15006 #undef $ac_func
15007
15008 /* Override any gcc2 internal prototype to avoid an error.  */
15009 #ifdef __cplusplus
15010 extern "C"
15011 {
15012 #endif
15013 /* We use char because int might match the return type of a gcc2
15014    builtin and then its argument prototype would still apply.  */
15015 char $ac_func ();
15016 /* The GNU C library defines this for functions which it implements
15017     to always fail with ENOSYS.  Some functions are actually named
15018     something starting with __ and the normal name is an alias.  */
15019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15020 choke me
15021 #else
15022 char (*f) () = $ac_func;
15023 #endif
15024 #ifdef __cplusplus
15025 }
15026 #endif
15027
15028 int
15029 main ()
15030 {
15031 return f != $ac_func;
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038   (eval $ac_link) 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag"
15046                          || test ! -s conftest.err'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; } &&
15052          { ac_try='test -s conftest$ac_exeext'
15053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054   (eval $ac_try) 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; }; then
15058   eval "$as_ac_var=yes"
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063 eval "$as_ac_var=no"
15064 fi
15065 rm -f conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067 fi
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071   cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15073 _ACEOF
15074
15075 else
15076   pgac_need_repl_snprintf=yes
15077 fi
15078 done
15079
15080
15081 for ac_func in vsnprintf
15082 do
15083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15084 echo "$as_me:$LINENO: checking for $ac_func" >&5
15085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15086 if eval "test \"\${$as_ac_var+set}\" = set"; then
15087   echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089   cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15097 #define $ac_func innocuous_$ac_func
15098
15099 /* System header to define __stub macros and hopefully few prototypes,
15100     which can conflict with char $ac_func (); below.
15101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15102     <limits.h> exists even on freestanding compilers.  */
15103
15104 #ifdef __STDC__
15105 # include <limits.h>
15106 #else
15107 # include <assert.h>
15108 #endif
15109
15110 #undef $ac_func
15111
15112 /* Override any gcc2 internal prototype to avoid an error.  */
15113 #ifdef __cplusplus
15114 extern "C"
15115 {
15116 #endif
15117 /* We use char because int might match the return type of a gcc2
15118    builtin and then its argument prototype would still apply.  */
15119 char $ac_func ();
15120 /* The GNU C library defines this for functions which it implements
15121     to always fail with ENOSYS.  Some functions are actually named
15122     something starting with __ and the normal name is an alias.  */
15123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15124 choke me
15125 #else
15126 char (*f) () = $ac_func;
15127 #endif
15128 #ifdef __cplusplus
15129 }
15130 #endif
15131
15132 int
15133 main ()
15134 {
15135 return f != $ac_func;
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142   (eval $ac_link) 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } &&
15149          { ac_try='test -z "$ac_c_werror_flag"
15150                          || test ! -s conftest.err'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; } &&
15156          { ac_try='test -s conftest$ac_exeext'
15157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158   (eval $ac_try) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; }; then
15162   eval "$as_ac_var=yes"
15163 else
15164   echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 eval "$as_ac_var=no"
15168 fi
15169 rm -f conftest.err conftest.$ac_objext \
15170       conftest$ac_exeext conftest.$ac_ext
15171 fi
15172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15174 if test `eval echo '${'$as_ac_var'}'` = yes; then
15175   cat >>confdefs.h <<_ACEOF
15176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15177 _ACEOF
15178
15179 else
15180   pgac_need_repl_snprintf=yes
15181 fi
15182 done
15183
15184 fi
15185
15186
15187 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15188 # include/c.h will provide declarations.  Note this is a separate test
15189 # from whether the functions exist in the C library --- there are
15190 # systems that have the functions but don't bother to declare them :-(
15191
15192 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15193 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15194 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h.  */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h.  */
15203 $ac_includes_default
15204 int
15205 main ()
15206 {
15207 #ifndef snprintf
15208   char *p = (char *) snprintf;
15209 #endif
15210
15211   ;
15212   return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217   (eval $ac_compile) 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag"
15225                          || test ! -s conftest.err'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; }; then
15237   ac_cv_have_decl_snprintf=yes
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 ac_cv_have_decl_snprintf=no
15243 fi
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 fi
15246 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15247 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15248 if test $ac_cv_have_decl_snprintf = yes; then
15249
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_DECL_SNPRINTF 1
15252 _ACEOF
15253
15254
15255 else
15256   cat >>confdefs.h <<_ACEOF
15257 #define HAVE_DECL_SNPRINTF 0
15258 _ACEOF
15259
15260
15261 fi
15262 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15263 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15264 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15265   echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267   cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h.  */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h.  */
15273 $ac_includes_default
15274 int
15275 main ()
15276 {
15277 #ifndef vsnprintf
15278   char *p = (char *) vsnprintf;
15279 #endif
15280
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287   (eval $ac_compile) 2>conftest.er1
15288   ac_status=$?
15289   grep -v '^ *+' conftest.er1 >conftest.err
15290   rm -f conftest.er1
15291   cat conftest.err >&5
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } &&
15294          { ac_try='test -z "$ac_c_werror_flag"
15295                          || test ! -s conftest.err'
15296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297   (eval $ac_try) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; } &&
15301          { ac_try='test -s conftest.$ac_objext'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307   ac_cv_have_decl_vsnprintf=yes
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312 ac_cv_have_decl_vsnprintf=no
15313 fi
15314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315 fi
15316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15317 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15318 if test $ac_cv_have_decl_vsnprintf = yes; then
15319
15320 cat >>confdefs.h <<_ACEOF
15321 #define HAVE_DECL_VSNPRINTF 1
15322 _ACEOF
15323
15324
15325 else
15326   cat >>confdefs.h <<_ACEOF
15327 #define HAVE_DECL_VSNPRINTF 0
15328 _ACEOF
15329
15330
15331 fi
15332
15333
15334
15335
15336 echo "$as_me:$LINENO: checking for isinf" >&5
15337 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
15338 if test "${ac_cv_func_isinf+set}" = set; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341   cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347
15348 #include <math.h>
15349 double glob_double;
15350
15351 int
15352 main ()
15353 {
15354 return isinf(glob_double) ? 0 : 1;
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361   (eval $ac_link) 2>conftest.er1
15362   ac_status=$?
15363   grep -v '^ *+' conftest.er1 >conftest.err
15364   rm -f conftest.er1
15365   cat conftest.err >&5
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); } &&
15368          { ac_try='test -z "$ac_c_werror_flag"
15369                          || test ! -s conftest.err'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest$ac_exeext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381   ac_cv_func_isinf=yes
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_cv_func_isinf=no
15387 fi
15388 rm -f conftest.err conftest.$ac_objext \
15389       conftest$ac_exeext conftest.$ac_ext
15390 fi
15391 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
15392 echo "${ECHO_T}$ac_cv_func_isinf" >&6
15393
15394 if test $ac_cv_func_isinf = yes ; then
15395
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_ISINF 1
15398 _ACEOF
15399
15400 else
15401   case $LIBOBJS in
15402     "isinf.$ac_objext"   | \
15403   *" isinf.$ac_objext"   | \
15404     "isinf.$ac_objext "* | \
15405   *" isinf.$ac_objext "* ) ;;
15406   *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
15407 esac
15408
15409   # Look for a way to implement a substitute for isinf()
15410
15411
15412
15413
15414 for ac_func in fpclass fp_class fp_class_d class
15415 do
15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417 echo "$as_me:$LINENO: checking for $ac_func" >&5
15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_var+set}\" = set"; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15430 #define $ac_func innocuous_$ac_func
15431
15432 /* System header to define __stub macros and hopefully few prototypes,
15433     which can conflict with char $ac_func (); below.
15434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435     <limits.h> exists even on freestanding compilers.  */
15436
15437 #ifdef __STDC__
15438 # include <limits.h>
15439 #else
15440 # include <assert.h>
15441 #endif
15442
15443 #undef $ac_func
15444
15445 /* Override any gcc2 internal prototype to avoid an error.  */
15446 #ifdef __cplusplus
15447 extern "C"
15448 {
15449 #endif
15450 /* We use char because int might match the return type of a gcc2
15451    builtin and then its argument prototype would still apply.  */
15452 char $ac_func ();
15453 /* The GNU C library defines this for functions which it implements
15454     to always fail with ENOSYS.  Some functions are actually named
15455     something starting with __ and the normal name is an alias.  */
15456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457 choke me
15458 #else
15459 char (*f) () = $ac_func;
15460 #endif
15461 #ifdef __cplusplus
15462 }
15463 #endif
15464
15465 int
15466 main ()
15467 {
15468 return f != $ac_func;
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475   (eval $ac_link) 2>conftest.er1
15476   ac_status=$?
15477   grep -v '^ *+' conftest.er1 >conftest.err
15478   rm -f conftest.er1
15479   cat conftest.err >&5
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -z "$ac_c_werror_flag"
15483                          || test ! -s conftest.err'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; } &&
15489          { ac_try='test -s conftest$ac_exeext'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   eval "$as_ac_var=yes"
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 eval "$as_ac_var=no"
15501 fi
15502 rm -f conftest.err conftest.$ac_objext \
15503       conftest$ac_exeext conftest.$ac_ext
15504 fi
15505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15507 if test `eval echo '${'$as_ac_var'}'` = yes; then
15508   cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15510 _ACEOF
15511  break
15512 fi
15513 done
15514
15515 fi
15516
15517 # Some versions of libedit contain strlcpy(); so disregard that library while
15518 # checking for these standard libc functions.
15519 pgac_save_LIBS="$LIBS"
15520 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
15538 do
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15542 if eval "test \"\${$as_ac_var+set}\" = set"; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15553 #define $ac_func innocuous_$ac_func
15554
15555 /* System header to define __stub macros and hopefully few prototypes,
15556     which can conflict with char $ac_func (); below.
15557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558     <limits.h> exists even on freestanding compilers.  */
15559
15560 #ifdef __STDC__
15561 # include <limits.h>
15562 #else
15563 # include <assert.h>
15564 #endif
15565
15566 #undef $ac_func
15567
15568 /* Override any gcc2 internal prototype to avoid an error.  */
15569 #ifdef __cplusplus
15570 extern "C"
15571 {
15572 #endif
15573 /* We use char because int might match the return type of a gcc2
15574    builtin and then its argument prototype would still apply.  */
15575 char $ac_func ();
15576 /* The GNU C library defines this for functions which it implements
15577     to always fail with ENOSYS.  Some functions are actually named
15578     something starting with __ and the normal name is an alias.  */
15579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15580 choke me
15581 #else
15582 char (*f) () = $ac_func;
15583 #endif
15584 #ifdef __cplusplus
15585 }
15586 #endif
15587
15588 int
15589 main ()
15590 {
15591 return f != $ac_func;
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598   (eval $ac_link) 2>conftest.er1
15599   ac_status=$?
15600   grep -v '^ *+' conftest.er1 >conftest.err
15601   rm -f conftest.er1
15602   cat conftest.err >&5
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } &&
15605          { ac_try='test -z "$ac_c_werror_flag"
15606                          || test ! -s conftest.err'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; } &&
15612          { ac_try='test -s conftest$ac_exeext'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   eval "$as_ac_var=yes"
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 eval "$as_ac_var=no"
15624 fi
15625 rm -f conftest.err conftest.$ac_objext \
15626       conftest$ac_exeext conftest.$ac_ext
15627 fi
15628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15630 if test `eval echo '${'$as_ac_var'}'` = yes; then
15631   cat >>confdefs.h <<_ACEOF
15632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15633 _ACEOF
15634
15635 else
15636   case $LIBOBJS in
15637     "$ac_func.$ac_objext"   | \
15638   *" $ac_func.$ac_objext"   | \
15639     "$ac_func.$ac_objext "* | \
15640   *" $ac_func.$ac_objext "* ) ;;
15641   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15642 esac
15643
15644 fi
15645 done
15646
15647
15648
15649 LIBS="$pgac_save_LIBS"
15650
15651 # System's version of getaddrinfo(), if any, may be used only if we found
15652 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15653 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
15654 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
15655 # because we want to use our own getaddrinfo.c on Windows anyway.)
15656 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
15657
15658 for ac_func in getaddrinfo
15659 do
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15663 if eval "test \"\${$as_ac_var+set}\" = set"; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15674 #define $ac_func innocuous_$ac_func
15675
15676 /* System header to define __stub macros and hopefully few prototypes,
15677     which can conflict with char $ac_func (); below.
15678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679     <limits.h> exists even on freestanding compilers.  */
15680
15681 #ifdef __STDC__
15682 # include <limits.h>
15683 #else
15684 # include <assert.h>
15685 #endif
15686
15687 #undef $ac_func
15688
15689 /* Override any gcc2 internal prototype to avoid an error.  */
15690 #ifdef __cplusplus
15691 extern "C"
15692 {
15693 #endif
15694 /* We use char because int might match the return type of a gcc2
15695    builtin and then its argument prototype would still apply.  */
15696 char $ac_func ();
15697 /* The GNU C library defines this for functions which it implements
15698     to always fail with ENOSYS.  Some functions are actually named
15699     something starting with __ and the normal name is an alias.  */
15700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15701 choke me
15702 #else
15703 char (*f) () = $ac_func;
15704 #endif
15705 #ifdef __cplusplus
15706 }
15707 #endif
15708
15709 int
15710 main ()
15711 {
15712 return f != $ac_func;
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719   (eval $ac_link) 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } &&
15726          { ac_try='test -z "$ac_c_werror_flag"
15727                          || test ! -s conftest.err'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest$ac_exeext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   eval "$as_ac_var=yes"
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 eval "$as_ac_var=no"
15745 fi
15746 rm -f conftest.err conftest.$ac_objext \
15747       conftest$ac_exeext conftest.$ac_ext
15748 fi
15749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15751 if test `eval echo '${'$as_ac_var'}'` = yes; then
15752   cat >>confdefs.h <<_ACEOF
15753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15754 _ACEOF
15755
15756 else
15757   case $LIBOBJS in
15758     "$ac_func.$ac_objext"   | \
15759   *" $ac_func.$ac_objext"   | \
15760     "$ac_func.$ac_objext "* | \
15761   *" $ac_func.$ac_objext "* ) ;;
15762   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15763 esac
15764
15765 fi
15766 done
15767
15768
15769 else
15770   case $LIBOBJS in
15771     "getaddrinfo.$ac_objext"   | \
15772   *" getaddrinfo.$ac_objext"   | \
15773     "getaddrinfo.$ac_objext "* | \
15774   *" getaddrinfo.$ac_objext "* ) ;;
15775   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
15776 esac
15777
15778 fi
15779
15780 # similarly, use system's getopt_long() only if system provides struct option.
15781 if test x"$ac_cv_type_struct_option" = xyes ; then
15782
15783 for ac_func in getopt_long
15784 do
15785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15788 if eval "test \"\${$as_ac_var+set}\" = set"; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15799 #define $ac_func innocuous_$ac_func
15800
15801 /* System header to define __stub macros and hopefully few prototypes,
15802     which can conflict with char $ac_func (); below.
15803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804     <limits.h> exists even on freestanding compilers.  */
15805
15806 #ifdef __STDC__
15807 # include <limits.h>
15808 #else
15809 # include <assert.h>
15810 #endif
15811
15812 #undef $ac_func
15813
15814 /* Override any gcc2 internal prototype to avoid an error.  */
15815 #ifdef __cplusplus
15816 extern "C"
15817 {
15818 #endif
15819 /* We use char because int might match the return type of a gcc2
15820    builtin and then its argument prototype would still apply.  */
15821 char $ac_func ();
15822 /* The GNU C library defines this for functions which it implements
15823     to always fail with ENOSYS.  Some functions are actually named
15824     something starting with __ and the normal name is an alias.  */
15825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15826 choke me
15827 #else
15828 char (*f) () = $ac_func;
15829 #endif
15830 #ifdef __cplusplus
15831 }
15832 #endif
15833
15834 int
15835 main ()
15836 {
15837 return f != $ac_func;
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844   (eval $ac_link) 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } &&
15851          { ac_try='test -z "$ac_c_werror_flag"
15852                          || test ! -s conftest.err'
15853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854   (eval $ac_try) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; } &&
15858          { ac_try='test -s conftest$ac_exeext'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   eval "$as_ac_var=yes"
15865 else
15866   echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 eval "$as_ac_var=no"
15870 fi
15871 rm -f conftest.err conftest.$ac_objext \
15872       conftest$ac_exeext conftest.$ac_ext
15873 fi
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877   cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 else
15882   case $LIBOBJS in
15883     "$ac_func.$ac_objext"   | \
15884   *" $ac_func.$ac_objext"   | \
15885     "$ac_func.$ac_objext "* | \
15886   *" $ac_func.$ac_objext "* ) ;;
15887   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15888 esac
15889
15890 fi
15891 done
15892
15893
15894 else
15895   case $LIBOBJS in
15896     "getopt_long.$ac_objext"   | \
15897   *" getopt_long.$ac_objext"   | \
15898     "getopt_long.$ac_objext "* | \
15899   *" getopt_long.$ac_objext "* ) ;;
15900   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15901 esac
15902
15903 fi
15904
15905 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15906 # We override the previous test that said fseeko/ftello didn't exist
15907 # OS tests are also done in include/c.h and port/fseeko.c
15908 case $host_os in bsdi*|netbsd*)
15909 ac_cv_func_fseeko=yes
15910 esac
15911
15912 # Win32 support
15913 if test "$PORTNAME" = "win32"; then
15914 case $LIBOBJS in
15915     "gettimeofday.$ac_objext"   | \
15916   *" gettimeofday.$ac_objext"   | \
15917     "gettimeofday.$ac_objext "* | \
15918   *" gettimeofday.$ac_objext "* ) ;;
15919   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15920 esac
15921
15922 case $LIBOBJS in
15923     "kill.$ac_objext"   | \
15924   *" kill.$ac_objext"   | \
15925     "kill.$ac_objext "* | \
15926   *" kill.$ac_objext "* ) ;;
15927   *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15928 esac
15929
15930 case $LIBOBJS in
15931     "open.$ac_objext"   | \
15932   *" open.$ac_objext"   | \
15933     "open.$ac_objext "* | \
15934   *" open.$ac_objext "* ) ;;
15935   *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15936 esac
15937
15938 case $LIBOBJS in
15939     "rand.$ac_objext"   | \
15940   *" rand.$ac_objext"   | \
15941     "rand.$ac_objext "* | \
15942   *" rand.$ac_objext "* ) ;;
15943   *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15944 esac
15945
15946 case $LIBOBJS in
15947     "win32error.$ac_objext"   | \
15948   *" win32error.$ac_objext"   | \
15949     "win32error.$ac_objext "* | \
15950   *" win32error.$ac_objext "* ) ;;
15951   *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15952 esac
15953
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_SYMLINK 1
15957 _ACEOF
15958
15959 fi
15960
15961 if test "$with_readline" = yes; then
15962   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15963 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970 #include <stdio.h>
15971 #ifdef HAVE_READLINE_READLINE_H
15972 # include <readline/readline.h>
15973 #elif defined(HAVE_READLINE_H)
15974 # include <readline.h>
15975 #endif
15976
15977 int
15978 main ()
15979 {
15980 rl_completion_append_character = 'x';
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext conftest$ac_exeext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987   (eval $ac_link) 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -z "$ac_c_werror_flag"
15995                          || test ! -s conftest.err'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest$ac_exeext'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   echo "$as_me:$LINENO: result: yes" >&5
16008 echo "${ECHO_T}yes" >&6
16009
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16012 _ACEOF
16013
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 echo "$as_me:$LINENO: result: no" >&5
16019 echo "${ECHO_T}no" >&6
16020 fi
16021 rm -f conftest.err conftest.$ac_objext \
16022       conftest$ac_exeext conftest.$ac_ext
16023
16024
16025 for ac_func in rl_completion_matches rl_filename_completion_function
16026 do
16027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16028 echo "$as_me:$LINENO: checking for $ac_func" >&5
16029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16030 if eval "test \"\${$as_ac_var+set}\" = set"; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16041 #define $ac_func innocuous_$ac_func
16042
16043 /* System header to define __stub macros and hopefully few prototypes,
16044     which can conflict with char $ac_func (); below.
16045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046     <limits.h> exists even on freestanding compilers.  */
16047
16048 #ifdef __STDC__
16049 # include <limits.h>
16050 #else
16051 # include <assert.h>
16052 #endif
16053
16054 #undef $ac_func
16055
16056 /* Override any gcc2 internal prototype to avoid an error.  */
16057 #ifdef __cplusplus
16058 extern "C"
16059 {
16060 #endif
16061 /* We use char because int might match the return type of a gcc2
16062    builtin and then its argument prototype would still apply.  */
16063 char $ac_func ();
16064 /* The GNU C library defines this for functions which it implements
16065     to always fail with ENOSYS.  Some functions are actually named
16066     something starting with __ and the normal name is an alias.  */
16067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16068 choke me
16069 #else
16070 char (*f) () = $ac_func;
16071 #endif
16072 #ifdef __cplusplus
16073 }
16074 #endif
16075
16076 int
16077 main ()
16078 {
16079 return f != $ac_func;
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086   (eval $ac_link) 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag"
16094                          || test ! -s conftest.err'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; } &&
16100          { ac_try='test -s conftest$ac_exeext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106   eval "$as_ac_var=yes"
16107 else
16108   echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16110
16111 eval "$as_ac_var=no"
16112 fi
16113 rm -f conftest.err conftest.$ac_objext \
16114       conftest$ac_exeext conftest.$ac_ext
16115 fi
16116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16118 if test `eval echo '${'$as_ac_var'}'` = yes; then
16119   cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16121 _ACEOF
16122
16123 fi
16124 done
16125
16126
16127 for ac_func in replace_history_entry
16128 do
16129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16143 #define $ac_func innocuous_$ac_func
16144
16145 /* System header to define __stub macros and hopefully few prototypes,
16146     which can conflict with char $ac_func (); below.
16147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148     <limits.h> exists even on freestanding compilers.  */
16149
16150 #ifdef __STDC__
16151 # include <limits.h>
16152 #else
16153 # include <assert.h>
16154 #endif
16155
16156 #undef $ac_func
16157
16158 /* Override any gcc2 internal prototype to avoid an error.  */
16159 #ifdef __cplusplus
16160 extern "C"
16161 {
16162 #endif
16163 /* We use char because int might match the return type of a gcc2
16164    builtin and then its argument prototype would still apply.  */
16165 char $ac_func ();
16166 /* The GNU C library defines this for functions which it implements
16167     to always fail with ENOSYS.  Some functions are actually named
16168     something starting with __ and the normal name is an alias.  */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16170 choke me
16171 #else
16172 char (*f) () = $ac_func;
16173 #endif
16174 #ifdef __cplusplus
16175 }
16176 #endif
16177
16178 int
16179 main ()
16180 {
16181 return f != $ac_func;
16182   ;
16183   return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188   (eval $ac_link) 2>conftest.er1
16189   ac_status=$?
16190   grep -v '^ *+' conftest.er1 >conftest.err
16191   rm -f conftest.er1
16192   cat conftest.err >&5
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } &&
16195          { ac_try='test -z "$ac_c_werror_flag"
16196                          || test ! -s conftest.err'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; } &&
16202          { ac_try='test -s conftest$ac_exeext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   eval "$as_ac_var=yes"
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 eval "$as_ac_var=no"
16214 fi
16215 rm -f conftest.err conftest.$ac_objext \
16216       conftest$ac_exeext conftest.$ac_ext
16217 fi
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221   cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 _ACEOF
16224
16225 fi
16226 done
16227
16228 fi
16229
16230
16231 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16232 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h.  */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h.  */
16239 #include <setjmp.h>
16240 int
16241 main ()
16242 {
16243 sigjmp_buf x; sigsetjmp(x, 1);
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250   (eval $ac_link) 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } &&
16257          { ac_try='test -z "$ac_c_werror_flag"
16258                          || test ! -s conftest.err'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; } &&
16264          { ac_try='test -s conftest$ac_exeext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270
16271 cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_SIGSETJMP 1
16273 _ACEOF
16274
16275 echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6
16283 fi
16284 rm -f conftest.err conftest.$ac_objext \
16285       conftest$ac_exeext conftest.$ac_ext
16286
16287 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16288 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16289 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298 #include <signal.h>
16299 /* NetBSD declares sys_siglist in unistd.h.  */
16300 #if HAVE_UNISTD_H
16301 # include <unistd.h>
16302 #endif
16303
16304
16305 int
16306 main ()
16307 {
16308 #ifndef sys_siglist
16309   char *p = (char *) sys_siglist;
16310 #endif
16311
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318   (eval $ac_compile) 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -z "$ac_c_werror_flag"
16326                          || test ! -s conftest.err'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; }; then
16338   ac_cv_have_decl_sys_siglist=yes
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_cv_have_decl_sys_siglist=no
16344 fi
16345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16346 fi
16347 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16348 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16349 if test $ac_cv_have_decl_sys_siglist = yes; then
16350
16351 cat >>confdefs.h <<_ACEOF
16352 #define HAVE_DECL_SYS_SIGLIST 1
16353 _ACEOF
16354
16355
16356 else
16357   cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_SYS_SIGLIST 0
16359 _ACEOF
16360
16361
16362 fi
16363
16364
16365
16366
16367 echo "$as_me:$LINENO: checking for syslog" >&5
16368 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
16369 if test "${ac_cv_func_syslog+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
16379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16380 #define syslog innocuous_syslog
16381
16382 /* System header to define __stub macros and hopefully few prototypes,
16383     which can conflict with char syslog (); below.
16384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385     <limits.h> exists even on freestanding compilers.  */
16386
16387 #ifdef __STDC__
16388 # include <limits.h>
16389 #else
16390 # include <assert.h>
16391 #endif
16392
16393 #undef syslog
16394
16395 /* Override any gcc2 internal prototype to avoid an error.  */
16396 #ifdef __cplusplus
16397 extern "C"
16398 {
16399 #endif
16400 /* We use char because int might match the return type of a gcc2
16401    builtin and then its argument prototype would still apply.  */
16402 char syslog ();
16403 /* The GNU C library defines this for functions which it implements
16404     to always fail with ENOSYS.  Some functions are actually named
16405     something starting with __ and the normal name is an alias.  */
16406 #if defined (__stub_syslog) || defined (__stub___syslog)
16407 choke me
16408 #else
16409 char (*f) () = syslog;
16410 #endif
16411 #ifdef __cplusplus
16412 }
16413 #endif
16414
16415 int
16416 main ()
16417 {
16418 return f != syslog;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425   (eval $ac_link) 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } &&
16432          { ac_try='test -z "$ac_c_werror_flag"
16433                          || test ! -s conftest.err'
16434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; } &&
16439          { ac_try='test -s conftest$ac_exeext'
16440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441   (eval $ac_try) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; }; then
16445   ac_cv_func_syslog=yes
16446 else
16447   echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 ac_cv_func_syslog=no
16451 fi
16452 rm -f conftest.err conftest.$ac_objext \
16453       conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
16456 echo "${ECHO_T}$ac_cv_func_syslog" >&6
16457 if test $ac_cv_func_syslog = yes; then
16458   if test "${ac_cv_header_syslog_h+set}" = set; then
16459   echo "$as_me:$LINENO: checking for syslog.h" >&5
16460 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
16461 if test "${ac_cv_header_syslog_h+set}" = set; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 fi
16464 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
16465 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
16466 else
16467   # Is the header compilable?
16468 echo "$as_me:$LINENO: checking syslog.h usability" >&5
16469 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 $ac_includes_default
16477 #include <syslog.h>
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481   (eval $ac_compile) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_header_compiler=yes
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 ac_header_compiler=no
16507 fi
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510 echo "${ECHO_T}$ac_header_compiler" >&6
16511
16512 # Is the header present?
16513 echo "$as_me:$LINENO: checking syslog.h presence" >&5
16514 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 #include <syslog.h>
16522 _ACEOF
16523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16525   ac_status=$?
16526   grep -v '^ *+' conftest.er1 >conftest.err
16527   rm -f conftest.er1
16528   cat conftest.err >&5
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } >/dev/null; then
16531   if test -s conftest.err; then
16532     ac_cpp_err=$ac_c_preproc_warn_flag
16533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16534   else
16535     ac_cpp_err=
16536   fi
16537 else
16538   ac_cpp_err=yes
16539 fi
16540 if test -z "$ac_cpp_err"; then
16541   ac_header_preproc=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546   ac_header_preproc=no
16547 fi
16548 rm -f conftest.err conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550 echo "${ECHO_T}$ac_header_preproc" >&6
16551
16552 # So?  What about this header?
16553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16554   yes:no: )
16555     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
16556 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16557     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
16558 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
16559     ac_header_preproc=yes
16560     ;;
16561   no:yes:* )
16562     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
16563 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
16564     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
16565 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
16566     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
16567 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
16568     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
16569 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16570     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
16571 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
16572     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
16573 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
16574     (
16575       cat <<\_ASBOX
16576 ## ---------------------------------------- ##
16577 ## Report this to pgsql-bugs@postgresql.org ##
16578 ## ---------------------------------------- ##
16579 _ASBOX
16580     ) |
16581       sed "s/^/$as_me: WARNING:     /" >&2
16582     ;;
16583 esac
16584 echo "$as_me:$LINENO: checking for syslog.h" >&5
16585 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
16586 if test "${ac_cv_header_syslog_h+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   ac_cv_header_syslog_h=$ac_header_preproc
16590 fi
16591 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
16592 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
16593
16594 fi
16595 if test $ac_cv_header_syslog_h = yes; then
16596
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_SYSLOG 1
16599 _ACEOF
16600
16601 fi
16602
16603
16604 fi
16605
16606
16607 echo "$as_me:$LINENO: checking for optreset" >&5
16608 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
16609 if test "${pgac_cv_var_int_optreset+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618 #include <unistd.h>
16619 int
16620 main ()
16621 {
16622 extern int optreset; optreset = 1;
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629   (eval $ac_link) 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } &&
16636          { ac_try='test -z "$ac_c_werror_flag"
16637                          || test ! -s conftest.err'
16638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639   (eval $ac_try) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; } &&
16643          { ac_try='test -s conftest$ac_exeext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   pgac_cv_var_int_optreset=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 pgac_cv_var_int_optreset=no
16655 fi
16656 rm -f conftest.err conftest.$ac_objext \
16657       conftest$ac_exeext conftest.$ac_ext
16658 fi
16659 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
16660 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
16661 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
16662
16663 cat >>confdefs.h <<\_ACEOF
16664 #define HAVE_INT_OPTRESET 1
16665 _ACEOF
16666
16667 fi
16668
16669
16670
16671 for ac_func in strtoll strtoq
16672 do
16673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 echo "$as_me:$LINENO: checking for $ac_func" >&5
16675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16676 if eval "test \"\${$as_ac_var+set}\" = set"; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16687 #define $ac_func innocuous_$ac_func
16688
16689 /* System header to define __stub macros and hopefully few prototypes,
16690     which can conflict with char $ac_func (); below.
16691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692     <limits.h> exists even on freestanding compilers.  */
16693
16694 #ifdef __STDC__
16695 # include <limits.h>
16696 #else
16697 # include <assert.h>
16698 #endif
16699
16700 #undef $ac_func
16701
16702 /* Override any gcc2 internal prototype to avoid an error.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 {
16706 #endif
16707 /* We use char because int might match the return type of a gcc2
16708    builtin and then its argument prototype would still apply.  */
16709 char $ac_func ();
16710 /* The GNU C library defines this for functions which it implements
16711     to always fail with ENOSYS.  Some functions are actually named
16712     something starting with __ and the normal name is an alias.  */
16713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16714 choke me
16715 #else
16716 char (*f) () = $ac_func;
16717 #endif
16718 #ifdef __cplusplus
16719 }
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725 return f != $ac_func;
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732   (eval $ac_link) 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } &&
16739          { ac_try='test -z "$ac_c_werror_flag"
16740                          || test ! -s conftest.err'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; } &&
16746          { ac_try='test -s conftest$ac_exeext'
16747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748   (eval $ac_try) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; }; then
16752   eval "$as_ac_var=yes"
16753 else
16754   echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 eval "$as_ac_var=no"
16758 fi
16759 rm -f conftest.err conftest.$ac_objext \
16760       conftest$ac_exeext conftest.$ac_ext
16761 fi
16762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16764 if test `eval echo '${'$as_ac_var'}'` = yes; then
16765   cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16767 _ACEOF
16768  break
16769 fi
16770 done
16771
16772
16773
16774 for ac_func in strtoull strtouq
16775 do
16776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16790 #define $ac_func innocuous_$ac_func
16791
16792 /* System header to define __stub macros and hopefully few prototypes,
16793     which can conflict with char $ac_func (); below.
16794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795     <limits.h> exists even on freestanding compilers.  */
16796
16797 #ifdef __STDC__
16798 # include <limits.h>
16799 #else
16800 # include <assert.h>
16801 #endif
16802
16803 #undef $ac_func
16804
16805 /* Override any gcc2 internal prototype to avoid an error.  */
16806 #ifdef __cplusplus
16807 extern "C"
16808 {
16809 #endif
16810 /* We use char because int might match the return type of a gcc2
16811    builtin and then its argument prototype would still apply.  */
16812 char $ac_func ();
16813 /* The GNU C library defines this for functions which it implements
16814     to always fail with ENOSYS.  Some functions are actually named
16815     something starting with __ and the normal name is an alias.  */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16817 choke me
16818 #else
16819 char (*f) () = $ac_func;
16820 #endif
16821 #ifdef __cplusplus
16822 }
16823 #endif
16824
16825 int
16826 main ()
16827 {
16828 return f != $ac_func;
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835   (eval $ac_link) 2>conftest.er1
16836   ac_status=$?
16837   grep -v '^ *+' conftest.er1 >conftest.err
16838   rm -f conftest.er1
16839   cat conftest.err >&5
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } &&
16842          { ac_try='test -z "$ac_c_werror_flag"
16843                          || test ! -s conftest.err'
16844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845   (eval $ac_try) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; } &&
16849          { ac_try='test -s conftest$ac_exeext'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; }; then
16855   eval "$as_ac_var=yes"
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 eval "$as_ac_var=no"
16861 fi
16862 rm -f conftest.err conftest.$ac_objext \
16863       conftest$ac_exeext conftest.$ac_ext
16864 fi
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868   cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16871  break
16872 fi
16873 done
16874
16875
16876 # Check for one of atexit() or on_exit()
16877
16878 for ac_func in atexit
16879 do
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16894 #define $ac_func innocuous_$ac_func
16895
16896 /* System header to define __stub macros and hopefully few prototypes,
16897     which can conflict with char $ac_func (); below.
16898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899     <limits.h> exists even on freestanding compilers.  */
16900
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16906
16907 #undef $ac_func
16908
16909 /* Override any gcc2 internal prototype to avoid an error.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 {
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915    builtin and then its argument prototype would still apply.  */
16916 char $ac_func ();
16917 /* The GNU C library defines this for functions which it implements
16918     to always fail with ENOSYS.  Some functions are actually named
16919     something starting with __ and the normal name is an alias.  */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 choke me
16922 #else
16923 char (*f) () = $ac_func;
16924 #endif
16925 #ifdef __cplusplus
16926 }
16927 #endif
16928
16929 int
16930 main ()
16931 {
16932 return f != $ac_func;
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939   (eval $ac_link) 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } &&
16946          { ac_try='test -z "$ac_c_werror_flag"
16947                          || test ! -s conftest.err'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   eval "$as_ac_var=yes"
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 eval "$as_ac_var=no"
16965 fi
16966 rm -f conftest.err conftest.$ac_objext \
16967       conftest$ac_exeext conftest.$ac_ext
16968 fi
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972   cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974 _ACEOF
16975
16976 else
16977
16978 for ac_func in on_exit
16979 do
16980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16983 if eval "test \"\${$as_ac_var+set}\" = set"; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16994 #define $ac_func innocuous_$ac_func
16995
16996 /* System header to define __stub macros and hopefully few prototypes,
16997     which can conflict with char $ac_func (); below.
16998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999     <limits.h> exists even on freestanding compilers.  */
17000
17001 #ifdef __STDC__
17002 # include <limits.h>
17003 #else
17004 # include <assert.h>
17005 #endif
17006
17007 #undef $ac_func
17008
17009 /* Override any gcc2 internal prototype to avoid an error.  */
17010 #ifdef __cplusplus
17011 extern "C"
17012 {
17013 #endif
17014 /* We use char because int might match the return type of a gcc2
17015    builtin and then its argument prototype would still apply.  */
17016 char $ac_func ();
17017 /* The GNU C library defines this for functions which it implements
17018     to always fail with ENOSYS.  Some functions are actually named
17019     something starting with __ and the normal name is an alias.  */
17020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17021 choke me
17022 #else
17023 char (*f) () = $ac_func;
17024 #endif
17025 #ifdef __cplusplus
17026 }
17027 #endif
17028
17029 int
17030 main ()
17031 {
17032 return f != $ac_func;
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039   (eval $ac_link) 2>conftest.er1
17040   ac_status=$?
17041   grep -v '^ *+' conftest.er1 >conftest.err
17042   rm -f conftest.er1
17043   cat conftest.err >&5
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } &&
17046          { ac_try='test -z "$ac_c_werror_flag"
17047                          || test ! -s conftest.err'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; } &&
17053          { ac_try='test -s conftest$ac_exeext'
17054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055   (eval $ac_try) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; }; then
17059   eval "$as_ac_var=yes"
17060 else
17061   echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17063
17064 eval "$as_ac_var=no"
17065 fi
17066 rm -f conftest.err conftest.$ac_objext \
17067       conftest$ac_exeext conftest.$ac_ext
17068 fi
17069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17071 if test `eval echo '${'$as_ac_var'}'` = yes; then
17072   cat >>confdefs.h <<_ACEOF
17073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074 _ACEOF
17075
17076 else
17077   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17078 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17079    { (exit 1); exit 1; }; }
17080 fi
17081 done
17082
17083 fi
17084 done
17085
17086
17087 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17088 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17089 if test "${ac_cv_sys_largefile_source+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   while :; do
17093   ac_cv_sys_largefile_source=no
17094   cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 #include <stdio.h>
17101 int
17102 main ()
17103 {
17104 return !fseeko;
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17111   (eval $ac_compile) 2>conftest.er1
17112   ac_status=$?
17113   grep -v '^ *+' conftest.er1 >conftest.err
17114   rm -f conftest.er1
17115   cat conftest.err >&5
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } &&
17118          { ac_try='test -z "$ac_c_werror_flag"
17119                          || test ! -s conftest.err'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; } &&
17125          { ac_try='test -s conftest.$ac_objext'
17126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127   (eval $ac_try) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   break
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136 fi
17137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17138   cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144 #define _LARGEFILE_SOURCE 1
17145 #include <stdio.h>
17146 int
17147 main ()
17148 {
17149 return !fseeko;
17150   ;
17151   return 0;
17152 }
17153 _ACEOF
17154 rm -f conftest.$ac_objext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156   (eval $ac_compile) 2>conftest.er1
17157   ac_status=$?
17158   grep -v '^ *+' conftest.er1 >conftest.err
17159   rm -f conftest.er1
17160   cat conftest.err >&5
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -z "$ac_c_werror_flag"
17164                          || test ! -s conftest.err'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; } &&
17170          { ac_try='test -s conftest.$ac_objext'
17171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172   (eval $ac_try) 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; }; then
17176   ac_cv_sys_largefile_source=1; break
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 fi
17182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17183   break
17184 done
17185 fi
17186 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17187 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17188 if test "$ac_cv_sys_largefile_source" != no; then
17189
17190 cat >>confdefs.h <<_ACEOF
17191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17192 _ACEOF
17193
17194 fi
17195 rm -f conftest*
17196
17197 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17198 # in glibc 2.1.3, but that breaks too many other things.
17199 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17200 echo "$as_me:$LINENO: checking for fseeko" >&5
17201 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17202 if test "${ac_cv_func_fseeko+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211 #include <stdio.h>
17212 int
17213 main ()
17214 {
17215 return fseeko && fseeko (stdin, 0, 0);
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag"
17230                          || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_func_fseeko=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_cv_func_fseeko=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251 fi
17252 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17253 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17254 if test $ac_cv_func_fseeko = yes; then
17255
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_FSEEKO 1
17258 _ACEOF
17259
17260 fi
17261
17262
17263 #
17264 # Pthreads
17265 #
17266 # For each platform, we need to know about any special compile and link
17267 # libraries, and whether the normal C function names are thread-safe.
17268 # See the comment at the top of src/port/thread.c for more information.
17269 # WIN32 doesn't need the pthread tests;  it always uses threads
17270 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
17271
17272
17273
17274
17275 ac_ext=c
17276 ac_cpp='$CPP $CPPFLAGS'
17277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17280
17281 acx_pthread_ok=no
17282
17283 # We used to check for pthread.h first, but this fails if pthread.h
17284 # requires special compiler flags (e.g. on True64 or Sequent).
17285 # It gets checked for in the link test anyway.
17286
17287 # First of all, check if the user has set any of the PTHREAD_LIBS,
17288 # etcetera environment variables, and if threads linking works using
17289 # them:
17290 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17291         save_CFLAGS="$CFLAGS"
17292         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17293         save_LIBS="$LIBS"
17294         LIBS="$PTHREAD_LIBS $LIBS"
17295         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17296 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
17297         cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 /* We use char because int might match the return type of a gcc2
17309    builtin and then its argument prototype would still apply.  */
17310 char pthread_join ();
17311 int
17312 main ()
17313 {
17314 pthread_join ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321   (eval $ac_link) 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -z "$ac_c_werror_flag"
17329                          || test ! -s conftest.err'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; } &&
17335          { ac_try='test -s conftest$ac_exeext'
17336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337   (eval $ac_try) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   acx_pthread_ok=yes
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 fi
17347 rm -f conftest.err conftest.$ac_objext \
17348       conftest$ac_exeext conftest.$ac_ext
17349         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17350 echo "${ECHO_T}$acx_pthread_ok" >&6
17351         if test x"$acx_pthread_ok" = xno; then
17352                 PTHREAD_LIBS=""
17353                 PTHREAD_CFLAGS=""
17354         fi
17355         LIBS="$save_LIBS"
17356         CFLAGS="$save_CFLAGS"
17357 fi
17358
17359 # We must check for the threads library under a number of different
17360 # names; the ordering is very important because some systems
17361 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17362 # libraries is broken (non-POSIX).
17363
17364 # Create a list of thread flags to try.  Items starting with a "-" are
17365 # C compiler flags, and other items are library names, except for "none"
17366 # which indicates that we try without any flags at all, and "pthread-config"
17367 # which is a program returning the flags for the Pth emulation library.
17368
17369 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
17370
17371 # The ordering *is* (sometimes) important.  Some notes on the
17372 # individual items follow:
17373
17374 # pthreads: AIX (must check this before -lpthread)
17375 # none: in case threads are in libc; should be tried before -Kthread and
17376 #       other compiler flags to prevent continual compiler warnings
17377 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17378 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17379 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17380 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17381 # -pthreads: Solaris/gcc
17382 # -mthreads: Mingw32/gcc, Lynx/gcc
17383 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17384 #      doesn't hurt to check since this sometimes defines pthreads too;
17385 #      also defines -D_REENTRANT)
17386 # pthread: Linux, etcetera
17387 # --thread-safe: KAI C++
17388 # pthread-config: use pthread-config program (for GNU Pth library)
17389
17390 case "${host_cpu}-${host_os}" in
17391         *solaris*)
17392
17393         # On Solaris (at least, for some versions), libc contains stubbed
17394         # (non-functional) versions of the pthreads routines, so link-based
17395         # tests will erroneously succeed.  (We need to link with -pthread or
17396         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17397         # a function called by this macro, so we could check for that, but
17398         # who knows whether they'll stub that too in a future libc.)  So,
17399         # we'll just look for -pthreads and -lpthread first:
17400
17401         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
17402         ;;
17403 esac
17404
17405 if test x"$acx_pthread_ok" = xno; then
17406 for flag in $acx_pthread_flags; do
17407
17408         tryPTHREAD_CFLAGS=""
17409         tryPTHREAD_LIBS=""
17410         case $flag in
17411                 none)
17412                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
17413 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
17414                 ;;
17415
17416                 -*)
17417                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
17418 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
17419                 tryPTHREAD_CFLAGS="$flag"
17420                 ;;
17421
17422                 pthread-config)
17423                 # skip this if we already have flags defined, for PostgreSQL
17424                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
17425                 # Extract the first word of "pthread-config", so it can be a program name with args.
17426 set dummy pthread-config; ac_word=$2
17427 echo "$as_me:$LINENO: checking for $ac_word" >&5
17428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17429 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
17430   echo $ECHO_N "(cached) $ECHO_C" >&6
17431 else
17432   if test -n "$acx_pthread_config"; then
17433   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17434 else
17435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436 for as_dir in $PATH
17437 do
17438   IFS=$as_save_IFS
17439   test -z "$as_dir" && as_dir=.
17440   for ac_exec_ext in '' $ac_executable_extensions; do
17441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17442     ac_cv_prog_acx_pthread_config="yes"
17443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17444     break 2
17445   fi
17446 done
17447 done
17448
17449   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17450 fi
17451 fi
17452 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17453 if test -n "$acx_pthread_config"; then
17454   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
17455 echo "${ECHO_T}$acx_pthread_config" >&6
17456 else
17457   echo "$as_me:$LINENO: result: no" >&5
17458 echo "${ECHO_T}no" >&6
17459 fi
17460
17461                 if test x"$acx_pthread_config" = xno; then continue; fi
17462                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
17463                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17464                 ;;
17465
17466                 *)
17467                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
17468 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
17469                 tryPTHREAD_LIBS="-l$flag"
17470                 ;;
17471         esac
17472
17473         save_LIBS="$LIBS"
17474         save_CFLAGS="$CFLAGS"
17475         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
17476         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
17477
17478         # Check for various functions.  We must include pthread.h,
17479         # since some functions may be macros.  (On the Sequent, we
17480         # need a special flag -Kthread to make this header compile.)
17481         # We check for pthread_join because it is in -lpthread on IRIX
17482         # while pthread_create is in libc.  We check for pthread_attr_init
17483         # due to DEC craziness with -lpthreads.  We check for
17484         # pthread_cleanup_push because it is one of the few pthread
17485         # functions on Solaris that doesn't have a non-functional libc stub.
17486         # We try pthread_create on general principles.
17487         cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 #include <pthread.h>
17494 int
17495 main ()
17496 {
17497 pthread_t th; pthread_join(th, 0);
17498                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17499                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506   (eval $ac_link) 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } &&
17513          { ac_try='test -z "$ac_c_werror_flag"
17514                          || test ! -s conftest.err'
17515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; } &&
17520          { ac_try='test -s conftest$ac_exeext'
17521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522   (eval $ac_try) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; }; then
17526   acx_pthread_ok=yes
17527 else
17528   echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531 acx_pthread_ok=no
17532 fi
17533 rm -f conftest.err conftest.$ac_objext \
17534       conftest$ac_exeext conftest.$ac_ext
17535
17536         if test "x$acx_pthread_ok" = xyes; then
17537             # Don't use options that are ignored by the compiler.
17538             # We find them by checking stderror.
17539             cat >conftest.$ac_ext <<_ACEOF
17540 int
17541 main (int argc, char **argv)
17542 {
17543   (void) argc;
17544   (void) argv;
17545   return 0;
17546 }
17547 _ACEOF
17548             rm -f conftest.$ac_objext conftest$ac_exeext
17549             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
17550                 # we continue with more flags because Linux needs -lpthread
17551                 # for libpq builds on PostgreSQL.  The test above only
17552                 # tests for building binaries, not shared libraries.
17553                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
17554                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
17555             else   acx_pthread_ok=no
17556             fi
17557         fi
17558
17559         LIBS="$save_LIBS"
17560         CFLAGS="$save_CFLAGS"
17561
17562         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17563 echo "${ECHO_T}$acx_pthread_ok" >&6
17564 done
17565 fi
17566
17567 # Various other checks:
17568 if test "x$acx_pthread_ok" = xyes; then
17569         save_LIBS="$LIBS"
17570         LIBS="$PTHREAD_LIBS $LIBS"
17571         save_CFLAGS="$CFLAGS"
17572         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17573
17574         # Detect AIX lossage: threads are created detached by default
17575         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
17576         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
17577 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
17578         cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584 #include <pthread.h>
17585 int
17586 main ()
17587 {
17588 int attr=PTHREAD_CREATE_JOINABLE;
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595   (eval $ac_link) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest$ac_exeext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   ok=PTHREAD_CREATE_JOINABLE
17616 else
17617   echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ok=unknown
17621 fi
17622 rm -f conftest.err conftest.$ac_objext \
17623       conftest$ac_exeext conftest.$ac_ext
17624         if test x"$ok" = xunknown; then
17625                 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631 #include <pthread.h>
17632 int
17633 main ()
17634 {
17635 int attr=PTHREAD_CREATE_UNDETACHED;
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642   (eval $ac_link) 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } &&
17649          { ac_try='test -z "$ac_c_werror_flag"
17650                          || test ! -s conftest.err'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; } &&
17656          { ac_try='test -s conftest$ac_exeext'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; }; then
17662   ok=PTHREAD_CREATE_UNDETACHED
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ok=unknown
17668 fi
17669 rm -f conftest.err conftest.$ac_objext \
17670       conftest$ac_exeext conftest.$ac_ext
17671         fi
17672         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
17673
17674 cat >>confdefs.h <<\_ACEOF
17675 #define PTHREAD_CREATE_JOINABLE $ok
17676 _ACEOF
17677
17678         fi
17679         echo "$as_me:$LINENO: result: ${ok}" >&5
17680 echo "${ECHO_T}${ok}" >&6
17681         if test x"$ok" = xunknown; then
17682                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
17683 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
17684         fi
17685
17686         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
17687 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
17688         flag=no
17689 # We always add these in PostgreSQL
17690 #       case "${host_cpu}-${host_os}" in
17691 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17692 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17693 #       esac
17694         echo "$as_me:$LINENO: result: ${flag}" >&5
17695 echo "${ECHO_T}${flag}" >&6
17696         if test "x$flag" != xno; then
17697                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17698         fi
17699
17700         LIBS="$save_LIBS"
17701         CFLAGS="$save_CFLAGS"
17702
17703 # Supporting cc_r would require a special CC in all places that
17704 # use libpq, and that is ugly, so we don't do it.  Users can still
17705 # define their compiler as cc_r to do thread builds of everything.
17706         # More AIX lossage: must compile with cc_r
17707         # Extract the first word of "cc_r", so it can be a program name with args.
17708 set dummy cc_r; ac_word=$2
17709 echo "$as_me:$LINENO: checking for $ac_word" >&5
17710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17711 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   if test -n "$PTHREAD_CC"; then
17715   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17716 else
17717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17718 for as_dir in $PATH
17719 do
17720   IFS=$as_save_IFS
17721   test -z "$as_dir" && as_dir=.
17722   for ac_exec_ext in '' $ac_executable_extensions; do
17723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17724     ac_cv_prog_PTHREAD_CC="cc_r"
17725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17726     break 2
17727   fi
17728 done
17729 done
17730
17731   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17732 fi
17733 fi
17734 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17735 if test -n "$PTHREAD_CC"; then
17736   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
17737 echo "${ECHO_T}$PTHREAD_CC" >&6
17738 else
17739   echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6
17741 fi
17742
17743 else
17744         PTHREAD_CC="$CC"
17745 fi
17746
17747
17748
17749
17750
17751 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17752 if test x"$acx_pthread_ok" = xyes; then
17753
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_PTHREAD 1
17756 _ACEOF
17757
17758         :
17759 else
17760         acx_pthread_ok=no
17761
17762 fi
17763 ac_ext=c
17764 ac_cpp='$CPP $CPPFLAGS'
17765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17768
17769         # set thread flags
17770
17771 # Some platforms use these, so just defineed them.  They can't hurt if they
17772 # are not supported.
17773 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
17774
17775
17776 # At this point, we don't want to muck with the compiler name for threading.
17777 # Let's see who fails, perhaps AIX.  2004-04-23
17778 if test "$PTHREAD_CC" != "$CC"; then
17779 { { echo "$as_me:$LINENO: error:
17780 PostgreSQL does not support platforms that require a special compiler
17781 for thread safety." >&5
17782 echo "$as_me: error:
17783 PostgreSQL does not support platforms that require a special compiler
17784 for thread safety." >&2;}
17785    { (exit 1); exit 1; }; }
17786 fi
17787
17788 if test "$THREAD_SUPPORT" = no; then
17789 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
17790 This platform is known to not support thread-safe programs.  For details,
17791 compile and run src/bin/pg_thread_test." >&5
17792 echo "$as_me: error: cannot enable threads on this platform
17793 This platform is known to not support thread-safe programs.  For details,
17794 compile and run src/bin/pg_thread_test." >&2;}
17795    { (exit 1); exit 1; }; }
17796 fi
17797
17798 # Check for *_r functions
17799 _CFLAGS="$CFLAGS"
17800 _LIBS="$LIBS"
17801 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17802 LIBS="$LIBS $PTHREAD_LIBS"
17803
17804 if test "$PORTNAME" != "win32"; then
17805 if test "${ac_cv_header_pthread_h+set}" = set; then
17806   echo "$as_me:$LINENO: checking for pthread.h" >&5
17807 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17808 if test "${ac_cv_header_pthread_h+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 fi
17811 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17812 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17813 else
17814   # Is the header compilable?
17815 echo "$as_me:$LINENO: checking pthread.h usability" >&5
17816 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823 $ac_includes_default
17824 #include <pthread.h>
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828   (eval $ac_compile) 2>conftest.er1
17829   ac_status=$?
17830   grep -v '^ *+' conftest.er1 >conftest.err
17831   rm -f conftest.er1
17832   cat conftest.err >&5
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } &&
17835          { ac_try='test -z "$ac_c_werror_flag"
17836                          || test ! -s conftest.err'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; } &&
17842          { ac_try='test -s conftest.$ac_objext'
17843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844   (eval $ac_try) 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   ac_header_compiler=yes
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 ac_header_compiler=no
17854 fi
17855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17857 echo "${ECHO_T}$ac_header_compiler" >&6
17858
17859 # Is the header present?
17860 echo "$as_me:$LINENO: checking pthread.h presence" >&5
17861 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h.  */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h.  */
17868 #include <pthread.h>
17869 _ACEOF
17870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } >/dev/null; then
17878   if test -s conftest.err; then
17879     ac_cpp_err=$ac_c_preproc_warn_flag
17880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17881   else
17882     ac_cpp_err=
17883   fi
17884 else
17885   ac_cpp_err=yes
17886 fi
17887 if test -z "$ac_cpp_err"; then
17888   ac_header_preproc=yes
17889 else
17890   echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893   ac_header_preproc=no
17894 fi
17895 rm -f conftest.err conftest.$ac_ext
17896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17897 echo "${ECHO_T}$ac_header_preproc" >&6
17898
17899 # So?  What about this header?
17900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17901   yes:no: )
17902     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17903 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17904     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17905 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17906     ac_header_preproc=yes
17907     ;;
17908   no:yes:* )
17909     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17910 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17911     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
17912 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
17913     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17914 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17915     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
17916 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17917     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17918 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17919     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17920 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17921     (
17922       cat <<\_ASBOX
17923 ## ---------------------------------------- ##
17924 ## Report this to pgsql-bugs@postgresql.org ##
17925 ## ---------------------------------------- ##
17926 _ASBOX
17927     ) |
17928       sed "s/^/$as_me: WARNING:     /" >&2
17929     ;;
17930 esac
17931 echo "$as_me:$LINENO: checking for pthread.h" >&5
17932 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17933 if test "${ac_cv_header_pthread_h+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   ac_cv_header_pthread_h=$ac_header_preproc
17937 fi
17938 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17939 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17940
17941 fi
17942 if test $ac_cv_header_pthread_h = yes; then
17943   :
17944 else
17945   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17946 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17947    { (exit 1); exit 1; }; }
17948 fi
17949
17950
17951 fi
17952
17953
17954
17955
17956 for ac_func in strerror_r getpwuid_r gethostbyname_r
17957 do
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17961 if eval "test \"\${$as_ac_var+set}\" = set"; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17972 #define $ac_func innocuous_$ac_func
17973
17974 /* System header to define __stub macros and hopefully few prototypes,
17975     which can conflict with char $ac_func (); below.
17976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977     <limits.h> exists even on freestanding compilers.  */
17978
17979 #ifdef __STDC__
17980 # include <limits.h>
17981 #else
17982 # include <assert.h>
17983 #endif
17984
17985 #undef $ac_func
17986
17987 /* Override any gcc2 internal prototype to avoid an error.  */
17988 #ifdef __cplusplus
17989 extern "C"
17990 {
17991 #endif
17992 /* We use char because int might match the return type of a gcc2
17993    builtin and then its argument prototype would still apply.  */
17994 char $ac_func ();
17995 /* The GNU C library defines this for functions which it implements
17996     to always fail with ENOSYS.  Some functions are actually named
17997     something starting with __ and the normal name is an alias.  */
17998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17999 choke me
18000 #else
18001 char (*f) () = $ac_func;
18002 #endif
18003 #ifdef __cplusplus
18004 }
18005 #endif
18006
18007 int
18008 main ()
18009 {
18010 return f != $ac_func;
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017   (eval $ac_link) 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } &&
18024          { ac_try='test -z "$ac_c_werror_flag"
18025                          || test ! -s conftest.err'
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); }; } &&
18031          { ac_try='test -s conftest$ac_exeext'
18032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033   (eval $ac_try) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; }; then
18037   eval "$as_ac_var=yes"
18038 else
18039   echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 eval "$as_ac_var=no"
18043 fi
18044 rm -f conftest.err conftest.$ac_objext \
18045       conftest$ac_exeext conftest.$ac_ext
18046 fi
18047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18049 if test `eval echo '${'$as_ac_var'}'` = yes; then
18050   cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18052 _ACEOF
18053
18054 fi
18055 done
18056
18057
18058 # Do test here with the proper thread flags
18059 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18060 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18061 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h.  */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h.  */
18070 #include <sys/types.h>
18071 #include <pwd.h>
18072 int
18073 main ()
18074 {
18075 uid_t uid;
18076 struct passwd *space;
18077 char *buf;
18078 size_t bufsize;
18079 struct passwd **result;
18080 getpwuid_r(uid, space, buf, bufsize, result);
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087   (eval $ac_compile) 2>conftest.er1
18088   ac_status=$?
18089   grep -v '^ *+' conftest.er1 >conftest.err
18090   rm -f conftest.er1
18091   cat conftest.err >&5
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } &&
18094          { ac_try='test -z "$ac_c_werror_flag"
18095                          || test ! -s conftest.err'
18096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097   (eval $ac_try) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; } &&
18101          { ac_try='test -s conftest.$ac_objext'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; }; then
18107   pgac_func_getpwuid_r_5arg=yes
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 pgac_func_getpwuid_r_5arg=no
18113 fi
18114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18115 fi
18116 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18117 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18118 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18119
18120 cat >>confdefs.h <<\_ACEOF
18121 #define GETPWUID_R_5ARG
18122 _ACEOF
18123
18124 fi
18125
18126 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18127 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18128 if test "${pgac_func_strerror_r_int+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131   cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137 #include <string.h>
18138 int
18139 main ()
18140 {
18141 #ifndef _AIX
18142 int strerror_r(int, char *, size_t);
18143 #else
18144 /* Older AIX has 'int' for the third argument so we don't test the args. */
18145 int strerror_r();
18146 #endif
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153   (eval $ac_compile) 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag"
18161                          || test ! -s conftest.err'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; } &&
18167          { ac_try='test -s conftest.$ac_objext'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   pgac_func_strerror_r_int=yes
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 pgac_func_strerror_r_int=no
18179 fi
18180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18181 fi
18182 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18183 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18184 if test x"$pgac_func_strerror_r_int" = xyes ; then
18185
18186 cat >>confdefs.h <<\_ACEOF
18187 #define STRERROR_R_INT
18188 _ACEOF
18189
18190 fi
18191
18192
18193 CFLAGS="$_CFLAGS"
18194 LIBS="$_LIBS"
18195
18196 else
18197 # do not use values from template file
18198 PTHREAD_CFLAGS=
18199 PTHREAD_LIBS=
18200 fi
18201
18202
18203
18204
18205
18206 # We can test for libldap_r only after we know PTHREAD_LIBS
18207 if test "$with_ldap" = yes ; then
18208   _LIBS="$LIBS"
18209   if test "$PORTNAME" != "win32"; then
18210
18211 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18212 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18213 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 /* Override any gcc2 internal prototype to avoid an error.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230    builtin and then its argument prototype would still apply.  */
18231 char ldap_bind ();
18232 int
18233 main ()
18234 {
18235 ldap_bind ();
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242   (eval $ac_link) 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -z "$ac_c_werror_flag"
18250                          || test ! -s conftest.err'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest$ac_exeext'
18257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258   (eval $ac_try) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; }; then
18262   ac_cv_lib_ldap_ldap_bind=yes
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_cv_lib_ldap_ldap_bind=no
18268 fi
18269 rm -f conftest.err conftest.$ac_objext \
18270       conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18272 fi
18273 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
18274 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
18275 if test $ac_cv_lib_ldap_ldap_bind = yes; then
18276   cat >>confdefs.h <<_ACEOF
18277 #define HAVE_LIBLDAP 1
18278 _ACEOF
18279
18280   LIBS="-lldap $LIBS"
18281
18282 else
18283   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
18284 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
18285    { (exit 1); exit 1; }; }
18286 fi
18287
18288     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
18289     if test "$enable_thread_safety" = yes; then
18290       # on some platforms ldap_r fails to link without PTHREAD_LIBS
18291
18292 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
18293 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
18294 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305
18306 /* Override any gcc2 internal prototype to avoid an error.  */
18307 #ifdef __cplusplus
18308 extern "C"
18309 #endif
18310 /* We use char because int might match the return type of a gcc2
18311    builtin and then its argument prototype would still apply.  */
18312 char ldap_simple_bind ();
18313 int
18314 main ()
18315 {
18316 ldap_simple_bind ();
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323   (eval $ac_link) 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } &&
18330          { ac_try='test -z "$ac_c_werror_flag"
18331                          || test ! -s conftest.err'
18332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   ac_cv_lib_ldap_r_ldap_simple_bind=yes
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 ac_cv_lib_ldap_r_ldap_simple_bind=no
18349 fi
18350 rm -f conftest.err conftest.$ac_objext \
18351       conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18353 fi
18354 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
18355 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
18356 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
18357   cat >>confdefs.h <<_ACEOF
18358 #define HAVE_LIBLDAP_R 1
18359 _ACEOF
18360
18361   LIBS="-lldap_r $LIBS"
18362
18363 else
18364   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
18365 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
18366    { (exit 1); exit 1; }; }
18367 fi
18368
18369       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
18370     else
18371       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
18372     fi
18373   else
18374
18375 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
18376 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
18377 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
18378   echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380   ac_check_lib_save_LIBS=$LIBS
18381 LIBS="-lwldap32  $LIBS"
18382 cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388
18389 /* Override any gcc2 internal prototype to avoid an error.  */
18390 #ifdef __cplusplus
18391 extern "C"
18392 #endif
18393 /* We use char because int might match the return type of a gcc2
18394    builtin and then its argument prototype would still apply.  */
18395 char ldap_bind ();
18396 int
18397 main ()
18398 {
18399 ldap_bind ();
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18406   (eval $ac_link) 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } &&
18413          { ac_try='test -z "$ac_c_werror_flag"
18414                          || test ! -s conftest.err'
18415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416   (eval $ac_try) 2>&5
18417   ac_status=$?
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); }; } &&
18420          { ac_try='test -s conftest$ac_exeext'
18421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422   (eval $ac_try) 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; }; then
18426   ac_cv_lib_wldap32_ldap_bind=yes
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 ac_cv_lib_wldap32_ldap_bind=no
18432 fi
18433 rm -f conftest.err conftest.$ac_objext \
18434       conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18436 fi
18437 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
18438 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
18439 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
18440   cat >>confdefs.h <<_ACEOF
18441 #define HAVE_LIBWLDAP32 1
18442 _ACEOF
18443
18444   LIBS="-lwldap32 $LIBS"
18445
18446 else
18447   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
18448 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
18449    { (exit 1); exit 1; }; }
18450 fi
18451
18452     LDAP_LIBS_FE="-lwldap32"
18453     LDAP_LIBS_BE="-lwldap32"
18454   fi
18455   LIBS="$_LIBS"
18456 fi
18457
18458
18459
18460
18461 # This test makes sure that run tests work at all.  Sometimes a shared
18462 # library is found by the linker, but the runtime linker can't find it.
18463 # This check should come after all modifications of compiler or linker
18464 # variables, and before any other run tests.
18465 echo "$as_me:$LINENO: checking test program" >&5
18466 echo $ECHO_N "checking test program... $ECHO_C" >&6
18467 if test "$cross_compiling" = yes; then
18468   echo "$as_me:$LINENO: result: cross-compiling" >&5
18469 echo "${ECHO_T}cross-compiling" >&6
18470 else
18471   cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h.  */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h.  */
18477 int main() { return 0; }
18478 _ACEOF
18479 rm -f conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481   (eval $ac_link) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   echo "$as_me:$LINENO: result: ok" >&5
18491 echo "${ECHO_T}ok" >&6
18492 else
18493   echo "$as_me: program exited with status $ac_status" >&5
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 ( exit $ac_status )
18498 echo "$as_me:$LINENO: result: failed" >&5
18499 echo "${ECHO_T}failed" >&6
18500 { { echo "$as_me:$LINENO: error:
18501 Could not execute a simple test program.  This may be a problem
18502 related to locating shared libraries.  Check the file 'config.log'
18503 for the exact reason." >&5
18504 echo "$as_me: error:
18505 Could not execute a simple test program.  This may be a problem
18506 related to locating shared libraries.  Check the file 'config.log'
18507 for the exact reason." >&2;}
18508    { (exit 1); exit 1; }; }
18509 fi
18510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18511 fi
18512
18513 # --------------------
18514 # Run tests below here
18515 # --------------------
18516
18517 # Force use of our snprintf if system's doesn't do arg control
18518 # See comment above at snprintf test for details.
18519 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
18520   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
18521 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
18522 if test "${pgac_cv_printf_arg_control+set}" = set; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525   if test "$cross_compiling" = yes; then
18526   pgac_cv_printf_arg_control=cross
18527 else
18528   cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h.  */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h.  */
18534 #include <stdio.h>
18535 #include <string.h>
18536
18537 int main()
18538 {
18539   char buf[100];
18540
18541   /* can it swap arguments? */
18542   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
18543   if (strcmp(buf, "4 3") != 0)
18544     return 1;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest$ac_exeext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18550   (eval $ac_link) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; }; then
18559   pgac_cv_printf_arg_control=yes
18560 else
18561   echo "$as_me: program exited with status $ac_status" >&5
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ( exit $ac_status )
18566 pgac_cv_printf_arg_control=no
18567 fi
18568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18569 fi
18570
18571 fi
18572 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
18573 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
18574
18575   if test $pgac_cv_printf_arg_control != yes ; then
18576     pgac_need_repl_snprintf=yes
18577   fi
18578 fi
18579
18580
18581
18582 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
18583 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
18584 if test "${pgac_cv_type_long_int_64+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   if test "$cross_compiling" = yes; then
18588   # If cross-compiling, check the size reported by the compiler and
18589 # trust that the arithmetic works.
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 int
18598 main ()
18599 {
18600 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
18601 test_array [0] = 0
18602
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18609   (eval $ac_compile) 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } &&
18616          { ac_try='test -z "$ac_c_werror_flag"
18617                          || test ! -s conftest.err'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; } &&
18623          { ac_try='test -s conftest.$ac_objext'
18624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   pgac_cv_type_long_int_64=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 pgac_cv_type_long_int_64=no
18635 fi
18636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18637 else
18638   cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644 typedef long int ac_int64;
18645
18646 /*
18647  * These are globals to discourage the compiler from folding all the
18648  * arithmetic tests down to compile-time constants.
18649  */
18650 ac_int64 a = 20000001;
18651 ac_int64 b = 40000005;
18652
18653 int does_int64_work()
18654 {
18655   ac_int64 c,d;
18656
18657   if (sizeof(ac_int64) != 8)
18658     return 0;                   /* definitely not the right size */
18659
18660   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18661   c = a * b;
18662   d = (c + b) / b;
18663   if (d != a+1)
18664     return 0;
18665   return 1;
18666 }
18667 main() {
18668   exit(! does_int64_work());
18669 }
18670 _ACEOF
18671 rm -f conftest$ac_exeext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673   (eval $ac_link) 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; }; then
18682   pgac_cv_type_long_int_64=yes
18683 else
18684   echo "$as_me: program exited with status $ac_status" >&5
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688 ( exit $ac_status )
18689 pgac_cv_type_long_int_64=no
18690 fi
18691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18692 fi
18693 fi
18694 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
18695 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
18696
18697 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
18698 if test x"$pgac_cv_type_long_int_64" = xyes ; then
18699
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_LONG_INT_64
18702 _ACEOF
18703
18704 fi
18705
18706
18707 if test x"$HAVE_LONG_INT_64" = x"no" ; then
18708   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
18709 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
18710 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   if test "$cross_compiling" = yes; then
18714   # If cross-compiling, check the size reported by the compiler and
18715 # trust that the arithmetic works.
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722
18723 int
18724 main ()
18725 {
18726 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
18727 test_array [0] = 0
18728
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest.$ac_objext
18734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18735   (eval $ac_compile) 2>conftest.er1
18736   ac_status=$?
18737   grep -v '^ *+' conftest.er1 >conftest.err
18738   rm -f conftest.er1
18739   cat conftest.err >&5
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); } &&
18742          { ac_try='test -z "$ac_c_werror_flag"
18743                          || test ! -s conftest.err'
18744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745   (eval $ac_try) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; } &&
18749          { ac_try='test -s conftest.$ac_objext'
18750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751   (eval $ac_try) 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }; }; then
18755   pgac_cv_type_long_long_int_64=yes
18756 else
18757   echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18759
18760 pgac_cv_type_long_long_int_64=no
18761 fi
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 typedef long long int ac_int64;
18771
18772 /*
18773  * These are globals to discourage the compiler from folding all the
18774  * arithmetic tests down to compile-time constants.
18775  */
18776 ac_int64 a = 20000001;
18777 ac_int64 b = 40000005;
18778
18779 int does_int64_work()
18780 {
18781   ac_int64 c,d;
18782
18783   if (sizeof(ac_int64) != 8)
18784     return 0;                   /* definitely not the right size */
18785
18786   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18787   c = a * b;
18788   d = (c + b) / b;
18789   if (d != a+1)
18790     return 0;
18791   return 1;
18792 }
18793 main() {
18794   exit(! does_int64_work());
18795 }
18796 _ACEOF
18797 rm -f conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799   (eval $ac_link) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808   pgac_cv_type_long_long_int_64=yes
18809 else
18810   echo "$as_me: program exited with status $ac_status" >&5
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ( exit $ac_status )
18815 pgac_cv_type_long_long_int_64=no
18816 fi
18817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18818 fi
18819 fi
18820 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
18821 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
18822
18823 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
18824 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_LONG_LONG_INT_64
18828 _ACEOF
18829
18830 fi
18831
18832 fi
18833
18834
18835
18836 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
18837   cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h.  */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h.  */
18843
18844 #define INT64CONST(x)  x##LL
18845 long long int foo = INT64CONST(0x1234567890123456);
18846
18847 int
18848 main ()
18849 {
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18857   (eval $ac_compile) 2>conftest.er1
18858   ac_status=$?
18859   grep -v '^ *+' conftest.er1 >conftest.err
18860   rm -f conftest.er1
18861   cat conftest.err >&5
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); } &&
18864          { ac_try='test -z "$ac_c_werror_flag"
18865                          || test ! -s conftest.err'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest.$ac_objext'
18872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873   (eval $ac_try) 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; }; then
18877
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_LL_CONSTANTS 1
18880 _ACEOF
18881
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 fi
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888 fi
18889
18890
18891 # If we found "long int" is 64 bits, assume snprintf handles it.  If
18892 # we found we need to use "long long int", better check.  We cope with
18893 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
18894 # work, fall back to our own snprintf emulation (which we know uses %lld).
18895
18896 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
18897   if test $pgac_need_repl_snprintf = no; then
18898     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
18899 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
18900 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903   for pgac_format in '%lld' '%qd' '%I64d'; do
18904 if test "$cross_compiling" = yes; then
18905   pgac_cv_snprintf_long_long_int_format=cross; break
18906 else
18907   cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h.  */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h.  */
18913 #include <stdio.h>
18914 typedef long long int ac_int64;
18915 #define INT64_FORMAT "$pgac_format"
18916
18917 ac_int64 a = 20000001;
18918 ac_int64 b = 40000005;
18919
18920 int does_int64_snprintf_work()
18921 {
18922   ac_int64 c;
18923   char buf[100];
18924
18925   if (sizeof(ac_int64) != 8)
18926     return 0;                   /* doesn't look like the right size */
18927
18928   c = a * b;
18929   snprintf(buf, 100, INT64_FORMAT, c);
18930   if (strcmp(buf, "800000140000005") != 0)
18931     return 0;                   /* either multiply or snprintf is busted */
18932   return 1;
18933 }
18934 main() {
18935   exit(! does_int64_snprintf_work());
18936 }
18937 _ACEOF
18938 rm -f conftest$ac_exeext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18940   (eval $ac_link) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945   (eval $ac_try) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
18950 else
18951   echo "$as_me: program exited with status $ac_status" >&5
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 fi
18956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18957 fi
18958 done
18959 fi
18960
18961 LONG_LONG_INT_FORMAT=''
18962
18963 case $pgac_cv_snprintf_long_long_int_format in
18964   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
18965 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
18966   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
18967 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
18968          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
18969   *)     echo "$as_me:$LINENO: result: none" >&5
18970 echo "${ECHO_T}none" >&6;;
18971 esac
18972     if test "$LONG_LONG_INT_FORMAT" = ""; then
18973       # Force usage of our own snprintf, since system snprintf is broken
18974       pgac_need_repl_snprintf=yes
18975       LONG_LONG_INT_FORMAT='%lld'
18976     fi
18977   else
18978     # Here if we previously decided we needed to use our own snprintf
18979     LONG_LONG_INT_FORMAT='%lld'
18980   fi
18981   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
18982   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
18983   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
18984 else
18985   # Here if we are not using 'long long int' at all
18986   INT64_FORMAT='"%ld"'
18987   UINT64_FORMAT='"%lu"'
18988 fi
18989
18990
18991 cat >>confdefs.h <<_ACEOF
18992 #define INT64_FORMAT $INT64_FORMAT
18993 _ACEOF
18994
18995
18996
18997 cat >>confdefs.h <<_ACEOF
18998 #define UINT64_FORMAT $UINT64_FORMAT
18999 _ACEOF
19000
19001
19002 # Now we have checked all the reasons to replace snprintf
19003 if test $pgac_need_repl_snprintf = yes; then
19004
19005 cat >>confdefs.h <<\_ACEOF
19006 #define USE_REPL_SNPRINTF 1
19007 _ACEOF
19008
19009   case $LIBOBJS in
19010     "snprintf.$ac_objext"   | \
19011   *" snprintf.$ac_objext"   | \
19012     "snprintf.$ac_objext "* | \
19013   *" snprintf.$ac_objext "* ) ;;
19014   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
19015 esac
19016
19017 fi
19018
19019 # Need a #define for the size of Datum (unsigned long)
19020 echo "$as_me:$LINENO: checking for unsigned long" >&5
19021 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19022 if test "${ac_cv_type_unsigned_long+set}" = set; then
19023   echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025   cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h.  */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h.  */
19031 $ac_includes_default
19032 int
19033 main ()
19034 {
19035 if ((unsigned long *) 0)
19036   return 0;
19037 if (sizeof (unsigned long))
19038   return 0;
19039   ;
19040   return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19045   (eval $ac_compile) 2>conftest.er1
19046   ac_status=$?
19047   grep -v '^ *+' conftest.er1 >conftest.err
19048   rm -f conftest.er1
19049   cat conftest.err >&5
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); } &&
19052          { ac_try='test -z "$ac_c_werror_flag"
19053                          || test ! -s conftest.err'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; } &&
19059          { ac_try='test -s conftest.$ac_objext'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; }; then
19065   ac_cv_type_unsigned_long=yes
19066 else
19067   echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070 ac_cv_type_unsigned_long=no
19071 fi
19072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19073 fi
19074 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19075 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19076
19077 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19078 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19079 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   if test "$ac_cv_type_unsigned_long" = yes; then
19083   # The cast to unsigned long works around a bug in the HP C Compiler
19084   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19085   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19086   # This bug is HP SR number 8606223364.
19087   if test "$cross_compiling" = yes; then
19088   # Depending upon the size, compute the lo and hi bounds.
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h.  */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h.  */
19095 $ac_includes_default
19096 int
19097 main ()
19098 {
19099 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19100 test_array [0] = 0
19101
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108   (eval $ac_compile) 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } &&
19115          { ac_try='test -z "$ac_c_werror_flag"
19116                          || test ! -s conftest.err'
19117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118   (eval $ac_try) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; } &&
19122          { ac_try='test -s conftest.$ac_objext'
19123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124   (eval $ac_try) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   ac_lo=0 ac_mid=0
19129   while :; do
19130     cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 $ac_includes_default
19137 int
19138 main ()
19139 {
19140 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
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=$ac_mid; break
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 ac_lo=`expr $ac_mid + 1`
19175                     if test $ac_lo -le $ac_mid; then
19176                       ac_lo= ac_hi=
19177                       break
19178                     fi
19179                     ac_mid=`expr 2 '*' $ac_mid + 1`
19180 fi
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182   done
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 $ac_includes_default
19194 int
19195 main ()
19196 {
19197 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19198 test_array [0] = 0
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206   (eval $ac_compile) 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } &&
19213          { ac_try='test -z "$ac_c_werror_flag"
19214                          || test ! -s conftest.err'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; } &&
19220          { ac_try='test -s conftest.$ac_objext'
19221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222   (eval $ac_try) 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; }; then
19226   ac_hi=-1 ac_mid=-1
19227   while :; do
19228     cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 $ac_includes_default
19235 int
19236 main ()
19237 {
19238 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19239 test_array [0] = 0
19240
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247   (eval $ac_compile) 2>conftest.er1
19248   ac_status=$?
19249   grep -v '^ *+' conftest.er1 >conftest.err
19250   rm -f conftest.er1
19251   cat conftest.err >&5
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); } &&
19254          { ac_try='test -z "$ac_c_werror_flag"
19255                          || test ! -s conftest.err'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; } &&
19261          { ac_try='test -s conftest.$ac_objext'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; }; then
19267   ac_lo=$ac_mid; break
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 ac_hi=`expr '(' $ac_mid ')' - 1`
19273                        if test $ac_mid -le $ac_hi; then
19274                          ac_lo= ac_hi=
19275                          break
19276                        fi
19277                        ac_mid=`expr 2 '*' $ac_mid`
19278 fi
19279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19280   done
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_lo= ac_hi=
19286 fi
19287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19288 fi
19289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290 # Binary search between lo and hi bounds.
19291 while test "x$ac_lo" != "x$ac_hi"; do
19292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19293   cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 $ac_includes_default
19300 int
19301 main ()
19302 {
19303 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19304 test_array [0] = 0
19305
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312   (eval $ac_compile) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest.$ac_objext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_hi=$ac_mid
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_lo=`expr '(' $ac_mid ')' + 1`
19338 fi
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 done
19341 case $ac_lo in
19342 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19344 See \`config.log' for more details." >&5
19345 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19346 See \`config.log' for more details." >&2;}
19347    { (exit 1); exit 1; }; } ;;
19348 esac
19349 else
19350   if test "$cross_compiling" = yes; then
19351   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19352 See \`config.log' for more details." >&5
19353 echo "$as_me: error: cannot run test program while cross compiling
19354 See \`config.log' for more details." >&2;}
19355    { (exit 1); exit 1; }; }
19356 else
19357   cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 $ac_includes_default
19364 long longval () { return (long) (sizeof (unsigned long)); }
19365 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
19366 #include <stdio.h>
19367 #include <stdlib.h>
19368 int
19369 main ()
19370 {
19371
19372   FILE *f = fopen ("conftest.val", "w");
19373   if (! f)
19374     exit (1);
19375   if (((long) (sizeof (unsigned long))) < 0)
19376     {
19377       long i = longval ();
19378       if (i != ((long) (sizeof (unsigned long))))
19379         exit (1);
19380       fprintf (f, "%ld\n", i);
19381     }
19382   else
19383     {
19384       unsigned long i = ulongval ();
19385       if (i != ((long) (sizeof (unsigned long))))
19386         exit (1);
19387       fprintf (f, "%lu\n", i);
19388     }
19389   exit (ferror (f) || fclose (f) != 0);
19390
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397   (eval $ac_link) 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; }; then
19406   ac_cv_sizeof_unsigned_long=`cat conftest.val`
19407 else
19408   echo "$as_me: program exited with status $ac_status" >&5
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412 ( exit $ac_status )
19413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19414 See \`config.log' for more details." >&5
19415 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19416 See \`config.log' for more details." >&2;}
19417    { (exit 1); exit 1; }; }
19418 fi
19419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19420 fi
19421 fi
19422 rm -f conftest.val
19423 else
19424   ac_cv_sizeof_unsigned_long=0
19425 fi
19426 fi
19427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
19428 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
19429 cat >>confdefs.h <<_ACEOF
19430 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19431 _ACEOF
19432
19433
19434
19435 # And one for the size of size_t (enables tweaks for > 32bit address space)
19436 echo "$as_me:$LINENO: checking for size_t" >&5
19437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19438 if test "${ac_cv_type_size_t+set}" = set; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
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 int
19449 main ()
19450 {
19451 if ((size_t *) 0)
19452   return 0;
19453 if (sizeof (size_t))
19454   return 0;
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_cv_type_size_t=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_type_size_t=no
19487 fi
19488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19489 fi
19490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19492
19493 echo "$as_me:$LINENO: checking size of size_t" >&5
19494 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19495 if test "${ac_cv_sizeof_size_t+set}" = set; then
19496   echo $ECHO_N "(cached) $ECHO_C" >&6
19497 else
19498   if test "$ac_cv_type_size_t" = yes; then
19499   # The cast to unsigned long works around a bug in the HP C Compiler
19500   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19501   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19502   # This bug is HP SR number 8606223364.
19503   if test "$cross_compiling" = yes; then
19504   # Depending upon the size, compute the lo and hi bounds.
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 $ac_includes_default
19512 int
19513 main ()
19514 {
19515 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19516 test_array [0] = 0
19517
19518   ;
19519   return 0;
19520 }
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524   (eval $ac_compile) 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } &&
19531          { ac_try='test -z "$ac_c_werror_flag"
19532                          || test ! -s conftest.err'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; } &&
19538          { ac_try='test -s conftest.$ac_objext'
19539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540   (eval $ac_try) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   ac_lo=0 ac_mid=0
19545   while :; do
19546     cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 $ac_includes_default
19553 int
19554 main ()
19555 {
19556 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19557 test_array [0] = 0
19558
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565   (eval $ac_compile) 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag"
19573                          || test ! -s conftest.err'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest.$ac_objext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   ac_hi=$ac_mid; break
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 ac_lo=`expr $ac_mid + 1`
19591                     if test $ac_lo -le $ac_mid; then
19592                       ac_lo= ac_hi=
19593                       break
19594                     fi
19595                     ac_mid=`expr 2 '*' $ac_mid + 1`
19596 fi
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598   done
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 $ac_includes_default
19610 int
19611 main ()
19612 {
19613 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19614 test_array [0] = 0
19615
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622   (eval $ac_compile) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag"
19630                          || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest.$ac_objext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_hi=-1 ac_mid=-1
19643   while :; do
19644     cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 $ac_includes_default
19651 int
19652 main ()
19653 {
19654 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19655 test_array [0] = 0
19656
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663   (eval $ac_compile) 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_c_werror_flag"
19671                          || test ! -s conftest.err'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; } &&
19677          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19683   ac_lo=$ac_mid; break
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_hi=`expr '(' $ac_mid ')' - 1`
19689                        if test $ac_mid -le $ac_hi; then
19690                          ac_lo= ac_hi=
19691                          break
19692                        fi
19693                        ac_mid=`expr 2 '*' $ac_mid`
19694 fi
19695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19696   done
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_lo= ac_hi=
19702 fi
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704 fi
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 # Binary search between lo and hi bounds.
19707 while test "x$ac_lo" != "x$ac_hi"; do
19708   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19709   cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 $ac_includes_default
19716 int
19717 main ()
19718 {
19719 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19720 test_array [0] = 0
19721
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728   (eval $ac_compile) 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } &&
19735          { ac_try='test -z "$ac_c_werror_flag"
19736                          || test ! -s conftest.err'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; } &&
19742          { ac_try='test -s conftest.$ac_objext'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; }; then
19748   ac_hi=$ac_mid
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 ac_lo=`expr '(' $ac_mid ')' + 1`
19754 fi
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 done
19757 case $ac_lo in
19758 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19759 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19760 See \`config.log' for more details." >&5
19761 echo "$as_me: error: cannot compute sizeof (size_t), 77
19762 See \`config.log' for more details." >&2;}
19763    { (exit 1); exit 1; }; } ;;
19764 esac
19765 else
19766   if test "$cross_compiling" = yes; then
19767   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19768 See \`config.log' for more details." >&5
19769 echo "$as_me: error: cannot run test program while cross compiling
19770 See \`config.log' for more details." >&2;}
19771    { (exit 1); exit 1; }; }
19772 else
19773   cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 $ac_includes_default
19780 long longval () { return (long) (sizeof (size_t)); }
19781 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19782 #include <stdio.h>
19783 #include <stdlib.h>
19784 int
19785 main ()
19786 {
19787
19788   FILE *f = fopen ("conftest.val", "w");
19789   if (! f)
19790     exit (1);
19791   if (((long) (sizeof (size_t))) < 0)
19792     {
19793       long i = longval ();
19794       if (i != ((long) (sizeof (size_t))))
19795         exit (1);
19796       fprintf (f, "%ld\n", i);
19797     }
19798   else
19799     {
19800       unsigned long i = ulongval ();
19801       if (i != ((long) (sizeof (size_t))))
19802         exit (1);
19803       fprintf (f, "%lu\n", i);
19804     }
19805   exit (ferror (f) || fclose (f) != 0);
19806
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813   (eval $ac_link) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818   (eval $ac_try) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_sizeof_size_t=`cat conftest.val`
19823 else
19824   echo "$as_me: program exited with status $ac_status" >&5
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 ( exit $ac_status )
19829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19830 See \`config.log' for more details." >&5
19831 echo "$as_me: error: cannot compute sizeof (size_t), 77
19832 See \`config.log' for more details." >&2;}
19833    { (exit 1); exit 1; }; }
19834 fi
19835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19836 fi
19837 fi
19838 rm -f conftest.val
19839 else
19840   ac_cv_sizeof_size_t=0
19841 fi
19842 fi
19843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19844 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19845 cat >>confdefs.h <<_ACEOF
19846 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19847 _ACEOF
19848
19849
19850
19851 # Determine memory alignment requirements for the basic C data types.
19852
19853 echo "$as_me:$LINENO: checking for short" >&5
19854 echo $ECHO_N "checking for short... $ECHO_C" >&6
19855 if test "${ac_cv_type_short+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 $ac_includes_default
19865 int
19866 main ()
19867 {
19868 if ((short *) 0)
19869   return 0;
19870 if (sizeof (short))
19871   return 0;
19872   ;
19873   return 0;
19874 }
19875 _ACEOF
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878   (eval $ac_compile) 2>conftest.er1
19879   ac_status=$?
19880   grep -v '^ *+' conftest.er1 >conftest.err
19881   rm -f conftest.er1
19882   cat conftest.err >&5
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } &&
19885          { ac_try='test -z "$ac_c_werror_flag"
19886                          || test ! -s conftest.err'
19887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888   (eval $ac_try) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); }; } &&
19892          { ac_try='test -s conftest.$ac_objext'
19893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894   (eval $ac_try) 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_type_short=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_cv_type_short=no
19904 fi
19905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906 fi
19907 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19908 echo "${ECHO_T}$ac_cv_type_short" >&6
19909
19910 echo "$as_me:$LINENO: checking alignment of short" >&5
19911 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
19912 if test "${pgac_cv_alignof_short+set}" = set; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   if test "$ac_cv_type_short" = yes; then
19916   if test "$cross_compiling" = yes; then
19917   # Depending upon the size, compute the lo and hi bounds.
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 $ac_includes_default
19925 struct { char filler; short field; } pgac_struct;
19926 int
19927 main ()
19928 {
19929 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19930 test_array [0] = 0
19931
19932   ;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938   (eval $ac_compile) 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } &&
19945          { ac_try='test -z "$ac_c_werror_flag"
19946                          || test ! -s conftest.err'
19947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948   (eval $ac_try) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; } &&
19952          { ac_try='test -s conftest.$ac_objext'
19953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954   (eval $ac_try) 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; }; then
19958   ac_lo=0 ac_mid=0
19959   while :; do
19960     cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966 $ac_includes_default
19967 struct { char filler; short field; } pgac_struct;
19968 int
19969 main ()
19970 {
19971 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19972 test_array [0] = 0
19973
19974   ;
19975   return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980   (eval $ac_compile) 2>conftest.er1
19981   ac_status=$?
19982   grep -v '^ *+' conftest.er1 >conftest.err
19983   rm -f conftest.er1
19984   cat conftest.err >&5
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } &&
19987          { ac_try='test -z "$ac_c_werror_flag"
19988                          || test ! -s conftest.err'
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); }; } &&
19994          { ac_try='test -s conftest.$ac_objext'
19995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996   (eval $ac_try) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_hi=$ac_mid; break
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_lo=`expr $ac_mid + 1`
20006                     if test $ac_lo -le $ac_mid; then
20007                       ac_lo= ac_hi=
20008                       break
20009                     fi
20010                     ac_mid=`expr 2 '*' $ac_mid + 1`
20011 fi
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013   done
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 $ac_includes_default
20025 struct { char filler; short field; } pgac_struct;
20026 int
20027 main ()
20028 {
20029 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20030 test_array [0] = 0
20031
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038   (eval $ac_compile) 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag"
20046                          || test ! -s conftest.err'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; } &&
20052          { ac_try='test -s conftest.$ac_objext'
20053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054   (eval $ac_try) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_hi=-1 ac_mid=-1
20059   while :; do
20060     cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 $ac_includes_default
20067 struct { char filler; short field; } pgac_struct;
20068 int
20069 main ()
20070 {
20071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20072 test_array [0] = 0
20073
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080   (eval $ac_compile) 2>conftest.er1
20081   ac_status=$?
20082   grep -v '^ *+' conftest.er1 >conftest.err
20083   rm -f conftest.er1
20084   cat conftest.err >&5
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } &&
20087          { ac_try='test -z "$ac_c_werror_flag"
20088                          || test ! -s conftest.err'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; } &&
20094          { ac_try='test -s conftest.$ac_objext'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; }; then
20100   ac_lo=$ac_mid; break
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 ac_hi=`expr '(' $ac_mid ')' - 1`
20106                        if test $ac_mid -le $ac_hi; then
20107                          ac_lo= ac_hi=
20108                          break
20109                        fi
20110                        ac_mid=`expr 2 '*' $ac_mid`
20111 fi
20112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20113   done
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ac_lo= ac_hi=
20119 fi
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 # Binary search between lo and hi bounds.
20124 while test "x$ac_lo" != "x$ac_hi"; do
20125   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20126   cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 $ac_includes_default
20133 struct { char filler; short field; } pgac_struct;
20134 int
20135 main ()
20136 {
20137 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20138 test_array [0] = 0
20139
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146   (eval $ac_compile) 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } &&
20153          { ac_try='test -z "$ac_c_werror_flag"
20154                          || test ! -s conftest.err'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; } &&
20160          { ac_try='test -s conftest.$ac_objext'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_hi=$ac_mid
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 ac_lo=`expr '(' $ac_mid ')' + 1`
20172 fi
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174 done
20175 case $ac_lo in
20176 ?*) pgac_cv_alignof_short=$ac_lo;;
20177 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20178 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20179    { (exit 1); exit 1; }; } ;;
20180 esac
20181 else
20182   if test "$cross_compiling" = yes; then
20183   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20184 See \`config.log' for more details." >&5
20185 echo "$as_me: error: cannot run test program while cross compiling
20186 See \`config.log' for more details." >&2;}
20187    { (exit 1); exit 1; }; }
20188 else
20189   cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 $ac_includes_default
20196 struct { char filler; short field; } pgac_struct;
20197 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20198 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20199 #include <stdio.h>
20200 #include <stdlib.h>
20201 int
20202 main ()
20203 {
20204
20205   FILE *f = fopen ("conftest.val", "w");
20206   if (! f)
20207     exit (1);
20208   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20209     {
20210       long i = longval ();
20211       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20212         exit (1);
20213       fprintf (f, "%ld\n", i);
20214     }
20215   else
20216     {
20217       unsigned long i = ulongval ();
20218       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20219         exit (1);
20220       fprintf (f, "%lu\n", i);
20221     }
20222   exit (ferror (f) || fclose (f) != 0);
20223
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest$ac_exeext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230   (eval $ac_link) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235   (eval $ac_try) 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   pgac_cv_alignof_short=`cat conftest.val`
20240 else
20241   echo "$as_me: program exited with status $ac_status" >&5
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ( exit $ac_status )
20246 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20247 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20248    { (exit 1); exit 1; }; }
20249 fi
20250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20251 fi
20252 fi
20253 rm -f conftest.val
20254 else
20255   pgac_cv_alignof_short=0
20256 fi
20257 fi
20258 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
20259 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
20260 cat >>confdefs.h <<_ACEOF
20261 #define ALIGNOF_SHORT $pgac_cv_alignof_short
20262 _ACEOF
20263
20264
20265 echo "$as_me:$LINENO: checking for int" >&5
20266 echo $ECHO_N "checking for int... $ECHO_C" >&6
20267 if test "${ac_cv_type_int+set}" = set; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276 $ac_includes_default
20277 int
20278 main ()
20279 {
20280 if ((int *) 0)
20281   return 0;
20282 if (sizeof (int))
20283   return 0;
20284   ;
20285   return 0;
20286 }
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20290   (eval $ac_compile) 2>conftest.er1
20291   ac_status=$?
20292   grep -v '^ *+' conftest.er1 >conftest.err
20293   rm -f conftest.er1
20294   cat conftest.err >&5
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); } &&
20297          { ac_try='test -z "$ac_c_werror_flag"
20298                          || test ! -s conftest.err'
20299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300   (eval $ac_try) 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); }; } &&
20304          { ac_try='test -s conftest.$ac_objext'
20305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306   (eval $ac_try) 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_type_int=yes
20311 else
20312   echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ac_cv_type_int=no
20316 fi
20317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318 fi
20319 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20320 echo "${ECHO_T}$ac_cv_type_int" >&6
20321
20322 echo "$as_me:$LINENO: checking alignment of int" >&5
20323 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
20324 if test "${pgac_cv_alignof_int+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327   if test "$ac_cv_type_int" = yes; then
20328   if test "$cross_compiling" = yes; then
20329   # Depending upon the size, compute the lo and hi bounds.
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 $ac_includes_default
20337 struct { char filler; int field; } pgac_struct;
20338 int
20339 main ()
20340 {
20341 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20342 test_array [0] = 0
20343
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350   (eval $ac_compile) 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } &&
20357          { ac_try='test -z "$ac_c_werror_flag"
20358                          || test ! -s conftest.err'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } &&
20364          { ac_try='test -s conftest.$ac_objext'
20365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366   (eval $ac_try) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370   ac_lo=0 ac_mid=0
20371   while :; do
20372     cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h.  */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h.  */
20378 $ac_includes_default
20379 struct { char filler; int field; } pgac_struct;
20380 int
20381 main ()
20382 {
20383 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20384 test_array [0] = 0
20385
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392   (eval $ac_compile) 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } &&
20399          { ac_try='test -z "$ac_c_werror_flag"
20400                          || test ! -s conftest.err'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest.$ac_objext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   ac_hi=$ac_mid; break
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ac_lo=`expr $ac_mid + 1`
20418                     if test $ac_lo -le $ac_mid; then
20419                       ac_lo= ac_hi=
20420                       break
20421                     fi
20422                     ac_mid=`expr 2 '*' $ac_mid + 1`
20423 fi
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425   done
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436 $ac_includes_default
20437 struct { char filler; int field; } pgac_struct;
20438 int
20439 main ()
20440 {
20441 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20442 test_array [0] = 0
20443
20444   ;
20445   return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450   (eval $ac_compile) 2>conftest.er1
20451   ac_status=$?
20452   grep -v '^ *+' conftest.er1 >conftest.err
20453   rm -f conftest.er1
20454   cat conftest.err >&5
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } &&
20457          { ac_try='test -z "$ac_c_werror_flag"
20458                          || test ! -s conftest.err'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; } &&
20464          { ac_try='test -s conftest.$ac_objext'
20465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466   (eval $ac_try) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; }; then
20470   ac_hi=-1 ac_mid=-1
20471   while :; do
20472     cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 $ac_includes_default
20479 struct { char filler; int field; } pgac_struct;
20480 int
20481 main ()
20482 {
20483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20484 test_array [0] = 0
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492   (eval $ac_compile) 2>conftest.er1
20493   ac_status=$?
20494   grep -v '^ *+' conftest.er1 >conftest.err
20495   rm -f conftest.er1
20496   cat conftest.err >&5
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } &&
20499          { ac_try='test -z "$ac_c_werror_flag"
20500                          || test ! -s conftest.err'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; } &&
20506          { ac_try='test -s conftest.$ac_objext'
20507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508   (eval $ac_try) 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); }; }; then
20512   ac_lo=$ac_mid; break
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ac_hi=`expr '(' $ac_mid ')' - 1`
20518                        if test $ac_mid -le $ac_hi; then
20519                          ac_lo= ac_hi=
20520                          break
20521                        fi
20522                        ac_mid=`expr 2 '*' $ac_mid`
20523 fi
20524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20525   done
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_lo= ac_hi=
20531 fi
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 fi
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20535 # Binary search between lo and hi bounds.
20536 while test "x$ac_lo" != "x$ac_hi"; do
20537   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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; int field; } pgac_struct;
20546 int
20547 main ()
20548 {
20549 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20550 test_array [0] = 0
20551
20552   ;
20553   return 0;
20554 }
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20558   (eval $ac_compile) 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -z "$ac_c_werror_flag"
20566                          || test ! -s conftest.err'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; } &&
20572          { ac_try='test -s conftest.$ac_objext'
20573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574   (eval $ac_try) 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; }; then
20578   ac_hi=$ac_mid
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_lo=`expr '(' $ac_mid ')' + 1`
20584 fi
20585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20586 done
20587 case $ac_lo in
20588 ?*) pgac_cv_alignof_int=$ac_lo;;
20589 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20590 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20591    { (exit 1); exit 1; }; } ;;
20592 esac
20593 else
20594   if test "$cross_compiling" = yes; then
20595   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20596 See \`config.log' for more details." >&5
20597 echo "$as_me: error: cannot run test program while cross compiling
20598 See \`config.log' for more details." >&2;}
20599    { (exit 1); exit 1; }; }
20600 else
20601   cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 $ac_includes_default
20608 struct { char filler; int field; } pgac_struct;
20609 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20610 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20611 #include <stdio.h>
20612 #include <stdlib.h>
20613 int
20614 main ()
20615 {
20616
20617   FILE *f = fopen ("conftest.val", "w");
20618   if (! f)
20619     exit (1);
20620   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20621     {
20622       long i = longval ();
20623       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20624         exit (1);
20625       fprintf (f, "%ld\n", i);
20626     }
20627   else
20628     {
20629       unsigned long i = ulongval ();
20630       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20631         exit (1);
20632       fprintf (f, "%lu\n", i);
20633     }
20634   exit (ferror (f) || fclose (f) != 0);
20635
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest$ac_exeext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20642   (eval $ac_link) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647   (eval $ac_try) 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); }; }; then
20651   pgac_cv_alignof_int=`cat conftest.val`
20652 else
20653   echo "$as_me: program exited with status $ac_status" >&5
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 ( exit $ac_status )
20658 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20659 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20660    { (exit 1); exit 1; }; }
20661 fi
20662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663 fi
20664 fi
20665 rm -f conftest.val
20666 else
20667   pgac_cv_alignof_int=0
20668 fi
20669 fi
20670 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
20671 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
20672 cat >>confdefs.h <<_ACEOF
20673 #define ALIGNOF_INT $pgac_cv_alignof_int
20674 _ACEOF
20675
20676
20677 echo "$as_me:$LINENO: checking for long" >&5
20678 echo $ECHO_N "checking for long... $ECHO_C" >&6
20679 if test "${ac_cv_type_long+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689 int
20690 main ()
20691 {
20692 if ((long *) 0)
20693   return 0;
20694 if (sizeof (long))
20695   return 0;
20696   ;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20702   (eval $ac_compile) 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } &&
20709          { ac_try='test -z "$ac_c_werror_flag"
20710                          || test ! -s conftest.err'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; } &&
20716          { ac_try='test -s conftest.$ac_objext'
20717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718   (eval $ac_try) 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   ac_cv_type_long=yes
20723 else
20724   echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ac_cv_type_long=no
20728 fi
20729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20730 fi
20731 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20732 echo "${ECHO_T}$ac_cv_type_long" >&6
20733
20734 echo "$as_me:$LINENO: checking alignment of long" >&5
20735 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
20736 if test "${pgac_cv_alignof_long+set}" = set; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739   if test "$ac_cv_type_long" = yes; then
20740   if test "$cross_compiling" = yes; then
20741   # Depending upon the size, compute the lo and hi bounds.
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 $ac_includes_default
20749 struct { char filler; long field; } pgac_struct;
20750 int
20751 main ()
20752 {
20753 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20754 test_array [0] = 0
20755
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20762   (eval $ac_compile) 2>conftest.er1
20763   ac_status=$?
20764   grep -v '^ *+' conftest.er1 >conftest.err
20765   rm -f conftest.er1
20766   cat conftest.err >&5
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } &&
20769          { ac_try='test -z "$ac_c_werror_flag"
20770                          || test ! -s conftest.err'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; } &&
20776          { ac_try='test -s conftest.$ac_objext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   ac_lo=0 ac_mid=0
20783   while :; do
20784     cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 $ac_includes_default
20791 struct { char filler; long field; } pgac_struct;
20792 int
20793 main ()
20794 {
20795 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20796 test_array [0] = 0
20797
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804   (eval $ac_compile) 2>conftest.er1
20805   ac_status=$?
20806   grep -v '^ *+' conftest.er1 >conftest.err
20807   rm -f conftest.er1
20808   cat conftest.err >&5
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } &&
20811          { ac_try='test -z "$ac_c_werror_flag"
20812                          || test ! -s conftest.err'
20813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814   (eval $ac_try) 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; } &&
20818          { ac_try='test -s conftest.$ac_objext'
20819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820   (eval $ac_try) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; }; then
20824   ac_hi=$ac_mid; break
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829 ac_lo=`expr $ac_mid + 1`
20830                     if test $ac_lo -le $ac_mid; then
20831                       ac_lo= ac_hi=
20832                       break
20833                     fi
20834                     ac_mid=`expr 2 '*' $ac_mid + 1`
20835 fi
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837   done
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h.  */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h.  */
20848 $ac_includes_default
20849 struct { char filler; long field; } pgac_struct;
20850 int
20851 main ()
20852 {
20853 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20854 test_array [0] = 0
20855
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862   (eval $ac_compile) 2>conftest.er1
20863   ac_status=$?
20864   grep -v '^ *+' conftest.er1 >conftest.err
20865   rm -f conftest.er1
20866   cat conftest.err >&5
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } &&
20869          { ac_try='test -z "$ac_c_werror_flag"
20870                          || test ! -s conftest.err'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; } &&
20876          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20882   ac_hi=-1 ac_mid=-1
20883   while :; do
20884     cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 $ac_includes_default
20891 struct { char filler; long field; } pgac_struct;
20892 int
20893 main ()
20894 {
20895 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20896 test_array [0] = 0
20897
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904   (eval $ac_compile) 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } &&
20911          { ac_try='test -z "$ac_c_werror_flag"
20912                          || test ! -s conftest.err'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; } &&
20918          { ac_try='test -s conftest.$ac_objext'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   ac_lo=$ac_mid; break
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_hi=`expr '(' $ac_mid ')' - 1`
20930                        if test $ac_mid -le $ac_hi; then
20931                          ac_lo= ac_hi=
20932                          break
20933                        fi
20934                        ac_mid=`expr 2 '*' $ac_mid`
20935 fi
20936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20937   done
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 ac_lo= ac_hi=
20943 fi
20944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20945 fi
20946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20947 # Binary search between lo and hi bounds.
20948 while test "x$ac_lo" != "x$ac_hi"; do
20949   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20950   cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 $ac_includes_default
20957 struct { char filler; long field; } pgac_struct;
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970   (eval $ac_compile) 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_c_werror_flag"
20978                          || test ! -s conftest.err'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest.$ac_objext'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; }; then
20990   ac_hi=$ac_mid
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_lo=`expr '(' $ac_mid ')' + 1`
20996 fi
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20998 done
20999 case $ac_lo in
21000 ?*) pgac_cv_alignof_long=$ac_lo;;
21001 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21002 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21003    { (exit 1); exit 1; }; } ;;
21004 esac
21005 else
21006   if test "$cross_compiling" = yes; then
21007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21008 See \`config.log' for more details." >&5
21009 echo "$as_me: error: cannot run test program while cross compiling
21010 See \`config.log' for more details." >&2;}
21011    { (exit 1); exit 1; }; }
21012 else
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 $ac_includes_default
21020 struct { char filler; long field; } pgac_struct;
21021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21023 #include <stdio.h>
21024 #include <stdlib.h>
21025 int
21026 main ()
21027 {
21028
21029   FILE *f = fopen ("conftest.val", "w");
21030   if (! f)
21031     exit (1);
21032   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21033     {
21034       long i = longval ();
21035       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21036         exit (1);
21037       fprintf (f, "%ld\n", i);
21038     }
21039   else
21040     {
21041       unsigned long i = ulongval ();
21042       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21043         exit (1);
21044       fprintf (f, "%lu\n", i);
21045     }
21046   exit (ferror (f) || fclose (f) != 0);
21047
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest$ac_exeext
21053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21054   (eval $ac_link) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059   (eval $ac_try) 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); }; }; then
21063   pgac_cv_alignof_long=`cat conftest.val`
21064 else
21065   echo "$as_me: program exited with status $ac_status" >&5
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 ( exit $ac_status )
21070 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21071 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21072    { (exit 1); exit 1; }; }
21073 fi
21074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21075 fi
21076 fi
21077 rm -f conftest.val
21078 else
21079   pgac_cv_alignof_long=0
21080 fi
21081 fi
21082 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21083 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21084 cat >>confdefs.h <<_ACEOF
21085 #define ALIGNOF_LONG $pgac_cv_alignof_long
21086 _ACEOF
21087
21088
21089 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21090   echo "$as_me:$LINENO: checking for long long int" >&5
21091 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21092 if test "${ac_cv_type_long_long_int+set}" = set; then
21093   echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095   cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h.  */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h.  */
21101 $ac_includes_default
21102 int
21103 main ()
21104 {
21105 if ((long long int *) 0)
21106   return 0;
21107 if (sizeof (long long int))
21108   return 0;
21109   ;
21110   return 0;
21111 }
21112 _ACEOF
21113 rm -f conftest.$ac_objext
21114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21115   (eval $ac_compile) 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } &&
21122          { ac_try='test -z "$ac_c_werror_flag"
21123                          || test ! -s conftest.err'
21124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125   (eval $ac_try) 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); }; } &&
21129          { ac_try='test -s conftest.$ac_objext'
21130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131   (eval $ac_try) 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ac_cv_type_long_long_int=yes
21136 else
21137   echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 ac_cv_type_long_long_int=no
21141 fi
21142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21143 fi
21144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21145 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21146
21147 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21148 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21149 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   if test "$ac_cv_type_long_long_int" = yes; then
21153   if test "$cross_compiling" = yes; then
21154   # Depending upon the size, compute the lo and hi bounds.
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 $ac_includes_default
21162 struct { char filler; long long int field; } pgac_struct;
21163 int
21164 main ()
21165 {
21166 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21167 test_array [0] = 0
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175   (eval $ac_compile) 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } &&
21182          { ac_try='test -z "$ac_c_werror_flag"
21183                          || test ! -s conftest.err'
21184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185   (eval $ac_try) 2>&5
21186   ac_status=$?
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); }; } &&
21189          { ac_try='test -s conftest.$ac_objext'
21190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191   (eval $ac_try) 2>&5
21192   ac_status=$?
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); }; }; then
21195   ac_lo=0 ac_mid=0
21196   while :; do
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 $ac_includes_default
21204 struct { char filler; long long int field; } pgac_struct;
21205 int
21206 main ()
21207 {
21208 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21209 test_array [0] = 0
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21217   (eval $ac_compile) 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } &&
21224          { ac_try='test -z "$ac_c_werror_flag"
21225                          || test ! -s conftest.err'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest.$ac_objext'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   ac_hi=$ac_mid; break
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242 ac_lo=`expr $ac_mid + 1`
21243                     if test $ac_lo -le $ac_mid; then
21244                       ac_lo= ac_hi=
21245                       break
21246                     fi
21247                     ac_mid=`expr 2 '*' $ac_mid + 1`
21248 fi
21249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21250   done
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261 $ac_includes_default
21262 struct { char filler; long long int field; } pgac_struct;
21263 int
21264 main ()
21265 {
21266 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21267 test_array [0] = 0
21268
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275   (eval $ac_compile) 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } &&
21282          { ac_try='test -z "$ac_c_werror_flag"
21283                          || test ! -s conftest.err'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; } &&
21289          { ac_try='test -s conftest.$ac_objext'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; }; then
21295   ac_hi=-1 ac_mid=-1
21296   while :; do
21297     cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 $ac_includes_default
21304 struct { char filler; long long int field; } pgac_struct;
21305 int
21306 main ()
21307 {
21308 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21309 test_array [0] = 0
21310
21311   ;
21312   return 0;
21313 }
21314 _ACEOF
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317   (eval $ac_compile) 2>conftest.er1
21318   ac_status=$?
21319   grep -v '^ *+' conftest.er1 >conftest.err
21320   rm -f conftest.er1
21321   cat conftest.err >&5
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } &&
21324          { ac_try='test -z "$ac_c_werror_flag"
21325                          || test ! -s conftest.err'
21326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327   (eval $ac_try) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); }; } &&
21331          { ac_try='test -s conftest.$ac_objext'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; }; then
21337   ac_lo=$ac_mid; break
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 ac_hi=`expr '(' $ac_mid ')' - 1`
21343                        if test $ac_mid -le $ac_hi; then
21344                          ac_lo= ac_hi=
21345                          break
21346                        fi
21347                        ac_mid=`expr 2 '*' $ac_mid`
21348 fi
21349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21350   done
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355 ac_lo= ac_hi=
21356 fi
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21358 fi
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21360 # Binary search between lo and hi bounds.
21361 while test "x$ac_lo" != "x$ac_hi"; do
21362   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21363   cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 $ac_includes_default
21370 struct { char filler; long long int field; } pgac_struct;
21371 int
21372 main ()
21373 {
21374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21375 test_array [0] = 0
21376
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 rm -f conftest.$ac_objext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21383   (eval $ac_compile) 2>conftest.er1
21384   ac_status=$?
21385   grep -v '^ *+' conftest.er1 >conftest.err
21386   rm -f conftest.er1
21387   cat conftest.err >&5
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); } &&
21390          { ac_try='test -z "$ac_c_werror_flag"
21391                          || test ! -s conftest.err'
21392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393   (eval $ac_try) 2>&5
21394   ac_status=$?
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); }; } &&
21397          { ac_try='test -s conftest.$ac_objext'
21398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399   (eval $ac_try) 2>&5
21400   ac_status=$?
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); }; }; then
21403   ac_hi=$ac_mid
21404 else
21405   echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 ac_lo=`expr '(' $ac_mid ')' + 1`
21409 fi
21410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21411 done
21412 case $ac_lo in
21413 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
21414 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
21415 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
21416    { (exit 1); exit 1; }; } ;;
21417 esac
21418 else
21419   if test "$cross_compiling" = yes; then
21420   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21421 See \`config.log' for more details." >&5
21422 echo "$as_me: error: cannot run test program while cross compiling
21423 See \`config.log' for more details." >&2;}
21424    { (exit 1); exit 1; }; }
21425 else
21426   cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 $ac_includes_default
21433 struct { char filler; long long int field; } pgac_struct;
21434 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21435 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21436 #include <stdio.h>
21437 #include <stdlib.h>
21438 int
21439 main ()
21440 {
21441
21442   FILE *f = fopen ("conftest.val", "w");
21443   if (! f)
21444     exit (1);
21445   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21446     {
21447       long i = longval ();
21448       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21449         exit (1);
21450       fprintf (f, "%ld\n", i);
21451     }
21452   else
21453     {
21454       unsigned long i = ulongval ();
21455       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21456         exit (1);
21457       fprintf (f, "%lu\n", i);
21458     }
21459   exit (ferror (f) || fclose (f) != 0);
21460
21461   ;
21462   return 0;
21463 }
21464 _ACEOF
21465 rm -f conftest$ac_exeext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21467   (eval $ac_link) 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472   (eval $ac_try) 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476   pgac_cv_alignof_long_long_int=`cat conftest.val`
21477 else
21478   echo "$as_me: program exited with status $ac_status" >&5
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 ( exit $ac_status )
21483 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
21484 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
21485    { (exit 1); exit 1; }; }
21486 fi
21487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21488 fi
21489 fi
21490 rm -f conftest.val
21491 else
21492   pgac_cv_alignof_long_long_int=0
21493 fi
21494 fi
21495 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
21496 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
21497 cat >>confdefs.h <<_ACEOF
21498 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
21499 _ACEOF
21500
21501
21502 fi
21503 echo "$as_me:$LINENO: checking for double" >&5
21504 echo $ECHO_N "checking for double... $ECHO_C" >&6
21505 if test "${ac_cv_type_double+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 $ac_includes_default
21515 int
21516 main ()
21517 {
21518 if ((double *) 0)
21519   return 0;
21520 if (sizeof (double))
21521   return 0;
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528   (eval $ac_compile) 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_c_werror_flag"
21536                          || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest.$ac_objext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ac_cv_type_double=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_cv_type_double=no
21554 fi
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 fi
21557 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
21558 echo "${ECHO_T}$ac_cv_type_double" >&6
21559
21560 echo "$as_me:$LINENO: checking alignment of double" >&5
21561 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
21562 if test "${pgac_cv_alignof_double+set}" = set; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565   if test "$ac_cv_type_double" = yes; then
21566   if test "$cross_compiling" = yes; then
21567   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
21575 struct { char filler; double field; } pgac_struct;
21576 int
21577 main ()
21578 {
21579 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21580 test_array [0] = 0
21581
21582   ;
21583   return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21588   (eval $ac_compile) 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } &&
21595          { ac_try='test -z "$ac_c_werror_flag"
21596                          || test ! -s conftest.err'
21597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598   (eval $ac_try) 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); }; } &&
21602          { ac_try='test -s conftest.$ac_objext'
21603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604   (eval $ac_try) 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); }; }; then
21608   ac_lo=0 ac_mid=0
21609   while :; do
21610     cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 $ac_includes_default
21617 struct { char filler; double field; } pgac_struct;
21618 int
21619 main ()
21620 {
21621 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21622 test_array [0] = 0
21623
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21630   (eval $ac_compile) 2>conftest.er1
21631   ac_status=$?
21632   grep -v '^ *+' conftest.er1 >conftest.err
21633   rm -f conftest.er1
21634   cat conftest.err >&5
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } &&
21637          { ac_try='test -z "$ac_c_werror_flag"
21638                          || test ! -s conftest.err'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; } &&
21644          { ac_try='test -s conftest.$ac_objext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_hi=$ac_mid; break
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_lo=`expr $ac_mid + 1`
21656                     if test $ac_lo -le $ac_mid; then
21657                       ac_lo= ac_hi=
21658                       break
21659                     fi
21660                     ac_mid=`expr 2 '*' $ac_mid + 1`
21661 fi
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21663   done
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 $ac_includes_default
21675 struct { char filler; double field; } pgac_struct;
21676 int
21677 main ()
21678 {
21679 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21680 test_array [0] = 0
21681
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688   (eval $ac_compile) 2>conftest.er1
21689   ac_status=$?
21690   grep -v '^ *+' conftest.er1 >conftest.err
21691   rm -f conftest.er1
21692   cat conftest.err >&5
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); } &&
21695          { ac_try='test -z "$ac_c_werror_flag"
21696                          || test ! -s conftest.err'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; } &&
21702          { ac_try='test -s conftest.$ac_objext'
21703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); }; }; then
21708   ac_hi=-1 ac_mid=-1
21709   while :; do
21710     cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 $ac_includes_default
21717 struct { char filler; double field; } pgac_struct;
21718 int
21719 main ()
21720 {
21721 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21722 test_array [0] = 0
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730   (eval $ac_compile) 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } &&
21737          { ac_try='test -z "$ac_c_werror_flag"
21738                          || test ! -s conftest.err'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; } &&
21744          { ac_try='test -s conftest.$ac_objext'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }; then
21750   ac_lo=$ac_mid; break
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ac_hi=`expr '(' $ac_mid ')' - 1`
21756                        if test $ac_mid -le $ac_hi; then
21757                          ac_lo= ac_hi=
21758                          break
21759                        fi
21760                        ac_mid=`expr 2 '*' $ac_mid`
21761 fi
21762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21763   done
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 ac_lo= ac_hi=
21769 fi
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771 fi
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 # Binary search between lo and hi bounds.
21774 while test "x$ac_lo" != "x$ac_hi"; do
21775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21776   cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 $ac_includes_default
21783 struct { char filler; double field; } pgac_struct;
21784 int
21785 main ()
21786 {
21787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21788 test_array [0] = 0
21789
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796   (eval $ac_compile) 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } &&
21803          { ac_try='test -z "$ac_c_werror_flag"
21804                          || test ! -s conftest.err'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; } &&
21810          { ac_try='test -s conftest.$ac_objext'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; }; then
21816   ac_hi=$ac_mid
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 ac_lo=`expr '(' $ac_mid ')' + 1`
21822 fi
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21824 done
21825 case $ac_lo in
21826 ?*) pgac_cv_alignof_double=$ac_lo;;
21827 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21828 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21829    { (exit 1); exit 1; }; } ;;
21830 esac
21831 else
21832   if test "$cross_compiling" = yes; then
21833   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21834 See \`config.log' for more details." >&5
21835 echo "$as_me: error: cannot run test program while cross compiling
21836 See \`config.log' for more details." >&2;}
21837    { (exit 1); exit 1; }; }
21838 else
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 $ac_includes_default
21846 struct { char filler; double field; } pgac_struct;
21847 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21848 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21849 #include <stdio.h>
21850 #include <stdlib.h>
21851 int
21852 main ()
21853 {
21854
21855   FILE *f = fopen ("conftest.val", "w");
21856   if (! f)
21857     exit (1);
21858   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21859     {
21860       long i = longval ();
21861       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21862         exit (1);
21863       fprintf (f, "%ld\n", i);
21864     }
21865   else
21866     {
21867       unsigned long i = ulongval ();
21868       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21869         exit (1);
21870       fprintf (f, "%lu\n", i);
21871     }
21872   exit (ferror (f) || fclose (f) != 0);
21873
21874   ;
21875   return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest$ac_exeext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880   (eval $ac_link) 2>&5
21881   ac_status=$?
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885   (eval $ac_try) 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; }; then
21889   pgac_cv_alignof_double=`cat conftest.val`
21890 else
21891   echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 ( exit $ac_status )
21896 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21897 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21898    { (exit 1); exit 1; }; }
21899 fi
21900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21901 fi
21902 fi
21903 rm -f conftest.val
21904 else
21905   pgac_cv_alignof_double=0
21906 fi
21907 fi
21908 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
21909 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
21910 cat >>confdefs.h <<_ACEOF
21911 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
21912 _ACEOF
21913
21914
21915
21916 # Compute maximum alignment of any basic type.
21917 # We assume long's alignment is at least as strong as char, short, or int;
21918 # but we must check long long (if it exists) and double.
21919
21920 MAX_ALIGNOF=$pgac_cv_alignof_long
21921 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
21922   MAX_ALIGNOF=$pgac_cv_alignof_double
21923 fi
21924 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
21925   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
21926 fi
21927
21928 cat >>confdefs.h <<_ACEOF
21929 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
21930 _ACEOF
21931
21932
21933
21934 # Some platforms predefine the types int8, int16, etc.  Only check
21935 # a (hopefully) representative subset.
21936 echo "$as_me:$LINENO: checking for int8" >&5
21937 echo $ECHO_N "checking for int8... $ECHO_C" >&6
21938 if test "${ac_cv_type_int8+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941   cat >conftest.$ac_ext <<_ACEOF
21942 /* confdefs.h.  */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h.  */
21947 #include <stdio.h>
21948 #ifdef HAVE_SUPPORTDEFS_H
21949 #include <SupportDefs.h>
21950 #endif
21951
21952 int
21953 main ()
21954 {
21955 if ((int8 *) 0)
21956   return 0;
21957 if (sizeof (int8))
21958   return 0;
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965   (eval $ac_compile) 2>conftest.er1
21966   ac_status=$?
21967   grep -v '^ *+' conftest.er1 >conftest.err
21968   rm -f conftest.er1
21969   cat conftest.err >&5
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); } &&
21972          { ac_try='test -z "$ac_c_werror_flag"
21973                          || test ! -s conftest.err'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; } &&
21979          { ac_try='test -s conftest.$ac_objext'
21980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981   (eval $ac_try) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; }; then
21985   ac_cv_type_int8=yes
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 ac_cv_type_int8=no
21991 fi
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21993 fi
21994 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
21995 echo "${ECHO_T}$ac_cv_type_int8" >&6
21996 if test $ac_cv_type_int8 = yes; then
21997
21998 cat >>confdefs.h <<_ACEOF
21999 #define HAVE_INT8 1
22000 _ACEOF
22001
22002
22003 fi
22004 echo "$as_me:$LINENO: checking for uint8" >&5
22005 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22006 if test "${ac_cv_type_uint8+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 #include <stdio.h>
22016 #ifdef HAVE_SUPPORTDEFS_H
22017 #include <SupportDefs.h>
22018 #endif
22019
22020 int
22021 main ()
22022 {
22023 if ((uint8 *) 0)
22024   return 0;
22025 if (sizeof (uint8))
22026   return 0;
22027   ;
22028   return 0;
22029 }
22030 _ACEOF
22031 rm -f conftest.$ac_objext
22032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22033   (eval $ac_compile) 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } &&
22040          { ac_try='test -z "$ac_c_werror_flag"
22041                          || test ! -s conftest.err'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; } &&
22047          { ac_try='test -s conftest.$ac_objext'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; }; then
22053   ac_cv_type_uint8=yes
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ac_cv_type_uint8=no
22059 fi
22060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22061 fi
22062 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22063 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22064 if test $ac_cv_type_uint8 = yes; then
22065
22066 cat >>confdefs.h <<_ACEOF
22067 #define HAVE_UINT8 1
22068 _ACEOF
22069
22070
22071 fi
22072 echo "$as_me:$LINENO: checking for int64" >&5
22073 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22074 if test "${ac_cv_type_int64+set}" = set; then
22075   echo $ECHO_N "(cached) $ECHO_C" >&6
22076 else
22077   cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083 #include <stdio.h>
22084 #ifdef HAVE_SUPPORTDEFS_H
22085 #include <SupportDefs.h>
22086 #endif
22087
22088 int
22089 main ()
22090 {
22091 if ((int64 *) 0)
22092   return 0;
22093 if (sizeof (int64))
22094   return 0;
22095   ;
22096   return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22101   (eval $ac_compile) 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } &&
22108          { ac_try='test -z "$ac_c_werror_flag"
22109                          || test ! -s conftest.err'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; } &&
22115          { ac_try='test -s conftest.$ac_objext'
22116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; }; then
22121   ac_cv_type_int64=yes
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 ac_cv_type_int64=no
22127 fi
22128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22129 fi
22130 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22131 echo "${ECHO_T}$ac_cv_type_int64" >&6
22132 if test $ac_cv_type_int64 = yes; then
22133
22134 cat >>confdefs.h <<_ACEOF
22135 #define HAVE_INT64 1
22136 _ACEOF
22137
22138
22139 fi
22140 echo "$as_me:$LINENO: checking for uint64" >&5
22141 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22142 if test "${ac_cv_type_uint64+set}" = set; then
22143   echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145   cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 #include <stdio.h>
22152 #ifdef HAVE_SUPPORTDEFS_H
22153 #include <SupportDefs.h>
22154 #endif
22155
22156 int
22157 main ()
22158 {
22159 if ((uint64 *) 0)
22160   return 0;
22161 if (sizeof (uint64))
22162   return 0;
22163   ;
22164   return 0;
22165 }
22166 _ACEOF
22167 rm -f conftest.$ac_objext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22169   (eval $ac_compile) 2>conftest.er1
22170   ac_status=$?
22171   grep -v '^ *+' conftest.er1 >conftest.err
22172   rm -f conftest.er1
22173   cat conftest.err >&5
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); } &&
22176          { ac_try='test -z "$ac_c_werror_flag"
22177                          || test ! -s conftest.err'
22178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179   (eval $ac_try) 2>&5
22180   ac_status=$?
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); }; } &&
22183          { ac_try='test -s conftest.$ac_objext'
22184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185   (eval $ac_try) 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); }; }; then
22189   ac_cv_type_uint64=yes
22190 else
22191   echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22193
22194 ac_cv_type_uint64=no
22195 fi
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22197 fi
22198 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22199 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22200 if test $ac_cv_type_uint64 = yes; then
22201
22202 cat >>confdefs.h <<_ACEOF
22203 #define HAVE_UINT64 1
22204 _ACEOF
22205
22206
22207 fi
22208
22209
22210 # We also check for sig_atomic_t, which *should* be defined per ANSI
22211 # C, but is missing on some old platforms.
22212 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22213 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22214 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h.  */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h.  */
22223 #include <signal.h>
22224
22225 int
22226 main ()
22227 {
22228 if ((sig_atomic_t *) 0)
22229   return 0;
22230 if (sizeof (sig_atomic_t))
22231   return 0;
22232   ;
22233   return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238   (eval $ac_compile) 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } &&
22245          { ac_try='test -z "$ac_c_werror_flag"
22246                          || test ! -s conftest.err'
22247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248   (eval $ac_try) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); }; } &&
22252          { ac_try='test -s conftest.$ac_objext'
22253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254   (eval $ac_try) 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; }; then
22258   ac_cv_type_sig_atomic_t=yes
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ac_cv_type_sig_atomic_t=no
22264 fi
22265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22266 fi
22267 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22268 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22269 if test $ac_cv_type_sig_atomic_t = yes; then
22270
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_SIG_ATOMIC_T 1
22273 _ACEOF
22274
22275
22276 fi
22277
22278
22279
22280 if test "$PORTNAME" != "win32"
22281 then
22282 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
22283 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
22284 if test "${pgac_cv_func_posix_signals+set}" = set; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h.  */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h.  */
22293 #include <signal.h>
22294
22295 int
22296 main ()
22297 {
22298 struct sigaction act, oact;
22299 sigemptyset(&act.sa_mask);
22300 act.sa_flags = SA_RESTART;
22301 sigaction(0, &act, &oact);
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308   (eval $ac_link) 2>conftest.er1
22309   ac_status=$?
22310   grep -v '^ *+' conftest.er1 >conftest.err
22311   rm -f conftest.er1
22312   cat conftest.err >&5
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -z "$ac_c_werror_flag"
22316                          || test ! -s conftest.err'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; } &&
22322          { ac_try='test -s conftest$ac_exeext'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   pgac_cv_func_posix_signals=yes
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333 pgac_cv_func_posix_signals=no
22334 fi
22335 rm -f conftest.err conftest.$ac_objext \
22336       conftest$ac_exeext conftest.$ac_ext
22337 fi
22338 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
22339 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
22340 if test x"$pgac_cv_func_posix_signals" = xyes ; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_POSIX_SIGNALS
22344 _ACEOF
22345
22346 fi
22347 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
22348
22349 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
22350   { { echo "$as_me:$LINENO: error:
22351 Thread-safety requires POSIX signals, which are not supported by this
22352 operating system." >&5
22353 echo "$as_me: error:
22354 Thread-safety requires POSIX signals, which are not supported by this
22355 operating system." >&2;}
22356    { (exit 1); exit 1; }; }
22357 fi
22358 fi
22359
22360 if test $ac_cv_func_fseeko = yes; then
22361 # Check whether --enable-largefile or --disable-largefile was given.
22362 if test "${enable_largefile+set}" = set; then
22363   enableval="$enable_largefile"
22364
22365 fi;
22366 if test "$enable_largefile" != no; then
22367
22368   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22369 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
22370 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   ac_cv_sys_largefile_CC=no
22374      if test "$GCC" != yes; then
22375        ac_save_CC=$CC
22376        while :; do
22377          # IRIX 6.2 and later do not support large files by default,
22378          # so use the C compiler's -n32 option if that helps.
22379          cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h.  */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h.  */
22385 #include <sys/types.h>
22386  /* Check that off_t can represent 2**63 - 1 correctly.
22387     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22388     since some C++ compilers masquerading as C compilers
22389     incorrectly reject 9223372036854775807.  */
22390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22391   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22392                        && LARGE_OFF_T % 2147483647 == 1)
22393                       ? 1 : -1];
22394 int
22395 main ()
22396 {
22397
22398   ;
22399   return 0;
22400 }
22401 _ACEOF
22402          rm -f conftest.$ac_objext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22404   (eval $ac_compile) 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } &&
22411          { ac_try='test -z "$ac_c_werror_flag"
22412                          || test ! -s conftest.err'
22413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414   (eval $ac_try) 2>&5
22415   ac_status=$?
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); }; } &&
22418          { ac_try='test -s conftest.$ac_objext'
22419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420   (eval $ac_try) 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; }; then
22424   break
22425 else
22426   echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429 fi
22430 rm -f conftest.err conftest.$ac_objext
22431          CC="$CC -n32"
22432          rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434   (eval $ac_compile) 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } &&
22441          { ac_try='test -z "$ac_c_werror_flag"
22442                          || test ! -s conftest.err'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; } &&
22448          { ac_try='test -s conftest.$ac_objext'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; }; then
22454   ac_cv_sys_largefile_CC=' -n32'; break
22455 else
22456   echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22458
22459 fi
22460 rm -f conftest.err conftest.$ac_objext
22461          break
22462        done
22463        CC=$ac_save_CC
22464        rm -f conftest.$ac_ext
22465     fi
22466 fi
22467 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22468 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
22469   if test "$ac_cv_sys_largefile_CC" != no; then
22470     CC=$CC$ac_cv_sys_largefile_CC
22471   fi
22472
22473   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22474 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22475 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   while :; do
22479   ac_cv_sys_file_offset_bits=no
22480   cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 #include <sys/types.h>
22487  /* Check that off_t can represent 2**63 - 1 correctly.
22488     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22489     since some C++ compilers masquerading as C compilers
22490     incorrectly reject 9223372036854775807.  */
22491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22492   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22493                        && LARGE_OFF_T % 2147483647 == 1)
22494                       ? 1 : -1];
22495 int
22496 main ()
22497 {
22498
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505   (eval $ac_compile) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } &&
22512          { ac_try='test -z "$ac_c_werror_flag"
22513                          || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest.$ac_objext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   break
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 fi
22531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 #define _FILE_OFFSET_BITS 64
22539 #include <sys/types.h>
22540  /* Check that off_t can represent 2**63 - 1 correctly.
22541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22542     since some C++ compilers masquerading as C compilers
22543     incorrectly reject 9223372036854775807.  */
22544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22546                        && LARGE_OFF_T % 2147483647 == 1)
22547                       ? 1 : -1];
22548 int
22549 main ()
22550 {
22551
22552   ;
22553   return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558   (eval $ac_compile) 2>conftest.er1
22559   ac_status=$?
22560   grep -v '^ *+' conftest.er1 >conftest.err
22561   rm -f conftest.er1
22562   cat conftest.err >&5
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } &&
22565          { ac_try='test -z "$ac_c_werror_flag"
22566                          || test ! -s conftest.err'
22567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568   (eval $ac_try) 2>&5
22569   ac_status=$?
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); }; } &&
22572          { ac_try='test -s conftest.$ac_objext'
22573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; }; then
22578   ac_cv_sys_file_offset_bits=64; break
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 fi
22584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22585   break
22586 done
22587 fi
22588 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22589 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22590 if test "$ac_cv_sys_file_offset_bits" != no; then
22591
22592 cat >>confdefs.h <<_ACEOF
22593 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22594 _ACEOF
22595
22596 fi
22597 rm -f conftest*
22598   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22599 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22600 if test "${ac_cv_sys_large_files+set}" = set; then
22601   echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603   while :; do
22604   ac_cv_sys_large_files=no
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 #include <sys/types.h>
22612  /* Check that off_t can represent 2**63 - 1 correctly.
22613     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22614     since some C++ compilers masquerading as C compilers
22615     incorrectly reject 9223372036854775807.  */
22616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22617   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22618                        && LARGE_OFF_T % 2147483647 == 1)
22619                       ? 1 : -1];
22620 int
22621 main ()
22622 {
22623
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 rm -f conftest.$ac_objext
22629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22630   (eval $ac_compile) 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } &&
22637          { ac_try='test -z "$ac_c_werror_flag"
22638                          || test ! -s conftest.err'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; } &&
22644          { ac_try='test -s conftest.$ac_objext'
22645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646   (eval $ac_try) 2>&5
22647   ac_status=$?
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); }; }; then
22650   break
22651 else
22652   echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655 fi
22656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22657   cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 #define _LARGE_FILES 1
22664 #include <sys/types.h>
22665  /* Check that off_t can represent 2**63 - 1 correctly.
22666     We can't simply define LARGE_OFF_T to be 9223372036854775807,
22667     since some C++ compilers masquerading as C compilers
22668     incorrectly reject 9223372036854775807.  */
22669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22670   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22671                        && LARGE_OFF_T % 2147483647 == 1)
22672                       ? 1 : -1];
22673 int
22674 main ()
22675 {
22676
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22683   (eval $ac_compile) 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } &&
22690          { ac_try='test -z "$ac_c_werror_flag"
22691                          || test ! -s conftest.err'
22692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693   (eval $ac_try) 2>&5
22694   ac_status=$?
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); }; } &&
22697          { ac_try='test -s conftest.$ac_objext'
22698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699   (eval $ac_try) 2>&5
22700   ac_status=$?
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); }; }; then
22703   ac_cv_sys_large_files=1; break
22704 else
22705   echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22707
22708 fi
22709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22710   break
22711 done
22712 fi
22713 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22714 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22715 if test "$ac_cv_sys_large_files" != no; then
22716
22717 cat >>confdefs.h <<_ACEOF
22718 #define _LARGE_FILES $ac_cv_sys_large_files
22719 _ACEOF
22720
22721 fi
22722 rm -f conftest*
22723 fi
22724
22725 fi
22726
22727 # SunOS doesn't handle negative byte comparisons properly with +/- return
22728 echo "$as_me:$LINENO: checking for working memcmp" >&5
22729 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22730 if test "${ac_cv_func_memcmp_working+set}" = set; then
22731   echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733   if test "$cross_compiling" = yes; then
22734   ac_cv_func_memcmp_working=no
22735 else
22736   cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h.  */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h.  */
22742 $ac_includes_default
22743 int
22744 main ()
22745 {
22746
22747   /* Some versions of memcmp are not 8-bit clean.  */
22748   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22749   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22750     exit (1);
22751
22752   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22753      or more and with at least one buffer not starting on a 4-byte boundary.
22754      William Lewis provided this test program.   */
22755   {
22756     char foo[21];
22757     char bar[21];
22758     int i;
22759     for (i = 0; i < 4; i++)
22760       {
22761         char *a = foo + i;
22762         char *b = bar + i;
22763         strcpy (a, "--------01111111");
22764         strcpy (b, "--------10000000");
22765         if (memcmp (a, b, 16) >= 0)
22766           exit (1);
22767       }
22768     exit (0);
22769   }
22770
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 rm -f conftest$ac_exeext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777   (eval $ac_link) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; }; then
22786   ac_cv_func_memcmp_working=yes
22787 else
22788   echo "$as_me: program exited with status $ac_status" >&5
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 ( exit $ac_status )
22793 ac_cv_func_memcmp_working=no
22794 fi
22795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22796 fi
22797 fi
22798 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22799 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22800 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22801     "memcmp.$ac_objext"   | \
22802   *" memcmp.$ac_objext"   | \
22803     "memcmp.$ac_objext "* | \
22804   *" memcmp.$ac_objext "* ) ;;
22805   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22806 esac
22807
22808
22809
22810
22811 # Select semaphore implementation type.
22812 if test "$PORTNAME" != "win32"; then
22813   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
22814
22815 cat >>confdefs.h <<\_ACEOF
22816 #define USE_NAMED_POSIX_SEMAPHORES 1
22817 _ACEOF
22818
22819     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22820   else
22821     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
22822
22823 cat >>confdefs.h <<\_ACEOF
22824 #define USE_UNNAMED_POSIX_SEMAPHORES 1
22825 _ACEOF
22826
22827       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22828     else
22829
22830 cat >>confdefs.h <<\_ACEOF
22831 #define USE_SYSV_SEMAPHORES 1
22832 _ACEOF
22833
22834       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
22835     fi
22836   fi
22837 else
22838
22839 cat >>confdefs.h <<\_ACEOF
22840 #define USE_WIN32_SEMAPHORES 1
22841 _ACEOF
22842
22843   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
22844 fi
22845
22846
22847 # Select shared-memory implementation type.
22848 if test "$PORTNAME" != "win32"; then
22849
22850 cat >>confdefs.h <<\_ACEOF
22851 #define USE_SYSV_SHARED_MEMORY 1
22852 _ACEOF
22853
22854   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
22855 else
22856
22857 cat >>confdefs.h <<\_ACEOF
22858 #define USE_WIN32_SHARED_MEMORY 1
22859 _ACEOF
22860
22861   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
22862 fi
22863
22864 # If not set in template file, set bytes to use libc memset()
22865 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
22866   MEMSET_LOOP_LIMIT=1024
22867 fi
22868
22869 cat >>confdefs.h <<_ACEOF
22870 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
22871 _ACEOF
22872
22873
22874
22875 if test "$enable_nls" = yes ; then
22876
22877   echo "$as_me:$LINENO: checking for library containing gettext" >&5
22878 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
22879 if test "${ac_cv_search_gettext+set}" = set; then
22880   echo $ECHO_N "(cached) $ECHO_C" >&6
22881 else
22882   ac_func_search_save_LIBS=$LIBS
22883 ac_cv_search_gettext=no
22884 cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890
22891 /* Override any gcc2 internal prototype to avoid an error.  */
22892 #ifdef __cplusplus
22893 extern "C"
22894 #endif
22895 /* We use char because int might match the return type of a gcc2
22896    builtin and then its argument prototype would still apply.  */
22897 char gettext ();
22898 int
22899 main ()
22900 {
22901 gettext ();
22902   ;
22903   return 0;
22904 }
22905 _ACEOF
22906 rm -f conftest.$ac_objext conftest$ac_exeext
22907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22908   (eval $ac_link) 2>conftest.er1
22909   ac_status=$?
22910   grep -v '^ *+' conftest.er1 >conftest.err
22911   rm -f conftest.er1
22912   cat conftest.err >&5
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); } &&
22915          { ac_try='test -z "$ac_c_werror_flag"
22916                          || test ! -s conftest.err'
22917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918   (eval $ac_try) 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; } &&
22922          { ac_try='test -s conftest$ac_exeext'
22923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924   (eval $ac_try) 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); }; }; then
22928   ac_cv_search_gettext="none required"
22929 else
22930   echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933 fi
22934 rm -f conftest.err conftest.$ac_objext \
22935       conftest$ac_exeext conftest.$ac_ext
22936 if test "$ac_cv_search_gettext" = no; then
22937   for ac_lib in intl; do
22938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22939     cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h.  */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h.  */
22945
22946 /* Override any gcc2 internal prototype to avoid an error.  */
22947 #ifdef __cplusplus
22948 extern "C"
22949 #endif
22950 /* We use char because int might match the return type of a gcc2
22951    builtin and then its argument prototype would still apply.  */
22952 char gettext ();
22953 int
22954 main ()
22955 {
22956 gettext ();
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963   (eval $ac_link) 2>conftest.er1
22964   ac_status=$?
22965   grep -v '^ *+' conftest.er1 >conftest.err
22966   rm -f conftest.er1
22967   cat conftest.err >&5
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } &&
22970          { ac_try='test -z "$ac_c_werror_flag"
22971                          || test ! -s conftest.err'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; } &&
22977          { ac_try='test -s conftest$ac_exeext'
22978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979   (eval $ac_try) 2>&5
22980   ac_status=$?
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); }; }; then
22983   ac_cv_search_gettext="-l$ac_lib"
22984 break
22985 else
22986   echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989 fi
22990 rm -f conftest.err conftest.$ac_objext \
22991       conftest$ac_exeext conftest.$ac_ext
22992   done
22993 fi
22994 LIBS=$ac_func_search_save_LIBS
22995 fi
22996 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22997 echo "${ECHO_T}$ac_cv_search_gettext" >&6
22998 if test "$ac_cv_search_gettext" != no; then
22999   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
23000
23001 else
23002   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23003 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23004    { (exit 1); exit 1; }; }
23005 fi
23006
23007   if test "${ac_cv_header_libintl_h+set}" = set; then
23008   echo "$as_me:$LINENO: checking for libintl.h" >&5
23009 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23010 if test "${ac_cv_header_libintl_h+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 fi
23013 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23014 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23015 else
23016   # Is the header compilable?
23017 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23018 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23019 cat >conftest.$ac_ext <<_ACEOF
23020 /* confdefs.h.  */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h.  */
23025 $ac_includes_default
23026 #include <libintl.h>
23027 _ACEOF
23028 rm -f conftest.$ac_objext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23030   (eval $ac_compile) 2>conftest.er1
23031   ac_status=$?
23032   grep -v '^ *+' conftest.er1 >conftest.err
23033   rm -f conftest.er1
23034   cat conftest.err >&5
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); } &&
23037          { ac_try='test -z "$ac_c_werror_flag"
23038                          || test ! -s conftest.err'
23039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; } &&
23044          { ac_try='test -s conftest.$ac_objext'
23045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046   (eval $ac_try) 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; }; then
23050   ac_header_compiler=yes
23051 else
23052   echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23054
23055 ac_header_compiler=no
23056 fi
23057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 echo "${ECHO_T}$ac_header_compiler" >&6
23060
23061 # Is the header present?
23062 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23063 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070 #include <libintl.h>
23071 _ACEOF
23072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } >/dev/null; then
23080   if test -s conftest.err; then
23081     ac_cpp_err=$ac_c_preproc_warn_flag
23082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23083   else
23084     ac_cpp_err=
23085   fi
23086 else
23087   ac_cpp_err=yes
23088 fi
23089 if test -z "$ac_cpp_err"; then
23090   ac_header_preproc=yes
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095   ac_header_preproc=no
23096 fi
23097 rm -f conftest.err conftest.$ac_ext
23098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6
23100
23101 # So?  What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103   yes:no: )
23104     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23108     ac_header_preproc=yes
23109     ;;
23110   no:yes:* )
23111     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23117     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23119     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23121     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23123     (
23124       cat <<\_ASBOX
23125 ## ---------------------------------------- ##
23126 ## Report this to pgsql-bugs@postgresql.org ##
23127 ## ---------------------------------------- ##
23128 _ASBOX
23129     ) |
23130       sed "s/^/$as_me: WARNING:     /" >&2
23131     ;;
23132 esac
23133 echo "$as_me:$LINENO: checking for libintl.h" >&5
23134 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23135 if test "${ac_cv_header_libintl_h+set}" = set; then
23136   echo $ECHO_N "(cached) $ECHO_C" >&6
23137 else
23138   ac_cv_header_libintl_h=$ac_header_preproc
23139 fi
23140 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23141 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23142
23143 fi
23144 if test $ac_cv_header_libintl_h = yes; then
23145   :
23146 else
23147   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23148 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23149    { (exit 1); exit 1; }; }
23150 fi
23151
23152
23153   for ac_prog in msgfmt
23154 do
23155   # Extract the first word of "$ac_prog", so it can be a program name with args.
23156 set dummy $ac_prog; ac_word=$2
23157 echo "$as_me:$LINENO: checking for $ac_word" >&5
23158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23159 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23160   echo $ECHO_N "(cached) $ECHO_C" >&6
23161 else
23162   if test -n "$MSGFMT"; then
23163   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23164 else
23165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23166 for as_dir in $PATH
23167 do
23168   IFS=$as_save_IFS
23169   test -z "$as_dir" && as_dir=.
23170   for ac_exec_ext in '' $ac_executable_extensions; do
23171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23172     ac_cv_prog_MSGFMT="$ac_prog"
23173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23174     break 2
23175   fi
23176 done
23177 done
23178
23179 fi
23180 fi
23181 MSGFMT=$ac_cv_prog_MSGFMT
23182 if test -n "$MSGFMT"; then
23183   echo "$as_me:$LINENO: result: $MSGFMT" >&5
23184 echo "${ECHO_T}$MSGFMT" >&6
23185 else
23186   echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6
23188 fi
23189
23190   test -n "$MSGFMT" && break
23191 done
23192
23193   if test -z "$MSGFMT"; then
23194     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23195 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23196    { (exit 1); exit 1; }; }
23197   fi
23198   for ac_prog in msgmerge
23199 do
23200   # Extract the first word of "$ac_prog", so it can be a program name with args.
23201 set dummy $ac_prog; ac_word=$2
23202 echo "$as_me:$LINENO: checking for $ac_word" >&5
23203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23204 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207   if test -n "$MSGMERGE"; then
23208   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23209 else
23210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23211 for as_dir in $PATH
23212 do
23213   IFS=$as_save_IFS
23214   test -z "$as_dir" && as_dir=.
23215   for ac_exec_ext in '' $ac_executable_extensions; do
23216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23217     ac_cv_prog_MSGMERGE="$ac_prog"
23218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23219     break 2
23220   fi
23221 done
23222 done
23223
23224 fi
23225 fi
23226 MSGMERGE=$ac_cv_prog_MSGMERGE
23227 if test -n "$MSGMERGE"; then
23228   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23229 echo "${ECHO_T}$MSGMERGE" >&6
23230 else
23231   echo "$as_me:$LINENO: result: no" >&5
23232 echo "${ECHO_T}no" >&6
23233 fi
23234
23235   test -n "$MSGMERGE" && break
23236 done
23237
23238   for ac_prog in xgettext
23239 do
23240   # Extract the first word of "$ac_prog", so it can be a program name with args.
23241 set dummy $ac_prog; ac_word=$2
23242 echo "$as_me:$LINENO: checking for $ac_word" >&5
23243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23244 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   if test -n "$XGETTEXT"; then
23248   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23249 else
23250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23251 for as_dir in $PATH
23252 do
23253   IFS=$as_save_IFS
23254   test -z "$as_dir" && as_dir=.
23255   for ac_exec_ext in '' $ac_executable_extensions; do
23256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23257     ac_cv_prog_XGETTEXT="$ac_prog"
23258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23259     break 2
23260   fi
23261 done
23262 done
23263
23264 fi
23265 fi
23266 XGETTEXT=$ac_cv_prog_XGETTEXT
23267 if test -n "$XGETTEXT"; then
23268   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23269 echo "${ECHO_T}$XGETTEXT" >&6
23270 else
23271   echo "$as_me:$LINENO: result: no" >&5
23272 echo "${ECHO_T}no" >&6
23273 fi
23274
23275   test -n "$XGETTEXT" && break
23276 done
23277
23278
23279   # Note: share/locale is always the default, independent of $datadir
23280   localedir='${prefix}/share/locale'
23281
23282
23283 fi
23284
23285 # Check for Tcl configuration script tclConfig.sh
23286 if test "$with_tcl" = yes; then
23287     for ac_prog in tclsh tcl
23288 do
23289   # Extract the first word of "$ac_prog", so it can be a program name with args.
23290 set dummy $ac_prog; ac_word=$2
23291 echo "$as_me:$LINENO: checking for $ac_word" >&5
23292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23293 if test "${ac_cv_path_TCLSH+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   case $TCLSH in
23297   [\\/]* | ?:[\\/]*)
23298   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
23299   ;;
23300   *)
23301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302 for as_dir in $PATH
23303 do
23304   IFS=$as_save_IFS
23305   test -z "$as_dir" && as_dir=.
23306   for ac_exec_ext in '' $ac_executable_extensions; do
23307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
23309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23310     break 2
23311   fi
23312 done
23313 done
23314
23315   ;;
23316 esac
23317 fi
23318 TCLSH=$ac_cv_path_TCLSH
23319
23320 if test -n "$TCLSH"; then
23321   echo "$as_me:$LINENO: result: $TCLSH" >&5
23322 echo "${ECHO_T}$TCLSH" >&6
23323 else
23324   echo "$as_me:$LINENO: result: no" >&5
23325 echo "${ECHO_T}no" >&6
23326 fi
23327
23328   test -n "$TCLSH" && break
23329 done
23330
23331 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
23332 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
23333 # Let user override test
23334 if test -z "$TCL_CONFIG_SH"; then
23335     pgac_test_dirs="$with_tclconfig"
23336
23337     set X $pgac_test_dirs; shift
23338     if test $# -eq 0; then
23339         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
23340 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
23341    { (exit 1); exit 1; }; }
23342         set X `echo 'puts $auto_path' | $TCLSH`; shift
23343     fi
23344
23345     for pgac_dir do
23346         if test -r "$pgac_dir/tclConfig.sh"; then
23347             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
23348             break
23349         fi
23350     done
23351 fi
23352
23353 if test -z "$TCL_CONFIG_SH"; then
23354     echo "$as_me:$LINENO: result: no" >&5
23355 echo "${ECHO_T}no" >&6
23356     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
23357 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
23358    { (exit 1); exit 1; }; }
23359 else
23360     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
23361 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
23362 fi
23363
23364
23365
23366     . "$TCL_CONFIG_SH"
23367 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
23368 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
23369 eval TCL_LIBS=\"$TCL_LIBS\"
23370 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
23371 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
23372
23373         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
23374     ac_save_CPPFLAGS=$CPPFLAGS
23375     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
23376     if test "${ac_cv_header_tcl_h+set}" = set; then
23377   echo "$as_me:$LINENO: checking for tcl.h" >&5
23378 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
23379 if test "${ac_cv_header_tcl_h+set}" = set; then
23380   echo $ECHO_N "(cached) $ECHO_C" >&6
23381 fi
23382 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
23383 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
23384 else
23385   # Is the header compilable?
23386 echo "$as_me:$LINENO: checking tcl.h usability" >&5
23387 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 $ac_includes_default
23395 #include <tcl.h>
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23399   (eval $ac_compile) 2>conftest.er1
23400   ac_status=$?
23401   grep -v '^ *+' conftest.er1 >conftest.err
23402   rm -f conftest.er1
23403   cat conftest.err >&5
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); } &&
23406          { ac_try='test -z "$ac_c_werror_flag"
23407                          || test ! -s conftest.err'
23408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409   (eval $ac_try) 2>&5
23410   ac_status=$?
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); }; } &&
23413          { ac_try='test -s conftest.$ac_objext'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; }; then
23419   ac_header_compiler=yes
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424 ac_header_compiler=no
23425 fi
23426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428 echo "${ECHO_T}$ac_header_compiler" >&6
23429
23430 # Is the header present?
23431 echo "$as_me:$LINENO: checking tcl.h presence" >&5
23432 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
23433 cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h.  */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h.  */
23439 #include <tcl.h>
23440 _ACEOF
23441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23443   ac_status=$?
23444   grep -v '^ *+' conftest.er1 >conftest.err
23445   rm -f conftest.er1
23446   cat conftest.err >&5
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); } >/dev/null; then
23449   if test -s conftest.err; then
23450     ac_cpp_err=$ac_c_preproc_warn_flag
23451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23452   else
23453     ac_cpp_err=
23454   fi
23455 else
23456   ac_cpp_err=yes
23457 fi
23458 if test -z "$ac_cpp_err"; then
23459   ac_header_preproc=yes
23460 else
23461   echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464   ac_header_preproc=no
23465 fi
23466 rm -f conftest.err conftest.$ac_ext
23467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468 echo "${ECHO_T}$ac_header_preproc" >&6
23469
23470 # So?  What about this header?
23471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23472   yes:no: )
23473     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23474 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23475     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
23476 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
23477     ac_header_preproc=yes
23478     ;;
23479   no:yes:* )
23480     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
23481 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
23483 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
23485 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
23487 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
23489 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
23491 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
23492     (
23493       cat <<\_ASBOX
23494 ## ---------------------------------------- ##
23495 ## Report this to pgsql-bugs@postgresql.org ##
23496 ## ---------------------------------------- ##
23497 _ASBOX
23498     ) |
23499       sed "s/^/$as_me: WARNING:     /" >&2
23500     ;;
23501 esac
23502 echo "$as_me:$LINENO: checking for tcl.h" >&5
23503 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
23504 if test "${ac_cv_header_tcl_h+set}" = set; then
23505   echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507   ac_cv_header_tcl_h=$ac_header_preproc
23508 fi
23509 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
23510 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
23511
23512 fi
23513 if test $ac_cv_header_tcl_h = yes; then
23514   :
23515 else
23516   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
23517 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
23518    { (exit 1); exit 1; }; }
23519 fi
23520
23521
23522     CPPFLAGS=$ac_save_CPPFLAGS
23523 fi
23524
23525 #
23526 # Check for DocBook and tools
23527 #
23528 for ac_prog in onsgmls nsgmls
23529 do
23530   # Extract the first word of "$ac_prog", so it can be a program name with args.
23531 set dummy $ac_prog; ac_word=$2
23532 echo "$as_me:$LINENO: checking for $ac_word" >&5
23533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23534 if test "${ac_cv_prog_NSGMLS+set}" = set; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537   if test -n "$NSGMLS"; then
23538   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
23539 else
23540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23541 for as_dir in $PATH
23542 do
23543   IFS=$as_save_IFS
23544   test -z "$as_dir" && as_dir=.
23545   for ac_exec_ext in '' $ac_executable_extensions; do
23546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23547     ac_cv_prog_NSGMLS="$ac_prog"
23548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23549     break 2
23550   fi
23551 done
23552 done
23553
23554 fi
23555 fi
23556 NSGMLS=$ac_cv_prog_NSGMLS
23557 if test -n "$NSGMLS"; then
23558   echo "$as_me:$LINENO: result: $NSGMLS" >&5
23559 echo "${ECHO_T}$NSGMLS" >&6
23560 else
23561   echo "$as_me:$LINENO: result: no" >&5
23562 echo "${ECHO_T}no" >&6
23563 fi
23564
23565   test -n "$NSGMLS" && break
23566 done
23567
23568 for ac_prog in openjade jade
23569 do
23570   # Extract the first word of "$ac_prog", so it can be a program name with args.
23571 set dummy $ac_prog; ac_word=$2
23572 echo "$as_me:$LINENO: checking for $ac_word" >&5
23573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23574 if test "${ac_cv_prog_JADE+set}" = set; then
23575   echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577   if test -n "$JADE"; then
23578   ac_cv_prog_JADE="$JADE" # Let the user override the test.
23579 else
23580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23581 for as_dir in $PATH
23582 do
23583   IFS=$as_save_IFS
23584   test -z "$as_dir" && as_dir=.
23585   for ac_exec_ext in '' $ac_executable_extensions; do
23586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23587     ac_cv_prog_JADE="$ac_prog"
23588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23589     break 2
23590   fi
23591 done
23592 done
23593
23594 fi
23595 fi
23596 JADE=$ac_cv_prog_JADE
23597 if test -n "$JADE"; then
23598   echo "$as_me:$LINENO: result: $JADE" >&5
23599 echo "${ECHO_T}$JADE" >&6
23600 else
23601   echo "$as_me:$LINENO: result: no" >&5
23602 echo "${ECHO_T}no" >&6
23603 fi
23604
23605   test -n "$JADE" && break
23606 done
23607
23608
23609 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
23610 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
23611 if test "${pgac_cv_check_docbook+set}" = set; then
23612   echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614   cat >conftest.sgml <<EOF
23615 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
23616 <book>
23617  <title>test</title>
23618  <chapter>
23619   <title>random</title>
23620    <sect1>
23621     <title>testsect</title>
23622     <para>text</para>
23623   </sect1>
23624  </chapter>
23625 </book>
23626 EOF
23627
23628 pgac_cv_check_docbook=no
23629
23630 if test -n "$NSGMLS"; then
23631   $NSGMLS -s conftest.sgml 1>&5 2>&1
23632   if test $? -eq 0; then
23633     pgac_cv_check_docbook=yes
23634   fi
23635 fi
23636 rm -f conftest.sgml
23637 fi
23638 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
23639 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
23640
23641 have_docbook=$pgac_cv_check_docbook
23642
23643
23644 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
23645 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
23646 if test "${pgac_cv_path_stylesheets+set}" = set; then
23647   echo $ECHO_N "(cached) $ECHO_C" >&6
23648 else
23649   if test -n "$DOCBOOKSTYLE"; then
23650   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
23651 else
23652   for pgac_prefix in /usr /usr/local /opt; do
23653     for pgac_infix in share lib; do
23654       for pgac_postfix in \
23655         sgml/stylesheets/nwalsh-modular \
23656         sgml/stylesheets/docbook \
23657                 sgml/docbook-dsssl \
23658         sgml/docbook/dsssl/modular \
23659         sgml/docbook/stylesheet/dsssl/modular \
23660         sgml/docbook/dsssl-stylesheets
23661       do
23662         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
23663         if test -r "$pgac_candidate/html/docbook.dsl" \
23664            && test -r "$pgac_candidate/print/docbook.dsl"
23665         then
23666           pgac_cv_path_stylesheets=$pgac_candidate
23667           break 3
23668         fi
23669       done
23670     done
23671   done
23672 fi
23673 fi
23674
23675 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
23676
23677 if test -n "$DOCBOOKSTYLE"; then
23678   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
23679 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
23680 else
23681   echo "$as_me:$LINENO: result: no" >&5
23682 echo "${ECHO_T}no" >&6
23683 fi
23684 if test -n "$DOCBOOKSTYLE"; then
23685   for ac_prog in collateindex.pl
23686 do
23687   # Extract the first word of "$ac_prog", so it can be a program name with args.
23688 set dummy $ac_prog; ac_word=$2
23689 echo "$as_me:$LINENO: checking for $ac_word" >&5
23690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23691 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23692   echo $ECHO_N "(cached) $ECHO_C" >&6
23693 else
23694   case $COLLATEINDEX in
23695   [\\/]* | ?:[\\/]*)
23696   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23697   ;;
23698   *)
23699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23700 for as_dir in $DOCBOOKSTYLE/bin $PATH
23701 do
23702   IFS=$as_save_IFS
23703   test -z "$as_dir" && as_dir=.
23704   for ac_exec_ext in '' $ac_executable_extensions; do
23705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23706     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23708     break 2
23709   fi
23710 done
23711 done
23712
23713   ;;
23714 esac
23715 fi
23716 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23717
23718 if test -n "$COLLATEINDEX"; then
23719   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23720 echo "${ECHO_T}$COLLATEINDEX" >&6
23721 else
23722   echo "$as_me:$LINENO: result: no" >&5
23723 echo "${ECHO_T}no" >&6
23724 fi
23725
23726   test -n "$COLLATEINDEX" && break
23727 done
23728
23729 else
23730   for ac_prog in collateindex.pl
23731 do
23732   # Extract the first word of "$ac_prog", so it can be a program name with args.
23733 set dummy $ac_prog; ac_word=$2
23734 echo "$as_me:$LINENO: checking for $ac_word" >&5
23735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23736 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23737   echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739   case $COLLATEINDEX in
23740   [\\/]* | ?:[\\/]*)
23741   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23742   ;;
23743   *)
23744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23745 for as_dir in $PATH
23746 do
23747   IFS=$as_save_IFS
23748   test -z "$as_dir" && as_dir=.
23749   for ac_exec_ext in '' $ac_executable_extensions; do
23750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23751     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23753     break 2
23754   fi
23755 done
23756 done
23757
23758   ;;
23759 esac
23760 fi
23761 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23762
23763 if test -n "$COLLATEINDEX"; then
23764   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23765 echo "${ECHO_T}$COLLATEINDEX" >&6
23766 else
23767   echo "$as_me:$LINENO: result: no" >&5
23768 echo "${ECHO_T}no" >&6
23769 fi
23770
23771   test -n "$COLLATEINDEX" && break
23772 done
23773
23774 fi
23775 for ac_prog in sgmlspl
23776 do
23777   # Extract the first word of "$ac_prog", so it can be a program name with args.
23778 set dummy $ac_prog; ac_word=$2
23779 echo "$as_me:$LINENO: checking for $ac_word" >&5
23780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23781 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784   if test -n "$SGMLSPL"; then
23785   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
23786 else
23787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23788 for as_dir in $PATH
23789 do
23790   IFS=$as_save_IFS
23791   test -z "$as_dir" && as_dir=.
23792   for ac_exec_ext in '' $ac_executable_extensions; do
23793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23794     ac_cv_prog_SGMLSPL="$ac_prog"
23795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23796     break 2
23797   fi
23798 done
23799 done
23800
23801 fi
23802 fi
23803 SGMLSPL=$ac_cv_prog_SGMLSPL
23804 if test -n "$SGMLSPL"; then
23805   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
23806 echo "${ECHO_T}$SGMLSPL" >&6
23807 else
23808   echo "$as_me:$LINENO: result: no" >&5
23809 echo "${ECHO_T}no" >&6
23810 fi
23811
23812   test -n "$SGMLSPL" && break
23813 done
23814
23815
23816 # Thread testing
23817
23818 # We have to run the thread test near the end so we have all our symbols
23819 # defined.  Cross compiling throws a warning.
23820 #
23821 if test "$enable_thread_safety_force" = yes; then
23822 if test "$PORTNAME" != "win32"
23823 then
23824   { echo "$as_me:$LINENO: WARNING:
23825 *** Skipping thread test program.  --enable-thread-safety-force was used.
23826 *** Run the program in src/test/thread on the your machine and add proper
23827 *** locking function calls to your applications to guarantee thread safety.
23828 " >&5
23829 echo "$as_me: WARNING:
23830 *** Skipping thread test program.  --enable-thread-safety-force was used.
23831 *** Run the program in src/test/thread on the your machine and add proper
23832 *** locking function calls to your applications to guarantee thread safety.
23833 " >&2;}
23834 else
23835 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23836 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23837 fi
23838 elif test "$enable_thread_safety" = yes; then
23839 if test "$PORTNAME" != "win32"
23840 then
23841 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
23842 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
23843
23844 _CFLAGS="$CFLAGS"
23845 _LIBS="$LIBS"
23846 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
23847 LIBS="$LIBS $PTHREAD_LIBS"
23848 if test "$cross_compiling" = yes; then
23849   echo "$as_me:$LINENO: result: maybe" >&5
23850 echo "${ECHO_T}maybe" >&6
23851   { echo "$as_me:$LINENO: WARNING:
23852 *** Skipping thread test program because of cross-compile build.
23853 *** Run the program in src/test/thread on the target machine.
23854 " >&5
23855 echo "$as_me: WARNING:
23856 *** Skipping thread test program because of cross-compile build.
23857 *** Run the program in src/test/thread on the target machine.
23858 " >&2;}
23859 else
23860   cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h.  */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h.  */
23866 #include "$srcdir/src/test/thread/thread_test.c"
23867 _ACEOF
23868 rm -f conftest$ac_exeext
23869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870   (eval $ac_link) 2>&5
23871   ac_status=$?
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875   (eval $ac_try) 2>&5
23876   ac_status=$?
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); }; }; then
23879   echo "$as_me:$LINENO: result: yes" >&5
23880 echo "${ECHO_T}yes" >&6
23881 else
23882   echo "$as_me: program exited with status $ac_status" >&5
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ( exit $ac_status )
23887 echo "$as_me:$LINENO: result: no" >&5
23888 echo "${ECHO_T}no" >&6
23889   { { echo "$as_me:$LINENO: error: thread test program failed
23890 This platform is not thread-safe.  Check the file 'config.log'for the
23891 exact reason.
23892
23893 You can use the configure option --enable-thread-safety-force to force
23894 threads to be enabled.  But you must then run the program in
23895 src/test/thread and add locking function calls to your applications to
23896 guarantee thread safety." >&5
23897 echo "$as_me: error: thread test program failed
23898 This platform is not thread-safe.  Check the file 'config.log'for the
23899 exact reason.
23900
23901 You can use the configure option --enable-thread-safety-force to force
23902 threads to be enabled.  But you must then run the program in
23903 src/test/thread and add locking function calls to your applications to
23904 guarantee thread safety." >&2;}
23905    { (exit 1); exit 1; }; }
23906 fi
23907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23908 fi
23909 CFLAGS="$_CFLAGS"
23910 LIBS="$_LIBS"
23911 else
23912 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23913 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23914 fi
23915 fi
23916
23917 # prepare build tree if outside source tree
23918 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
23919 # Note 2: /bin/pwd might be better than shell's built-in at getting
23920 #         a symlink-free name.
23921 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
23922   vpath_build=no
23923 else
23924   vpath_build=yes
23925   if test "$no_create" != yes; then
23926     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
23927     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
23928     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
23929       || { { echo "$as_me:$LINENO: error: failed" >&5
23930 echo "$as_me: error: failed" >&2;}
23931    { (exit 1); exit 1; }; }
23932     echo "$as_me:$LINENO: result: done" >&5
23933 echo "${ECHO_T}done" >&6
23934   fi
23935 fi
23936
23937
23938
23939                     ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
23940
23941
23942                                                             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}"
23943
23944
23945 if test "$PORTNAME" = "win32"; then
23946           ac_config_commands="$ac_config_commands check_win32_symlinks"
23947
23948 fi
23949
23950           ac_config_headers="$ac_config_headers src/include/pg_config.h"
23951
23952
23953           ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
23954
23955
23956 cat >confcache <<\_ACEOF
23957 # This file is a shell script that caches the results of configure
23958 # tests run on this system so they can be shared between configure
23959 # scripts and configure runs, see configure's option --config-cache.
23960 # It is not useful on other systems.  If it contains results you don't
23961 # want to keep, you may remove or edit it.
23962 #
23963 # config.status only pays attention to the cache file if you give it
23964 # the --recheck option to rerun configure.
23965 #
23966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23968 # following values.
23969
23970 _ACEOF
23971
23972 # The following way of writing the cache mishandles newlines in values,
23973 # but we know of no workaround that is simple, portable, and efficient.
23974 # So, don't put newlines in cache variables' values.
23975 # Ultrix sh set writes to stderr and can't be redirected directly,
23976 # and sets the high bit in the cache file unless we assign to the vars.
23977 {
23978   (set) 2>&1 |
23979     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23980     *ac_space=\ *)
23981       # `set' does not quote correctly, so add quotes (double-quote
23982       # substitution turns \\\\ into \\, and sed turns \\ into \).
23983       sed -n \
23984         "s/'/'\\\\''/g;
23985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23986       ;;
23987     *)
23988       # `set' quotes correctly as required by POSIX, so do not add quotes.
23989       sed -n \
23990         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23991       ;;
23992     esac;
23993 } |
23994   sed '
23995      t clear
23996      : clear
23997      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23998      t end
23999      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24000      : end' >>confcache
24001 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24002   if test -w $cache_file; then
24003     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24004     cat confcache >$cache_file
24005   else
24006     echo "not updating unwritable cache $cache_file"
24007   fi
24008 fi
24009 rm -f confcache
24010
24011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24012 # Let make expand exec_prefix.
24013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24014
24015 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24016 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24017 # trailing colons and then remove the whole line if VPATH becomes empty
24018 # (actually we leave an empty line to preserve line numbers).
24019 if test "x$srcdir" = x.; then
24020   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24021 s/:*\$(srcdir):*/:/;
24022 s/:*\${srcdir}:*/:/;
24023 s/:*@srcdir@:*/:/;
24024 s/^\([^=]*=[     ]*\):*/\1/;
24025 s/:*$//;
24026 s/^[^=]*=[       ]*$//;
24027 }'
24028 fi
24029
24030 DEFS=-DHAVE_CONFIG_H
24031
24032 ac_libobjs=
24033 ac_ltlibobjs=
24034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24035   # 1. Remove the extension, and $U if already installed.
24036   ac_i=`echo "$ac_i" |
24037          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24038   # 2. Add them.
24039   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24040   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24041 done
24042 LIBOBJS=$ac_libobjs
24043
24044 LTLIBOBJS=$ac_ltlibobjs
24045
24046
24047
24048 : ${CONFIG_STATUS=./config.status}
24049 ac_clean_files_save=$ac_clean_files
24050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24051 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24052 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24053 cat >$CONFIG_STATUS <<_ACEOF
24054 #! $SHELL
24055 # Generated by $as_me.
24056 # Run this file to recreate the current configuration.
24057 # Compiler output produced by configure, useful for debugging
24058 # configure, is in config.log if it exists.
24059
24060 debug=false
24061 ac_cs_recheck=false
24062 ac_cs_silent=false
24063 SHELL=\${CONFIG_SHELL-$SHELL}
24064 _ACEOF
24065
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24067 ## --------------------- ##
24068 ## M4sh Initialization.  ##
24069 ## --------------------- ##
24070
24071 # Be Bourne compatible
24072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24073   emulate sh
24074   NULLCMD=:
24075   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24076   # is contrary to our usage.  Disable this feature.
24077   alias -g '${1+"$@"}'='"$@"'
24078 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24079   set -o posix
24080 fi
24081 DUALCASE=1; export DUALCASE # for MKS sh
24082
24083 # Support unset when possible.
24084 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24085   as_unset=unset
24086 else
24087   as_unset=false
24088 fi
24089
24090
24091 # Work around bugs in pre-3.0 UWIN ksh.
24092 $as_unset ENV MAIL MAILPATH
24093 PS1='$ '
24094 PS2='> '
24095 PS4='+ '
24096
24097 # NLS nuisances.
24098 for as_var in \
24099   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24100   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24101   LC_TELEPHONE LC_TIME
24102 do
24103   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24104     eval $as_var=C; export $as_var
24105   else
24106     $as_unset $as_var
24107   fi
24108 done
24109
24110 # Required to use basename.
24111 if expr a : '\(a\)' >/dev/null 2>&1; then
24112   as_expr=expr
24113 else
24114   as_expr=false
24115 fi
24116
24117 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24118   as_basename=basename
24119 else
24120   as_basename=false
24121 fi
24122
24123
24124 # Name of the executable.
24125 as_me=`$as_basename "$0" ||
24126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24127          X"$0" : 'X\(//\)$' \| \
24128          X"$0" : 'X\(/\)$' \| \
24129          .     : '\(.\)' 2>/dev/null ||
24130 echo X/"$0" |
24131     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24132           /^X\/\(\/\/\)$/{ s//\1/; q; }
24133           /^X\/\(\/\).*/{ s//\1/; q; }
24134           s/.*/./; q'`
24135
24136
24137 # PATH needs CR, and LINENO needs CR and PATH.
24138 # Avoid depending upon Character Ranges.
24139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24142 as_cr_digits='0123456789'
24143 as_cr_alnum=$as_cr_Letters$as_cr_digits
24144
24145 # The user is always right.
24146 if test "${PATH_SEPARATOR+set}" != set; then
24147   echo "#! /bin/sh" >conf$$.sh
24148   echo  "exit 0"   >>conf$$.sh
24149   chmod +x conf$$.sh
24150   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24151     PATH_SEPARATOR=';'
24152   else
24153     PATH_SEPARATOR=:
24154   fi
24155   rm -f conf$$.sh
24156 fi
24157
24158
24159   as_lineno_1=$LINENO
24160   as_lineno_2=$LINENO
24161   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24162   test "x$as_lineno_1" != "x$as_lineno_2" &&
24163   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24164   # Find who we are.  Look in the path if we contain no path at all
24165   # relative or not.
24166   case $0 in
24167     *[\\/]* ) as_myself=$0 ;;
24168     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24169 for as_dir in $PATH
24170 do
24171   IFS=$as_save_IFS
24172   test -z "$as_dir" && as_dir=.
24173   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24174 done
24175
24176        ;;
24177   esac
24178   # We did not find ourselves, most probably we were run as `sh COMMAND'
24179   # in which case we are not to be found in the path.
24180   if test "x$as_myself" = x; then
24181     as_myself=$0
24182   fi
24183   if test ! -f "$as_myself"; then
24184     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24185 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24186    { (exit 1); exit 1; }; }
24187   fi
24188   case $CONFIG_SHELL in
24189   '')
24190     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24192 do
24193   IFS=$as_save_IFS
24194   test -z "$as_dir" && as_dir=.
24195   for as_base in sh bash ksh sh5; do
24196          case $as_dir in
24197          /*)
24198            if ("$as_dir/$as_base" -c '
24199   as_lineno_1=$LINENO
24200   as_lineno_2=$LINENO
24201   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24202   test "x$as_lineno_1" != "x$as_lineno_2" &&
24203   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24204              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24205              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24206              CONFIG_SHELL=$as_dir/$as_base
24207              export CONFIG_SHELL
24208              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24209            fi;;
24210          esac
24211        done
24212 done
24213 ;;
24214   esac
24215
24216   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24217   # uniformly replaced by the line number.  The first 'sed' inserts a
24218   # line-number line before each line; the second 'sed' does the real
24219   # work.  The second script uses 'N' to pair each line-number line
24220   # with the numbered line, and appends trailing '-' during
24221   # substitution so that $LINENO is not a special case at line end.
24222   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24223   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24224   sed '=' <$as_myself |
24225     sed '
24226       N
24227       s,$,-,
24228       : loop
24229       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24230       t loop
24231       s,-$,,
24232       s,^['$as_cr_digits']*\n,,
24233     ' >$as_me.lineno &&
24234   chmod +x $as_me.lineno ||
24235     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24236 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24237    { (exit 1); exit 1; }; }
24238
24239   # Don't try to exec as it changes $[0], causing all sort of problems
24240   # (the dirname of $[0] is not the place where we might find the
24241   # original and so on.  Autoconf is especially sensible to this).
24242   . ./$as_me.lineno
24243   # Exit status is that of the last command.
24244   exit
24245 }
24246
24247
24248 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24249   *c*,-n*) ECHO_N= ECHO_C='
24250 ' ECHO_T='      ' ;;
24251   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24252   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24253 esac
24254
24255 if expr a : '\(a\)' >/dev/null 2>&1; then
24256   as_expr=expr
24257 else
24258   as_expr=false
24259 fi
24260
24261 rm -f conf$$ conf$$.exe conf$$.file
24262 echo >conf$$.file
24263 if ln -s conf$$.file conf$$ 2>/dev/null; then
24264   # We could just check for DJGPP; but this test a) works b) is more generic
24265   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24266   if test -f conf$$.exe; then
24267     # Don't use ln at all; we don't have any links
24268     as_ln_s='cp -p'
24269   else
24270     as_ln_s='ln -s'
24271   fi
24272 elif ln conf$$.file conf$$ 2>/dev/null; then
24273   as_ln_s=ln
24274 else
24275   as_ln_s='cp -p'
24276 fi
24277 rm -f conf$$ conf$$.exe conf$$.file
24278
24279 if mkdir -p . 2>/dev/null; then
24280   as_mkdir_p=:
24281 else
24282   test -d ./-p && rmdir ./-p
24283   as_mkdir_p=false
24284 fi
24285
24286 as_executable_p="test -f"
24287
24288 # Sed expression to map a string onto a valid CPP name.
24289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24290
24291 # Sed expression to map a string onto a valid variable name.
24292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24293
24294
24295 # IFS
24296 # We need space, tab and new line, in precisely that order.
24297 as_nl='
24298 '
24299 IFS="   $as_nl"
24300
24301 # CDPATH.
24302 $as_unset CDPATH
24303
24304 exec 6>&1
24305
24306 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24307 # report actual input values of CONFIG_FILES etc. instead of their
24308 # values after options handling.  Logging --version etc. is OK.
24309 exec 5>>config.log
24310 {
24311   echo
24312   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24313 ## Running $as_me. ##
24314 _ASBOX
24315 } >&5
24316 cat >&5 <<_CSEOF
24317
24318 This file was extended by PostgreSQL $as_me 8.3devel, which was
24319 generated by GNU Autoconf 2.59.  Invocation command line was
24320
24321   CONFIG_FILES    = $CONFIG_FILES
24322   CONFIG_HEADERS  = $CONFIG_HEADERS
24323   CONFIG_LINKS    = $CONFIG_LINKS
24324   CONFIG_COMMANDS = $CONFIG_COMMANDS
24325   $ $0 $@
24326
24327 _CSEOF
24328 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24329 echo >&5
24330 _ACEOF
24331
24332 # Files that config.status was made for.
24333 if test -n "$ac_config_files"; then
24334   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24335 fi
24336
24337 if test -n "$ac_config_headers"; then
24338   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24339 fi
24340
24341 if test -n "$ac_config_links"; then
24342   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24343 fi
24344
24345 if test -n "$ac_config_commands"; then
24346   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24347 fi
24348
24349 cat >>$CONFIG_STATUS <<\_ACEOF
24350
24351 ac_cs_usage="\
24352 \`$as_me' instantiates files from templates according to the
24353 current configuration.
24354
24355 Usage: $0 [OPTIONS] [FILE]...
24356
24357   -h, --help       print this help, then exit
24358   -V, --version    print version number, then exit
24359   -q, --quiet      do not print progress messages
24360   -d, --debug      don't remove temporary files
24361       --recheck    update $as_me by reconfiguring in the same conditions
24362   --file=FILE[:TEMPLATE]
24363                    instantiate the configuration file FILE
24364   --header=FILE[:TEMPLATE]
24365                    instantiate the configuration header FILE
24366
24367 Configuration files:
24368 $config_files
24369
24370 Configuration headers:
24371 $config_headers
24372
24373 Configuration links:
24374 $config_links
24375
24376 Configuration commands:
24377 $config_commands
24378
24379 Report bugs to <bug-autoconf@gnu.org>."
24380 _ACEOF
24381
24382 cat >>$CONFIG_STATUS <<_ACEOF
24383 ac_cs_version="\\
24384 PostgreSQL config.status 8.3devel
24385 configured by $0, generated by GNU Autoconf 2.59,
24386   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24387
24388 Copyright (C) 2003 Free Software Foundation, Inc.
24389 This config.status script is free software; the Free Software Foundation
24390 gives unlimited permission to copy, distribute and modify it."
24391 srcdir=$srcdir
24392 _ACEOF
24393
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 # If no file are specified by the user, then we need to provide default
24396 # value.  By we need to know if files were specified by the user.
24397 ac_need_defaults=:
24398 while test $# != 0
24399 do
24400   case $1 in
24401   --*=*)
24402     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24403     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24404     ac_shift=:
24405     ;;
24406   -*)
24407     ac_option=$1
24408     ac_optarg=$2
24409     ac_shift=shift
24410     ;;
24411   *) # This is not an option, so the user has probably given explicit
24412      # arguments.
24413      ac_option=$1
24414      ac_need_defaults=false;;
24415   esac
24416
24417   case $ac_option in
24418   # Handling of the options.
24419 _ACEOF
24420 cat >>$CONFIG_STATUS <<\_ACEOF
24421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24422     ac_cs_recheck=: ;;
24423   --version | --vers* | -V )
24424     echo "$ac_cs_version"; exit 0 ;;
24425   --he | --h)
24426     # Conflict between --help and --header
24427     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24428 Try \`$0 --help' for more information." >&5
24429 echo "$as_me: error: ambiguous option: $1
24430 Try \`$0 --help' for more information." >&2;}
24431    { (exit 1); exit 1; }; };;
24432   --help | --hel | -h )
24433     echo "$ac_cs_usage"; exit 0 ;;
24434   --debug | --d* | -d )
24435     debug=: ;;
24436   --file | --fil | --fi | --f )
24437     $ac_shift
24438     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24439     ac_need_defaults=false;;
24440   --header | --heade | --head | --hea )
24441     $ac_shift
24442     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24443     ac_need_defaults=false;;
24444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24445   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24446     ac_cs_silent=: ;;
24447
24448   # This is an error.
24449   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24450 Try \`$0 --help' for more information." >&5
24451 echo "$as_me: error: unrecognized option: $1
24452 Try \`$0 --help' for more information." >&2;}
24453    { (exit 1); exit 1; }; } ;;
24454
24455   *) ac_config_targets="$ac_config_targets $1" ;;
24456
24457   esac
24458   shift
24459 done
24460
24461 ac_configure_extra_args=
24462
24463 if $ac_cs_silent; then
24464   exec 6>/dev/null
24465   ac_configure_extra_args="$ac_configure_extra_args --silent"
24466 fi
24467
24468 _ACEOF
24469 cat >>$CONFIG_STATUS <<_ACEOF
24470 if \$ac_cs_recheck; then
24471   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24472   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24473 fi
24474
24475 _ACEOF
24476
24477
24478
24479
24480
24481 cat >>$CONFIG_STATUS <<\_ACEOF
24482 for ac_config_target in $ac_config_targets
24483 do
24484   case "$ac_config_target" in
24485   # Handling of arguments.
24486   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
24487   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
24488   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
24489   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
24490   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
24491   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
24492   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
24493   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
24494   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
24495   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
24496   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
24497   "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
24498   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24500    { (exit 1); exit 1; }; };;
24501   esac
24502 done
24503
24504 # If the user did not use the arguments to specify the items to instantiate,
24505 # then the envvar interface is used.  Set only those that are not.
24506 # We use the long form for the default assignment because of an extremely
24507 # bizarre bug on SunOS 4.1.3.
24508 if $ac_need_defaults; then
24509   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24510   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24511   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24512   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24513 fi
24514
24515 # Have a temporary directory for convenience.  Make it in the build tree
24516 # simply because there is no reason to put it here, and in addition,
24517 # creating and moving files from /tmp can sometimes cause problems.
24518 # Create a temporary directory, and hook for its removal unless debugging.
24519 $debug ||
24520 {
24521   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24522   trap '{ (exit 1); exit 1; }' 1 2 13 15
24523 }
24524
24525 # Create a (secure) tmp directory for tmp files.
24526
24527 {
24528   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24529   test -n "$tmp" && test -d "$tmp"
24530 }  ||
24531 {
24532   tmp=./confstat$$-$RANDOM
24533   (umask 077 && mkdir $tmp)
24534 } ||
24535 {
24536    echo "$me: cannot create a temporary directory in ." >&2
24537    { (exit 1); exit 1; }
24538 }
24539
24540 _ACEOF
24541
24542 cat >>$CONFIG_STATUS <<_ACEOF
24543
24544 #
24545 # CONFIG_FILES section.
24546 #
24547
24548 # No need to generate the scripts if there are no CONFIG_FILES.
24549 # This happens for instance when ./config.status config.h
24550 if test -n "\$CONFIG_FILES"; then
24551   # Protect against being on the right side of a sed subst in config.status.
24552   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24553    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24554 s,@SHELL@,$SHELL,;t t
24555 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24561 s,@exec_prefix@,$exec_prefix,;t t
24562 s,@prefix@,$prefix,;t t
24563 s,@program_transform_name@,$program_transform_name,;t t
24564 s,@bindir@,$bindir,;t t
24565 s,@sbindir@,$sbindir,;t t
24566 s,@libexecdir@,$libexecdir,;t t
24567 s,@datadir@,$datadir,;t t
24568 s,@sysconfdir@,$sysconfdir,;t t
24569 s,@sharedstatedir@,$sharedstatedir,;t t
24570 s,@localstatedir@,$localstatedir,;t t
24571 s,@libdir@,$libdir,;t t
24572 s,@includedir@,$includedir,;t t
24573 s,@oldincludedir@,$oldincludedir,;t t
24574 s,@infodir@,$infodir,;t t
24575 s,@mandir@,$mandir,;t t
24576 s,@build_alias@,$build_alias,;t t
24577 s,@host_alias@,$host_alias,;t t
24578 s,@target_alias@,$target_alias,;t t
24579 s,@DEFS@,$DEFS,;t t
24580 s,@ECHO_C@,$ECHO_C,;t t
24581 s,@ECHO_N@,$ECHO_N,;t t
24582 s,@ECHO_T@,$ECHO_T,;t t
24583 s,@LIBS@,$LIBS,;t t
24584 s,@configure_args@,$configure_args,;t t
24585 s,@build@,$build,;t t
24586 s,@build_cpu@,$build_cpu,;t t
24587 s,@build_vendor@,$build_vendor,;t t
24588 s,@build_os@,$build_os,;t t
24589 s,@host@,$host,;t t
24590 s,@host_cpu@,$host_cpu,;t t
24591 s,@host_vendor@,$host_vendor,;t t
24592 s,@host_os@,$host_os,;t t
24593 s,@PORTNAME@,$PORTNAME,;t t
24594 s,@docdir@,$docdir,;t t
24595 s,@enable_nls@,$enable_nls,;t t
24596 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
24597 s,@default_port@,$default_port,;t t
24598 s,@enable_shared@,$enable_shared,;t t
24599 s,@enable_rpath@,$enable_rpath,;t t
24600 s,@enable_debug@,$enable_debug,;t t
24601 s,@enable_profiling@,$enable_profiling,;t t
24602 s,@DTRACE@,$DTRACE,;t t
24603 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
24604 s,@enable_dtrace@,$enable_dtrace,;t t
24605 s,@CC@,$CC,;t t
24606 s,@CFLAGS@,$CFLAGS,;t t
24607 s,@LDFLAGS@,$LDFLAGS,;t t
24608 s,@CPPFLAGS@,$CPPFLAGS,;t t
24609 s,@ac_ct_CC@,$ac_ct_CC,;t t
24610 s,@EXEEXT@,$EXEEXT,;t t
24611 s,@OBJEXT@,$OBJEXT,;t t
24612 s,@CPP@,$CPP,;t t
24613 s,@GCC@,$GCC,;t t
24614 s,@TAS@,$TAS,;t t
24615 s,@autodepend@,$autodepend,;t t
24616 s,@INCLUDES@,$INCLUDES,;t t
24617 s,@enable_thread_safety@,$enable_thread_safety,;t t
24618 s,@with_tcl@,$with_tcl,;t t
24619 s,@with_perl@,$with_perl,;t t
24620 s,@with_python@,$with_python,;t t
24621 s,@with_krb5@,$with_krb5,;t t
24622 s,@krb_srvtab@,$krb_srvtab,;t t
24623 s,@with_pam@,$with_pam,;t t
24624 s,@with_ldap@,$with_ldap,;t t
24625 s,@with_bonjour@,$with_bonjour,;t t
24626 s,@with_openssl@,$with_openssl,;t t
24627 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
24628 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
24629 s,@with_libxml@,$with_libxml,;t t
24630 s,@with_libxslt@,$with_libxslt,;t t
24631 s,@with_zlib@,$with_zlib,;t t
24632 s,@EGREP@,$EGREP,;t t
24633 s,@ELF_SYS@,$ELF_SYS,;t t
24634 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
24635 s,@AWK@,$AWK,;t t
24636 s,@FLEX@,$FLEX,;t t
24637 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
24638 s,@LN_S@,$LN_S,;t t
24639 s,@LD@,$LD,;t t
24640 s,@with_gnu_ld@,$with_gnu_ld,;t t
24641 s,@ld_R_works@,$ld_R_works,;t t
24642 s,@RANLIB@,$RANLIB,;t t
24643 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24644 s,@TAR@,$TAR,;t t
24645 s,@STRIP@,$STRIP,;t t
24646 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24647 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
24648 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
24649 s,@YACC@,$YACC,;t t
24650 s,@YFLAGS@,$YFLAGS,;t t
24651 s,@PERL@,$PERL,;t t
24652 s,@perl_archlibexp@,$perl_archlibexp,;t t
24653 s,@perl_privlibexp@,$perl_privlibexp,;t t
24654 s,@perl_useshrplib@,$perl_useshrplib,;t t
24655 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
24656 s,@PYTHON@,$PYTHON,;t t
24657 s,@python_version@,$python_version,;t t
24658 s,@python_configdir@,$python_configdir,;t t
24659 s,@python_includespec@,$python_includespec,;t t
24660 s,@python_libdir@,$python_libdir,;t t
24661 s,@python_libspec@,$python_libspec,;t t
24662 s,@python_additional_libs@,$python_additional_libs,;t t
24663 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
24664 s,@LIBOBJS@,$LIBOBJS,;t t
24665 s,@acx_pthread_config@,$acx_pthread_config,;t t
24666 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
24667 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
24668 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
24669 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
24670 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
24671 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
24672 s,@MSGFMT@,$MSGFMT,;t t
24673 s,@MSGMERGE@,$MSGMERGE,;t t
24674 s,@XGETTEXT@,$XGETTEXT,;t t
24675 s,@localedir@,$localedir,;t t
24676 s,@TCLSH@,$TCLSH,;t t
24677 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
24678 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
24679 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
24680 s,@TCL_LIBS@,$TCL_LIBS,;t t
24681 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24682 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
24683 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24684 s,@NSGMLS@,$NSGMLS,;t t
24685 s,@JADE@,$JADE,;t t
24686 s,@have_docbook@,$have_docbook,;t t
24687 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
24688 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
24689 s,@SGMLSPL@,$SGMLSPL,;t t
24690 s,@vpath_build@,$vpath_build,;t t
24691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24692 CEOF
24693
24694 _ACEOF
24695
24696   cat >>$CONFIG_STATUS <<\_ACEOF
24697   # Split the substitutions into bite-sized pieces for seds with
24698   # small command number limits, like on Digital OSF/1 and HP-UX.
24699   ac_max_sed_lines=48
24700   ac_sed_frag=1 # Number of current file.
24701   ac_beg=1 # First line for current file.
24702   ac_end=$ac_max_sed_lines # Line after last line for current file.
24703   ac_more_lines=:
24704   ac_sed_cmds=
24705   while $ac_more_lines; do
24706     if test $ac_beg -gt 1; then
24707       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24708     else
24709       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24710     fi
24711     if test ! -s $tmp/subs.frag; then
24712       ac_more_lines=false
24713     else
24714       # The purpose of the label and of the branching condition is to
24715       # speed up the sed processing (if there are no `@' at all, there
24716       # is no need to browse any of the substitutions).
24717       # These are the two extra sed commands mentioned above.
24718       (echo ':t
24719   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24720       if test -z "$ac_sed_cmds"; then
24721         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24722       else
24723         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24724       fi
24725       ac_sed_frag=`expr $ac_sed_frag + 1`
24726       ac_beg=$ac_end
24727       ac_end=`expr $ac_end + $ac_max_sed_lines`
24728     fi
24729   done
24730   if test -z "$ac_sed_cmds"; then
24731     ac_sed_cmds=cat
24732   fi
24733 fi # test -n "$CONFIG_FILES"
24734
24735 _ACEOF
24736 cat >>$CONFIG_STATUS <<\_ACEOF
24737 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24738   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24739   case $ac_file in
24740   - | *:- | *:-:* ) # input from stdin
24741         cat >$tmp/stdin
24742         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24743         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24744   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24745         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24746   * )   ac_file_in=$ac_file.in ;;
24747   esac
24748
24749   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24750   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24752          X"$ac_file" : 'X\(//\)[^/]' \| \
24753          X"$ac_file" : 'X\(//\)$' \| \
24754          X"$ac_file" : 'X\(/\)' \| \
24755          .     : '\(.\)' 2>/dev/null ||
24756 echo X"$ac_file" |
24757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24758           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24759           /^X\(\/\/\)$/{ s//\1/; q; }
24760           /^X\(\/\).*/{ s//\1/; q; }
24761           s/.*/./; q'`
24762   { if $as_mkdir_p; then
24763     mkdir -p "$ac_dir"
24764   else
24765     as_dir="$ac_dir"
24766     as_dirs=
24767     while test ! -d "$as_dir"; do
24768       as_dirs="$as_dir $as_dirs"
24769       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24771          X"$as_dir" : 'X\(//\)[^/]' \| \
24772          X"$as_dir" : 'X\(//\)$' \| \
24773          X"$as_dir" : 'X\(/\)' \| \
24774          .     : '\(.\)' 2>/dev/null ||
24775 echo X"$as_dir" |
24776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24777           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24778           /^X\(\/\/\)$/{ s//\1/; q; }
24779           /^X\(\/\).*/{ s//\1/; q; }
24780           s/.*/./; q'`
24781     done
24782     test ! -n "$as_dirs" || mkdir $as_dirs
24783   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24785    { (exit 1); exit 1; }; }; }
24786
24787   ac_builddir=.
24788
24789 if test "$ac_dir" != .; then
24790   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24791   # A "../" for each directory in $ac_dir_suffix.
24792   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24793 else
24794   ac_dir_suffix= ac_top_builddir=
24795 fi
24796
24797 case $srcdir in
24798   .)  # No --srcdir option.  We are building in place.
24799     ac_srcdir=.
24800     if test -z "$ac_top_builddir"; then
24801        ac_top_srcdir=.
24802     else
24803        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24804     fi ;;
24805   [\\/]* | ?:[\\/]* )  # Absolute path.
24806     ac_srcdir=$srcdir$ac_dir_suffix;
24807     ac_top_srcdir=$srcdir ;;
24808   *) # Relative path.
24809     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24810     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24811 esac
24812
24813 # Do not use `cd foo && pwd` to compute absolute paths, because
24814 # the directories may not exist.
24815 case `pwd` in
24816 .) ac_abs_builddir="$ac_dir";;
24817 *)
24818   case "$ac_dir" in
24819   .) ac_abs_builddir=`pwd`;;
24820   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24821   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24822   esac;;
24823 esac
24824 case $ac_abs_builddir in
24825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24826 *)
24827   case ${ac_top_builddir}. in
24828   .) ac_abs_top_builddir=$ac_abs_builddir;;
24829   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24830   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24831   esac;;
24832 esac
24833 case $ac_abs_builddir in
24834 .) ac_abs_srcdir=$ac_srcdir;;
24835 *)
24836   case $ac_srcdir in
24837   .) ac_abs_srcdir=$ac_abs_builddir;;
24838   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24839   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24840   esac;;
24841 esac
24842 case $ac_abs_builddir in
24843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24844 *)
24845   case $ac_top_srcdir in
24846   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24847   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24848   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24849   esac;;
24850 esac
24851
24852
24853
24854   if test x"$ac_file" != x-; then
24855     { echo "$as_me:$LINENO: creating $ac_file" >&5
24856 echo "$as_me: creating $ac_file" >&6;}
24857     rm -f "$ac_file"
24858   fi
24859   # Let's still pretend it is `configure' which instantiates (i.e., don't
24860   # use $as_me), people would be surprised to read:
24861   #    /* config.h.  Generated by config.status.  */
24862   if test x"$ac_file" = x-; then
24863     configure_input=
24864   else
24865     configure_input="$ac_file.  "
24866   fi
24867   configure_input=$configure_input"Generated from `echo $ac_file_in |
24868                                      sed 's,.*/,,'` by configure."
24869
24870   # First look for the input files in the build tree, otherwise in the
24871   # src tree.
24872   ac_file_inputs=`IFS=:
24873     for f in $ac_file_in; do
24874       case $f in
24875       -) echo $tmp/stdin ;;
24876       [\\/$]*)
24877          # Absolute (can't be DOS-style, as IFS=:)
24878          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24879 echo "$as_me: error: cannot find input file: $f" >&2;}
24880    { (exit 1); exit 1; }; }
24881          echo "$f";;
24882       *) # Relative
24883          if test -f "$f"; then
24884            # Build tree
24885            echo "$f"
24886          elif test -f "$srcdir/$f"; then
24887            # Source tree
24888            echo "$srcdir/$f"
24889          else
24890            # /dev/null tree
24891            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24892 echo "$as_me: error: cannot find input file: $f" >&2;}
24893    { (exit 1); exit 1; }; }
24894          fi;;
24895       esac
24896     done` || { (exit 1); exit 1; }
24897 _ACEOF
24898 cat >>$CONFIG_STATUS <<_ACEOF
24899   sed "$ac_vpsub
24900 $extrasub
24901 _ACEOF
24902 cat >>$CONFIG_STATUS <<\_ACEOF
24903 :t
24904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24905 s,@configure_input@,$configure_input,;t t
24906 s,@srcdir@,$ac_srcdir,;t t
24907 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24908 s,@top_srcdir@,$ac_top_srcdir,;t t
24909 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24910 s,@builddir@,$ac_builddir,;t t
24911 s,@abs_builddir@,$ac_abs_builddir,;t t
24912 s,@top_builddir@,$ac_top_builddir,;t t
24913 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24914 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24915   rm -f $tmp/stdin
24916   if test x"$ac_file" != x-; then
24917     mv $tmp/out $ac_file
24918   else
24919     cat $tmp/out
24920     rm -f $tmp/out
24921   fi
24922
24923 done
24924 _ACEOF
24925 cat >>$CONFIG_STATUS <<\_ACEOF
24926
24927 #
24928 # CONFIG_HEADER section.
24929 #
24930
24931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24933 #
24934 # ac_d sets the value in "#define NAME VALUE" lines.
24935 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24936 ac_dB='[         ].*$,\1#\2'
24937 ac_dC=' '
24938 ac_dD=',;t'
24939 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24940 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24941 ac_uB='$,\1#\2define\3'
24942 ac_uC=' '
24943 ac_uD=',;t'
24944
24945 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24946   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24947   case $ac_file in
24948   - | *:- | *:-:* ) # input from stdin
24949         cat >$tmp/stdin
24950         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24951         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24952   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24953         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24954   * )   ac_file_in=$ac_file.in ;;
24955   esac
24956
24957   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24958 echo "$as_me: creating $ac_file" >&6;}
24959
24960   # First look for the input files in the build tree, otherwise in the
24961   # src tree.
24962   ac_file_inputs=`IFS=:
24963     for f in $ac_file_in; do
24964       case $f in
24965       -) echo $tmp/stdin ;;
24966       [\\/$]*)
24967          # Absolute (can't be DOS-style, as IFS=:)
24968          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24969 echo "$as_me: error: cannot find input file: $f" >&2;}
24970    { (exit 1); exit 1; }; }
24971          # Do quote $f, to prevent DOS paths from being IFS'd.
24972          echo "$f";;
24973       *) # Relative
24974          if test -f "$f"; then
24975            # Build tree
24976            echo "$f"
24977          elif test -f "$srcdir/$f"; then
24978            # Source tree
24979            echo "$srcdir/$f"
24980          else
24981            # /dev/null tree
24982            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24983 echo "$as_me: error: cannot find input file: $f" >&2;}
24984    { (exit 1); exit 1; }; }
24985          fi;;
24986       esac
24987     done` || { (exit 1); exit 1; }
24988   # Remove the trailing spaces.
24989   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24990
24991 _ACEOF
24992
24993 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24994 # `conftest.undefs', that substitutes the proper values into
24995 # config.h.in to produce config.h.  The first handles `#define'
24996 # templates, and the second `#undef' templates.
24997 # And first: Protect against being on the right side of a sed subst in
24998 # config.status.  Protect against being in an unquoted here document
24999 # in config.status.
25000 rm -f conftest.defines conftest.undefs
25001 # Using a here document instead of a string reduces the quoting nightmare.
25002 # Putting comments in sed scripts is not portable.
25003 #
25004 # `end' is used to avoid that the second main sed command (meant for
25005 # 0-ary CPP macros) applies to n-ary macro definitions.
25006 # See the Autoconf documentation for `clear'.
25007 cat >confdef2sed.sed <<\_ACEOF
25008 s/[\\&,]/\\&/g
25009 s,[\\$`],\\&,g
25010 t clear
25011 : clear
25012 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25013 t end
25014 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25015 : end
25016 _ACEOF
25017 # If some macros were called several times there might be several times
25018 # the same #defines, which is useless.  Nevertheless, we may not want to
25019 # sort them, since we want the *last* AC-DEFINE to be honored.
25020 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25021 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25022 rm -f confdef2sed.sed
25023
25024 # This sed command replaces #undef with comments.  This is necessary, for
25025 # example, in the case of _POSIX_SOURCE, which is predefined and required
25026 # on some systems where configure will not decide to define it.
25027 cat >>conftest.undefs <<\_ACEOF
25028 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25029 _ACEOF
25030
25031 # Break up conftest.defines because some shells have a limit on the size
25032 # of here documents, and old seds have small limits too (100 cmds).
25033 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25034 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25035 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25036 echo '  :' >>$CONFIG_STATUS
25037 rm -f conftest.tail
25038 while grep . conftest.defines >/dev/null
25039 do
25040   # Write a limited-size here document to $tmp/defines.sed.
25041   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25042   # Speed up: don't consider the non `#define' lines.
25043   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25044   # Work around the forget-to-reset-the-flag bug.
25045   echo 't clr' >>$CONFIG_STATUS
25046   echo ': clr' >>$CONFIG_STATUS
25047   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25048   echo 'CEOF
25049   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25050   rm -f $tmp/in
25051   mv $tmp/out $tmp/in
25052 ' >>$CONFIG_STATUS
25053   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25054   rm -f conftest.defines
25055   mv conftest.tail conftest.defines
25056 done
25057 rm -f conftest.defines
25058 echo '  fi # grep' >>$CONFIG_STATUS
25059 echo >>$CONFIG_STATUS
25060
25061 # Break up conftest.undefs because some shells have a limit on the size
25062 # of here documents, and old seds have small limits too (100 cmds).
25063 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25064 rm -f conftest.tail
25065 while grep . conftest.undefs >/dev/null
25066 do
25067   # Write a limited-size here document to $tmp/undefs.sed.
25068   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25069   # Speed up: don't consider the non `#undef'
25070   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25071   # Work around the forget-to-reset-the-flag bug.
25072   echo 't clr' >>$CONFIG_STATUS
25073   echo ': clr' >>$CONFIG_STATUS
25074   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25075   echo 'CEOF
25076   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25077   rm -f $tmp/in
25078   mv $tmp/out $tmp/in
25079 ' >>$CONFIG_STATUS
25080   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25081   rm -f conftest.undefs
25082   mv conftest.tail conftest.undefs
25083 done
25084 rm -f conftest.undefs
25085
25086 cat >>$CONFIG_STATUS <<\_ACEOF
25087   # Let's still pretend it is `configure' which instantiates (i.e., don't
25088   # use $as_me), people would be surprised to read:
25089   #    /* config.h.  Generated by config.status.  */
25090   if test x"$ac_file" = x-; then
25091     echo "/* Generated by configure.  */" >$tmp/config.h
25092   else
25093     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25094   fi
25095   cat $tmp/in >>$tmp/config.h
25096   rm -f $tmp/in
25097   if test x"$ac_file" != x-; then
25098     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25099       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25100 echo "$as_me: $ac_file is unchanged" >&6;}
25101     else
25102       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25104          X"$ac_file" : 'X\(//\)[^/]' \| \
25105          X"$ac_file" : 'X\(//\)$' \| \
25106          X"$ac_file" : 'X\(/\)' \| \
25107          .     : '\(.\)' 2>/dev/null ||
25108 echo X"$ac_file" |
25109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25110           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25111           /^X\(\/\/\)$/{ s//\1/; q; }
25112           /^X\(\/\).*/{ s//\1/; q; }
25113           s/.*/./; q'`
25114       { if $as_mkdir_p; then
25115     mkdir -p "$ac_dir"
25116   else
25117     as_dir="$ac_dir"
25118     as_dirs=
25119     while test ! -d "$as_dir"; do
25120       as_dirs="$as_dir $as_dirs"
25121       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123          X"$as_dir" : 'X\(//\)[^/]' \| \
25124          X"$as_dir" : 'X\(//\)$' \| \
25125          X"$as_dir" : 'X\(/\)' \| \
25126          .     : '\(.\)' 2>/dev/null ||
25127 echo X"$as_dir" |
25128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25129           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25130           /^X\(\/\/\)$/{ s//\1/; q; }
25131           /^X\(\/\).*/{ s//\1/; q; }
25132           s/.*/./; q'`
25133     done
25134     test ! -n "$as_dirs" || mkdir $as_dirs
25135   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25137    { (exit 1); exit 1; }; }; }
25138
25139       rm -f $ac_file
25140       mv $tmp/config.h $ac_file
25141     fi
25142   else
25143     cat $tmp/config.h
25144     rm -f $tmp/config.h
25145   fi
25146   # Run the commands associated with the file.
25147   case $ac_file in
25148     src/include/pg_config.h )
25149 # Update timestamp for pg_config.h (see Makefile.global)
25150 echo >src/include/stamp-h
25151  ;;
25152   esac
25153 done
25154 _ACEOF
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25156
25157 #
25158 # CONFIG_LINKS section.
25159 #
25160
25161 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25162   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25163   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25164
25165   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25166 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25167
25168   if test ! -r $srcdir/$ac_source; then
25169     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25170 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25171    { (exit 1); exit 1; }; }
25172   fi
25173   rm -f $ac_dest
25174
25175   # Make relative symlinks.
25176   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25177 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25178          X"$ac_dest" : 'X\(//\)[^/]' \| \
25179          X"$ac_dest" : 'X\(//\)$' \| \
25180          X"$ac_dest" : 'X\(/\)' \| \
25181          .     : '\(.\)' 2>/dev/null ||
25182 echo X"$ac_dest" |
25183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25185           /^X\(\/\/\)$/{ s//\1/; q; }
25186           /^X\(\/\).*/{ s//\1/; q; }
25187           s/.*/./; q'`
25188   { if $as_mkdir_p; then
25189     mkdir -p "$ac_dest_dir"
25190   else
25191     as_dir="$ac_dest_dir"
25192     as_dirs=
25193     while test ! -d "$as_dir"; do
25194       as_dirs="$as_dir $as_dirs"
25195       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25197          X"$as_dir" : 'X\(//\)[^/]' \| \
25198          X"$as_dir" : 'X\(//\)$' \| \
25199          X"$as_dir" : 'X\(/\)' \| \
25200          .     : '\(.\)' 2>/dev/null ||
25201 echo X"$as_dir" |
25202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25204           /^X\(\/\/\)$/{ s//\1/; q; }
25205           /^X\(\/\).*/{ s//\1/; q; }
25206           s/.*/./; q'`
25207     done
25208     test ! -n "$as_dirs" || mkdir $as_dirs
25209   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25210 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25211    { (exit 1); exit 1; }; }; }
25212
25213   ac_builddir=.
25214
25215 if test "$ac_dest_dir" != .; then
25216   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25217   # A "../" for each directory in $ac_dir_suffix.
25218   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25219 else
25220   ac_dir_suffix= ac_top_builddir=
25221 fi
25222
25223 case $srcdir in
25224   .)  # No --srcdir option.  We are building in place.
25225     ac_srcdir=.
25226     if test -z "$ac_top_builddir"; then
25227        ac_top_srcdir=.
25228     else
25229        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25230     fi ;;
25231   [\\/]* | ?:[\\/]* )  # Absolute path.
25232     ac_srcdir=$srcdir$ac_dir_suffix;
25233     ac_top_srcdir=$srcdir ;;
25234   *) # Relative path.
25235     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25236     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25237 esac
25238
25239 # Do not use `cd foo && pwd` to compute absolute paths, because
25240 # the directories may not exist.
25241 case `pwd` in
25242 .) ac_abs_builddir="$ac_dest_dir";;
25243 *)
25244   case "$ac_dest_dir" in
25245   .) ac_abs_builddir=`pwd`;;
25246   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25247   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25248   esac;;
25249 esac
25250 case $ac_abs_builddir in
25251 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25252 *)
25253   case ${ac_top_builddir}. in
25254   .) ac_abs_top_builddir=$ac_abs_builddir;;
25255   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25256   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25257   esac;;
25258 esac
25259 case $ac_abs_builddir in
25260 .) ac_abs_srcdir=$ac_srcdir;;
25261 *)
25262   case $ac_srcdir in
25263   .) ac_abs_srcdir=$ac_abs_builddir;;
25264   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25265   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25266   esac;;
25267 esac
25268 case $ac_abs_builddir in
25269 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25270 *)
25271   case $ac_top_srcdir in
25272   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25273   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25274   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25275   esac;;
25276 esac
25277
25278
25279   case $srcdir in
25280   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25281       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25282   esac
25283
25284   # Try a symlink, then a hard link, then a copy.
25285   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25286     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25287     cp -p $srcdir/$ac_source $ac_dest ||
25288     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25289 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25290    { (exit 1); exit 1; }; }
25291 done
25292 _ACEOF
25293 cat >>$CONFIG_STATUS <<\_ACEOF
25294
25295 #
25296 # CONFIG_COMMANDS section.
25297 #
25298 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25299   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25300   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25301   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25302 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25303          X"$ac_dest" : 'X\(//\)[^/]' \| \
25304          X"$ac_dest" : 'X\(//\)$' \| \
25305          X"$ac_dest" : 'X\(/\)' \| \
25306          .     : '\(.\)' 2>/dev/null ||
25307 echo X"$ac_dest" |
25308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25310           /^X\(\/\/\)$/{ s//\1/; q; }
25311           /^X\(\/\).*/{ s//\1/; q; }
25312           s/.*/./; q'`
25313   { if $as_mkdir_p; then
25314     mkdir -p "$ac_dir"
25315   else
25316     as_dir="$ac_dir"
25317     as_dirs=
25318     while test ! -d "$as_dir"; do
25319       as_dirs="$as_dir $as_dirs"
25320       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25322          X"$as_dir" : 'X\(//\)[^/]' \| \
25323          X"$as_dir" : 'X\(//\)$' \| \
25324          X"$as_dir" : 'X\(/\)' \| \
25325          .     : '\(.\)' 2>/dev/null ||
25326 echo X"$as_dir" |
25327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25329           /^X\(\/\/\)$/{ s//\1/; q; }
25330           /^X\(\/\).*/{ s//\1/; q; }
25331           s/.*/./; q'`
25332     done
25333     test ! -n "$as_dirs" || mkdir $as_dirs
25334   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25336    { (exit 1); exit 1; }; }; }
25337
25338   ac_builddir=.
25339
25340 if test "$ac_dir" != .; then
25341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25342   # A "../" for each directory in $ac_dir_suffix.
25343   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25344 else
25345   ac_dir_suffix= ac_top_builddir=
25346 fi
25347
25348 case $srcdir in
25349   .)  # No --srcdir option.  We are building in place.
25350     ac_srcdir=.
25351     if test -z "$ac_top_builddir"; then
25352        ac_top_srcdir=.
25353     else
25354        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25355     fi ;;
25356   [\\/]* | ?:[\\/]* )  # Absolute path.
25357     ac_srcdir=$srcdir$ac_dir_suffix;
25358     ac_top_srcdir=$srcdir ;;
25359   *) # Relative path.
25360     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25361     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25362 esac
25363
25364 # Do not use `cd foo && pwd` to compute absolute paths, because
25365 # the directories may not exist.
25366 case `pwd` in
25367 .) ac_abs_builddir="$ac_dir";;
25368 *)
25369   case "$ac_dir" in
25370   .) ac_abs_builddir=`pwd`;;
25371   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25372   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25373   esac;;
25374 esac
25375 case $ac_abs_builddir in
25376 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25377 *)
25378   case ${ac_top_builddir}. in
25379   .) ac_abs_top_builddir=$ac_abs_builddir;;
25380   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25381   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25382   esac;;
25383 esac
25384 case $ac_abs_builddir in
25385 .) ac_abs_srcdir=$ac_srcdir;;
25386 *)
25387   case $ac_srcdir in
25388   .) ac_abs_srcdir=$ac_abs_builddir;;
25389   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25390   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25391   esac;;
25392 esac
25393 case $ac_abs_builddir in
25394 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25395 *)
25396   case $ac_top_srcdir in
25397   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25398   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25399   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25400   esac;;
25401 esac
25402
25403
25404   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25405 echo "$as_me: executing $ac_dest commands" >&6;}
25406   case $ac_dest in
25407     check_win32_symlinks )
25408 # Links sometimes fail undetected on Mingw -
25409 # so here we detect it and warn the user
25410 for FILE in $CONFIG_LINKS
25411  do
25412         # test -e works for symlinks in the MinGW console
25413         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
25414 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
25415  done
25416  ;;
25417   esac
25418 done
25419 _ACEOF
25420
25421 cat >>$CONFIG_STATUS <<\_ACEOF
25422
25423 { (exit 0); exit 0; }
25424 _ACEOF
25425 chmod +x $CONFIG_STATUS
25426 ac_clean_files=$ac_clean_files_save
25427
25428
25429 # configure is writing to config.log, and then calls config.status.
25430 # config.status does its own redirection, appending to config.log.
25431 # Unfortunately, on DOS this fails, as config.log is still kept open
25432 # by configure, so config.status won't be able to write to it; its
25433 # output is simply discarded.  So we exec the FD to /dev/null,
25434 # effectively closing config.log, so it can be properly (re)opened and
25435 # appended to by config.status.  When coming back to configure, we
25436 # need to make the FD available again.
25437 if test "$no_create" != yes; then
25438   ac_cs_success=:
25439   ac_config_status_args=
25440   test "$silent" = yes &&
25441     ac_config_status_args="$ac_config_status_args --quiet"
25442   exec 5>/dev/null
25443   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25444   exec 5>>config.log
25445   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25446   # would make configure fail if this is the last instruction.
25447   $ac_cs_success || { (exit 1); exit 1; }
25448 fi
25449
25450
25451 # Warn about unknown options
25452 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
25453   for pgac_arg in $pgac_args with_gnu_ld; do
25454     if test "$pgac_var" = "$pgac_arg"; then
25455       continue 2
25456     fi
25457   done
25458   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
25459   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
25460 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
25461 done