]> granicus.if.org Git - postgresql/blob - configure
Add search for libgetopt.a in hopes of finding getopt_long().
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-integer-datetimes  enable 64-bit integer date/time support
853   --enable-recode         enable character set recode support
854   --enable-nls[=LANGUAGES]  enable Native Language Support
855   --disable-shared        do not build shared libraries
856   --disable-rpath         do not embed shared library search path in executables
857   --enable-debug          build with debugging symbols (-g)
858   --enable-depend         turn on automatic dependency tracking
859   --enable-cassert        enable assertion checks (for debugging)
860   --enable-odbc           build the ODBC driver package
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865
866   --with-includes=DIRS    look for additional header files in DIRS
867   --with-libraries=DIRS   look for additional libraries in DIRS
868   --with-libs=DIRS        alternative spelling of --with-libraries
869   --with-pgport=PORTNUM   change default port number 5432
870   --with-maxbackends=N    set default maximum number of connections 32
871   --with-tcl              build Tcl and Tk interfaces
872   --without-tk            do not build Tk interfaces if Tcl is enabled
873   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
874   --with-tkconfig=DIR     tkConfig.sh is in DIR
875   --with-perl             build Perl interface and PL/Perl
876   --with-python           build Python interface module
877   --with-java             build JDBC interface and Java tools
878   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
879   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
880   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
881   --with-pam              build with PAM support
882   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
883   --without-readline      do not use Readline
884   --without-zlib          do not use Zlib
885   --with-unixodbc         build ODBC driver for unixODBC
886   --with-iodbc            build ODBC driver for iODBC
887   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
888   --with-CXX              build C++ modules (libpq++)
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890
891 Some influential environment variables:
892   CC          C compiler command
893   CFLAGS      C compiler flags
894   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
895               nonstandard directory <lib dir>
896   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
897               headers in a nonstandard directory <include dir>
898   CPP         C preprocessor
899   CXX         C++ compiler command
900   CXXFLAGS    C++ compiler flags
901   CXXCPP      C++ preprocessor
902   DOCBOOKSTYLE
903               location of DocBook stylesheets
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 Report bugs to <pgsql-bugs@postgresql.org>.
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978
979 Copyright 2002 PostgreSQL Global Development Group
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1042 ac_configure_args=
1043 ac_sep=
1044 for ac_arg
1045 do
1046   case $ac_arg in
1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048   | --no-cr | --no-c | -n ) continue ;;
1049   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051     continue ;;
1052   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054   esac
1055   case " $ac_configure_args " in
1056     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1057     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058        ac_sep=" " ;;
1059   esac
1060   # Get rid of the leading space.
1061 done
1062
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log.  We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069   # Save into config.log some information that might help in debugging.
1070   {
1071     echo
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094     if test -s confdefs.h; then
1095       cat <<\_ASBOX
1096 ## ----------- ##
1097 ## confdefs.h. ##
1098 ## ----------- ##
1099 _ASBOX
1100       echo
1101       sed "/^$/d" confdefs.h
1102       echo
1103     fi
1104     test "$ac_signal" != 0 &&
1105       echo "$as_me: caught signal $ac_signal"
1106     echo "$as_me: exit $exit_status"
1107   } >&5
1108   rm -f core core.* *.core &&
1109   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110     exit $exit_status
1111      ' 0
1112 for ac_signal in 1 2 13 15; do
1113   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 _ACEOF
1147
1148
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152   if test "x$prefix" != xNONE; then
1153     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154   else
1155     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156   fi
1157 fi
1158 for ac_site_file in $CONFIG_SITE; do
1159   if test -r "$ac_site_file"; then
1160     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162     sed 's/^/| /' "$ac_site_file" >&5
1163     . "$ac_site_file"
1164   fi
1165 done
1166
1167 if test -r "$cache_file"; then
1168   # Some versions of bash will fail to source /dev/null (special
1169   # files actually), so we avoid doing that.
1170   if test -f "$cache_file"; then
1171     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173     case $cache_file in
1174       [\\/]* | ?:[\\/]* ) . $cache_file;;
1175       *)                      . ./$cache_file;;
1176     esac
1177   fi
1178 else
1179   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181   >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190   eval ac_new_set=\$ac_env_${ac_var}_set
1191   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192   eval ac_new_val="\$ac_env_${ac_var}_value"
1193   case $ac_old_set,$ac_new_set in
1194     set,)
1195       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197       ac_cache_corrupted=: ;;
1198     ,set)
1199       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201       ac_cache_corrupted=: ;;
1202     ,);;
1203     *)
1204       if test "x$ac_old_val" != "x$ac_new_val"; then
1205         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1208 echo "$as_me:   former value:  $ac_old_val" >&2;}
1209         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1210 echo "$as_me:   current value: $ac_new_val" >&2;}
1211         ac_cache_corrupted=:
1212       fi;;
1213   esac
1214   # Pass precious variables to config.status.
1215   if test "$ac_new_set" = set; then
1216     case $ac_new_val in
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     *) ac_arg=$ac_var=$ac_new_val ;;
1220     esac
1221     case " $ac_configure_args " in
1222       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1223       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224     esac
1225   fi
1226 done
1227 if $ac_cache_corrupted; then
1228   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232    { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273 ac_aux_dir=
1274 for ac_dir in config $srcdir/config; do
1275   if test -f $ac_dir/install-sh; then
1276     ac_aux_dir=$ac_dir
1277     ac_install_sh="$ac_aux_dir/install-sh -c"
1278     break
1279   elif test -f $ac_dir/install.sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install.sh -c"
1282     break
1283   elif test -f $ac_dir/shtool; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/shtool install -c"
1286     break
1287   fi
1288 done
1289 if test -z "$ac_aux_dir"; then
1290   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297
1298
1299 configure_args=$ac_configure_args
1300
1301
1302
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1305 _ACEOF
1306
1307
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312    { (exit 1); exit 1; }; }
1313
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321   ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325    { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329    { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1334 build=$ac_cv_build
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347   ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1356 host=$ac_cv_host
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362
1363 template=
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1366
1367
1368
1369
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372   withval="$with_template"
1373
1374   case $withval in
1375     yes)
1376       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378    { (exit 1); exit 1; }; }
1379       ;;
1380     no)
1381       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383    { (exit 1); exit 1; }; }
1384       ;;
1385     *)
1386
1387   case $withval in
1388     list)   echo; ls "$srcdir/src/template"; exit;;
1389     *)      if test -f "$srcdir/src/template/$with_template" ; then
1390               template=$withval
1391             else
1392               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394    { (exit 1); exit 1; }; }
1395             fi;;
1396   esac
1397
1398       ;;
1399   esac
1400
1401 else
1402
1403   # --with-template not given
1404
1405 case $host_os in
1406      aix*) template=aix ;;
1407     beos*) template=beos ;;
1408     bsdi*) template=bsdi ;;
1409   cygwin*) template=win ;;
1410   darwin*) template=darwin ;;
1411     dgux*) template=dgux ;;
1412  freebsd*) template=freebsd ;;
1413     hpux*) template=hpux ;;
1414     irix*) template=irix5 ;;
1415    linux*) template=linux ;;
1416   netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418  openbsd*) template=openbsd ;;
1419      osf*) template=osf ;;
1420      qnx*) template=qnx4 ;;
1421      sco*) template=sco ;;
1422  solaris*) template=solaris ;;
1423    sunos*) template=sunos4 ;;
1424  sysv4.2*)
1425         case $host_vendor in
1426           univel) template=univel ;;
1427         esac ;;
1428    sysv4*) template=svr4 ;;
1429    sysv5*) template=unixware ;;
1430   ultrix*) template=ultrix4 ;;
1431 esac
1432
1433   if test x"$template" = x"" ; then
1434     { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1439
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this.  Include the above 'checking host system type...'
1442 line.
1443 *******************************************************************
1444 " >&5
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1450
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this.  Include the above 'checking host system type...'
1453 line.
1454 *******************************************************************
1455 " >&2;}
1456    { (exit 1); exit 1; }; }
1457   fi
1458
1459
1460 fi;
1461
1462
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1465
1466 PORTNAME=$template
1467
1468
1469 # Pick right test-and-set (TAS) code.  Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1472 case $host in
1473   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1474   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1476   *)                need_tas=no;  tas_file=dummy.s ;;
1477 esac
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1479
1480
1481 if test "$need_tas" = yes ; then
1482   TAS=tas.o
1483 fi
1484
1485
1486
1487
1488 ##
1489 ## Command line options
1490 ##
1491
1492
1493 #
1494 # Add non-standard directories to the include path
1495 #
1496
1497
1498
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501   withval="$with_includes"
1502
1503   case $withval in
1504     yes)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     no)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     *)
1515
1516       ;;
1517   esac
1518
1519 fi;
1520
1521
1522
1523 #
1524 # Add non-standard directories to the library search path
1525 #
1526
1527
1528
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531   withval="$with_libraries"
1532
1533   case $withval in
1534     yes)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     no)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     *)
1545       LIBRARY_DIRS=$withval
1546       ;;
1547   esac
1548
1549 fi;
1550
1551
1552
1553
1554
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557   withval="$with_libs"
1558
1559   case $withval in
1560     yes)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     no)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     *)
1571       LIBRARY_DIRS=$withval
1572       ;;
1573   esac
1574
1575 fi;
1576
1577
1578
1579 #
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588   enableval="$enable_integer_datetimes"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_integer_datetimes=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1615
1616
1617 # Character set recode (--enable-recode)
1618 #
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625   enableval="$enable_recode"
1626
1627   case $enableval in
1628     yes)
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1632 _ACEOF
1633
1634       ;;
1635     no)
1636       :
1637       ;;
1638     *)
1639       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641    { (exit 1); exit 1; }; }
1642       ;;
1643   esac
1644
1645 else
1646   enable_recode=no
1647
1648 fi;
1649
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1652
1653
1654 #
1655 # Multibyte support
1656 #
1657 MULTIBYTE=SQL_ASCII
1658
1659 cat >>confdefs.h <<\_ACEOF
1660 #define MULTIBYTE 1
1661 _ACEOF
1662
1663
1664
1665 #
1666 # NLS
1667 #
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1670
1671
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674   enableval="$enable_nls"
1675
1676   case $enableval in
1677     yes)
1678       :
1679       ;;
1680     no)
1681       :
1682       ;;
1683     *)
1684       enable_nls=yes
1685 WANTED_LANGUAGES=$enableval
1686       ;;
1687   esac
1688
1689 else
1690   enable_nls=no
1691 fi;
1692
1693
1694 if test "$enable_nls" = yes; then
1695
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1698 _ACEOF
1699
1700 fi
1701
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1704
1705
1706
1707 #
1708 # Default port number (--with-pgport), default 5432
1709 #
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1712
1713
1714
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717   withval="$with_pgport"
1718
1719   case $withval in
1720     yes)
1721       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725     no)
1726       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728    { (exit 1); exit 1; }; }
1729       ;;
1730     *)
1731       default_port=$withval
1732       ;;
1733   esac
1734
1735 else
1736   default_port=5432
1737 fi;
1738
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1750 _ACEOF
1751
1752
1753
1754 #
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1756 #
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1759
1760
1761
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764   withval="$with_maxbackends"
1765
1766   case $withval in
1767     yes)
1768       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770    { (exit 1); exit 1; }; }
1771       ;;
1772     no)
1773       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777     *)
1778
1779       ;;
1780   esac
1781
1782 else
1783   with_maxbackends=32
1784 fi;
1785
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1791 _ACEOF
1792
1793
1794
1795 #
1796 # Option to disable shared libraries
1797 #
1798
1799
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802   enableval="$enable_shared"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_shared=yes
1820
1821 fi;
1822
1823
1824
1825 #
1826 # '-rpath'-like feature can be disabled
1827 #
1828
1829
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832   enableval="$enable_rpath"
1833
1834   case $enableval in
1835     yes)
1836       :
1837       ;;
1838     no)
1839       :
1840       ;;
1841     *)
1842       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844    { (exit 1); exit 1; }; }
1845       ;;
1846   esac
1847
1848 else
1849   enable_rpath=yes
1850
1851 fi;
1852
1853
1854
1855
1856 #
1857 # --enable-debug adds -g to compiler flags
1858 #
1859
1860
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863   enableval="$enable_debug"
1864
1865   case $enableval in
1866     yes)
1867       :
1868       ;;
1869     no)
1870       :
1871       ;;
1872     *)
1873       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875    { (exit 1); exit 1; }; }
1876       ;;
1877   esac
1878
1879 else
1880   enable_debug=no
1881
1882 fi;
1883
1884
1885
1886 #
1887 # C compiler
1888 #
1889
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1892 # variable.
1893
1894
1895
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1898   withval="$with_CC"
1899
1900   case $withval in
1901     yes)
1902       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904    { (exit 1); exit 1; }; }
1905       ;;
1906     no)
1907       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909    { (exit 1); exit 1; }; }
1910       ;;
1911     *)
1912       CC=$with_CC
1913       ;;
1914   esac
1915
1916 fi;
1917
1918
1919 # Set here so it can be over-ridden in the template file
1920 GCC_CXXFLAGS="-O2"
1921 VENDOR_CXXFLAGS=""
1922
1923 case $template in
1924   aix) pgac_cc_list="gcc xlc";;
1925  irix) pgac_cc_list="cc";; # no gcc
1926     *) pgac_cc_list="gcc cc";;
1927 esac
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 if test -n "$ac_tool_prefix"; then
1935   for ac_prog in $pgac_cc_list
1936   do
1937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$CC"; then
1945   ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965   echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972     test -n "$CC" && break
1973   done
1974 fi
1975 if test -z "$CC"; then
1976   ac_ct_CC=$CC
1977   for ac_prog in $pgac_cc_list
1978 do
1979   # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   if test -n "$ac_ct_CC"; then
1987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     ac_cv_prog_ac_ct_CC="$ac_prog"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6
2009 else
2010   echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014   test -n "$ac_ct_CC" && break
2015 done
2016
2017   CC=$ac_ct_CC
2018 fi
2019
2020
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2022 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027      "checking for C compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030   (eval $ac_compiler --version </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035   (eval $ac_compiler -v </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040   (eval $ac_compiler -V </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2048
2049 #ifdef F77_DUMMY_MAIN
2050 #  ifdef __cplusplus
2051      extern "C"
2052 #  endif
2053    int F77_DUMMY_MAIN() { return 1; }
2054 #endif
2055 int
2056 main ()
2057 {
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2067 # of exeext.
2068 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2069 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2072   (eval $ac_link_default) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; then
2076   # Find the output, starting from the most likely.  This scheme is
2077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2078 # resort.
2079
2080 # Be careful to initialize this variable, since it used to be cached.
2081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2082 ac_cv_exeext=
2083 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2084                 ls a.out conftest 2>/dev/null;
2085                 ls a.* conftest.* 2>/dev/null`; do
2086   case $ac_file in
2087     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2088     a.out ) # We found the default executable, but exeext='' is most
2089             # certainly right.
2090             break;;
2091     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2093           export ac_cv_exeext
2094           break;;
2095     * ) break;;
2096   esac
2097 done
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2102 echo "$as_me: error: C compiler cannot create executables" >&2;}
2103    { (exit 77); exit 77; }; }
2104 fi
2105
2106 ac_exeext=$ac_cv_exeext
2107 echo "$as_me:$LINENO: result: $ac_file" >&5
2108 echo "${ECHO_T}$ac_file" >&6
2109
2110 # Check the compiler produces executables we can run.  If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115 # If not cross compiling, check that we can run a simple program.
2116 if test "$cross_compiling" != yes; then
2117   if { ac_try='./$ac_file'
2118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123     cross_compiling=no
2124   else
2125     if test "$cross_compiling" = maybe; then
2126         cross_compiling=yes
2127     else
2128         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'." >&5
2130 echo "$as_me: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'." >&2;}
2132    { (exit 1); exit 1; }; }
2133     fi
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2138
2139 rm -f a.out a.exe conftest$ac_cv_exeext
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run.  If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2147
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151   (eval $ac_link) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2158 # `rm'.
2159 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2160   case $ac_file in
2161     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163           export ac_cv_exeext
2164           break;;
2165     * ) break;;
2166   esac
2167 done
2168 else
2169   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173
2174 rm -f conftest$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176 echo "${ECHO_T}$ac_cv_exeext" >&6
2177
2178 rm -f conftest.$ac_ext
2179 EXEEXT=$ac_cv_exeext
2180 ac_exeext=$EXEEXT
2181 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2183 if test "${ac_cv_objext+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 #include "confdefs.h"
2189
2190 #ifdef F77_DUMMY_MAIN
2191 #  ifdef __cplusplus
2192      extern "C"
2193 #  endif
2194    int F77_DUMMY_MAIN() { return 1; }
2195 #endif
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206   (eval $ac_compile) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211   case $ac_file in
2212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2213     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214        break;;
2215   esac
2216 done
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2221 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2224
2225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2226 fi
2227 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2228 echo "${ECHO_T}$ac_cv_objext" >&6
2229 OBJEXT=$ac_cv_objext
2230 ac_objext=$OBJEXT
2231 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2232 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2233 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 #include "confdefs.h"
2239
2240 #ifdef F77_DUMMY_MAIN
2241 #  ifdef __cplusplus
2242      extern "C"
2243 #  endif
2244    int F77_DUMMY_MAIN() { return 1; }
2245 #endif
2246 int
2247 main ()
2248 {
2249 #ifndef __GNUC__
2250        choke me
2251 #endif
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_compiler_gnu=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2273 ac_compiler_gnu=no
2274 fi
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2277
2278 fi
2279 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2280 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281 GCC=`test $ac_compiler_gnu = yes && echo yes`
2282 ac_test_CFLAGS=${CFLAGS+set}
2283 ac_save_CFLAGS=$CFLAGS
2284 CFLAGS="-g"
2285 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2286 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_g+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2293
2294 #ifdef F77_DUMMY_MAIN
2295 #  ifdef __cplusplus
2296      extern "C"
2297 #  endif
2298    int F77_DUMMY_MAIN() { return 1; }
2299 #endif
2300 int
2301 main ()
2302 {
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310   (eval $ac_compile) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -s conftest.$ac_objext'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320   ac_cv_prog_cc_g=yes
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 ac_cv_prog_cc_g=no
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2330 if test "$ac_test_CFLAGS" = set; then
2331   CFLAGS=$ac_save_CFLAGS
2332 elif test $ac_cv_prog_cc_g = yes; then
2333   if test "$GCC" = yes; then
2334     CFLAGS="-g -O2"
2335   else
2336     CFLAGS="-g"
2337   fi
2338 else
2339   if test "$GCC" = yes; then
2340     CFLAGS="-O2"
2341   else
2342     CFLAGS=
2343   fi
2344 fi
2345 # Some people use a C++ compiler to compile C.  Since we use `exit',
2346 # in C++ we need to declare it.  In case someone uses the same compiler
2347 # for both compiling C and C++ we need to have the C++ compiler decide
2348 # the declaration of exit, since it's the most demanding environment.
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #ifndef __cplusplus
2351   choke me
2352 #endif
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   for ac_declaration in \
2367    ''\
2368    '#include <stdlib.h>' \
2369    'extern "C" void std::exit (int) throw (); using std::exit;' \
2370    'extern "C" void std::exit (int); using std::exit;' \
2371    'extern "C" void exit (int) throw ();' \
2372    'extern "C" void exit (int);' \
2373    'void exit (int);'
2374 do
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378 #include <stdlib.h>
2379 $ac_declaration
2380 #ifdef F77_DUMMY_MAIN
2381 #  ifdef __cplusplus
2382      extern "C"
2383 #  endif
2384    int F77_DUMMY_MAIN() { return 1; }
2385 #endif
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 continue
2411 fi
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2413   cat >conftest.$ac_ext <<_ACEOF
2414 #line $LINENO "configure"
2415 #include "confdefs.h"
2416 $ac_declaration
2417 #ifdef F77_DUMMY_MAIN
2418 #  ifdef __cplusplus
2419      extern "C"
2420 #  endif
2421    int F77_DUMMY_MAIN() { return 1; }
2422 #endif
2423 int
2424 main ()
2425 {
2426 exit (42);
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433   (eval $ac_compile) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 fi
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2449 done
2450 rm -f conftest*
2451 if test -n "$ac_declaration"; then
2452   echo '#ifdef __cplusplus' >>confdefs.h
2453   echo $ac_declaration      >>confdefs.h
2454   echo '#endif'             >>confdefs.h
2455 fi
2456
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 fi
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468 # Read the template
2469 . "$srcdir/src/template/$template" || exit
2470
2471 if test "$ac_env_CFLAGS_set" = set; then
2472   CFLAGS=$ac_env_CFLAGS_value
2473 fi
2474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2475   CFLAGS="$CFLAGS -g"
2476 fi
2477 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2478 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2479 # Check if the compiler still works with the template settings
2480 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2481 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2482
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2486
2487 #ifdef F77_DUMMY_MAIN
2488 #  ifdef __cplusplus
2489      extern "C"
2490 #  endif
2491    int F77_DUMMY_MAIN() { return 1; }
2492 #endif
2493 int
2494 main ()
2495 {
2496 return 0;
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext conftest$ac_exeext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2503   (eval $ac_link) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -s conftest$ac_exeext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6
2520    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2521 echo "$as_me: error: cannot proceed" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2532 # On Suns, sometimes $CPP names a directory.
2533 if test -n "$CPP" && test -d "$CPP"; then
2534   CPP=
2535 fi
2536 if test -z "$CPP"; then
2537   if test "${ac_cv_prog_CPP+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540       # Double quotes because CPP needs to be expanded
2541     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2542     do
2543       ac_preproc_ok=false
2544 for ac_c_preproc_warn_flag in '' yes
2545 do
2546   # Use a header file that comes with gcc, so configuring glibc
2547   # with a fresh cross-compiler works.
2548   # On the NeXT, cc -E runs the code through the compiler's parser,
2549   # not just through cpp. "Syntax error" is here to catch this case.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <assert.h>
2554                      Syntax error
2555 _ACEOF
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558   ac_status=$?
2559   egrep -v '^ *\+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } >/dev/null; then
2564   if test -s conftest.err; then
2565     ac_cpp_err=$ac_c_preproc_warn_flag
2566   else
2567     ac_cpp_err=
2568   fi
2569 else
2570   ac_cpp_err=yes
2571 fi
2572 if test -z "$ac_cpp_err"; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576   cat conftest.$ac_ext >&5
2577   # Broken: fails on valid input.
2578 continue
2579 fi
2580 rm -f conftest.err conftest.$ac_ext
2581
2582   # OK, works on sane cases.  Now check whether non-existent headers
2583   # can be detected and how.
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 #include <ac_nonexistent.h>
2588 _ACEOF
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591   ac_status=$?
2592   egrep -v '^ *\+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } >/dev/null; then
2597   if test -s conftest.err; then
2598     ac_cpp_err=$ac_c_preproc_warn_flag
2599   else
2600     ac_cpp_err=
2601   fi
2602 else
2603   ac_cpp_err=yes
2604 fi
2605 if test -z "$ac_cpp_err"; then
2606   # Broken: success on invalid input.
2607 continue
2608 else
2609   echo "$as_me: failed program was:" >&5
2610   cat conftest.$ac_ext >&5
2611   # Passes both tests.
2612 ac_preproc_ok=:
2613 break
2614 fi
2615 rm -f conftest.err conftest.$ac_ext
2616
2617 done
2618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2619 rm -f conftest.err conftest.$ac_ext
2620 if $ac_preproc_ok; then
2621   break
2622 fi
2623
2624     done
2625     ac_cv_prog_CPP=$CPP
2626
2627 fi
2628   CPP=$ac_cv_prog_CPP
2629 else
2630   ac_cv_prog_CPP=$CPP
2631 fi
2632 echo "$as_me:$LINENO: result: $CPP" >&5
2633 echo "${ECHO_T}$CPP" >&6
2634 ac_preproc_ok=false
2635 for ac_c_preproc_warn_flag in '' yes
2636 do
2637   # Use a header file that comes with gcc, so configuring glibc
2638   # with a fresh cross-compiler works.
2639   # On the NeXT, cc -E runs the code through the compiler's parser,
2640   # not just through cpp. "Syntax error" is here to catch this case.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <assert.h>
2645                      Syntax error
2646 _ACEOF
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649   ac_status=$?
2650   egrep -v '^ *\+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } >/dev/null; then
2655   if test -s conftest.err; then
2656     ac_cpp_err=$ac_c_preproc_warn_flag
2657   else
2658     ac_cpp_err=
2659   fi
2660 else
2661   ac_cpp_err=yes
2662 fi
2663 if test -z "$ac_cpp_err"; then
2664   :
2665 else
2666   echo "$as_me: failed program was:" >&5
2667   cat conftest.$ac_ext >&5
2668   # Broken: fails on valid input.
2669 continue
2670 fi
2671 rm -f conftest.err conftest.$ac_ext
2672
2673   # OK, works on sane cases.  Now check whether non-existent headers
2674   # can be detected and how.
2675   cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <ac_nonexistent.h>
2679 _ACEOF
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2682   ac_status=$?
2683   egrep -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); } >/dev/null; then
2688   if test -s conftest.err; then
2689     ac_cpp_err=$ac_c_preproc_warn_flag
2690   else
2691     ac_cpp_err=
2692   fi
2693 else
2694   ac_cpp_err=yes
2695 fi
2696 if test -z "$ac_cpp_err"; then
2697   # Broken: success on invalid input.
2698 continue
2699 else
2700   echo "$as_me: failed program was:" >&5
2701   cat conftest.$ac_ext >&5
2702   # Passes both tests.
2703 ac_preproc_ok=:
2704 break
2705 fi
2706 rm -f conftest.err conftest.$ac_ext
2707
2708 done
2709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710 rm -f conftest.err conftest.$ac_ext
2711 if $ac_preproc_ok; then
2712   :
2713 else
2714   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2716    { (exit 1); exit 1; }; }
2717 fi
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727 # Create compiler version string
2728 if test x"$GCC" = x"yes" ; then
2729   cc_string="GCC `${CC} --version | sed q`"
2730 else
2731   cc_string=$CC
2732 fi
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2736 _ACEOF
2737
2738
2739
2740 #
2741 # Automatic dependency tracking
2742 #
2743
2744
2745 # Check whether --enable-depend or --disable-depend was given.
2746 if test "${enable_depend+set}" = set; then
2747   enableval="$enable_depend"
2748
2749   case $enableval in
2750     yes)
2751       autodepend=yes
2752       ;;
2753     no)
2754       :
2755       ;;
2756     *)
2757       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2758 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2759    { (exit 1); exit 1; }; }
2760       ;;
2761   esac
2762
2763 else
2764   enable_depend=no
2765
2766 fi;
2767
2768
2769
2770
2771 #
2772 # Enable assert checks
2773 #
2774
2775
2776 # Check whether --enable-cassert or --disable-cassert was given.
2777 if test "${enable_cassert+set}" = set; then
2778   enableval="$enable_cassert"
2779
2780   case $enableval in
2781     yes)
2782
2783 cat >>confdefs.h <<\_ACEOF
2784 #define USE_ASSERT_CHECKING 1
2785 _ACEOF
2786
2787       ;;
2788     no)
2789       :
2790       ;;
2791     *)
2792       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2793 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2794    { (exit 1); exit 1; }; }
2795       ;;
2796   esac
2797
2798 else
2799   enable_cassert=no
2800
2801 fi;
2802
2803
2804
2805 #
2806 # Include directories
2807 #
2808 ac_save_IFS=$IFS
2809 IFS="${IFS}:"
2810 # SRCH_INC comes from the template file
2811 for dir in $with_includes $SRCH_INC; do
2812   if test -d "$dir"; then
2813     INCLUDES="$INCLUDES -I$dir"
2814   else
2815     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2816 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2817   fi
2818 done
2819 IFS=$ac_save_IFS
2820
2821
2822
2823 #
2824 # Library directories
2825 #
2826 ac_save_IFS=$IFS
2827 IFS="${IFS}:"
2828 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2829 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2830   if test -d "$dir"; then
2831     LIBDIRS="$LIBDIRS -L$dir"
2832   else
2833     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2834 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2835   fi
2836 done
2837 IFS=$ac_save_IFS
2838
2839
2840 #
2841 # Tcl/Tk
2842 #
2843 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2844 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2845
2846
2847
2848 # Check whether --with-tcl or --without-tcl was given.
2849 if test "${with_tcl+set}" = set; then
2850   withval="$with_tcl"
2851
2852   case $withval in
2853     yes)
2854       :
2855       ;;
2856     no)
2857       :
2858       ;;
2859     *)
2860       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2861 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2862    { (exit 1); exit 1; }; }
2863       ;;
2864   esac
2865
2866 else
2867   with_tcl=no
2868
2869 fi;
2870
2871 echo "$as_me:$LINENO: result: $with_tcl" >&5
2872 echo "${ECHO_T}$with_tcl" >&6
2873
2874
2875 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2876 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2877 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2878 if test "$with_tcl" = yes; then
2879
2880
2881
2882 # Check whether --with-tk or --without-tk was given.
2883 if test "${with_tk+set}" = set; then
2884   withval="$with_tk"
2885
2886   case $withval in
2887     yes)
2888       :
2889       ;;
2890     no)
2891       :
2892       ;;
2893     *)
2894       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2895 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2896    { (exit 1); exit 1; }; }
2897       ;;
2898   esac
2899
2900 else
2901   with_tk=yes
2902
2903 fi;
2904
2905 else
2906   with_tk=no
2907 fi
2908 echo "$as_me:$LINENO: result: $with_tk" >&5
2909 echo "${ECHO_T}$with_tk" >&6
2910
2911
2912
2913 # We see if the path to the Tcl/Tk configuration scripts is specified.
2914 # This will override the use of tclsh to find the paths to search.
2915
2916
2917
2918
2919 # Check whether --with-tclconfig or --without-tclconfig was given.
2920 if test "${with_tclconfig+set}" = set; then
2921   withval="$with_tclconfig"
2922
2923   case $withval in
2924     yes)
2925       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2927    { (exit 1); exit 1; }; }
2928       ;;
2929     no)
2930       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2931 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2932    { (exit 1); exit 1; }; }
2933       ;;
2934     *)
2935
2936       ;;
2937   esac
2938
2939 fi;
2940
2941
2942 # We see if the path to the Tk configuration scripts is specified.
2943 # This will override the use of tclsh to find the paths to search.
2944
2945
2946
2947
2948 # Check whether --with-tkconfig or --without-tkconfig was given.
2949 if test "${with_tkconfig+set}" = set; then
2950   withval="$with_tkconfig"
2951
2952   case $withval in
2953     yes)
2954       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2955 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2956    { (exit 1); exit 1; }; }
2957       ;;
2958     no)
2959       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2960 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2961    { (exit 1); exit 1; }; }
2962       ;;
2963     *)
2964
2965       ;;
2966   esac
2967
2968 fi;
2969
2970
2971 #
2972 # Optionally build Perl modules (Pg.pm and PL/Perl)
2973 #
2974 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2975 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2976
2977
2978
2979 # Check whether --with-perl or --without-perl was given.
2980 if test "${with_perl+set}" = set; then
2981   withval="$with_perl"
2982
2983   case $withval in
2984     yes)
2985       :
2986       ;;
2987     no)
2988       :
2989       ;;
2990     *)
2991       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2992 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2993    { (exit 1); exit 1; }; }
2994       ;;
2995   esac
2996
2997 else
2998   with_perl=no
2999
3000 fi;
3001
3002 echo "$as_me:$LINENO: result: $with_perl" >&5
3003 echo "${ECHO_T}$with_perl" >&6
3004
3005
3006 #
3007 # Optionally build Python interface module
3008 #
3009 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3010 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3011
3012
3013
3014 # Check whether --with-python or --without-python was given.
3015 if test "${with_python+set}" = set; then
3016   withval="$with_python"
3017
3018   case $withval in
3019     yes)
3020       :
3021       ;;
3022     no)
3023       :
3024       ;;
3025     *)
3026       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3027 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3028    { (exit 1); exit 1; }; }
3029       ;;
3030   esac
3031
3032 else
3033   with_python=no
3034
3035 fi;
3036
3037 echo "$as_me:$LINENO: result: $with_python" >&5
3038 echo "${ECHO_T}$with_python" >&6
3039
3040
3041 #
3042 # Optionally build the Java/JDBC tools
3043 #
3044 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3045 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3046
3047
3048
3049 # Check whether --with-java or --without-java was given.
3050 if test "${with_java+set}" = set; then
3051   withval="$with_java"
3052
3053   case $withval in
3054     yes)
3055       echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3057
3058   for ac_prog in jakarta-ant ant ant.sh ant.bat
3059 do
3060   # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_path_ANT+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   case $ANT in
3068   [\\/]* | ?:[\\/]*)
3069   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3070   ;;
3071   *)
3072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075   IFS=$as_save_IFS
3076   test -z "$as_dir" && as_dir=.
3077   for ac_exec_ext in '' $ac_executable_extensions; do
3078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081     break 2
3082   fi
3083 done
3084 done
3085
3086   ;;
3087 esac
3088 fi
3089 ANT=$ac_cv_path_ANT
3090
3091 if test -n "$ANT"; then
3092   echo "$as_me:$LINENO: result: $ANT" >&5
3093 echo "${ECHO_T}$ANT" >&6
3094 else
3095   echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099   test -n "$ANT" && break
3100 done
3101
3102
3103   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3104 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3105 if test "${pgac_cv_prog_ant_works+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108
3109     cat > conftest.java << EOF
3110 public class conftest {
3111     int testmethod(int a, int b) {
3112         return a + b;
3113     }
3114 }
3115 EOF
3116
3117     cat > conftest.xml << EOF
3118 <project name="conftest" default="conftest">
3119  <target name="conftest">
3120   <javac srcdir="." includes="conftest.java">
3121   </javac>
3122  </target>
3123 </project>
3124 EOF
3125
3126     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3127     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3128   (eval $pgac_cmd) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132     pgac_save_status=$?
3133     if test $? = 0 && test -f ./conftest.class ; then
3134       pgac_cv_prog_ant_works=yes
3135     else
3136       echo "configure: failed java program was:" >&5
3137       cat conftest.java >&5
3138       echo "configure: failed build file was:" >&5
3139       cat conftest.xml >&5
3140       pgac_cv_prog_ant_works=no
3141     fi
3142
3143     rm -f conftest* core core.* *.core
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3147 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3148
3149   if test "$pgac_cv_prog_ant_works" != yes; then
3150     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3151 echo "$as_me: error: ant does not work" >&2;}
3152    { (exit 1); exit 1; }; }
3153   fi
3154
3155
3156 if test -z "$ANT"; then
3157   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3158 echo "$as_me: error: Ant is required to build Java components" >&2;}
3159    { (exit 1); exit 1; }; }
3160 fi
3161       ;;
3162     no)
3163       echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3165       ;;
3166     *)
3167       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3168 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3169    { (exit 1); exit 1; }; }
3170       ;;
3171   esac
3172
3173 else
3174   with_java=no
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi;
3178
3179
3180
3181
3182 #
3183 # Kerberos 4
3184 #
3185 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3186 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3187
3188
3189
3190 # Check whether --with-krb4 or --without-krb4 was given.
3191 if test "${with_krb4+set}" = set; then
3192   withval="$with_krb4"
3193
3194   case $withval in
3195     yes)
3196       krb4_prefix=/usr/athena
3197       ;;
3198     no)
3199       :
3200       ;;
3201     *)
3202       with_krb4=yes
3203 krb4_prefix=$withval
3204       ;;
3205   esac
3206
3207 else
3208   with_krb4=no
3209 fi;
3210
3211
3212 if test "$with_krb4" = yes; then
3213
3214   echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3216
3217 cat >>confdefs.h <<\_ACEOF
3218 #define KRB4 1
3219 _ACEOF
3220
3221
3222   if test -d "$krb4_prefix/include"; then
3223     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3224   fi
3225   if test -d "$krb4_prefix/lib"; then
3226     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3227   fi
3228
3229   krb_srvtab="/etc/srvtab"
3230
3231 else
3232   echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236
3237
3238
3239
3240 #
3241 # Kerberos 5
3242 #
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3245
3246
3247
3248 # Check whether --with-krb5 or --without-krb5 was given.
3249 if test "${with_krb5+set}" = set; then
3250   withval="$with_krb5"
3251
3252   case $withval in
3253     yes)
3254       krb5_prefix=/usr/athena
3255       ;;
3256     no)
3257       :
3258       ;;
3259     *)
3260       with_krb5=yes
3261 krb5_prefix=$withval
3262       ;;
3263   esac
3264
3265 else
3266   with_krb5=no
3267 fi;
3268
3269
3270 if test "$with_krb5" = yes; then
3271
3272   echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define KRB5 1
3277 _ACEOF
3278
3279
3280   if test -d "$krb5_prefix/include"; then
3281     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3282   fi
3283   if test -d "$krb5_prefix/lib"; then
3284     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3285   fi
3286
3287   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3288
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294
3295
3296
3297
3298 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3299 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3300   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3301 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3302    { (exit 1); exit 1; }; }
3303 fi
3304
3305
3306
3307
3308 #
3309 # Kerberos configuration parameters
3310 #
3311
3312
3313
3314 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3315 if test "${with_krb_srvnam+set}" = set; then
3316   withval="$with_krb_srvnam"
3317
3318   case $withval in
3319     yes)
3320       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3321 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3322    { (exit 1); exit 1; }; }
3323       ;;
3324     no)
3325       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3326 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3327    { (exit 1); exit 1; }; }
3328       ;;
3329     *)
3330
3331       ;;
3332   esac
3333
3334 else
3335   with_krb_srvnam="postgres"
3336 fi;
3337
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3341 _ACEOF
3342
3343
3344
3345 #
3346 # PAM
3347 #
3348 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3349 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3350
3351
3352
3353 # Check whether --with-pam or --without-pam was given.
3354 if test "${with_pam+set}" = set; then
3355   withval="$with_pam"
3356
3357   case $withval in
3358     yes)
3359
3360 cat >>confdefs.h <<\_ACEOF
3361 #define USE_PAM 1
3362 _ACEOF
3363
3364       ;;
3365     no)
3366       :
3367       ;;
3368     *)
3369       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3370 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3371    { (exit 1); exit 1; }; }
3372       ;;
3373   esac
3374
3375 else
3376   with_pam=no
3377
3378 fi;
3379
3380 echo "$as_me:$LINENO: result: $with_pam" >&5
3381 echo "${ECHO_T}$with_pam" >&6
3382
3383
3384
3385 #
3386 # OpenSSL
3387 #
3388
3389
3390
3391 # Check whether --with-openssl or --without-openssl was given.
3392 if test "${with_openssl+set}" = set; then
3393   withval="$with_openssl"
3394
3395   case $withval in
3396     yes)
3397       openssl_prefix=/usr/local/ssl
3398       ;;
3399     no)
3400       :
3401       ;;
3402     *)
3403       with_openssl=yes
3404 openssl_prefix=$withval
3405       ;;
3406   esac
3407
3408 else
3409   with_openssl=no
3410 fi;
3411
3412
3413 if test "$with_openssl" = yes; then
3414
3415   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3416 echo "${ECHO_T}building with OpenSSL support" >&6
3417
3418 cat >>confdefs.h <<\_ACEOF
3419 #define USE_SSL 1
3420 _ACEOF
3421
3422
3423   if test -d "${openssl_prefix}/include" ; then
3424     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3425   fi
3426   if test -d "${openssl_prefix}/lib" ; then
3427     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3428   fi
3429
3430 fi
3431
3432
3433
3434
3435
3436 #
3437 # Readline
3438 #
3439
3440
3441
3442 # Check whether --with-readline or --without-readline was given.
3443 if test "${with_readline+set}" = set; then
3444   withval="$with_readline"
3445
3446   case $withval in
3447     yes)
3448       :
3449       ;;
3450     no)
3451       :
3452       ;;
3453     *)
3454       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3455 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3456    { (exit 1); exit 1; }; }
3457       ;;
3458   esac
3459
3460 else
3461   with_readline=yes
3462
3463 fi;
3464
3465
3466 #
3467 # Zlib
3468 #
3469
3470
3471
3472 # Check whether --with-zlib or --without-zlib was given.
3473 if test "${with_zlib+set}" = set; then
3474   withval="$with_zlib"
3475
3476   case $withval in
3477     yes)
3478       :
3479       ;;
3480     no)
3481       :
3482       ;;
3483     *)
3484       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3485 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3486    { (exit 1); exit 1; }; }
3487       ;;
3488   esac
3489
3490 else
3491   with_zlib=yes
3492
3493 fi;
3494
3495
3496
3497
3498 #
3499 # Optionally enable the building of the ODBC driver
3500 #
3501
3502 # Old option name
3503 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3504   enable_odbc=$with_odbc
3505 fi
3506
3507 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3508 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3509
3510
3511 # Check whether --enable-odbc or --disable-odbc was given.
3512 if test "${enable_odbc+set}" = set; then
3513   enableval="$enable_odbc"
3514
3515   case $enableval in
3516     yes)
3517       :
3518       ;;
3519     no)
3520       :
3521       ;;
3522     *)
3523       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3524 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3525    { (exit 1); exit 1; }; }
3526       ;;
3527   esac
3528
3529 else
3530   enable_odbc=no
3531
3532 fi;
3533
3534
3535
3536
3537 # Check whether --with-unixodbc or --without-unixodbc was given.
3538 if test "${with_unixodbc+set}" = set; then
3539   withval="$with_unixodbc"
3540
3541   case $withval in
3542     yes)
3543       :
3544       ;;
3545     no)
3546       :
3547       ;;
3548     *)
3549       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3550 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3551    { (exit 1); exit 1; }; }
3552       ;;
3553   esac
3554
3555 else
3556   with_unixodbc=no
3557
3558 fi;
3559
3560
3561
3562
3563 # Check whether --with-iodbc or --without-iodbc was given.
3564 if test "${with_iodbc+set}" = set; then
3565   withval="$with_iodbc"
3566
3567   case $withval in
3568     yes)
3569       :
3570       ;;
3571     no)
3572       :
3573       ;;
3574     *)
3575       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3576 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3577    { (exit 1); exit 1; }; }
3578       ;;
3579   esac
3580
3581 else
3582   with_iodbc=no
3583
3584 fi;
3585
3586 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3587   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3588 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3592   enable_odbc=yes
3593 fi
3594 case $enable_odbc:$with_unixodbc:$with_iodbc in
3595   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3596 echo "${ECHO_T}yes (stand-alone)" >&6;;
3597   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3598 echo "${ECHO_T}yes (unixODBC)" >&6
3599
3600 cat >>confdefs.h <<\_ACEOF
3601 #define WITH_UNIXODBC 1
3602 _ACEOF
3603
3604                 ;;
3605   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3606 echo "${ECHO_T}yes (iODBC)" >&6
3607
3608 cat >>confdefs.h <<\_ACEOF
3609 #define WITH_IODBC 1
3610 _ACEOF
3611
3612                 ;;
3613   no:*)         echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6;;
3615 esac
3616
3617
3618
3619
3620
3621 # Allow for overriding the default location of the odbcinst.ini
3622 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3623
3624
3625
3626 # Check whether --with-odbcinst or --without-odbcinst was given.
3627 if test "${with_odbcinst+set}" = set; then
3628   withval="$with_odbcinst"
3629
3630   case $withval in
3631     yes)
3632       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3633 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3634    { (exit 1); exit 1; }; }
3635       ;;
3636     no)
3637       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3638 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3639    { (exit 1); exit 1; }; }
3640       ;;
3641     *)
3642       odbcinst_ini_dir=$withval
3643       ;;
3644   esac
3645
3646 else
3647   odbcinst_ini_dir="\${sysconfdir}"
3648 fi;
3649
3650
3651
3652
3653
3654 # Assume system is ELF if it predefines __ELF__ as 1,
3655 # otherwise believe host_os based default.
3656 case $host_os in
3657     freebsd1*|freebsd2*) elf=no;;
3658     freebsd3*|freebsd4*) elf=yes;;
3659 esac
3660
3661
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #if __ELF__
3666   yes
3667 #endif
3668
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671   egrep "yes" >/dev/null 2>&1; then
3672   ELF_SYS=true
3673 else
3674   if test "X$elf" = "Xyes" ; then
3675   ELF_SYS=true
3676 else
3677   ELF_SYS=
3678 fi
3679 fi
3680 rm -f conftest*
3681
3682
3683
3684
3685
3686 #
3687 # Optionally build C++ code (i.e., libpq++)
3688 #
3689 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3690 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3691
3692
3693
3694 # Check whether --with-CXX or --without-CXX was given.
3695 if test "${with_CXX+set}" = set; then
3696   withval="$with_CXX"
3697
3698   case $withval in
3699     yes)
3700       :
3701       ;;
3702     no)
3703       :
3704       ;;
3705     *)
3706       with_CXX=yes
3707 CXX=$withval
3708       ;;
3709   esac
3710
3711 else
3712   with_CXX=no
3713 fi;
3714
3715
3716 if test "$with_CXX" = yes; then
3717
3718   echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6
3720
3721   # If the user has specified CXXFLAGS in the environment, leave it
3722   # alone, else use a default.
3723
3724   ac_ext=cc
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729 if test -n "$ac_tool_prefix"; then
3730   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3731   do
3732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_CXX+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$CXX"; then
3740   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755
3756 fi
3757 fi
3758 CXX=$ac_cv_prog_CXX
3759 if test -n "$CXX"; then
3760   echo "$as_me:$LINENO: result: $CXX" >&5
3761 echo "${ECHO_T}$CXX" >&6
3762 else
3763   echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766
3767     test -n "$CXX" && break
3768   done
3769 fi
3770 if test -z "$CXX"; then
3771   ac_ct_CXX=$CXX
3772   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774   # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$ac_ct_CXX"; then
3782   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791     ac_cv_prog_ac_ct_CXX="$ac_prog"
3792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796 done
3797
3798 fi
3799 fi
3800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3801 if test -n "$ac_ct_CXX"; then
3802   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3803 echo "${ECHO_T}$ac_ct_CXX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809   test -n "$ac_ct_CXX" && break
3810 done
3811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3812
3813   CXX=$ac_ct_CXX
3814 fi
3815
3816
3817 # Provide some information about the compiler.
3818 echo "$as_me:$LINENO:" \
3819      "checking for C++ compiler version" >&5
3820 ac_compiler=`set X $ac_compile; echo $2`
3821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3822   (eval $ac_compiler --version </dev/null >&5) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }
3826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3827   (eval $ac_compiler -v </dev/null >&5) 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }
3831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3832   (eval $ac_compiler -V </dev/null >&5) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }
3836
3837 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3845
3846 #ifdef F77_DUMMY_MAIN
3847 #  ifdef __cplusplus
3848      extern "C"
3849 #  endif
3850    int F77_DUMMY_MAIN() { return 1; }
3851 #endif
3852 int
3853 main ()
3854 {
3855 #ifndef __GNUC__
3856        choke me
3857 #endif
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865   (eval $ac_compile) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -s conftest.$ac_objext'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   ac_compiler_gnu=yes
3876 else
3877   echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 ac_compiler_gnu=no
3880 fi
3881 rm -f conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3887 GXX=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CXXFLAGS=${CXXFLAGS+set}
3889 ac_save_CXXFLAGS=$CXXFLAGS
3890 CXXFLAGS="-g"
3891 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3892 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cxx_g+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   cat >conftest.$ac_ext <<_ACEOF
3897 #line $LINENO "configure"
3898 #include "confdefs.h"
3899
3900 #ifdef F77_DUMMY_MAIN
3901 #  ifdef __cplusplus
3902      extern "C"
3903 #  endif
3904    int F77_DUMMY_MAIN() { return 1; }
3905 #endif
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916   (eval $ac_compile) 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920          { ac_try='test -s conftest.$ac_objext'
3921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922   (eval $ac_try) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; }; then
3926   ac_cv_prog_cxx_g=yes
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 ac_cv_prog_cxx_g=no
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3935 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3936 if test "$ac_test_CXXFLAGS" = set; then
3937   CXXFLAGS=$ac_save_CXXFLAGS
3938 elif test $ac_cv_prog_cxx_g = yes; then
3939   if test "$GXX" = yes; then
3940     CXXFLAGS="-g -O2"
3941   else
3942     CXXFLAGS="-g"
3943   fi
3944 else
3945   if test "$GXX" = yes; then
3946     CXXFLAGS="-O2"
3947   else
3948     CXXFLAGS=
3949   fi
3950 fi
3951 for ac_declaration in \
3952    ''\
3953    '#include <stdlib.h>' \
3954    'extern "C" void std::exit (int) throw (); using std::exit;' \
3955    'extern "C" void std::exit (int); using std::exit;' \
3956    'extern "C" void exit (int) throw ();' \
3957    'extern "C" void exit (int);' \
3958    'void exit (int);'
3959 do
3960   cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 #include "confdefs.h"
3963 #include <stdlib.h>
3964 $ac_declaration
3965 #ifdef F77_DUMMY_MAIN
3966 #  ifdef __cplusplus
3967      extern "C"
3968 #  endif
3969    int F77_DUMMY_MAIN() { return 1; }
3970 #endif
3971 int
3972 main ()
3973 {
3974 exit (42);
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981   (eval $ac_compile) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -s conftest.$ac_objext'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 continue
3996 fi
3997 rm -f conftest.$ac_objext conftest.$ac_ext
3998   cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 $ac_declaration
4002 #ifdef F77_DUMMY_MAIN
4003 #  ifdef __cplusplus
4004      extern "C"
4005 #  endif
4006    int F77_DUMMY_MAIN() { return 1; }
4007 #endif
4008 int
4009 main ()
4010 {
4011 exit (42);
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018   (eval $ac_compile) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 fi
4033 rm -f conftest.$ac_objext conftest.$ac_ext
4034 done
4035 rm -f conftest*
4036 if test -n "$ac_declaration"; then
4037   echo '#ifdef __cplusplus' >>confdefs.h
4038   echo $ac_declaration      >>confdefs.h
4039   echo '#endif'             >>confdefs.h
4040 fi
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048   if test "$ac_env_CXXFLAGS" != set; then
4049     if test "$GXX" = yes; then
4050       CXXFLAGS="$GCC_CXXFLAGS"
4051     else
4052       CXXFLAGS="$VENDOR_CXXFLAGS"
4053     fi
4054   fi
4055   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056     CXXFLAGS="$CXXFLAGS -g"
4057   fi
4058   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4060
4061   ac_ext=cc
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072       # Double quotes because CXXCPP needs to be expanded
4073     for CXXCPP in "$CXX -E" "/lib/cpp"
4074     do
4075       ac_preproc_ok=false
4076 for ac_cxx_preproc_warn_flag in '' yes
4077 do
4078   # Use a header file that comes with gcc, so configuring glibc
4079   # with a fresh cross-compiler works.
4080   # On the NeXT, cc -E runs the code through the compiler's parser,
4081   # not just through cpp. "Syntax error" is here to catch this case.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 #include <assert.h>
4086                      Syntax error
4087 _ACEOF
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090   ac_status=$?
4091   egrep -v '^ *\+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } >/dev/null; then
4096   if test -s conftest.err; then
4097     ac_cpp_err=$ac_cxx_preproc_warn_flag
4098   else
4099     ac_cpp_err=
4100   fi
4101 else
4102   ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105   :
4106 else
4107   echo "$as_me: failed program was:" >&5
4108   cat conftest.$ac_ext >&5
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   egrep -v '^ *\+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_cxx_preproc_warn_flag
4131   else
4132     ac_cpp_err=
4133   fi
4134 else
4135   ac_cpp_err=yes
4136 fi
4137 if test -z "$ac_cpp_err"; then
4138   # Broken: success on invalid input.
4139 continue
4140 else
4141   echo "$as_me: failed program was:" >&5
4142   cat conftest.$ac_ext >&5
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4153   break
4154 fi
4155
4156     done
4157     ac_cv_prog_CXXCPP=$CXXCPP
4158
4159 fi
4160   CXXCPP=$ac_cv_prog_CXXCPP
4161 else
4162   ac_cv_prog_CXXCPP=$CXXCPP
4163 fi
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4166 ac_preproc_ok=false
4167 for ac_cxx_preproc_warn_flag in '' yes
4168 do
4169   # Use a header file that comes with gcc, so configuring glibc
4170   # with a fresh cross-compiler works.
4171   # On the NeXT, cc -E runs the code through the compiler's parser,
4172   # not just through cpp. "Syntax error" is here to catch this case.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 #include <assert.h>
4177                      Syntax error
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_cxx_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   # Broken: fails on valid input.
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_ext
4204
4205   # OK, works on sane cases.  Now check whether non-existent headers
4206   # can be detected and how.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214   ac_status=$?
4215   egrep -v '^ *\+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } >/dev/null; then
4220   if test -s conftest.err; then
4221     ac_cpp_err=$ac_cxx_preproc_warn_flag
4222   else
4223     ac_cpp_err=
4224   fi
4225 else
4226   ac_cpp_err=yes
4227 fi
4228 if test -z "$ac_cpp_err"; then
4229   # Broken: success on invalid input.
4230 continue
4231 else
4232   echo "$as_me: failed program was:" >&5
4233   cat conftest.$ac_ext >&5
4234   # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4237 fi
4238 rm -f conftest.err conftest.$ac_ext
4239
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4244   :
4245 else
4246   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248    { (exit 1); exit 1; }; }
4249 fi
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264
4265
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4268
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4273
4274
4275 for ac_prog in gawk mawk nawk awk
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$AWK"; then
4285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AWK="$ac_prog"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 AWK=$ac_cv_prog_AWK
4304 if test -n "$AWK"; then
4305   echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312   test -n "$AWK" && break
4313 done
4314
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   # Let the user override the test
4321 if test -n "$FLEX"; then
4322   pgac_cv_path_flex=$FLEX
4323 else
4324   pgac_save_IFS=$IFS
4325   IFS=:
4326   for pgac_dir in $PATH; do
4327     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4328       pgac_dir=`pwd`
4329     fi
4330     for pgac_prog in flex lex; do
4331       pgac_candidate="$pgac_dir/$pgac_prog"
4332       if test -f "$pgac_candidate" \
4333         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4334       then
4335         echo '%%'  > conftest.l
4336         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338             pgac_broken_flex=$pgac_candidate
4339             continue
4340           fi
4341
4342           pgac_cv_path_flex=$pgac_candidate
4343           break 2
4344         fi
4345       fi
4346     done
4347   done
4348   IFS=$pgac_save_IFS
4349   rm -f conftest.l
4350   : ${pgac_cv_path_flex=no}
4351 fi
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357   if test -n "$pgac_broken_flex"; then
4358     { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4364   fi
4365
4366   { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files.  You can obtain Flex from
4369 *** a GNU mirror site.  (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files.  You can obtain Flex from
4375 *** a GNU mirror site.  (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4378 fi
4379
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381   FLEX=
4382 else
4383   FLEX=$pgac_cv_path_flex
4384 fi
4385
4386
4387
4388
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4391 LN_S=$as_ln_s
4392 if test "$LN_S" = "ln -s"; then
4393   echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4395 else
4396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4398 fi
4399
4400
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403   withval="$with_gnu_ld"
4404   test "$withval" = no || with_gnu_ld=yes
4405 else
4406   with_gnu_ld=no
4407 fi;
4408 ac_prog=ld
4409 if test "$GCC" = yes; then
4410   # Check if gcc -print-prog-name=ld gives a path.
4411   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4413   case $host in
4414   *-*-mingw*)
4415     # gcc leaves a trailing carriage return which upsets mingw
4416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417   *)
4418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419   esac
4420   case "$ac_prog" in
4421     # Accept absolute paths.
4422     [\\/]* | [A-Za-z]:[\\/]*)
4423       re_direlt='/[^/][^/]*/\.\./'
4424       # Canonicalize the path of ld
4425       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4428       done
4429       test -z "$LD" && LD="$ac_prog"
4430       ;;
4431   "")
4432     # If it fails, then pretend we aren't using GCC.
4433     ac_prog=ld
4434     ;;
4435   *)
4436     # If it is relative, then search for the first ld in PATH.
4437     with_gnu_ld=unknown
4438     ;;
4439   esac
4440 elif test "$with_gnu_ld" = yes; then
4441   echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443 else
4444   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446 fi
4447 if test "${ac_cv_path_LD+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -z "$LD"; then
4451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452   for ac_dir in $PATH; do
4453     test -z "$ac_dir" && ac_dir=.
4454     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455       ac_cv_path_LD="$ac_dir/$ac_prog"
4456       # Check to see if the program is GNU ld.  I'd rather use --version,
4457       # but apparently some GNU ld's only accept -v.
4458       # Break only if it was the GNU/non-GNU ld that we prefer.
4459       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460         test "$with_gnu_ld" != no && break
4461       else
4462         test "$with_gnu_ld" != yes && break
4463       fi
4464     fi
4465   done
4466   IFS="$ac_save_ifs"
4467 else
4468   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4469 fi
4470 fi
4471
4472 LD="$ac_cv_path_LD"
4473 if test -n "$LD"; then
4474   echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482    { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490   ac_cv_prog_gnu_ld=yes
4491 else
4492   ac_cv_prog_gnu_ld=no
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4498
4499
4500
4501
4502 case $host_os in sysv5*)
4503   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508
4509     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510     cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4513
4514 #ifdef F77_DUMMY_MAIN
4515 #  ifdef __cplusplus
4516      extern "C"
4517 #  endif
4518    int F77_DUMMY_MAIN() { return 1; }
4519 #endif
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530   (eval $ac_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -s conftest$ac_exeext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   pgac_cv_prog_ld_R=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4545 fi
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547     LDFLAGS=$pgac_save_LDFLAGS
4548
4549 fi
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552   ld_R_works=$pgac_cv_prog_ld_R
4553
4554 esac
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 for ac_prog in lorder
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$LORDER"; then
4645   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_LORDER="$ac_prog"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660
4661 fi
4662 fi
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665   echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   test -n "$LORDER" && break
4673 done
4674
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   case $TAR in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700
4701   ;;
4702 esac
4703 fi
4704 TAR=$ac_cv_path_TAR
4705
4706 if test -n "$TAR"; then
4707   echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4709 else
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 fi
4713
4714
4715   if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$STRIP"; then
4724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744   echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_STRIP"; then
4753   ac_ct_STRIP=$STRIP
4754   # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_STRIP"; then
4762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_STRIP="strip"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779 fi
4780 fi
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   STRIP=$ac_ct_STRIP
4791 else
4792   STRIP="$ac_cv_prog_STRIP"
4793 fi
4794
4795
4796   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799     STRIP_STATIC_LIB="$STRIP -x"
4800     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801     echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4803   else
4804     STRIP_STATIC_LIB=:
4805     STRIP_SHARED_LIB=:
4806     echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808   fi
4809
4810
4811
4812
4813 for ac_prog in 'bison -y'
4814 do
4815   # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$YACC"; then
4823   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_YACC="$ac_prog"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843   echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$YACC" && break
4851 done
4852
4853 if test -z "$YACC"; then
4854   { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files.  You can obtain Bison from
4857 *** a GNU mirror site.  (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.)  To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files.  You can obtain Bison from
4865 *** a GNU mirror site.  (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.)  To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4870 fi
4871
4872
4873 if test "$with_tk" = yes; then
4874     # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   case $WISH in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899
4900   ;;
4901 esac
4902 fi
4903 WISH=$ac_cv_path_WISH
4904
4905 if test -n "$WISH"; then
4906   echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915    { (exit 1); exit 1; }; }
4916 fi
4917
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   case $PERL in
4926   [\\/]* | ?:[\\/]*)
4927   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4928   ;;
4929   *)
4930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944   ;;
4945 esac
4946 fi
4947 PERL=$ac_cv_path_PERL
4948
4949 if test -n "$PERL"; then
4950   echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957 if test "$with_perl" = yes; then
4958
4959 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4960 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4961 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4962 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4963 echo "${ECHO_T}$perl_installsitearch" >&6
4964 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4965 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4968 echo "${ECHO_T}$perl_installman3dir" >&6
4969 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4970 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4971 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4972 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4973 echo "${ECHO_T}$perl_archlibexp" >&6
4974 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4975 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4976 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4977 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4978 echo "${ECHO_T}$perl_privlibexp" >&6
4979 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4980 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4981 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4982 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4983 echo "${ECHO_T}$perl_useshrplib" >&6
4984 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4985 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4986 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4987 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4988 echo "${ECHO_T}$perl_man3ext" >&6
4989
4990 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4991 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4992 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4993 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4994 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4995 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4996 echo "${ECHO_T}$perl_embed_ldflags" >&6
4997 fi
4998
4999 if test "$with_python" = yes; then
5000   # Extract the first word of "python", so it can be a program name with args.
5001 set dummy python; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_PYTHON+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case $PYTHON in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025
5026   ;;
5027 esac
5028 fi
5029 PYTHON=$ac_cv_path_PYTHON
5030
5031 if test -n "$PYTHON"; then
5032   echo "$as_me:$LINENO: result: $PYTHON" >&5
5033 echo "${ECHO_T}$PYTHON" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039 if test x"$PYTHON" = x""; then
5040   { { echo "$as_me:$LINENO: error: Python not found" >&5
5041 echo "$as_me: error: Python not found" >&2;}
5042    { (exit 1); exit 1; }; }
5043 fi
5044
5045
5046 echo "$as_me:$LINENO: checking Python installation directories" >&5
5047 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5048 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5049 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5050 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5051 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5052 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5053 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5054 python_includespec="-I${python_prefix}/include/python${python_version}"
5055 if test "$python_prefix" != "$python_execprefix"; then
5056   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5057 fi
5058
5059 # This should be enough of a message.
5060 if test "$python_prefix" != "$python_execprefix"; then
5061   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5062 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5063 else
5064   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5065 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5066 fi
5067
5068
5069
5070
5071
5072 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5073 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5074
5075 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080
5081 pgac_tab="      " # tab character
5082 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
5083
5084 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5085 echo "${ECHO_T}${python_libspec}" >&6
5086
5087
5088 fi
5089
5090
5091 ##
5092 ## Libraries
5093 ##
5094
5095 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5096 then
5097
5098 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5099 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5100 if test "${ac_cv_lib_bsd_main+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   ac_check_lib_save_LIBS=$LIBS
5104 LIBS="-lbsd  $LIBS"
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 #include "confdefs.h"
5108
5109
5110 #ifdef F77_DUMMY_MAIN
5111 #  ifdef __cplusplus
5112      extern "C"
5113 #  endif
5114    int F77_DUMMY_MAIN() { return 1; }
5115 #endif
5116 int
5117 main ()
5118 {
5119 main ();
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126   (eval $ac_link) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_lib_bsd_main=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 ac_cv_lib_bsd_main=no
5141 fi
5142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5146 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5147 if test $ac_cv_lib_bsd_main = yes; then
5148   cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LIBBSD 1
5150 _ACEOF
5151
5152   LIBS="-lbsd $LIBS"
5153
5154 fi
5155
5156 fi
5157
5158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-lutil  $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 #include "confdefs.h"
5168
5169 /* Override any gcc2 internal prototype to avoid an error.  */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 /* We use char because int might match the return type of a gcc2
5174    builtin and then its argument prototype would still apply.  */
5175 char setproctitle ();
5176 #ifdef F77_DUMMY_MAIN
5177 #  ifdef __cplusplus
5178      extern "C"
5179 #  endif
5180    int F77_DUMMY_MAIN() { return 1; }
5181 #endif
5182 int
5183 main ()
5184 {
5185 setproctitle ();
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -s conftest$ac_exeext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   ac_cv_lib_util_setproctitle=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_util_setproctitle=no
5207 fi
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5210 fi
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5212 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5213 if test $ac_cv_lib_util_setproctitle = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBUTIL 1
5216 _ACEOF
5217
5218   LIBS="-lutil $LIBS"
5219
5220 fi
5221
5222
5223 echo "$as_me:$LINENO: checking for main in -lm" >&5
5224 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5225 if test "${ac_cv_lib_m_main+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lm  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5233
5234
5235 #ifdef F77_DUMMY_MAIN
5236 #  ifdef __cplusplus
5237      extern "C"
5238 #  endif
5239    int F77_DUMMY_MAIN() { return 1; }
5240 #endif
5241 int
5242 main ()
5243 {
5244 main ();
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251   (eval $ac_link) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } &&
5255          { ac_try='test -s conftest$ac_exeext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_cv_lib_m_main=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_lib_m_main=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5272 if test $ac_cv_lib_m_main = yes; then
5273   cat >>confdefs.h <<_ACEOF
5274 #define HAVE_LIBM 1
5275 _ACEOF
5276
5277   LIBS="-lm $LIBS"
5278
5279 fi
5280
5281
5282 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5283 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_dl_main+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-ldl  $LIBS"
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292
5293
5294 #ifdef F77_DUMMY_MAIN
5295 #  ifdef __cplusplus
5296      extern "C"
5297 #  endif
5298    int F77_DUMMY_MAIN() { return 1; }
5299 #endif
5300 int
5301 main ()
5302 {
5303 main ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_lib_dl_main=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_lib_dl_main=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5330 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5331 if test $ac_cv_lib_dl_main = yes; then
5332   cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBDL 1
5334 _ACEOF
5335
5336   LIBS="-ldl $LIBS"
5337
5338 fi
5339
5340
5341 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5342 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5343 if test "${ac_cv_lib_nsl_main+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lnsl  $LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5351
5352
5353 #ifdef F77_DUMMY_MAIN
5354 #  ifdef __cplusplus
5355      extern "C"
5356 #  endif
5357    int F77_DUMMY_MAIN() { return 1; }
5358 #endif
5359 int
5360 main ()
5361 {
5362 main ();
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369   (eval $ac_link) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_lib_nsl_main=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_nsl_main=no
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5389 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5390 if test $ac_cv_lib_nsl_main = yes; then
5391   cat >>confdefs.h <<_ACEOF
5392 #define HAVE_LIBNSL 1
5393 _ACEOF
5394
5395   LIBS="-lnsl $LIBS"
5396
5397 fi
5398
5399
5400 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5401 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5402 if test "${ac_cv_lib_socket_main+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_check_lib_save_LIBS=$LIBS
5406 LIBS="-lsocket  $LIBS"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410
5411
5412 #ifdef F77_DUMMY_MAIN
5413 #  ifdef __cplusplus
5414      extern "C"
5415 #  endif
5416    int F77_DUMMY_MAIN() { return 1; }
5417 #endif
5418 int
5419 main ()
5420 {
5421 main ();
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428   (eval $ac_link) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -s conftest$ac_exeext'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   ac_cv_lib_socket_main=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_socket_main=no
5443 fi
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5446 fi
5447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5448 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5449 if test $ac_cv_lib_socket_main = yes; then
5450   cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBSOCKET 1
5452 _ACEOF
5453
5454   LIBS="-lsocket $LIBS"
5455
5456 fi
5457
5458
5459 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5460 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5461 if test "${ac_cv_lib_ipc_main+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_check_lib_save_LIBS=$LIBS
5465 LIBS="-lipc  $LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5469
5470
5471 #ifdef F77_DUMMY_MAIN
5472 #  ifdef __cplusplus
5473      extern "C"
5474 #  endif
5475    int F77_DUMMY_MAIN() { return 1; }
5476 #endif
5477 int
5478 main ()
5479 {
5480 main ();
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487   (eval $ac_link) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -s conftest$ac_exeext'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; }; then
5497   ac_cv_lib_ipc_main=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 ac_cv_lib_ipc_main=no
5502 fi
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5505 fi
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5507 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5508 if test $ac_cv_lib_ipc_main = yes; then
5509   cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBIPC 1
5511 _ACEOF
5512
5513   LIBS="-lipc $LIBS"
5514
5515 fi
5516
5517
5518 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5519 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5520 if test "${ac_cv_lib_IPC_main+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-lIPC  $LIBS"
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 #include "confdefs.h"
5528
5529
5530 #ifdef F77_DUMMY_MAIN
5531 #  ifdef __cplusplus
5532      extern "C"
5533 #  endif
5534    int F77_DUMMY_MAIN() { return 1; }
5535 #endif
5536 int
5537 main ()
5538 {
5539 main ();
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546   (eval $ac_link) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } &&
5550          { ac_try='test -s conftest$ac_exeext'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; }; then
5556   ac_cv_lib_IPC_main=yes
5557 else
5558   echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 ac_cv_lib_IPC_main=no
5561 fi
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5567 if test $ac_cv_lib_IPC_main = yes; then
5568   cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBIPC 1
5570 _ACEOF
5571
5572   LIBS="-lIPC $LIBS"
5573
5574 fi
5575
5576
5577 echo "$as_me:$LINENO: checking for main in -llc" >&5
5578 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5579 if test "${ac_cv_lib_lc_main+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-llc  $LIBS"
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 #include "confdefs.h"
5587
5588
5589 #ifdef F77_DUMMY_MAIN
5590 #  ifdef __cplusplus
5591      extern "C"
5592 #  endif
5593    int F77_DUMMY_MAIN() { return 1; }
5594 #endif
5595 int
5596 main ()
5597 {
5598 main ();
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605   (eval $ac_link) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -s conftest$ac_exeext'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   ac_cv_lib_lc_main=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_lc_main=no
5620 fi
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5625 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5626 if test $ac_cv_lib_lc_main = yes; then
5627   cat >>confdefs.h <<_ACEOF
5628 #define HAVE_LIBLC 1
5629 _ACEOF
5630
5631   LIBS="-llc $LIBS"
5632
5633 fi
5634
5635
5636 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5637 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5638 if test "${ac_cv_lib_dld_main+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-ldld  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5646
5647
5648 #ifdef F77_DUMMY_MAIN
5649 #  ifdef __cplusplus
5650      extern "C"
5651 #  endif
5652    int F77_DUMMY_MAIN() { return 1; }
5653 #endif
5654 int
5655 main ()
5656 {
5657 main ();
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664   (eval $ac_link) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest$ac_exeext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_lib_dld_main=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_dld_main=no
5679 fi
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5684 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5685 if test $ac_cv_lib_dld_main = yes; then
5686   cat >>confdefs.h <<_ACEOF
5687 #define HAVE_LIBDLD 1
5688 _ACEOF
5689
5690   LIBS="-ldld $LIBS"
5691
5692 fi
5693
5694
5695 echo "$as_me:$LINENO: checking for main in -lld" >&5
5696 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ld_main+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lld  $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5705
5706
5707 #ifdef F77_DUMMY_MAIN
5708 #  ifdef __cplusplus
5709      extern "C"
5710 #  endif
5711    int F77_DUMMY_MAIN() { return 1; }
5712 #endif
5713 int
5714 main ()
5715 {
5716 main ();
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723   (eval $ac_link) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -s conftest$ac_exeext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_lib_ld_main=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_ld_main=no
5738 fi
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5744 if test $ac_cv_lib_ld_main = yes; then
5745   cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBLD 1
5747 _ACEOF
5748
5749   LIBS="-lld $LIBS"
5750
5751 fi
5752
5753
5754 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5755 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5756 if test "${ac_cv_lib_compat_main+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lcompat  $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764
5765
5766 #ifdef F77_DUMMY_MAIN
5767 #  ifdef __cplusplus
5768      extern "C"
5769 #  endif
5770    int F77_DUMMY_MAIN() { return 1; }
5771 #endif
5772 int
5773 main ()
5774 {
5775 main ();
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest$ac_exeext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_lib_compat_main=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_cv_lib_compat_main=no
5797 fi
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5800 fi
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5802 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5803 if test $ac_cv_lib_compat_main = yes; then
5804   cat >>confdefs.h <<_ACEOF
5805 #define HAVE_LIBCOMPAT 1
5806 _ACEOF
5807
5808   LIBS="-lcompat $LIBS"
5809
5810 fi
5811
5812
5813 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5814 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5815 if test "${ac_cv_lib_BSD_main+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lBSD  $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5823
5824
5825 #ifdef F77_DUMMY_MAIN
5826 #  ifdef __cplusplus
5827      extern "C"
5828 #  endif
5829    int F77_DUMMY_MAIN() { return 1; }
5830 #endif
5831 int
5832 main ()
5833 {
5834 main ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_lib_BSD_main=yes
5852 else
5853   echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_cv_lib_BSD_main=no
5856 fi
5857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5861 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5862 if test $ac_cv_lib_BSD_main = yes; then
5863   cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBBSD 1
5865 _ACEOF
5866
5867   LIBS="-lBSD $LIBS"
5868
5869 fi
5870
5871
5872 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5873 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5874 if test "${ac_cv_lib_gen_main+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   ac_check_lib_save_LIBS=$LIBS
5878 LIBS="-lgen  $LIBS"
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882
5883
5884 #ifdef F77_DUMMY_MAIN
5885 #  ifdef __cplusplus
5886      extern "C"
5887 #  endif
5888    int F77_DUMMY_MAIN() { return 1; }
5889 #endif
5890 int
5891 main ()
5892 {
5893 main ();
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_lib_gen_main=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 ac_cv_lib_gen_main=no
5915 fi
5916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5918 fi
5919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5920 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5921 if test $ac_cv_lib_gen_main = yes; then
5922   cat >>confdefs.h <<_ACEOF
5923 #define HAVE_LIBGEN 1
5924 _ACEOF
5925
5926   LIBS="-lgen $LIBS"
5927
5928 fi
5929
5930
5931 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5932 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5933 if test "${ac_cv_lib_PW_main+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   ac_check_lib_save_LIBS=$LIBS
5937 LIBS="-lPW  $LIBS"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5941
5942
5943 #ifdef F77_DUMMY_MAIN
5944 #  ifdef __cplusplus
5945      extern "C"
5946 #  endif
5947    int F77_DUMMY_MAIN() { return 1; }
5948 #endif
5949 int
5950 main ()
5951 {
5952 main ();
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959   (eval $ac_link) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -s conftest$ac_exeext'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; }; then
5969   ac_cv_lib_PW_main=yes
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 ac_cv_lib_PW_main=no
5974 fi
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5977 fi
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5979 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5980 if test $ac_cv_lib_PW_main = yes; then
5981   cat >>confdefs.h <<_ACEOF
5982 #define HAVE_LIBPW 1
5983 _ACEOF
5984
5985   LIBS="-lPW $LIBS"
5986
5987 fi
5988
5989
5990 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5991 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5992 if test "${ac_cv_lib_resolv_main+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lresolv  $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6000
6001
6002 #ifdef F77_DUMMY_MAIN
6003 #  ifdef __cplusplus
6004      extern "C"
6005 #  endif
6006    int F77_DUMMY_MAIN() { return 1; }
6007 #endif
6008 int
6009 main ()
6010 {
6011 main ();
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -s conftest$ac_exeext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_lib_resolv_main=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_lib_resolv_main=no
6033 fi
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6039 if test $ac_cv_lib_resolv_main = yes; then
6040   cat >>confdefs.h <<_ACEOF
6041 #define HAVE_LIBRESOLV 1
6042 _ACEOF
6043
6044   LIBS="-lresolv $LIBS"
6045
6046 fi
6047
6048
6049 echo "$as_me:$LINENO: checking for main in -lgetopt" >&5
6050 echo $ECHO_N "checking for main in -lgetopt... $ECHO_C" >&6
6051 if test "${ac_cv_lib_getopt_main+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lgetopt  $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6059
6060
6061 #ifdef F77_DUMMY_MAIN
6062 #  ifdef __cplusplus
6063      extern "C"
6064 #  endif
6065    int F77_DUMMY_MAIN() { return 1; }
6066 #endif
6067 int
6068 main ()
6069 {
6070 main ();
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest$ac_exeext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_lib_getopt_main=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 ac_cv_lib_getopt_main=no
6092 fi
6093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094 LIBS=$ac_check_lib_save_LIBS
6095 fi
6096 echo "$as_me:$LINENO: result: $ac_cv_lib_getopt_main" >&5
6097 echo "${ECHO_T}$ac_cv_lib_getopt_main" >&6
6098 if test $ac_cv_lib_getopt_main = yes; then
6099   cat >>confdefs.h <<_ACEOF
6100 #define HAVE_LIBGETOPT 1
6101 _ACEOF
6102
6103   LIBS="-lgetopt $LIBS"
6104
6105 fi
6106
6107 # QNX:
6108
6109 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6110 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6111 if test "${ac_cv_lib_unix_main+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   ac_check_lib_save_LIBS=$LIBS
6115 LIBS="-lunix  $LIBS"
6116 cat >conftest.$ac_ext <<_ACEOF
6117 #line $LINENO "configure"
6118 #include "confdefs.h"
6119
6120
6121 #ifdef F77_DUMMY_MAIN
6122 #  ifdef __cplusplus
6123      extern "C"
6124 #  endif
6125    int F77_DUMMY_MAIN() { return 1; }
6126 #endif
6127 int
6128 main ()
6129 {
6130 main ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137   (eval $ac_link) 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -s conftest$ac_exeext'
6142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143   (eval $ac_try) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); }; }; then
6147   ac_cv_lib_unix_main=yes
6148 else
6149   echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 ac_cv_lib_unix_main=no
6152 fi
6153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6154 LIBS=$ac_check_lib_save_LIBS
6155 fi
6156 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6157 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6158 if test $ac_cv_lib_unix_main = yes; then
6159   cat >>confdefs.h <<_ACEOF
6160 #define HAVE_LIBUNIX 1
6161 _ACEOF
6162
6163   LIBS="-lunix $LIBS"
6164
6165 fi
6166
6167 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6168 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6169 if test "${ac_cv_search_crypt+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   ac_func_search_save_LIBS=$LIBS
6173 ac_cv_search_crypt=no
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 #include "confdefs.h"
6177
6178 /* Override any gcc2 internal prototype to avoid an error.  */
6179 #ifdef __cplusplus
6180 extern "C"
6181 #endif
6182 /* We use char because int might match the return type of a gcc2
6183    builtin and then its argument prototype would still apply.  */
6184 char crypt ();
6185 #ifdef F77_DUMMY_MAIN
6186 #  ifdef __cplusplus
6187      extern "C"
6188 #  endif
6189    int F77_DUMMY_MAIN() { return 1; }
6190 #endif
6191 int
6192 main ()
6193 {
6194 crypt ();
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201   (eval $ac_link) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } &&
6205          { ac_try='test -s conftest$ac_exeext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_search_crypt="none required"
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 fi
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217 if test "$ac_cv_search_crypt" = no; then
6218   for ac_lib in crypt; do
6219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6220     cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6223
6224 /* Override any gcc2 internal prototype to avoid an error.  */
6225 #ifdef __cplusplus
6226 extern "C"
6227 #endif
6228 /* We use char because int might match the return type of a gcc2
6229    builtin and then its argument prototype would still apply.  */
6230 char crypt ();
6231 #ifdef F77_DUMMY_MAIN
6232 #  ifdef __cplusplus
6233      extern "C"
6234 #  endif
6235    int F77_DUMMY_MAIN() { return 1; }
6236 #endif
6237 int
6238 main ()
6239 {
6240 crypt ();
6241   ;
6242   return 0;
6243 }
6244 _ACEOF
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247   (eval $ac_link) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); } &&
6251          { ac_try='test -s conftest$ac_exeext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   ac_cv_search_crypt="-l$ac_lib"
6258 break
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 fi
6263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264   done
6265 fi
6266 LIBS=$ac_func_search_save_LIBS
6267 fi
6268 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6269 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6270 if test "$ac_cv_search_crypt" != no; then
6271   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6272
6273 fi
6274
6275 # BeOS:
6276
6277 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6278 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6279 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   ac_check_lib_save_LIBS=$LIBS
6283 LIBS="-lbind  $LIBS"
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287
6288 /* Override any gcc2 internal prototype to avoid an error.  */
6289 #ifdef __cplusplus
6290 extern "C"
6291 #endif
6292 /* We use char because int might match the return type of a gcc2
6293    builtin and then its argument prototype would still apply.  */
6294 char __inet_ntoa ();
6295 #ifdef F77_DUMMY_MAIN
6296 #  ifdef __cplusplus
6297      extern "C"
6298 #  endif
6299    int F77_DUMMY_MAIN() { return 1; }
6300 #endif
6301 int
6302 main ()
6303 {
6304 __inet_ntoa ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_lib_bind___inet_ntoa=yes
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 ac_cv_lib_bind___inet_ntoa=no
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 LIBS=$ac_check_lib_save_LIBS
6329 fi
6330 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6331 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6332 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6333   cat >>confdefs.h <<_ACEOF
6334 #define HAVE_LIBBIND 1
6335 _ACEOF
6336
6337   LIBS="-lbind $LIBS"
6338
6339 fi
6340
6341 # Solaris:
6342 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6343 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6344 if test "${ac_cv_search_fdatasync+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   ac_func_search_save_LIBS=$LIBS
6348 ac_cv_search_fdatasync=no
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358    builtin and then its argument prototype would still apply.  */
6359 char fdatasync ();
6360 #ifdef F77_DUMMY_MAIN
6361 #  ifdef __cplusplus
6362      extern "C"
6363 #  endif
6364    int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6366 int
6367 main ()
6368 {
6369 fdatasync ();
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest$ac_exeext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_search_fdatasync="none required"
6387 else
6388   echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 fi
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6392 if test "$ac_cv_search_fdatasync" = no; then
6393   for ac_lib in rt posix4; do
6394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6395     cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 #include "confdefs.h"
6398
6399 /* Override any gcc2 internal prototype to avoid an error.  */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 /* We use char because int might match the return type of a gcc2
6404    builtin and then its argument prototype would still apply.  */
6405 char fdatasync ();
6406 #ifdef F77_DUMMY_MAIN
6407 #  ifdef __cplusplus
6408      extern "C"
6409 #  endif
6410    int F77_DUMMY_MAIN() { return 1; }
6411 #endif
6412 int
6413 main ()
6414 {
6415 fdatasync ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422   (eval $ac_link) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); } &&
6426          { ac_try='test -s conftest$ac_exeext'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_cv_search_fdatasync="-l$ac_lib"
6433 break
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 fi
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439   done
6440 fi
6441 LIBS=$ac_func_search_save_LIBS
6442 fi
6443 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6444 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6445 if test "$ac_cv_search_fdatasync" != no; then
6446   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6447
6448 fi
6449
6450
6451 if test "$with_readline" = yes; then
6452
6453 echo "$as_me:$LINENO: checking for readline" >&5
6454 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6455
6456 if test "${pgac_cv_check_readline+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   pgac_cv_check_readline=no
6460 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6461   for pgac_rllib in -lreadline -ledit ; do
6462     pgac_save_LIBS=$LIBS
6463     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6464     cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 #include "confdefs.h"
6467
6468 /* Override any gcc2 internal prototype to avoid an error.  */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473    builtin and then its argument prototype would still apply.  */
6474 char readline ();
6475 #ifdef F77_DUMMY_MAIN
6476 #  ifdef __cplusplus
6477      extern "C"
6478 #  endif
6479    int F77_DUMMY_MAIN() { return 1; }
6480 #endif
6481 int
6482 main ()
6483 {
6484 readline ();
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501
6502       # NetBSD and OpenBSD have a broken linker that does not
6503       # recognize dependent libraries
6504       case $host_os in netbsd* | openbsd* )
6505         case $pgac_lib in
6506           *curses*) ;;
6507           *) pgac_lib=" -lcurses" ;;
6508         esac
6509       esac
6510
6511       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6512       break 2
6513
6514 else
6515   echo "$as_me: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 fi
6518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519     LIBS=$pgac_save_LIBS
6520   done
6521 done
6522 LIBS=$pgac_save_LIBS
6523
6524 fi
6525
6526 if test "$pgac_cv_check_readline" != no ; then
6527
6528 cat >>confdefs.h <<\_ACEOF
6529 #define HAVE_LIBREADLINE 1
6530 _ACEOF
6531
6532   LIBS="$pgac_cv_check_readline $LIBS"
6533   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6534 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6535 else
6536   echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6
6538 fi
6539   if test x"$pgac_cv_check_readline" = x"no"; then
6540     { { echo "$as_me:$LINENO: error: readline library not found
6541 Use --without-readline to disable readline support." >&5
6542 echo "$as_me: error: readline library not found
6543 Use --without-readline to disable readline support." >&2;}
6544    { (exit 1); exit 1; }; }
6545   fi
6546 fi
6547
6548 if test "$with_zlib" = yes; then
6549
6550 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6551 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6552 if test "${ac_cv_lib_z_inflate+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_check_lib_save_LIBS=$LIBS
6556 LIBS="-lz  $LIBS"
6557 cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6560
6561 /* Override any gcc2 internal prototype to avoid an error.  */
6562 #ifdef __cplusplus
6563 extern "C"
6564 #endif
6565 /* We use char because int might match the return type of a gcc2
6566    builtin and then its argument prototype would still apply.  */
6567 char inflate ();
6568 #ifdef F77_DUMMY_MAIN
6569 #  ifdef __cplusplus
6570      extern "C"
6571 #  endif
6572    int F77_DUMMY_MAIN() { return 1; }
6573 #endif
6574 int
6575 main ()
6576 {
6577 inflate ();
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584   (eval $ac_link) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -s conftest$ac_exeext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_cv_lib_z_inflate=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 ac_cv_lib_z_inflate=no
6599 fi
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601 LIBS=$ac_check_lib_save_LIBS
6602 fi
6603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6604 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6605 if test $ac_cv_lib_z_inflate = yes; then
6606   cat >>confdefs.h <<_ACEOF
6607 #define HAVE_LIBZ 1
6608 _ACEOF
6609
6610   LIBS="-lz $LIBS"
6611
6612 else
6613   { { echo "$as_me:$LINENO: error: zlib library not found
6614 Use --without-zlib to disable zlib support." >&5
6615 echo "$as_me: error: zlib library not found
6616 Use --without-zlib to disable zlib support." >&2;}
6617    { (exit 1); exit 1; }; }
6618 fi
6619
6620 fi
6621
6622 if test "$with_krb4" = yes ; then
6623
6624 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6625 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6626 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   ac_check_lib_save_LIBS=$LIBS
6630 LIBS="-ldes  $LIBS"
6631 cat >conftest.$ac_ext <<_ACEOF
6632 #line $LINENO "configure"
6633 #include "confdefs.h"
6634
6635 /* Override any gcc2 internal prototype to avoid an error.  */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 /* We use char because int might match the return type of a gcc2
6640    builtin and then its argument prototype would still apply.  */
6641 char des_encrypt ();
6642 #ifdef F77_DUMMY_MAIN
6643 #  ifdef __cplusplus
6644      extern "C"
6645 #  endif
6646    int F77_DUMMY_MAIN() { return 1; }
6647 #endif
6648 int
6649 main ()
6650 {
6651 des_encrypt ();
6652   ;
6653   return 0;
6654 }
6655 _ACEOF
6656 rm -f conftest.$ac_objext conftest$ac_exeext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6658   (eval $ac_link) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } &&
6662          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6668   ac_cv_lib_des_des_encrypt=yes
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 ac_cv_lib_des_des_encrypt=no
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 LIBS=$ac_check_lib_save_LIBS
6676 fi
6677 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6678 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6679 if test $ac_cv_lib_des_des_encrypt = yes; then
6680   cat >>confdefs.h <<_ACEOF
6681 #define HAVE_LIBDES 1
6682 _ACEOF
6683
6684   LIBS="-ldes $LIBS"
6685
6686 else
6687   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6688 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6689    { (exit 1); exit 1; }; }
6690 fi
6691
6692
6693 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6694 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6695 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   ac_check_lib_save_LIBS=$LIBS
6699 LIBS="-lkrb  $LIBS"
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 #include "confdefs.h"
6703
6704 /* Override any gcc2 internal prototype to avoid an error.  */
6705 #ifdef __cplusplus
6706 extern "C"
6707 #endif
6708 /* We use char because int might match the return type of a gcc2
6709    builtin and then its argument prototype would still apply.  */
6710 char krb_sendauth ();
6711 #ifdef F77_DUMMY_MAIN
6712 #  ifdef __cplusplus
6713      extern "C"
6714 #  endif
6715    int F77_DUMMY_MAIN() { return 1; }
6716 #endif
6717 int
6718 main ()
6719 {
6720 krb_sendauth ();
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727   (eval $ac_link) 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); } &&
6731          { ac_try='test -s conftest$ac_exeext'
6732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733   (eval $ac_try) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; }; then
6737   ac_cv_lib_krb_krb_sendauth=yes
6738 else
6739   echo "$as_me: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6741 ac_cv_lib_krb_krb_sendauth=no
6742 fi
6743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6744 LIBS=$ac_check_lib_save_LIBS
6745 fi
6746 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6747 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6748 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6749   cat >>confdefs.h <<_ACEOF
6750 #define HAVE_LIBKRB 1
6751 _ACEOF
6752
6753   LIBS="-lkrb $LIBS"
6754
6755 else
6756   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6757 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6758    { (exit 1); exit 1; }; }
6759 fi
6760
6761 fi
6762
6763 if test "$with_krb5" = yes ; then
6764   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6765 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6766 if test "${ac_cv_search_com_err+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   ac_func_search_save_LIBS=$LIBS
6770 ac_cv_search_com_err=no
6771 cat >conftest.$ac_ext <<_ACEOF
6772 #line $LINENO "configure"
6773 #include "confdefs.h"
6774
6775 /* Override any gcc2 internal prototype to avoid an error.  */
6776 #ifdef __cplusplus
6777 extern "C"
6778 #endif
6779 /* We use char because int might match the return type of a gcc2
6780    builtin and then its argument prototype would still apply.  */
6781 char com_err ();
6782 #ifdef F77_DUMMY_MAIN
6783 #  ifdef __cplusplus
6784      extern "C"
6785 #  endif
6786    int F77_DUMMY_MAIN() { return 1; }
6787 #endif
6788 int
6789 main ()
6790 {
6791 com_err ();
6792   ;
6793   return 0;
6794 }
6795 _ACEOF
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798   (eval $ac_link) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -s conftest$ac_exeext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   ac_cv_search_com_err="none required"
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6812 fi
6813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814 if test "$ac_cv_search_com_err" = no; then
6815   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6817     cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6820
6821 /* Override any gcc2 internal prototype to avoid an error.  */
6822 #ifdef __cplusplus
6823 extern "C"
6824 #endif
6825 /* We use char because int might match the return type of a gcc2
6826    builtin and then its argument prototype would still apply.  */
6827 char com_err ();
6828 #ifdef F77_DUMMY_MAIN
6829 #  ifdef __cplusplus
6830      extern "C"
6831 #  endif
6832    int F77_DUMMY_MAIN() { return 1; }
6833 #endif
6834 int
6835 main ()
6836 {
6837 com_err ();
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844   (eval $ac_link) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } &&
6848          { ac_try='test -s conftest$ac_exeext'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; }; then
6854   ac_cv_search_com_err="-l$ac_lib"
6855 break
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 fi
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861   done
6862 fi
6863 LIBS=$ac_func_search_save_LIBS
6864 fi
6865 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6866 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6867 if test "$ac_cv_search_com_err" != no; then
6868   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6869
6870 else
6871   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6872 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6873    { (exit 1); exit 1; }; }
6874 fi
6875
6876   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6877 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6878 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   ac_func_search_save_LIBS=$LIBS
6882 ac_cv_search_krb5_encrypt=no
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6886
6887 /* Override any gcc2 internal prototype to avoid an error.  */
6888 #ifdef __cplusplus
6889 extern "C"
6890 #endif
6891 /* We use char because int might match the return type of a gcc2
6892    builtin and then its argument prototype would still apply.  */
6893 char krb5_encrypt ();
6894 #ifdef F77_DUMMY_MAIN
6895 #  ifdef __cplusplus
6896      extern "C"
6897 #  endif
6898    int F77_DUMMY_MAIN() { return 1; }
6899 #endif
6900 int
6901 main ()
6902 {
6903 krb5_encrypt ();
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910   (eval $ac_link) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -s conftest$ac_exeext'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920   ac_cv_search_krb5_encrypt="none required"
6921 else
6922   echo "$as_me: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6924 fi
6925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6926 if test "$ac_cv_search_krb5_encrypt" = no; then
6927   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6929     cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932
6933 /* Override any gcc2 internal prototype to avoid an error.  */
6934 #ifdef __cplusplus
6935 extern "C"
6936 #endif
6937 /* We use char because int might match the return type of a gcc2
6938    builtin and then its argument prototype would still apply.  */
6939 char krb5_encrypt ();
6940 #ifdef F77_DUMMY_MAIN
6941 #  ifdef __cplusplus
6942      extern "C"
6943 #  endif
6944    int F77_DUMMY_MAIN() { return 1; }
6945 #endif
6946 int
6947 main ()
6948 {
6949 krb5_encrypt ();
6950   ;
6951   return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956   (eval $ac_link) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } &&
6960          { ac_try='test -s conftest$ac_exeext'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; }; then
6966   ac_cv_search_krb5_encrypt="-l$ac_lib"
6967 break
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 fi
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973   done
6974 fi
6975 LIBS=$ac_func_search_save_LIBS
6976 fi
6977 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6978 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6979 if test "$ac_cv_search_krb5_encrypt" != no; then
6980   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6981
6982 else
6983   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6984 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6985    { (exit 1); exit 1; }; }
6986 fi
6987
6988   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6989 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6990 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   ac_func_search_save_LIBS=$LIBS
6994 ac_cv_search_krb5_sendauth=no
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6997 #include "confdefs.h"
6998
6999 /* Override any gcc2 internal prototype to avoid an error.  */
7000 #ifdef __cplusplus
7001 extern "C"
7002 #endif
7003 /* We use char because int might match the return type of a gcc2
7004    builtin and then its argument prototype would still apply.  */
7005 char krb5_sendauth ();
7006 #ifdef F77_DUMMY_MAIN
7007 #  ifdef __cplusplus
7008      extern "C"
7009 #  endif
7010    int F77_DUMMY_MAIN() { return 1; }
7011 #endif
7012 int
7013 main ()
7014 {
7015 krb5_sendauth ();
7016   ;
7017   return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022   (eval $ac_link) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } &&
7026          { ac_try='test -s conftest$ac_exeext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   ac_cv_search_krb5_sendauth="none required"
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7036 fi
7037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 if test "$ac_cv_search_krb5_sendauth" = no; then
7039   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7041     cat >conftest.$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7044
7045 /* Override any gcc2 internal prototype to avoid an error.  */
7046 #ifdef __cplusplus
7047 extern "C"
7048 #endif
7049 /* We use char because int might match the return type of a gcc2
7050    builtin and then its argument prototype would still apply.  */
7051 char krb5_sendauth ();
7052 #ifdef F77_DUMMY_MAIN
7053 #  ifdef __cplusplus
7054      extern "C"
7055 #  endif
7056    int F77_DUMMY_MAIN() { return 1; }
7057 #endif
7058 int
7059 main ()
7060 {
7061 krb5_sendauth ();
7062   ;
7063   return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } &&
7072          { ac_try='test -s conftest$ac_exeext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   ac_cv_search_krb5_sendauth="-l$ac_lib"
7079 break
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 fi
7084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7085   done
7086 fi
7087 LIBS=$ac_func_search_save_LIBS
7088 fi
7089 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7090 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7091 if test "$ac_cv_search_krb5_sendauth" != no; then
7092   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7093
7094 else
7095   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7096 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7097    { (exit 1); exit 1; }; }
7098 fi
7099
7100 fi
7101
7102 if test "$with_openssl" = yes ; then
7103
7104 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7105 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7106 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   ac_check_lib_save_LIBS=$LIBS
7110 LIBS="-lcrypto  $LIBS"
7111 cat >conftest.$ac_ext <<_ACEOF
7112 #line $LINENO "configure"
7113 #include "confdefs.h"
7114
7115 /* Override any gcc2 internal prototype to avoid an error.  */
7116 #ifdef __cplusplus
7117 extern "C"
7118 #endif
7119 /* We use char because int might match the return type of a gcc2
7120    builtin and then its argument prototype would still apply.  */
7121 char CRYPTO_new_ex_data ();
7122 #ifdef F77_DUMMY_MAIN
7123 #  ifdef __cplusplus
7124      extern "C"
7125 #  endif
7126    int F77_DUMMY_MAIN() { return 1; }
7127 #endif
7128 int
7129 main ()
7130 {
7131 CRYPTO_new_ex_data ();
7132   ;
7133   return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7138   (eval $ac_link) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } &&
7142          { ac_try='test -s conftest$ac_exeext'
7143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144   (eval $ac_try) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; }; then
7148   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7149 else
7150   echo "$as_me: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7153 fi
7154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7155 LIBS=$ac_check_lib_save_LIBS
7156 fi
7157 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7158 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7159 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7160   cat >>confdefs.h <<_ACEOF
7161 #define HAVE_LIBCRYPTO 1
7162 _ACEOF
7163
7164   LIBS="-lcrypto $LIBS"
7165
7166 else
7167   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7168 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7169    { (exit 1); exit 1; }; }
7170 fi
7171
7172
7173 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7174 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7175 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   ac_check_lib_save_LIBS=$LIBS
7179 LIBS="-lssl  $LIBS"
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7182 #include "confdefs.h"
7183
7184 /* Override any gcc2 internal prototype to avoid an error.  */
7185 #ifdef __cplusplus
7186 extern "C"
7187 #endif
7188 /* We use char because int might match the return type of a gcc2
7189    builtin and then its argument prototype would still apply.  */
7190 char SSL_library_init ();
7191 #ifdef F77_DUMMY_MAIN
7192 #  ifdef __cplusplus
7193      extern "C"
7194 #  endif
7195    int F77_DUMMY_MAIN() { return 1; }
7196 #endif
7197 int
7198 main ()
7199 {
7200 SSL_library_init ();
7201   ;
7202   return 0;
7203 }
7204 _ACEOF
7205 rm -f conftest.$ac_objext conftest$ac_exeext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207   (eval $ac_link) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); } &&
7211          { ac_try='test -s conftest$ac_exeext'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; }; then
7217   ac_cv_lib_ssl_SSL_library_init=yes
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 ac_cv_lib_ssl_SSL_library_init=no
7222 fi
7223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7224 LIBS=$ac_check_lib_save_LIBS
7225 fi
7226 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7227 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7228 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7229   cat >>confdefs.h <<_ACEOF
7230 #define HAVE_LIBSSL 1
7231 _ACEOF
7232
7233   LIBS="-lssl $LIBS"
7234
7235 else
7236   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7237 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7238    { (exit 1); exit 1; }; }
7239 fi
7240
7241 fi
7242
7243 if test "$with_pam" = yes ; then
7244
7245 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7246 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7247 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   ac_check_lib_save_LIBS=$LIBS
7251 LIBS="-lpam  $LIBS"
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255
7256 /* Override any gcc2 internal prototype to avoid an error.  */
7257 #ifdef __cplusplus
7258 extern "C"
7259 #endif
7260 /* We use char because int might match the return type of a gcc2
7261    builtin and then its argument prototype would still apply.  */
7262 char pam_start ();
7263 #ifdef F77_DUMMY_MAIN
7264 #  ifdef __cplusplus
7265      extern "C"
7266 #  endif
7267    int F77_DUMMY_MAIN() { return 1; }
7268 #endif
7269 int
7270 main ()
7271 {
7272 pam_start ();
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279   (eval $ac_link) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -s conftest$ac_exeext'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289   ac_cv_lib_pam_pam_start=yes
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 ac_cv_lib_pam_pam_start=no
7294 fi
7295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7296 LIBS=$ac_check_lib_save_LIBS
7297 fi
7298 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7299 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7300 if test $ac_cv_lib_pam_pam_start = yes; then
7301   cat >>confdefs.h <<_ACEOF
7302 #define HAVE_LIBPAM 1
7303 _ACEOF
7304
7305   LIBS="-lpam $LIBS"
7306
7307 else
7308   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7309 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7310    { (exit 1); exit 1; }; }
7311 fi
7312
7313 fi
7314
7315
7316 ##
7317 ## Header files
7318 ##
7319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7321 if test "${ac_cv_header_stdc+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   cat >conftest.$ac_ext <<_ACEOF
7325 #line $LINENO "configure"
7326 #include "confdefs.h"
7327 #include <stdlib.h>
7328 #include <stdarg.h>
7329 #include <string.h>
7330 #include <float.h>
7331
7332 _ACEOF
7333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7335   ac_status=$?
7336   egrep -v '^ *\+' conftest.er1 >conftest.err
7337   rm -f conftest.er1
7338   cat conftest.err >&5
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } >/dev/null; then
7341   if test -s conftest.err; then
7342     ac_cpp_err=$ac_c_preproc_warn_flag
7343   else
7344     ac_cpp_err=
7345   fi
7346 else
7347   ac_cpp_err=yes
7348 fi
7349 if test -z "$ac_cpp_err"; then
7350   ac_cv_header_stdc=yes
7351 else
7352   echo "$as_me: failed program was:" >&5
7353   cat conftest.$ac_ext >&5
7354   ac_cv_header_stdc=no
7355 fi
7356 rm -f conftest.err conftest.$ac_ext
7357
7358 if test $ac_cv_header_stdc = yes; then
7359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7360   cat >conftest.$ac_ext <<_ACEOF
7361 #line $LINENO "configure"
7362 #include "confdefs.h"
7363 #include <string.h>
7364
7365 _ACEOF
7366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367   egrep "memchr" >/dev/null 2>&1; then
7368   :
7369 else
7370   ac_cv_header_stdc=no
7371 fi
7372 rm -f conftest*
7373
7374 fi
7375
7376 if test $ac_cv_header_stdc = yes; then
7377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7378   cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 #include "confdefs.h"
7381 #include <stdlib.h>
7382
7383 _ACEOF
7384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7385   egrep "free" >/dev/null 2>&1; then
7386   :
7387 else
7388   ac_cv_header_stdc=no
7389 fi
7390 rm -f conftest*
7391
7392 fi
7393
7394 if test $ac_cv_header_stdc = yes; then
7395   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7396   if test "$cross_compiling" = yes; then
7397   :
7398 else
7399   cat >conftest.$ac_ext <<_ACEOF
7400 #line $LINENO "configure"
7401 #include "confdefs.h"
7402 #include <ctype.h>
7403 #if ((' ' & 0x0FF) == 0x020)
7404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7406 #else
7407 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7408                      || ('j' <= (c) && (c) <= 'r') \
7409                      || ('s' <= (c) && (c) <= 'z'))
7410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7411 #endif
7412
7413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7414 int
7415 main ()
7416 {
7417   int i;
7418   for (i = 0; i < 256; i++)
7419     if (XOR (islower (i), ISLOWER (i))
7420         || toupper (i) != TOUPPER (i))
7421       exit(2);
7422   exit (0);
7423 }
7424 _ACEOF
7425 rm -f conftest$ac_exeext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7427   (eval $ac_link) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   :
7437 else
7438   echo "$as_me: program exited with status $ac_status" >&5
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 ( exit $ac_status )
7442 ac_cv_header_stdc=no
7443 fi
7444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7445 fi
7446 fi
7447 fi
7448 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7449 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7450 if test $ac_cv_header_stdc = yes; then
7451
7452 cat >>confdefs.h <<\_ACEOF
7453 #define STDC_HEADERS 1
7454 _ACEOF
7455
7456 fi
7457
7458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7469                   inttypes.h stdint.h unistd.h
7470 do
7471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 echo "$as_me:$LINENO: checking for $ac_header" >&5
7473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   cat >conftest.$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7479 #include "confdefs.h"
7480 $ac_includes_default
7481
7482 #include <$ac_header>
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486   (eval $ac_compile) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   eval "$as_ac_Header=yes"
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 eval "$as_ac_Header=no"
7501 fi
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7507   cat >>confdefs.h <<_ACEOF
7508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 _ACEOF
7510
7511 fi
7512
7513 done
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7535 do
7536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7538   echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 fi
7543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7545 else
7546   # Is the header compilable?
7547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7549 cat >conftest.$ac_ext <<_ACEOF
7550 #line $LINENO "configure"
7551 #include "confdefs.h"
7552 $ac_includes_default
7553 #include <$ac_header>
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557   (eval $ac_compile) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } &&
7561          { ac_try='test -s conftest.$ac_objext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_header_compiler=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7571 ac_header_compiler=no
7572 fi
7573 rm -f conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575 echo "${ECHO_T}$ac_header_compiler" >&6
7576
7577 # Is the header present?
7578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7581 #line $LINENO "configure"
7582 #include "confdefs.h"
7583 #include <$ac_header>
7584 _ACEOF
7585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7587   ac_status=$?
7588   egrep -v '^ *\+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } >/dev/null; then
7593   if test -s conftest.err; then
7594     ac_cpp_err=$ac_c_preproc_warn_flag
7595   else
7596     ac_cpp_err=
7597   fi
7598 else
7599   ac_cpp_err=yes
7600 fi
7601 if test -z "$ac_cpp_err"; then
7602   ac_header_preproc=yes
7603 else
7604   echo "$as_me: failed program was:" >&5
7605   cat conftest.$ac_ext >&5
7606   ac_header_preproc=no
7607 fi
7608 rm -f conftest.err conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7610 echo "${ECHO_T}$ac_header_preproc" >&6
7611
7612 # So?  What about this header?
7613 case $ac_header_compiler:$ac_header_preproc in
7614   yes:no )
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619   no:yes )
7620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7626 esac
7627 echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   eval "$as_ac_Header=$ac_header_preproc"
7633 fi
7634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7636
7637 fi
7638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7639   cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 _ACEOF
7642
7643 fi
7644
7645 done
7646
7647
7648 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7649 # netinet/in.h is included first.
7650
7651 for ac_header in netinet/in.h
7652 do
7653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655   echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 fi
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7662 else
7663   # Is the header compilable?
7664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7667 #line $LINENO "configure"
7668 #include "confdefs.h"
7669 $ac_includes_default
7670 #include <$ac_header>
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674   (eval $ac_compile) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_header_compiler=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_header_compiler=no
7689 fi
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692 echo "${ECHO_T}$ac_header_compiler" >&6
7693
7694 # Is the header present?
7695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line $LINENO "configure"
7699 #include "confdefs.h"
7700 #include <$ac_header>
7701 _ACEOF
7702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7704   ac_status=$?
7705   egrep -v '^ *\+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } >/dev/null; then
7710   if test -s conftest.err; then
7711     ac_cpp_err=$ac_c_preproc_warn_flag
7712   else
7713     ac_cpp_err=
7714   fi
7715 else
7716   ac_cpp_err=yes
7717 fi
7718 if test -z "$ac_cpp_err"; then
7719   ac_header_preproc=yes
7720 else
7721   echo "$as_me: failed program was:" >&5
7722   cat conftest.$ac_ext >&5
7723   ac_header_preproc=no
7724 fi
7725 rm -f conftest.err conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727 echo "${ECHO_T}$ac_header_preproc" >&6
7728
7729 # So?  What about this header?
7730 case $ac_header_compiler:$ac_header_preproc in
7731   yes:no )
7732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7736   no:yes )
7737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7739     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7743 esac
7744 echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   eval "$as_ac_Header=$ac_header_preproc"
7750 fi
7751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7753
7754 fi
7755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7756   cat >>confdefs.h <<_ACEOF
7757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7758 _ACEOF
7759
7760 fi
7761
7762 done
7763
7764
7765 for ac_header in netinet/tcp.h
7766 do
7767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7768 echo "$as_me:$LINENO: checking for $ac_header" >&5
7769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #ifdef HAVE_NETINET_IN_H
7778 #include <netinet/in.h>
7779 #endif
7780
7781
7782 #include <$ac_header>
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786   (eval $ac_compile) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -s conftest.$ac_objext'
7791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792   (eval $ac_try) 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }; }; then
7796   eval "$as_ac_Header=yes"
7797 else
7798   echo "$as_me: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7800 eval "$as_ac_Header=no"
7801 fi
7802 rm -f conftest.$ac_objext conftest.$ac_ext
7803 fi
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7807   cat >>confdefs.h <<_ACEOF
7808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 _ACEOF
7810
7811 fi
7812
7813 done
7814
7815
7816 if test "$with_readline" = yes; then
7817
7818 for ac_header in readline/readline.h
7819 do
7820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822   echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 fi
7827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7829 else
7830   # Is the header compilable?
7831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 #include "confdefs.h"
7836 $ac_includes_default
7837 #include <$ac_header>
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841   (eval $ac_compile) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } &&
7845          { ac_try='test -s conftest.$ac_objext'
7846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847   (eval $ac_try) 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; }; then
7851   ac_header_compiler=yes
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 ac_header_compiler=no
7856 fi
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859 echo "${ECHO_T}$ac_header_compiler" >&6
7860
7861 # Is the header present?
7862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864 cat >conftest.$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867 #include <$ac_header>
7868 _ACEOF
7869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871   ac_status=$?
7872   egrep -v '^ *\+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } >/dev/null; then
7877   if test -s conftest.err; then
7878     ac_cpp_err=$ac_c_preproc_warn_flag
7879   else
7880     ac_cpp_err=
7881   fi
7882 else
7883   ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886   ac_header_preproc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889   cat conftest.$ac_ext >&5
7890   ac_header_preproc=no
7891 fi
7892 rm -f conftest.err conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7894 echo "${ECHO_T}$ac_header_preproc" >&6
7895
7896 # So?  What about this header?
7897 case $ac_header_compiler:$ac_header_preproc in
7898   yes:no )
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7903   no:yes )
7904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7906     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7910 esac
7911 echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   eval "$as_ac_Header=$ac_header_preproc"
7917 fi
7918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7920
7921 fi
7922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7923   cat >>confdefs.h <<_ACEOF
7924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925 _ACEOF
7926
7927 else
7928
7929 for ac_header in readline.h
7930 do
7931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933   echo "$as_me:$LINENO: checking for $ac_header" >&5
7934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 fi
7938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940 else
7941   # Is the header compilable?
7942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7946 #include "confdefs.h"
7947 $ac_includes_default
7948 #include <$ac_header>
7949 _ACEOF
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952   (eval $ac_compile) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } &&
7956          { ac_try='test -s conftest.$ac_objext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   ac_header_compiler=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 ac_header_compiler=no
7967 fi
7968 rm -f conftest.$ac_objext conftest.$ac_ext
7969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7970 echo "${ECHO_T}$ac_header_compiler" >&6
7971
7972 # Is the header present?
7973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 #include "confdefs.h"
7978 #include <$ac_header>
7979 _ACEOF
7980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7982   ac_status=$?
7983   egrep -v '^ *\+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } >/dev/null; then
7988   if test -s conftest.err; then
7989     ac_cpp_err=$ac_c_preproc_warn_flag
7990   else
7991     ac_cpp_err=
7992   fi
7993 else
7994   ac_cpp_err=yes
7995 fi
7996 if test -z "$ac_cpp_err"; then
7997   ac_header_preproc=yes
7998 else
7999   echo "$as_me: failed program was:" >&5
8000   cat conftest.$ac_ext >&5
8001   ac_header_preproc=no
8002 fi
8003 rm -f conftest.err conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8005 echo "${ECHO_T}$ac_header_preproc" >&6
8006
8007 # So?  What about this header?
8008 case $ac_header_compiler:$ac_header_preproc in
8009   yes:no )
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8014   no:yes )
8015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8017     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8021 esac
8022 echo "$as_me:$LINENO: checking for $ac_header" >&5
8023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   eval "$as_ac_Header=$ac_header_preproc"
8028 fi
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8031
8032 fi
8033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8034   cat >>confdefs.h <<_ACEOF
8035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8036 _ACEOF
8037
8038 else
8039   { { echo "$as_me:$LINENO: error: readline header not found
8040 Use --without-readline to disable readline support." >&5
8041 echo "$as_me: error: readline header not found
8042 Use --without-readline to disable readline support." >&2;}
8043    { (exit 1); exit 1; }; }
8044 fi
8045
8046 done
8047
8048 fi
8049
8050 done
8051
8052
8053 for ac_header in readline/history.h
8054 do
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057   echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 fi
8062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8064 else
8065   # Is the header compilable?
8066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 #include "confdefs.h"
8071 $ac_includes_default
8072 #include <$ac_header>
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076   (eval $ac_compile) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -s conftest.$ac_objext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_header_compiler=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_header_compiler=no
8091 fi
8092 rm -f conftest.$ac_objext conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8094 echo "${ECHO_T}$ac_header_compiler" >&6
8095
8096 # Is the header present?
8097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 #include "confdefs.h"
8102 #include <$ac_header>
8103 _ACEOF
8104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8106   ac_status=$?
8107   egrep -v '^ *\+' conftest.er1 >conftest.err
8108   rm -f conftest.er1
8109   cat conftest.err >&5
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } >/dev/null; then
8112   if test -s conftest.err; then
8113     ac_cpp_err=$ac_c_preproc_warn_flag
8114   else
8115     ac_cpp_err=
8116   fi
8117 else
8118   ac_cpp_err=yes
8119 fi
8120 if test -z "$ac_cpp_err"; then
8121   ac_header_preproc=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124   cat conftest.$ac_ext >&5
8125   ac_header_preproc=no
8126 fi
8127 rm -f conftest.err conftest.$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8129 echo "${ECHO_T}$ac_header_preproc" >&6
8130
8131 # So?  What about this header?
8132 case $ac_header_compiler:$ac_header_preproc in
8133   yes:no )
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8138   no:yes )
8139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8145 esac
8146 echo "$as_me:$LINENO: checking for $ac_header" >&5
8147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   eval "$as_ac_Header=$ac_header_preproc"
8152 fi
8153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8155
8156 fi
8157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 else
8163
8164 for ac_header in history.h
8165 do
8166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8168   echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 fi
8173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8175 else
8176   # Is the header compilable?
8177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 $ac_includes_default
8183 #include <$ac_header>
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187   (eval $ac_compile) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } &&
8191          { ac_try='test -s conftest.$ac_objext'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_header_compiler=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_header_compiler=no
8202 fi
8203 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8206
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 #include "confdefs.h"
8213 #include <$ac_header>
8214 _ACEOF
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8217   ac_status=$?
8218   egrep -v '^ *\+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } >/dev/null; then
8223   if test -s conftest.err; then
8224     ac_cpp_err=$ac_c_preproc_warn_flag
8225   else
8226     ac_cpp_err=
8227   fi
8228 else
8229   ac_cpp_err=yes
8230 fi
8231 if test -z "$ac_cpp_err"; then
8232   ac_header_preproc=yes
8233 else
8234   echo "$as_me: failed program was:" >&5
8235   cat conftest.$ac_ext >&5
8236   ac_header_preproc=no
8237 fi
8238 rm -f conftest.err conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240 echo "${ECHO_T}$ac_header_preproc" >&6
8241
8242 # So?  What about this header?
8243 case $ac_header_compiler:$ac_header_preproc in
8244   yes:no )
8245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8249   no:yes )
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8252     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8256 esac
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   eval "$as_ac_Header=$ac_header_preproc"
8263 fi
8264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8266
8267 fi
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269   cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 _ACEOF
8272
8273 else
8274   { { echo "$as_me:$LINENO: error: history header not found
8275 Use --without-readline to disable readline support." >&5
8276 echo "$as_me: error: history header not found
8277 Use --without-readline to disable readline support." >&2;}
8278    { (exit 1); exit 1; }; }
8279 fi
8280
8281 done
8282
8283 fi
8284
8285 done
8286
8287 fi
8288
8289 if test "$with_zlib" = yes; then
8290   if test "${ac_cv_header_zlib_h+set}" = set; then
8291   echo "$as_me:$LINENO: checking for zlib.h" >&5
8292 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8293 if test "${ac_cv_header_zlib_h+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 fi
8296 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8297 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8298 else
8299   # Is the header compilable?
8300 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8301 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8302 cat >conftest.$ac_ext <<_ACEOF
8303 #line $LINENO "configure"
8304 #include "confdefs.h"
8305 $ac_includes_default
8306 #include <zlib.h>
8307 _ACEOF
8308 rm -f conftest.$ac_objext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8310   (eval $ac_compile) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_header_compiler=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 ac_header_compiler=no
8325 fi
8326 rm -f conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8328 echo "${ECHO_T}$ac_header_compiler" >&6
8329
8330 # Is the header present?
8331 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8332 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line $LINENO "configure"
8335 #include "confdefs.h"
8336 #include <zlib.h>
8337 _ACEOF
8338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8340   ac_status=$?
8341   egrep -v '^ *\+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } >/dev/null; then
8346   if test -s conftest.err; then
8347     ac_cpp_err=$ac_c_preproc_warn_flag
8348   else
8349     ac_cpp_err=
8350   fi
8351 else
8352   ac_cpp_err=yes
8353 fi
8354 if test -z "$ac_cpp_err"; then
8355   ac_header_preproc=yes
8356 else
8357   echo "$as_me: failed program was:" >&5
8358   cat conftest.$ac_ext >&5
8359   ac_header_preproc=no
8360 fi
8361 rm -f conftest.err conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8363 echo "${ECHO_T}$ac_header_preproc" >&6
8364
8365 # So?  What about this header?
8366 case $ac_header_compiler:$ac_header_preproc in
8367   yes:no )
8368     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8369 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8370     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8371 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8372   no:yes )
8373     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8374 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8375     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8376 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8377     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8378 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8379 esac
8380 echo "$as_me:$LINENO: checking for zlib.h" >&5
8381 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8382 if test "${ac_cv_header_zlib_h+set}" = set; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385   ac_cv_header_zlib_h=$ac_header_preproc
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8388 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8389
8390 fi
8391 if test $ac_cv_header_zlib_h = yes; then
8392   :
8393 else
8394   { { echo "$as_me:$LINENO: error: zlib header not found
8395 Use --without-zlib to disable zlib support." >&5
8396 echo "$as_me: error: zlib header not found
8397 Use --without-zlib to disable zlib support." >&2;}
8398    { (exit 1); exit 1; }; }
8399 fi
8400
8401
8402 fi
8403
8404 if test "$with_krb4" = yes ; then
8405   if test "${ac_cv_header_krb_h+set}" = set; then
8406   echo "$as_me:$LINENO: checking for krb.h" >&5
8407 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8408 if test "${ac_cv_header_krb_h+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8412 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8413 else
8414   # Is the header compilable?
8415 echo "$as_me:$LINENO: checking krb.h usability" >&5
8416 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8418 #line $LINENO "configure"
8419 #include "confdefs.h"
8420 $ac_includes_default
8421 #include <krb.h>
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425   (eval $ac_compile) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -s conftest.$ac_objext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_header_compiler=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 ac_header_compiler=no
8440 fi
8441 rm -f conftest.$ac_objext conftest.$ac_ext
8442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443 echo "${ECHO_T}$ac_header_compiler" >&6
8444
8445 # Is the header present?
8446 echo "$as_me:$LINENO: checking krb.h presence" >&5
8447 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 #include "confdefs.h"
8451 #include <krb.h>
8452 _ACEOF
8453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8455   ac_status=$?
8456   egrep -v '^ *\+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } >/dev/null; then
8461   if test -s conftest.err; then
8462     ac_cpp_err=$ac_c_preproc_warn_flag
8463   else
8464     ac_cpp_err=
8465   fi
8466 else
8467   ac_cpp_err=yes
8468 fi
8469 if test -z "$ac_cpp_err"; then
8470   ac_header_preproc=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473   cat conftest.$ac_ext >&5
8474   ac_header_preproc=no
8475 fi
8476 rm -f conftest.err conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6
8479
8480 # So?  What about this header?
8481 case $ac_header_compiler:$ac_header_preproc in
8482   yes:no )
8483     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8486 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8487   no:yes )
8488     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8489 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8490     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8491 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8493 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8494 esac
8495 echo "$as_me:$LINENO: checking for krb.h" >&5
8496 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8497 if test "${ac_cv_header_krb_h+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   ac_cv_header_krb_h=$ac_header_preproc
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8504
8505 fi
8506 if test $ac_cv_header_krb_h = yes; then
8507   :
8508 else
8509   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8510 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8511    { (exit 1); exit 1; }; }
8512 fi
8513
8514
8515 fi
8516
8517 if test "$with_krb5" = yes ; then
8518   if test "${ac_cv_header_krb5_h+set}" = set; then
8519   echo "$as_me:$LINENO: checking for krb5.h" >&5
8520 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8521 if test "${ac_cv_header_krb5_h+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 fi
8524 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8525 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8526 else
8527   # Is the header compilable?
8528 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8529 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8532 #include "confdefs.h"
8533 $ac_includes_default
8534 #include <krb5.h>
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538   (eval $ac_compile) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } &&
8542          { ac_try='test -s conftest.$ac_objext'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_header_compiler=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 ac_header_compiler=no
8553 fi
8554 rm -f conftest.$ac_objext conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8556 echo "${ECHO_T}$ac_header_compiler" >&6
8557
8558 # Is the header present?
8559 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8560 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8562 #line $LINENO "configure"
8563 #include "confdefs.h"
8564 #include <krb5.h>
8565 _ACEOF
8566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8568   ac_status=$?
8569   egrep -v '^ *\+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } >/dev/null; then
8574   if test -s conftest.err; then
8575     ac_cpp_err=$ac_c_preproc_warn_flag
8576   else
8577     ac_cpp_err=
8578   fi
8579 else
8580   ac_cpp_err=yes
8581 fi
8582 if test -z "$ac_cpp_err"; then
8583   ac_header_preproc=yes
8584 else
8585   echo "$as_me: failed program was:" >&5
8586   cat conftest.$ac_ext >&5
8587   ac_header_preproc=no
8588 fi
8589 rm -f conftest.err conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8591 echo "${ECHO_T}$ac_header_preproc" >&6
8592
8593 # So?  What about this header?
8594 case $ac_header_compiler:$ac_header_preproc in
8595   yes:no )
8596     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8597 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8600   no:yes )
8601     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8602 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8603     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8604 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8605     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8607 esac
8608 echo "$as_me:$LINENO: checking for krb5.h" >&5
8609 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8610 if test "${ac_cv_header_krb5_h+set}" = set; then
8611   echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613   ac_cv_header_krb5_h=$ac_header_preproc
8614 fi
8615 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8616 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8617
8618 fi
8619 if test $ac_cv_header_krb5_h = yes; then
8620   :
8621 else
8622   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8623 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8624    { (exit 1); exit 1; }; }
8625 fi
8626
8627
8628   if test "${ac_cv_header_com_err_h+set}" = set; then
8629   echo "$as_me:$LINENO: checking for com_err.h" >&5
8630 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8631 if test "${ac_cv_header_com_err_h+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8636 else
8637   # Is the header compilable?
8638 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8639 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 #include "confdefs.h"
8643 $ac_includes_default
8644 #include <com_err.h>
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648   (eval $ac_compile) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -s conftest.$ac_objext'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_header_compiler=yes
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 ac_header_compiler=no
8663 fi
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8667
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8670 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 #include "confdefs.h"
8674 #include <com_err.h>
8675 _ACEOF
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678   ac_status=$?
8679   egrep -v '^ *\+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } >/dev/null; then
8684   if test -s conftest.err; then
8685     ac_cpp_err=$ac_c_preproc_warn_flag
8686   else
8687     ac_cpp_err=
8688   fi
8689 else
8690   ac_cpp_err=yes
8691 fi
8692 if test -z "$ac_cpp_err"; then
8693   ac_header_preproc=yes
8694 else
8695   echo "$as_me: failed program was:" >&5
8696   cat conftest.$ac_ext >&5
8697   ac_header_preproc=no
8698 fi
8699 rm -f conftest.err conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6
8702
8703 # So?  What about this header?
8704 case $ac_header_compiler:$ac_header_preproc in
8705   yes:no )
8706     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8709 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8710   no:yes )
8711     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8712 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8714 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8717 esac
8718 echo "$as_me:$LINENO: checking for com_err.h" >&5
8719 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8720 if test "${ac_cv_header_com_err_h+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   ac_cv_header_com_err_h=$ac_header_preproc
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8727
8728 fi
8729 if test $ac_cv_header_com_err_h = yes; then
8730   :
8731 else
8732   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8733 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8734    { (exit 1); exit 1; }; }
8735 fi
8736
8737
8738 fi
8739
8740 if test "$with_openssl" = yes ; then
8741   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8742   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8743 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8744 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8748 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8749 else
8750   # Is the header compilable?
8751 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8752 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 #include "confdefs.h"
8756 $ac_includes_default
8757 #include <openssl/ssl.h>
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761   (eval $ac_compile) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -s conftest.$ac_objext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_header_compiler=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 ac_header_compiler=no
8776 fi
8777 rm -f conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8779 echo "${ECHO_T}$ac_header_compiler" >&6
8780
8781 # Is the header present?
8782 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8783 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8786 #include "confdefs.h"
8787 #include <openssl/ssl.h>
8788 _ACEOF
8789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8791   ac_status=$?
8792   egrep -v '^ *\+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } >/dev/null; then
8797   if test -s conftest.err; then
8798     ac_cpp_err=$ac_c_preproc_warn_flag
8799   else
8800     ac_cpp_err=
8801   fi
8802 else
8803   ac_cpp_err=yes
8804 fi
8805 if test -z "$ac_cpp_err"; then
8806   ac_header_preproc=yes
8807 else
8808   echo "$as_me: failed program was:" >&5
8809   cat conftest.$ac_ext >&5
8810   ac_header_preproc=no
8811 fi
8812 rm -f conftest.err conftest.$ac_ext
8813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8814 echo "${ECHO_T}$ac_header_preproc" >&6
8815
8816 # So?  What about this header?
8817 case $ac_header_compiler:$ac_header_preproc in
8818   yes:no )
8819     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8820 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8823   no:yes )
8824     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8825 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8826     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8827 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8828     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8829 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8830 esac
8831 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8832 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8833 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8837 fi
8838 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8839 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8840
8841 fi
8842 if test $ac_cv_header_openssl_ssl_h = yes; then
8843   :
8844 else
8845   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8846 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8847    { (exit 1); exit 1; }; }
8848 fi
8849
8850
8851   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8852   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8853 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8854 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 fi
8857 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8858 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8859 else
8860   # Is the header compilable?
8861 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8862 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8867 #include <openssl/err.h>
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -s conftest.$ac_objext'
8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877   (eval $ac_try) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   ac_header_compiler=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 ac_header_compiler=no
8886 fi
8887 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 echo "${ECHO_T}$ac_header_compiler" >&6
8890
8891 # Is the header present?
8892 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8893 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 #include "confdefs.h"
8897 #include <openssl/err.h>
8898 _ACEOF
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8901   ac_status=$?
8902   egrep -v '^ *\+' conftest.er1 >conftest.err
8903   rm -f conftest.er1
8904   cat conftest.err >&5
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } >/dev/null; then
8907   if test -s conftest.err; then
8908     ac_cpp_err=$ac_c_preproc_warn_flag
8909   else
8910     ac_cpp_err=
8911   fi
8912 else
8913   ac_cpp_err=yes
8914 fi
8915 if test -z "$ac_cpp_err"; then
8916   ac_header_preproc=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919   cat conftest.$ac_ext >&5
8920   ac_header_preproc=no
8921 fi
8922 rm -f conftest.err conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 echo "${ECHO_T}$ac_header_preproc" >&6
8925
8926 # So?  What about this header?
8927 case $ac_header_compiler:$ac_header_preproc in
8928   yes:no )
8929     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8930 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8932 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8933   no:yes )
8934     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8936     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8938     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8940 esac
8941 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8942 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8943 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   ac_cv_header_openssl_err_h=$ac_header_preproc
8947 fi
8948 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8949 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8950
8951 fi
8952 if test $ac_cv_header_openssl_err_h = yes; then
8953   :
8954 else
8955   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8956 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8957    { (exit 1); exit 1; }; }
8958 fi
8959
8960
8961 fi
8962
8963 if test "$with_pam" = yes ; then
8964   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8965   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8966 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8967 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 fi
8970 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8971 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8972 else
8973   # Is the header compilable?
8974 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8975 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8977 #line $LINENO "configure"
8978 #include "confdefs.h"
8979 $ac_includes_default
8980 #include <security/pam_appl.h>
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8984   (eval $ac_compile) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } &&
8988          { ac_try='test -s conftest.$ac_objext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   ac_header_compiler=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8998 ac_header_compiler=no
8999 fi
9000 rm -f conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6
9003
9004 # Is the header present?
9005 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9006 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 #include <security/pam_appl.h>
9011 _ACEOF
9012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9014   ac_status=$?
9015   egrep -v '^ *\+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } >/dev/null; then
9020   if test -s conftest.err; then
9021     ac_cpp_err=$ac_c_preproc_warn_flag
9022   else
9023     ac_cpp_err=
9024   fi
9025 else
9026   ac_cpp_err=yes
9027 fi
9028 if test -z "$ac_cpp_err"; then
9029   ac_header_preproc=yes
9030 else
9031   echo "$as_me: failed program was:" >&5
9032   cat conftest.$ac_ext >&5
9033   ac_header_preproc=no
9034 fi
9035 rm -f conftest.err conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9037 echo "${ECHO_T}$ac_header_preproc" >&6
9038
9039 # So?  What about this header?
9040 case $ac_header_compiler:$ac_header_preproc in
9041   yes:no )
9042     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9043 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9045 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9046   no:yes )
9047     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9051     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9052 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9053 esac
9054 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9055 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9060 fi
9061 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9062 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9063
9064 fi
9065 if test $ac_cv_header_security_pam_appl_h = yes; then
9066   :
9067 else
9068   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9069 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9070    { (exit 1); exit 1; }; }
9071 fi
9072
9073
9074 fi
9075
9076
9077 ##
9078 ## Types, structures, compiler characteristics
9079 ##
9080
9081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9083 if test "${ac_cv_c_const+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   cat >conftest.$ac_ext <<_ACEOF
9087 #line $LINENO "configure"
9088 #include "confdefs.h"
9089
9090 #ifdef F77_DUMMY_MAIN
9091 #  ifdef __cplusplus
9092      extern "C"
9093 #  endif
9094    int F77_DUMMY_MAIN() { return 1; }
9095 #endif
9096 int
9097 main ()
9098 {
9099 /* FIXME: Include the comments suggested by Paul. */
9100 #ifndef __cplusplus
9101   /* Ultrix mips cc rejects this.  */
9102   typedef int charset[2];
9103   const charset x;
9104   /* SunOS 4.1.1 cc rejects this.  */
9105   char const *const *ccp;
9106   char **p;
9107   /* NEC SVR4.0.2 mips cc rejects this.  */
9108   struct point {int x, y;};
9109   static struct point const zero = {0,0};
9110   /* AIX XL C 1.02.0.0 rejects this.
9111      It does not let you subtract one const X* pointer from another in
9112      an arm of an if-expression whose if-part is not a constant
9113      expression */
9114   const char *g = "string";
9115   ccp = &g + (g ? g-g : 0);
9116   /* HPUX 7.0 cc rejects these. */
9117   ++ccp;
9118   p = (char**) ccp;
9119   ccp = (char const *const *) p;
9120   { /* SCO 3.2v4 cc rejects this.  */
9121     char *t;
9122     char const *s = 0 ? (char *) 0 : (char const *) 0;
9123
9124     *t++ = 0;
9125   }
9126   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9127     int x[] = {25, 17};
9128     const int *foo = &x[0];
9129     ++foo;
9130   }
9131   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9132     typedef const int *iptr;
9133     iptr p = 0;
9134     ++p;
9135   }
9136   { /* AIX XL C 1.02.0.0 rejects this saying
9137        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9138     struct s { int j; const int *ap[3]; };
9139     struct s *b; b->j = 5;
9140   }
9141   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9142     const int foo = 10;
9143   }
9144 #endif
9145
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152   (eval $ac_compile) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); } &&
9156          { ac_try='test -s conftest.$ac_objext'
9157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158   (eval $ac_try) 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_cv_c_const=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9166 ac_cv_c_const=no
9167 fi
9168 rm -f conftest.$ac_objext conftest.$ac_ext
9169 fi
9170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9171 echo "${ECHO_T}$ac_cv_c_const" >&6
9172 if test $ac_cv_c_const = no; then
9173
9174 cat >>confdefs.h <<\_ACEOF
9175 #define const
9176 _ACEOF
9177
9178 fi
9179
9180 echo "$as_me:$LINENO: checking for inline" >&5
9181 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9182 if test "${ac_cv_c_inline+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   ac_cv_c_inline=no
9186 for ac_kw in inline __inline__ __inline; do
9187   cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9190 #ifndef __cplusplus
9191 static $ac_kw int static_foo () {return 0; }
9192 $ac_kw int foo () {return 0; }
9193 #endif
9194
9195 _ACEOF
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198   (eval $ac_compile) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } &&
9202          { ac_try='test -s conftest.$ac_objext'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; }; then
9208   ac_cv_c_inline=$ac_kw; break
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 fi
9213 rm -f conftest.$ac_objext conftest.$ac_ext
9214 done
9215
9216 fi
9217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9218 echo "${ECHO_T}$ac_cv_c_inline" >&6
9219 case $ac_cv_c_inline in
9220   inline | yes) ;;
9221   no)
9222 cat >>confdefs.h <<\_ACEOF
9223 #define inline
9224 _ACEOF
9225  ;;
9226   *)  cat >>confdefs.h <<_ACEOF
9227 #define inline $ac_cv_c_inline
9228 _ACEOF
9229  ;;
9230 esac
9231
9232 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9233 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9234 if test "${ac_cv_c_stringize+set}" = set; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 #include "confdefs.h"
9240 #define x(y) #y
9241
9242 char *s = x(teststring);
9243 _ACEOF
9244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9245   egrep "#teststring" >/dev/null 2>&1; then
9246   ac_cv_c_stringize=no
9247 else
9248   ac_cv_c_stringize=yes
9249 fi
9250 rm -f conftest*
9251
9252 fi
9253 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9254 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9255 if test $ac_cv_c_stringize = yes; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_STRINGIZE 1
9259 _ACEOF
9260
9261 fi
9262
9263 echo "$as_me:$LINENO: checking for signed types" >&5
9264 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9265 if test "${pgac_cv_c_signed+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 #include "confdefs.h"
9271
9272 #ifdef F77_DUMMY_MAIN
9273 #  ifdef __cplusplus
9274      extern "C"
9275 #  endif
9276    int F77_DUMMY_MAIN() { return 1; }
9277 #endif
9278 int
9279 main ()
9280 {
9281 signed char c; signed short s; signed int i;
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9288   (eval $ac_compile) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -s conftest.$ac_objext'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; }; then
9298   pgac_cv_c_signed=yes
9299 else
9300   echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 pgac_cv_c_signed=no
9303 fi
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9307 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9308 if test x"$pgac_cv_c_signed" = xno ; then
9309
9310 cat >>confdefs.h <<\_ACEOF
9311 #define signed
9312 _ACEOF
9313
9314 fi
9315 echo "$as_me:$LINENO: checking for working volatile" >&5
9316 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9317 if test "${ac_cv_c_volatile+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   cat >conftest.$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9323
9324 #ifdef F77_DUMMY_MAIN
9325 #  ifdef __cplusplus
9326      extern "C"
9327 #  endif
9328    int F77_DUMMY_MAIN() { return 1; }
9329 #endif
9330 int
9331 main ()
9332 {
9333
9334 volatile int x;
9335 int * volatile y;
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342   (eval $ac_compile) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -s conftest.$ac_objext'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; }; then
9352   ac_cv_c_volatile=yes
9353 else
9354   echo "$as_me: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 ac_cv_c_volatile=no
9357 fi
9358 rm -f conftest.$ac_objext conftest.$ac_ext
9359 fi
9360 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9361 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9362 if test $ac_cv_c_volatile = no; then
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define volatile
9366 _ACEOF
9367
9368 fi
9369
9370 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9371 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9372 if test "${ac_cv_struct_tm+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9378 #include <sys/types.h>
9379 #include <time.h>
9380
9381 #ifdef F77_DUMMY_MAIN
9382 #  ifdef __cplusplus
9383      extern "C"
9384 #  endif
9385    int F77_DUMMY_MAIN() { return 1; }
9386 #endif
9387 int
9388 main ()
9389 {
9390 struct tm *tp; tp->tm_sec;
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397   (eval $ac_compile) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -s conftest.$ac_objext'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; }; then
9407   ac_cv_struct_tm=time.h
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 ac_cv_struct_tm=sys/time.h
9412 fi
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9416 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9417 if test $ac_cv_struct_tm = sys/time.h; then
9418
9419 cat >>confdefs.h <<\_ACEOF
9420 #define TM_IN_SYS_TIME 1
9421 _ACEOF
9422
9423 fi
9424
9425 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9426 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9427 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9434 #include <$ac_cv_struct_tm>
9435
9436
9437 #ifdef F77_DUMMY_MAIN
9438 #  ifdef __cplusplus
9439      extern "C"
9440 #  endif
9441    int F77_DUMMY_MAIN() { return 1; }
9442 #endif
9443 int
9444 main ()
9445 {
9446 static struct tm ac_aggr;
9447 if (ac_aggr.tm_zone)
9448 return 0;
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455   (eval $ac_compile) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -s conftest.$ac_objext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   ac_cv_member_struct_tm_tm_zone=yes
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 ac_cv_member_struct_tm_tm_zone=no
9470 fi
9471 rm -f conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9474 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9475 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define HAVE_STRUCT_TM_TM_ZONE 1
9479 _ACEOF
9480
9481
9482 fi
9483
9484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9485
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_TM_ZONE 1
9488 _ACEOF
9489
9490 else
9491   echo "$as_me:$LINENO: checking for tzname" >&5
9492 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9493 if test "${ac_cv_var_tzname+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 #include "confdefs.h"
9499 #include <time.h>
9500 #ifndef tzname /* For SGI.  */
9501 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9502 #endif
9503
9504 #ifdef F77_DUMMY_MAIN
9505 #  ifdef __cplusplus
9506      extern "C"
9507 #  endif
9508    int F77_DUMMY_MAIN() { return 1; }
9509 #endif
9510 int
9511 main ()
9512 {
9513 atoi(*tzname);
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520   (eval $ac_link) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -s conftest$ac_exeext'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; }; then
9530   ac_cv_var_tzname=yes
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 ac_cv_var_tzname=no
9535 fi
9536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9539 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9540   if test $ac_cv_var_tzname = yes; then
9541
9542 cat >>confdefs.h <<\_ACEOF
9543 #define HAVE_TZNAME 1
9544 _ACEOF
9545
9546   fi
9547 fi
9548
9549 echo "$as_me:$LINENO: checking for union semun" >&5
9550 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9551 if test "${ac_cv_type_union_semun+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9557 #include <sys/types.h>
9558 #include <sys/ipc.h>
9559 #include <sys/sem.h>
9560
9561 #ifdef F77_DUMMY_MAIN
9562 #  ifdef __cplusplus
9563      extern "C"
9564 #  endif
9565    int F77_DUMMY_MAIN() { return 1; }
9566 #endif
9567 int
9568 main ()
9569 {
9570 if ((union semun *) 0)
9571   return 0;
9572 if (sizeof (union semun))
9573   return 0;
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9580   (eval $ac_compile) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -s conftest.$ac_objext'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   ac_cv_type_union_semun=yes
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 ac_cv_type_union_semun=no
9595 fi
9596 rm -f conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9599 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9600 if test $ac_cv_type_union_semun = yes; then
9601
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_UNION_SEMUN 1
9604 _ACEOF
9605
9606
9607 fi
9608
9609 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9610 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9611 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   cat >conftest.$ac_ext <<_ACEOF
9615 #line $LINENO "configure"
9616 #include "confdefs.h"
9617 #include <sys/types.h>
9618 #ifdef HAVE_SYS_UN_H
9619 #include <sys/un.h>
9620 #endif
9621
9622
9623 #ifdef F77_DUMMY_MAIN
9624 #  ifdef __cplusplus
9625      extern "C"
9626 #  endif
9627    int F77_DUMMY_MAIN() { return 1; }
9628 #endif
9629 int
9630 main ()
9631 {
9632 if ((struct sockaddr_un *) 0)
9633   return 0;
9634 if (sizeof (struct sockaddr_un))
9635   return 0;
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642   (eval $ac_compile) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -s conftest.$ac_objext'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; }; then
9652   ac_cv_type_struct_sockaddr_un=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 ac_cv_type_struct_sockaddr_un=no
9657 fi
9658 rm -f conftest.$ac_objext conftest.$ac_ext
9659 fi
9660 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9661 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9662 if test $ac_cv_type_struct_sockaddr_un = yes; then
9663
9664 cat >>confdefs.h <<_ACEOF
9665 #define HAVE_STRUCT_SOCKADDR_UN 1
9666 _ACEOF
9667
9668
9669 fi
9670
9671
9672 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9673 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9674 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680 #include <sys/param.h>
9681 #include <sys/socket.h>
9682 #include <sys/ucred.h>
9683
9684 #ifdef F77_DUMMY_MAIN
9685 #  ifdef __cplusplus
9686      extern "C"
9687 #  endif
9688    int F77_DUMMY_MAIN() { return 1; }
9689 #endif
9690 int
9691 main ()
9692 {
9693 if ((struct cmsgcred *) 0)
9694   return 0;
9695 if (sizeof (struct cmsgcred))
9696   return 0;
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703   (eval $ac_compile) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -s conftest.$ac_objext'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   ac_cv_type_struct_cmsgcred=yes
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_cv_type_struct_cmsgcred=no
9718 fi
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9720 fi
9721 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9722 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9723 if test $ac_cv_type_struct_cmsgcred = yes; then
9724
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_STRUCT_CMSGCRED 1
9727 _ACEOF
9728
9729
9730 fi
9731 echo "$as_me:$LINENO: checking for struct fcred" >&5
9732 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9733 if test "${ac_cv_type_struct_fcred+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 #include "confdefs.h"
9739 #include <sys/param.h>
9740 #include <sys/socket.h>
9741 #include <sys/ucred.h>
9742
9743 #ifdef F77_DUMMY_MAIN
9744 #  ifdef __cplusplus
9745      extern "C"
9746 #  endif
9747    int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 if ((struct fcred *) 0)
9753   return 0;
9754 if (sizeof (struct fcred))
9755   return 0;
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762   (eval $ac_compile) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_type_struct_fcred=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_fcred=no
9777 fi
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9782 if test $ac_cv_type_struct_fcred = yes; then
9783
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_FCRED 1
9786 _ACEOF
9787
9788
9789 fi
9790 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9791 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9792 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 #include <sys/param.h>
9799 #include <sys/socket.h>
9800 #include <sys/ucred.h>
9801
9802 #ifdef F77_DUMMY_MAIN
9803 #  ifdef __cplusplus
9804      extern "C"
9805 #  endif
9806    int F77_DUMMY_MAIN() { return 1; }
9807 #endif
9808 int
9809 main ()
9810 {
9811 if ((struct sockcred *) 0)
9812   return 0;
9813 if (sizeof (struct sockcred))
9814   return 0;
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821   (eval $ac_compile) 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); } &&
9825          { ac_try='test -s conftest.$ac_objext'
9826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827   (eval $ac_try) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; }; then
9831   ac_cv_type_struct_sockcred=yes
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 ac_cv_type_struct_sockcred=no
9836 fi
9837 rm -f conftest.$ac_objext conftest.$ac_ext
9838 fi
9839 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9840 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9841 if test $ac_cv_type_struct_sockcred = yes; then
9842
9843 cat >>confdefs.h <<_ACEOF
9844 #define HAVE_STRUCT_SOCKCRED 1
9845 _ACEOF
9846
9847
9848 fi
9849
9850
9851 if test "$with_zlib" = yes; then
9852   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9853   # did not).  While we could work around the lack of z_streamp, it
9854   # seems unwise to encourage people to use such old zlib versions...
9855   echo "$as_me:$LINENO: checking for z_streamp" >&5
9856 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9857 if test "${ac_cv_type_z_streamp+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9862 #include "confdefs.h"
9863 #include <zlib.h>
9864
9865 #ifdef F77_DUMMY_MAIN
9866 #  ifdef __cplusplus
9867      extern "C"
9868 #  endif
9869    int F77_DUMMY_MAIN() { return 1; }
9870 #endif
9871 int
9872 main ()
9873 {
9874 if ((z_streamp *) 0)
9875   return 0;
9876 if (sizeof (z_streamp))
9877   return 0;
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884   (eval $ac_compile) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } &&
9888          { ac_try='test -s conftest.$ac_objext'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_cv_type_z_streamp=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 ac_cv_type_z_streamp=no
9899 fi
9900 rm -f conftest.$ac_objext conftest.$ac_ext
9901 fi
9902 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9903 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9904 if test $ac_cv_type_z_streamp = yes; then
9905   :
9906 else
9907   { { echo "$as_me:$LINENO: error: zlib version is too old
9908 Use --without-zlib to disable zlib support." >&5
9909 echo "$as_me: error: zlib version is too old
9910 Use --without-zlib to disable zlib support." >&2;}
9911    { (exit 1); exit 1; }; }
9912 fi
9913
9914 fi
9915
9916 if test "$with_krb5" = yes; then
9917 # Check for differences between MIT and Heimdal (KTH) releases
9918   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9919 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9920 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 #include "confdefs.h"
9926 #include <krb5.h>
9927
9928 #ifdef F77_DUMMY_MAIN
9929 #  ifdef __cplusplus
9930      extern "C"
9931 #  endif
9932    int F77_DUMMY_MAIN() { return 1; }
9933 #endif
9934 int
9935 main ()
9936 {
9937 static krb5_ticket ac_aggr;
9938 if (ac_aggr.enc_part2)
9939 return 0;
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946   (eval $ac_compile) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -s conftest.$ac_objext'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; }; then
9956   ac_cv_member_krb5_ticket_enc_part2=yes
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 cat conftest.$ac_ext >&5
9960 ac_cv_member_krb5_ticket_enc_part2=no
9961 fi
9962 rm -f conftest.$ac_objext conftest.$ac_ext
9963 fi
9964 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9965 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9966 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9967
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_KRB5_TICKET_ENC_PART2 1
9970 _ACEOF
9971
9972
9973 else
9974   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9975 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9976 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 #include "confdefs.h"
9982 #include <krb5.h>
9983
9984 #ifdef F77_DUMMY_MAIN
9985 #  ifdef __cplusplus
9986      extern "C"
9987 #  endif
9988    int F77_DUMMY_MAIN() { return 1; }
9989 #endif
9990 int
9991 main ()
9992 {
9993 static krb5_ticket ac_aggr;
9994 if (ac_aggr.client)
9995 return 0;
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002   (eval $ac_compile) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } &&
10006          { ac_try='test -s conftest.$ac_objext'
10007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008   (eval $ac_try) 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_cv_member_krb5_ticket_client=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 ac_cv_member_krb5_ticket_client=no
10017 fi
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10021 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10022 if test $ac_cv_member_krb5_ticket_client = yes; then
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_KRB5_TICKET_CLIENT 1
10026 _ACEOF
10027
10028
10029 else
10030   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10031 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10032    { (exit 1); exit 1; }; }
10033 fi
10034
10035 fi
10036
10037   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10038 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10039 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10045 #include <krb5.h>
10046
10047 #ifdef F77_DUMMY_MAIN
10048 #  ifdef __cplusplus
10049      extern "C"
10050 #  endif
10051    int F77_DUMMY_MAIN() { return 1; }
10052 #endif
10053 int
10054 main ()
10055 {
10056 static krb5_error ac_aggr;
10057 if (ac_aggr.text.data)
10058 return 0;
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065   (eval $ac_compile) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -s conftest.$ac_objext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   ac_cv_member_krb5_error_text_data=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 ac_cv_member_krb5_error_text_data=no
10080 fi
10081 rm -f conftest.$ac_objext conftest.$ac_ext
10082 fi
10083 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10084 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10085 if test $ac_cv_member_krb5_error_text_data = yes; then
10086
10087 cat >>confdefs.h <<_ACEOF
10088 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10089 _ACEOF
10090
10091
10092 else
10093   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10094 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10095 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 #include "confdefs.h"
10101 #include <krb5.h>
10102
10103 #ifdef F77_DUMMY_MAIN
10104 #  ifdef __cplusplus
10105      extern "C"
10106 #  endif
10107    int F77_DUMMY_MAIN() { return 1; }
10108 #endif
10109 int
10110 main ()
10111 {
10112 static krb5_error ac_aggr;
10113 if (ac_aggr.e_data)
10114 return 0;
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121   (eval $ac_compile) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -s conftest.$ac_objext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_member_krb5_error_e_data=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 ac_cv_member_krb5_error_e_data=no
10136 fi
10137 rm -f conftest.$ac_objext conftest.$ac_ext
10138 fi
10139 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10140 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10141 if test $ac_cv_member_krb5_error_e_data = yes; then
10142   :
10143 else
10144   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10145 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10146    { (exit 1); exit 1; }; }
10147 fi
10148
10149 fi
10150
10151 fi
10152
10153
10154 ##
10155 ## Functions, global variables
10156 ##
10157 echo "$as_me:$LINENO: checking for int timezone" >&5
10158 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10159 if test "${pgac_cv_var_int_timezone+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   cat >conftest.$ac_ext <<_ACEOF
10163 #line $LINENO "configure"
10164 #include "confdefs.h"
10165 #include <time.h>
10166 int res;
10167 #ifdef F77_DUMMY_MAIN
10168 #  ifdef __cplusplus
10169      extern "C"
10170 #  endif
10171    int F77_DUMMY_MAIN() { return 1; }
10172 #endif
10173 int
10174 main ()
10175 {
10176 res = timezone / 60;
10177   ;
10178   return 0;
10179 }
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10183   (eval $ac_link) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189   (eval $ac_try) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; }; then
10193   pgac_cv_var_int_timezone=yes
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 pgac_cv_var_int_timezone=no
10198 fi
10199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10200 fi
10201 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10202 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10203 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10204
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_INT_TIMEZONE
10207 _ACEOF
10208
10209 fi
10210 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10211 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10212  if test "${ac_cv_func_accept_arg1+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215    if test "${ac_cv_func_accept_arg2+set}" = set; then
10216   echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218     if test "${ac_cv_func_accept_arg3+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10222      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10223       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10224        cat >conftest.$ac_ext <<_ACEOF
10225 #line $LINENO "configure"
10226 #include "confdefs.h"
10227 #ifdef HAVE_SYS_TYPES_H
10228 #include <sys/types.h>
10229 #endif
10230 #ifdef HAVE_SYS_SOCKET_H
10231 #include <sys/socket.h>
10232 #endif
10233 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10234 #ifdef F77_DUMMY_MAIN
10235 #  ifdef __cplusplus
10236      extern "C"
10237 #  endif
10238    int F77_DUMMY_MAIN() { return 1; }
10239 #endif
10240 int
10241 main ()
10242 {
10243
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250   (eval $ac_compile) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -s conftest.$ac_objext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   ac_not_found=no; break 3
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 ac_not_found=yes
10265 fi
10266 rm -f conftest.$ac_objext conftest.$ac_ext
10267       done
10268      done
10269     done
10270     if test "$ac_not_found" = yes; then
10271       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10272 echo "$as_me: error: could not determine argument types" >&2;}
10273    { (exit 1); exit 1; }; }
10274     fi
10275     if test "$ac_cv_func_accept_arg3" = "void"; then
10276       ac_cv_func_accept_arg3=int
10277     fi
10278
10279 fi
10280
10281 fi
10282
10283 fi
10284  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10285 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10286
10287 cat >>confdefs.h <<_ACEOF
10288 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10289 _ACEOF
10290
10291
10292 cat >>confdefs.h <<_ACEOF
10293 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10294 _ACEOF
10295
10296
10297 cat >>confdefs.h <<_ACEOF
10298 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10299 _ACEOF
10300
10301
10302 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10303 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10304 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   cat >conftest.$ac_ext <<_ACEOF
10308 #line $LINENO "configure"
10309 #include "confdefs.h"
10310 #include <sys/time.h>
10311 #ifdef F77_DUMMY_MAIN
10312 #  ifdef __cplusplus
10313      extern "C"
10314 #  endif
10315    int F77_DUMMY_MAIN() { return 1; }
10316 #endif
10317 int
10318 main ()
10319 {
10320 struct timeval *tp;
10321 struct timezone *tzp;
10322 gettimeofday(tp,tzp);
10323   ;
10324   return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329   (eval $ac_compile) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } &&
10333          { ac_try='test -s conftest.$ac_objext'
10334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335   (eval $ac_try) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   pgac_cv_func_gettimeofday_1arg=no
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 pgac_cv_func_gettimeofday_1arg=yes
10344 fi
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 fi
10347 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10348 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10349 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10350
10351 cat >>confdefs.h <<\_ACEOF
10352 #define GETTIMEOFDAY_1ARG
10353 _ACEOF
10354
10355 fi
10356
10357 # SunOS doesn't handle negative byte comparisons properly with +/- return
10358 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10359 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10360 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   if test "$cross_compiling" = yes; then
10364   pgac_cv_func_memcmp_clean=no
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 #line $LINENO "configure"
10368 #include "confdefs.h"
10369
10370 main()
10371 {
10372   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10373   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10374 }
10375
10376 _ACEOF
10377 rm -f conftest$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379   (eval $ac_link) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   pgac_cv_func_memcmp_clean=yes
10389 else
10390   echo "$as_me: program exited with status $ac_status" >&5
10391 echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 ( exit $ac_status )
10394 pgac_cv_func_memcmp_clean=no
10395 fi
10396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397 fi
10398 fi
10399 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10400 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10401 if test $pgac_cv_func_memcmp_clean = no ; then
10402   MEMCMP=memcmp.o
10403 else
10404   MEMCMP=
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10421 do
10422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10423 echo "$as_me:$LINENO: checking for $ac_func" >&5
10424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10425 if eval "test \"\${$as_ac_var+set}\" = set"; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   cat >conftest.$ac_ext <<_ACEOF
10429 #line $LINENO "configure"
10430 #include "confdefs.h"
10431 /* System header to define __stub macros and hopefully few prototypes,
10432     which can conflict with char $ac_func (); below.  */
10433 #include <assert.h>
10434 /* Override any gcc2 internal prototype to avoid an error.  */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 /* We use char because int might match the return type of a gcc2
10439    builtin and then its argument prototype would still apply.  */
10440 char $ac_func ();
10441 char (*f) ();
10442
10443 #ifdef F77_DUMMY_MAIN
10444 #  ifdef __cplusplus
10445      extern "C"
10446 #  endif
10447    int F77_DUMMY_MAIN() { return 1; }
10448 #endif
10449 int
10450 main ()
10451 {
10452 /* The GNU C library defines this for functions which it implements
10453     to always fail with ENOSYS.  Some functions are actually named
10454     something starting with __ and the normal name is an alias.  */
10455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10456 choke me
10457 #else
10458 f = $ac_func;
10459 #endif
10460
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467   (eval $ac_link) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } &&
10471          { ac_try='test -s conftest$ac_exeext'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; }; then
10477   eval "$as_ac_var=yes"
10478 else
10479   echo "$as_me: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 eval "$as_ac_var=no"
10482 fi
10483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10487 if test `eval echo '${'$as_ac_var'}'` = yes; then
10488   cat >>confdefs.h <<_ACEOF
10489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10490 _ACEOF
10491
10492 fi
10493 done
10494
10495
10496 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10497 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10498 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   cat >conftest.$ac_ext <<_ACEOF
10502 #line $LINENO "configure"
10503 #include "confdefs.h"
10504 #include <unistd.h>
10505
10506 #ifdef F77_DUMMY_MAIN
10507 #  ifdef __cplusplus
10508      extern "C"
10509 #  endif
10510    int F77_DUMMY_MAIN() { return 1; }
10511 #endif
10512 int
10513 main ()
10514 {
10515 #ifndef fdatasync
10516   char *p = (char *) fdatasync;
10517 #endif
10518
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525   (eval $ac_compile) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -s conftest.$ac_objext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   ac_cv_have_decl_fdatasync=yes
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 ac_cv_have_decl_fdatasync=no
10540 fi
10541 rm -f conftest.$ac_objext conftest.$ac_ext
10542 fi
10543 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10544 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10545 if test $ac_cv_have_decl_fdatasync = yes; then
10546
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_DECL_FDATASYNC 1
10549 _ACEOF
10550
10551
10552 else
10553   cat >>confdefs.h <<_ACEOF
10554 #define HAVE_DECL_FDATASYNC 0
10555 _ACEOF
10556
10557
10558 fi
10559
10560
10561
10562 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10563 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10564 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567   cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10570 #include <machine/vmparam.h>
10571 #include <sys/exec.h>
10572
10573 #ifdef F77_DUMMY_MAIN
10574 #  ifdef __cplusplus
10575      extern "C"
10576 #  endif
10577    int F77_DUMMY_MAIN() { return 1; }
10578 #endif
10579 int
10580 main ()
10581 {
10582 PS_STRINGS->ps_nargvstr = 1;
10583 PS_STRINGS->ps_argvstr = "foo";
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590   (eval $ac_link) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); } &&
10594          { ac_try='test -s conftest$ac_exeext'
10595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596   (eval $ac_try) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); }; }; then
10600   pgac_cv_var_PS_STRINGS=yes
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 pgac_cv_var_PS_STRINGS=no
10605 fi
10606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10607 fi
10608 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10609 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10610 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10611
10612 cat >>confdefs.h <<\_ACEOF
10613 #define HAVE_PS_STRINGS
10614 _ACEOF
10615
10616 fi
10617
10618
10619 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10620 # is missing.  Yes, there are machines that have only one.  We may
10621 # also decide to use snprintf.c if snprintf() is present but does not
10622 # have working "long long int" support -- see below.
10623
10624 SNPRINTF=''
10625
10626 for ac_func in snprintf
10627 do
10628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10629 echo "$as_me:$LINENO: checking for $ac_func" >&5
10630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10631 if eval "test \"\${$as_ac_var+set}\" = set"; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10636 #include "confdefs.h"
10637 /* System header to define __stub macros and hopefully few prototypes,
10638     which can conflict with char $ac_func (); below.  */
10639 #include <assert.h>
10640 /* Override any gcc2 internal prototype to avoid an error.  */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 /* We use char because int might match the return type of a gcc2
10645    builtin and then its argument prototype would still apply.  */
10646 char $ac_func ();
10647 char (*f) ();
10648
10649 #ifdef F77_DUMMY_MAIN
10650 #  ifdef __cplusplus
10651      extern "C"
10652 #  endif
10653    int F77_DUMMY_MAIN() { return 1; }
10654 #endif
10655 int
10656 main ()
10657 {
10658 /* The GNU C library defines this for functions which it implements
10659     to always fail with ENOSYS.  Some functions are actually named
10660     something starting with __ and the normal name is an alias.  */
10661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10662 choke me
10663 #else
10664 f = $ac_func;
10665 #endif
10666
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673   (eval $ac_link) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } &&
10677          { ac_try='test -s conftest$ac_exeext'
10678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   eval "$as_ac_var=yes"
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 eval "$as_ac_var=no"
10688 fi
10689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10690 fi
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10693 if test `eval echo '${'$as_ac_var'}'` = yes; then
10694   cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10696 _ACEOF
10697
10698 else
10699   SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10700 fi
10701 done
10702
10703
10704 for ac_func in vsnprintf
10705 do
10706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 echo "$as_me:$LINENO: checking for $ac_func" >&5
10708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10709 if eval "test \"\${$as_ac_var+set}\" = set"; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10715 /* System header to define __stub macros and hopefully few prototypes,
10716     which can conflict with char $ac_func (); below.  */
10717 #include <assert.h>
10718 /* Override any gcc2 internal prototype to avoid an error.  */
10719 #ifdef __cplusplus
10720 extern "C"
10721 #endif
10722 /* We use char because int might match the return type of a gcc2
10723    builtin and then its argument prototype would still apply.  */
10724 char $ac_func ();
10725 char (*f) ();
10726
10727 #ifdef F77_DUMMY_MAIN
10728 #  ifdef __cplusplus
10729      extern "C"
10730 #  endif
10731    int F77_DUMMY_MAIN() { return 1; }
10732 #endif
10733 int
10734 main ()
10735 {
10736 /* The GNU C library defines this for functions which it implements
10737     to always fail with ENOSYS.  Some functions are actually named
10738     something starting with __ and the normal name is an alias.  */
10739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10740 choke me
10741 #else
10742 f = $ac_func;
10743 #endif
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751   (eval $ac_link) 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -s conftest$ac_exeext'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; }; then
10761   eval "$as_ac_var=yes"
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 eval "$as_ac_var=no"
10766 fi
10767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10768 fi
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772   cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776 else
10777   SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
10778 fi
10779 done
10780
10781
10782
10783
10784 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10785 # include/c.h will provide declarations.  Note this is a separate test
10786 # from whether the functions exist in the C library --- there are
10787 # systems that have the functions but don't bother to declare them :-(
10788
10789 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10790 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10791 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   cat >conftest.$ac_ext <<_ACEOF
10795 #line $LINENO "configure"
10796 #include "confdefs.h"
10797 $ac_includes_default
10798 #ifdef F77_DUMMY_MAIN
10799 #  ifdef __cplusplus
10800      extern "C"
10801 #  endif
10802    int F77_DUMMY_MAIN() { return 1; }
10803 #endif
10804 int
10805 main ()
10806 {
10807 #ifndef snprintf
10808   char *p = (char *) snprintf;
10809 #endif
10810
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817   (eval $ac_compile) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } &&
10821          { ac_try='test -s conftest.$ac_objext'
10822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823   (eval $ac_try) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; }; then
10827   ac_cv_have_decl_snprintf=yes
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 ac_cv_have_decl_snprintf=no
10832 fi
10833 rm -f conftest.$ac_objext conftest.$ac_ext
10834 fi
10835 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10836 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10837 if test $ac_cv_have_decl_snprintf = yes; then
10838
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_DECL_SNPRINTF 1
10841 _ACEOF
10842
10843
10844 else
10845   cat >>confdefs.h <<_ACEOF
10846 #define HAVE_DECL_SNPRINTF 0
10847 _ACEOF
10848
10849
10850 fi
10851 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10852 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10853 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   cat >conftest.$ac_ext <<_ACEOF
10857 #line $LINENO "configure"
10858 #include "confdefs.h"
10859 $ac_includes_default
10860 #ifdef F77_DUMMY_MAIN
10861 #  ifdef __cplusplus
10862      extern "C"
10863 #  endif
10864    int F77_DUMMY_MAIN() { return 1; }
10865 #endif
10866 int
10867 main ()
10868 {
10869 #ifndef vsnprintf
10870   char *p = (char *) vsnprintf;
10871 #endif
10872
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879   (eval $ac_compile) 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -s conftest.$ac_objext'
10884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885   (eval $ac_try) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   ac_cv_have_decl_vsnprintf=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 ac_cv_have_decl_vsnprintf=no
10894 fi
10895 rm -f conftest.$ac_objext conftest.$ac_ext
10896 fi
10897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10898 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10899 if test $ac_cv_have_decl_vsnprintf = yes; then
10900
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_DECL_VSNPRINTF 1
10903 _ACEOF
10904
10905
10906 else
10907   cat >>confdefs.h <<_ACEOF
10908 #define HAVE_DECL_VSNPRINTF 0
10909 _ACEOF
10910
10911
10912 fi
10913
10914
10915
10916
10917 # do this one the hard way in case isinf() is a macro
10918 echo "$as_me:$LINENO: checking for isinf" >&5
10919 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10920 if test "${ac_cv_func_isinf+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10926 #include <math.h>
10927
10928 #ifdef F77_DUMMY_MAIN
10929 #  ifdef __cplusplus
10930      extern "C"
10931 #  endif
10932    int F77_DUMMY_MAIN() { return 1; }
10933 #endif
10934 int
10935 main ()
10936 {
10937 double x = 0.0; int res = isinf(x);
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944   (eval $ac_link) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   ac_cv_func_isinf=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 ac_cv_func_isinf=no
10959 fi
10960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10961 fi
10962 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10963 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10964
10965 if test $ac_cv_func_isinf = yes ; then
10966
10967 cat >>confdefs.h <<\_ACEOF
10968 #define HAVE_ISINF 1
10969 _ACEOF
10970
10971   ISINF=
10972 else
10973   ISINF='isinf.o'
10974   # Look for a way to implement a substitute for isinf()
10975
10976
10977
10978
10979 for ac_func in fpclass fp_class fp_class_d class
10980 do
10981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982 echo "$as_me:$LINENO: checking for $ac_func" >&5
10983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_var+set}\" = set"; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 /* System header to define __stub macros and hopefully few prototypes,
10991     which can conflict with char $ac_func (); below.  */
10992 #include <assert.h>
10993 /* Override any gcc2 internal prototype to avoid an error.  */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998    builtin and then its argument prototype would still apply.  */
10999 char $ac_func ();
11000 char (*f) ();
11001
11002 #ifdef F77_DUMMY_MAIN
11003 #  ifdef __cplusplus
11004      extern "C"
11005 #  endif
11006    int F77_DUMMY_MAIN() { return 1; }
11007 #endif
11008 int
11009 main ()
11010 {
11011 /* The GNU C library defines this for functions which it implements
11012     to always fail with ENOSYS.  Some functions are actually named
11013     something starting with __ and the normal name is an alias.  */
11014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11015 choke me
11016 #else
11017 f = $ac_func;
11018 #endif
11019
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026   (eval $ac_link) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -s conftest$ac_exeext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   eval "$as_ac_var=yes"
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 eval "$as_ac_var=no"
11041 fi
11042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11043 fi
11044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11046 if test `eval echo '${'$as_ac_var'}'` = yes; then
11047   cat >>confdefs.h <<_ACEOF
11048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049 _ACEOF
11050  break
11051 fi
11052 done
11053
11054 fi
11055
11056
11057
11058
11059 for ac_func in getrusage
11060 do
11061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11062 echo "$as_me:$LINENO: checking for $ac_func" >&5
11063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11064 if eval "test \"\${$as_ac_var+set}\" = set"; then
11065   echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067   cat >conftest.$ac_ext <<_ACEOF
11068 #line $LINENO "configure"
11069 #include "confdefs.h"
11070 /* System header to define __stub macros and hopefully few prototypes,
11071     which can conflict with char $ac_func (); below.  */
11072 #include <assert.h>
11073 /* Override any gcc2 internal prototype to avoid an error.  */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 /* We use char because int might match the return type of a gcc2
11078    builtin and then its argument prototype would still apply.  */
11079 char $ac_func ();
11080 char (*f) ();
11081
11082 #ifdef F77_DUMMY_MAIN
11083 #  ifdef __cplusplus
11084      extern "C"
11085 #  endif
11086    int F77_DUMMY_MAIN() { return 1; }
11087 #endif
11088 int
11089 main ()
11090 {
11091 /* The GNU C library defines this for functions which it implements
11092     to always fail with ENOSYS.  Some functions are actually named
11093     something starting with __ and the normal name is an alias.  */
11094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11095 choke me
11096 #else
11097 f = $ac_func;
11098 #endif
11099
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106   (eval $ac_link) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } &&
11110          { ac_try='test -s conftest$ac_exeext'
11111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112   (eval $ac_try) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   eval "$as_ac_var=yes"
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 eval "$as_ac_var=no"
11121 fi
11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11123 fi
11124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11126 if test `eval echo '${'$as_ac_var'}'` = yes; then
11127   cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 _ACEOF
11130
11131 else
11132   GETRUSAGE='$(top_builddir)/src/backend/port/getrusage.o'
11133 fi
11134 done
11135
11136
11137
11138 for ac_func in srandom
11139 do
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 #include "confdefs.h"
11149 /* System header to define __stub macros and hopefully few prototypes,
11150     which can conflict with char $ac_func (); below.  */
11151 #include <assert.h>
11152 /* Override any gcc2 internal prototype to avoid an error.  */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 /* We use char because int might match the return type of a gcc2
11157    builtin and then its argument prototype would still apply.  */
11158 char $ac_func ();
11159 char (*f) ();
11160
11161 #ifdef F77_DUMMY_MAIN
11162 #  ifdef __cplusplus
11163      extern "C"
11164 #  endif
11165    int F77_DUMMY_MAIN() { return 1; }
11166 #endif
11167 int
11168 main ()
11169 {
11170 /* The GNU C library defines this for functions which it implements
11171     to always fail with ENOSYS.  Some functions are actually named
11172     something starting with __ and the normal name is an alias.  */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11174 choke me
11175 #else
11176 f = $ac_func;
11177 #endif
11178
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185   (eval $ac_link) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest$ac_exeext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   eval "$as_ac_var=yes"
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 eval "$as_ac_var=no"
11200 fi
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202 fi
11203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206   cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208 _ACEOF
11209
11210 else
11211   SRANDOM='$(top_builddir)/src/backend/port/srandom.o'
11212 fi
11213 done
11214
11215
11216
11217 for ac_func in gethostname
11218 do
11219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11220 echo "$as_me:$LINENO: checking for $ac_func" >&5
11221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11222 if eval "test \"\${$as_ac_var+set}\" = set"; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11227 #include "confdefs.h"
11228 /* System header to define __stub macros and hopefully few prototypes,
11229     which can conflict with char $ac_func (); below.  */
11230 #include <assert.h>
11231 /* Override any gcc2 internal prototype to avoid an error.  */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 /* We use char because int might match the return type of a gcc2
11236    builtin and then its argument prototype would still apply.  */
11237 char $ac_func ();
11238 char (*f) ();
11239
11240 #ifdef F77_DUMMY_MAIN
11241 #  ifdef __cplusplus
11242      extern "C"
11243 #  endif
11244    int F77_DUMMY_MAIN() { return 1; }
11245 #endif
11246 int
11247 main ()
11248 {
11249 /* The GNU C library defines this for functions which it implements
11250     to always fail with ENOSYS.  Some functions are actually named
11251     something starting with __ and the normal name is an alias.  */
11252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11253 choke me
11254 #else
11255 f = $ac_func;
11256 #endif
11257
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264   (eval $ac_link) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -s conftest$ac_exeext'
11269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270   (eval $ac_try) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; }; then
11274   eval "$as_ac_var=yes"
11275 else
11276   echo "$as_me: failed program was:" >&5
11277 cat conftest.$ac_ext >&5
11278 eval "$as_ac_var=no"
11279 fi
11280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11281 fi
11282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11284 if test `eval echo '${'$as_ac_var'}'` = yes; then
11285   cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 _ACEOF
11288
11289 else
11290   GETHOSTNAME='$(top_builddir)/src/backend/port/gethostname.o'
11291 fi
11292 done
11293
11294
11295
11296 for ac_func in random
11297 do
11298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11299 echo "$as_me:$LINENO: checking for $ac_func" >&5
11300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11301 if eval "test \"\${$as_ac_var+set}\" = set"; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   cat >conftest.$ac_ext <<_ACEOF
11305 #line $LINENO "configure"
11306 #include "confdefs.h"
11307 /* System header to define __stub macros and hopefully few prototypes,
11308     which can conflict with char $ac_func (); below.  */
11309 #include <assert.h>
11310 /* Override any gcc2 internal prototype to avoid an error.  */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 /* We use char because int might match the return type of a gcc2
11315    builtin and then its argument prototype would still apply.  */
11316 char $ac_func ();
11317 char (*f) ();
11318
11319 #ifdef F77_DUMMY_MAIN
11320 #  ifdef __cplusplus
11321      extern "C"
11322 #  endif
11323    int F77_DUMMY_MAIN() { return 1; }
11324 #endif
11325 int
11326 main ()
11327 {
11328 /* The GNU C library defines this for functions which it implements
11329     to always fail with ENOSYS.  Some functions are actually named
11330     something starting with __ and the normal name is an alias.  */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11332 choke me
11333 #else
11334 f = $ac_func;
11335 #endif
11336
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343   (eval $ac_link) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } &&
11347          { ac_try='test -s conftest$ac_exeext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   eval "$as_ac_var=yes"
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 eval "$as_ac_var=no"
11358 fi
11359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364   cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 _ACEOF
11367
11368 else
11369   MISSING_RANDOM='$(top_builddir)/src/backend/port/random.o'
11370 fi
11371 done
11372
11373
11374
11375 for ac_func in inet_aton
11376 do
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387     which can conflict with char $ac_func (); below.  */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char $ac_func ();
11396 char (*f) ();
11397
11398 #ifdef F77_DUMMY_MAIN
11399 #  ifdef __cplusplus
11400      extern "C"
11401 #  endif
11402    int F77_DUMMY_MAIN() { return 1; }
11403 #endif
11404 int
11405 main ()
11406 {
11407 /* The GNU C library defines this for functions which it implements
11408     to always fail with ENOSYS.  Some functions are actually named
11409     something starting with __ and the normal name is an alias.  */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 choke me
11412 #else
11413 f = $ac_func;
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422   (eval $ac_link) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   eval "$as_ac_var=yes"
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11437 fi
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443   cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11446
11447 else
11448   INET_ATON='$(top_builddir)/src/backend/port/inet_aton.o'
11449 fi
11450 done
11451
11452
11453
11454 for ac_func in strerror
11455 do
11456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11457 echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11459 if eval "test \"\${$as_ac_var+set}\" = set"; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11464 #include "confdefs.h"
11465 /* System header to define __stub macros and hopefully few prototypes,
11466     which can conflict with char $ac_func (); below.  */
11467 #include <assert.h>
11468 /* Override any gcc2 internal prototype to avoid an error.  */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 /* We use char because int might match the return type of a gcc2
11473    builtin and then its argument prototype would still apply.  */
11474 char $ac_func ();
11475 char (*f) ();
11476
11477 #ifdef F77_DUMMY_MAIN
11478 #  ifdef __cplusplus
11479      extern "C"
11480 #  endif
11481    int F77_DUMMY_MAIN() { return 1; }
11482 #endif
11483 int
11484 main ()
11485 {
11486 /* The GNU C library defines this for functions which it implements
11487     to always fail with ENOSYS.  Some functions are actually named
11488     something starting with __ and the normal name is an alias.  */
11489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11490 choke me
11491 #else
11492 f = $ac_func;
11493 #endif
11494
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501   (eval $ac_link) 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -s conftest$ac_exeext'
11506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507   (eval $ac_try) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   eval "$as_ac_var=yes"
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 eval "$as_ac_var=no"
11516 fi
11517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522   cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524 _ACEOF
11525
11526 else
11527   STRERROR='$(top_builddir)/src/backend/port/strerror.o'
11528 fi
11529 done
11530
11531
11532
11533 for ac_func in strdup
11534 do
11535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536 echo "$as_me:$LINENO: checking for $ac_func" >&5
11537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11538 if eval "test \"\${$as_ac_var+set}\" = set"; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   cat >conftest.$ac_ext <<_ACEOF
11542 #line $LINENO "configure"
11543 #include "confdefs.h"
11544 /* System header to define __stub macros and hopefully few prototypes,
11545     which can conflict with char $ac_func (); below.  */
11546 #include <assert.h>
11547 /* Override any gcc2 internal prototype to avoid an error.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 /* We use char because int might match the return type of a gcc2
11552    builtin and then its argument prototype would still apply.  */
11553 char $ac_func ();
11554 char (*f) ();
11555
11556 #ifdef F77_DUMMY_MAIN
11557 #  ifdef __cplusplus
11558      extern "C"
11559 #  endif
11560    int F77_DUMMY_MAIN() { return 1; }
11561 #endif
11562 int
11563 main ()
11564 {
11565 /* The GNU C library defines this for functions which it implements
11566     to always fail with ENOSYS.  Some functions are actually named
11567     something starting with __ and the normal name is an alias.  */
11568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11569 choke me
11570 #else
11571 f = $ac_func;
11572 #endif
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580   (eval $ac_link) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -s conftest$ac_exeext'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   eval "$as_ac_var=yes"
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 eval "$as_ac_var=no"
11595 fi
11596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11597 fi
11598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11600 if test `eval echo '${'$as_ac_var'}'` = yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11603 _ACEOF
11604
11605 else
11606   STRDUP='$(top_builddir)/src/utils/strdup.o'
11607 fi
11608 done
11609
11610
11611
11612 for ac_func in strtol
11613 do
11614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11615 echo "$as_me:$LINENO: checking for $ac_func" >&5
11616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11617 if eval "test \"\${$as_ac_var+set}\" = set"; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 /* System header to define __stub macros and hopefully few prototypes,
11624     which can conflict with char $ac_func (); below.  */
11625 #include <assert.h>
11626 /* Override any gcc2 internal prototype to avoid an error.  */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 /* We use char because int might match the return type of a gcc2
11631    builtin and then its argument prototype would still apply.  */
11632 char $ac_func ();
11633 char (*f) ();
11634
11635 #ifdef F77_DUMMY_MAIN
11636 #  ifdef __cplusplus
11637      extern "C"
11638 #  endif
11639    int F77_DUMMY_MAIN() { return 1; }
11640 #endif
11641 int
11642 main ()
11643 {
11644 /* The GNU C library defines this for functions which it implements
11645     to always fail with ENOSYS.  Some functions are actually named
11646     something starting with __ and the normal name is an alias.  */
11647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11648 choke me
11649 #else
11650 f = $ac_func;
11651 #endif
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659   (eval $ac_link) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -s conftest$ac_exeext'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }; then
11669   eval "$as_ac_var=yes"
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 eval "$as_ac_var=no"
11674 fi
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676 fi
11677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680   cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 _ACEOF
11683
11684 else
11685   STRTOL='$(top_builddir)/src/backend/port/strtol.o'
11686 fi
11687 done
11688
11689
11690
11691 for ac_func in strtoul
11692 do
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11696 if eval "test \"\${$as_ac_var+set}\" = set"; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 #line $LINENO "configure"
11701 #include "confdefs.h"
11702 /* System header to define __stub macros and hopefully few prototypes,
11703     which can conflict with char $ac_func (); below.  */
11704 #include <assert.h>
11705 /* Override any gcc2 internal prototype to avoid an error.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 /* We use char because int might match the return type of a gcc2
11710    builtin and then its argument prototype would still apply.  */
11711 char $ac_func ();
11712 char (*f) ();
11713
11714 #ifdef F77_DUMMY_MAIN
11715 #  ifdef __cplusplus
11716      extern "C"
11717 #  endif
11718    int F77_DUMMY_MAIN() { return 1; }
11719 #endif
11720 int
11721 main ()
11722 {
11723 /* The GNU C library defines this for functions which it implements
11724     to always fail with ENOSYS.  Some functions are actually named
11725     something starting with __ and the normal name is an alias.  */
11726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11727 choke me
11728 #else
11729 f = $ac_func;
11730 #endif
11731
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738   (eval $ac_link) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } &&
11742          { ac_try='test -s conftest$ac_exeext'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; }; then
11748   eval "$as_ac_var=yes"
11749 else
11750   echo "$as_me: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 eval "$as_ac_var=no"
11753 fi
11754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11755 fi
11756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759   cat >>confdefs.h <<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11761 _ACEOF
11762
11763 else
11764   STRTOUL='$(top_builddir)/src/backend/port/strtoul.o'
11765 fi
11766 done
11767
11768
11769
11770 for ac_func in strcasecmp
11771 do
11772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11773 echo "$as_me:$LINENO: checking for $ac_func" >&5
11774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11775 if eval "test \"\${$as_ac_var+set}\" = set"; then
11776   echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778   cat >conftest.$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11780 #include "confdefs.h"
11781 /* System header to define __stub macros and hopefully few prototypes,
11782     which can conflict with char $ac_func (); below.  */
11783 #include <assert.h>
11784 /* Override any gcc2 internal prototype to avoid an error.  */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 /* We use char because int might match the return type of a gcc2
11789    builtin and then its argument prototype would still apply.  */
11790 char $ac_func ();
11791 char (*f) ();
11792
11793 #ifdef F77_DUMMY_MAIN
11794 #  ifdef __cplusplus
11795      extern "C"
11796 #  endif
11797    int F77_DUMMY_MAIN() { return 1; }
11798 #endif
11799 int
11800 main ()
11801 {
11802 /* The GNU C library defines this for functions which it implements
11803     to always fail with ENOSYS.  Some functions are actually named
11804     something starting with __ and the normal name is an alias.  */
11805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11806 choke me
11807 #else
11808 f = $ac_func;
11809 #endif
11810
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817   (eval $ac_link) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823   (eval $ac_try) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   eval "$as_ac_var=yes"
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 eval "$as_ac_var=no"
11832 fi
11833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11834 fi
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11837 if test `eval echo '${'$as_ac_var'}'` = yes; then
11838   cat >>confdefs.h <<_ACEOF
11839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11840 _ACEOF
11841
11842 else
11843   STRCASECMP='$(top_builddir)/src/backend/port/strcasecmp.o'
11844 fi
11845 done
11846
11847
11848
11849 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11850 # this hackery with HPUXMATHLIB allows us to cope.
11851 HPUXMATHLIB=""
11852 case $host_cpu in
11853   hppa1.1)
11854         if [ -r /lib/pa1.1/libm.a ] ; then
11855             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11856         fi ;;
11857 esac
11858
11859
11860
11861 for ac_func in rint
11862 do
11863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 echo "$as_me:$LINENO: checking for $ac_func" >&5
11865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11866 if eval "test \"\${$as_ac_var+set}\" = set"; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11871 #include "confdefs.h"
11872 /* System header to define __stub macros and hopefully few prototypes,
11873     which can conflict with char $ac_func (); below.  */
11874 #include <assert.h>
11875 /* Override any gcc2 internal prototype to avoid an error.  */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 /* We use char because int might match the return type of a gcc2
11880    builtin and then its argument prototype would still apply.  */
11881 char $ac_func ();
11882 char (*f) ();
11883
11884 #ifdef F77_DUMMY_MAIN
11885 #  ifdef __cplusplus
11886      extern "C"
11887 #  endif
11888    int F77_DUMMY_MAIN() { return 1; }
11889 #endif
11890 int
11891 main ()
11892 {
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11897 choke me
11898 #else
11899 f = $ac_func;
11900 #endif
11901
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   eval "$as_ac_var=yes"
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 eval "$as_ac_var=no"
11923 fi
11924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 fi
11926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929   cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931 _ACEOF
11932
11933 else
11934   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11935 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11936 if test "${ac_cv_lib_m_rint+set}" = set; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lm $HPUXMATHLIB $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11943 #include "confdefs.h"
11944
11945 /* Override any gcc2 internal prototype to avoid an error.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char rint ();
11952 #ifdef F77_DUMMY_MAIN
11953 #  ifdef __cplusplus
11954      extern "C"
11955 #  endif
11956    int F77_DUMMY_MAIN() { return 1; }
11957 #endif
11958 int
11959 main ()
11960 {
11961 rint ();
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11968   (eval $ac_link) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -s conftest$ac_exeext'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; }; then
11978   ac_cv_lib_m_rint=yes
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11982 ac_cv_lib_m_rint=no
11983 fi
11984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11988 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11989 if test $ac_cv_lib_m_rint = yes; then
11990   cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_RINT 1
11992 _ACEOF
11993
11994 fi
11995
11996 fi
11997 done
11998
11999
12000
12001 if test "$with_readline" = yes; then
12002   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12003 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 #include "confdefs.h"
12007 #include <stdio.h>
12008 #ifdef HAVE_READLINE_READLINE_H
12009 # include <readline/readline.h>
12010 #elif defined(HAVE_READLINE_H)
12011 # include <readline.h>
12012 #endif
12013
12014 #ifdef F77_DUMMY_MAIN
12015 #  ifdef __cplusplus
12016      extern "C"
12017 #  endif
12018    int F77_DUMMY_MAIN() { return 1; }
12019 #endif
12020 int
12021 main ()
12022 {
12023 rl_completion_append_character = 'x';
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12030   (eval $ac_link) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } &&
12034          { ac_try='test -s conftest$ac_exeext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   echo "$as_me:$LINENO: result: yes" >&5
12041 echo "${ECHO_T}yes" >&6
12042
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12045 _ACEOF
12046
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12050 echo "$as_me:$LINENO: result: no" >&5
12051 echo "${ECHO_T}no" >&6
12052 fi
12053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12054
12055
12056 for ac_func in rl_completion_matches rl_filename_completion_function
12057 do
12058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12059 echo "$as_me:$LINENO: checking for $ac_func" >&5
12060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12061 if eval "test \"\${$as_ac_var+set}\" = set"; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 #include "confdefs.h"
12067 /* System header to define __stub macros and hopefully few prototypes,
12068     which can conflict with char $ac_func (); below.  */
12069 #include <assert.h>
12070 /* Override any gcc2 internal prototype to avoid an error.  */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 /* We use char because int might match the return type of a gcc2
12075    builtin and then its argument prototype would still apply.  */
12076 char $ac_func ();
12077 char (*f) ();
12078
12079 #ifdef F77_DUMMY_MAIN
12080 #  ifdef __cplusplus
12081      extern "C"
12082 #  endif
12083    int F77_DUMMY_MAIN() { return 1; }
12084 #endif
12085 int
12086 main ()
12087 {
12088 /* The GNU C library defines this for functions which it implements
12089     to always fail with ENOSYS.  Some functions are actually named
12090     something starting with __ and the normal name is an alias.  */
12091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 choke me
12093 #else
12094 f = $ac_func;
12095 #endif
12096
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103   (eval $ac_link) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -s conftest$ac_exeext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   eval "$as_ac_var=yes"
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 eval "$as_ac_var=no"
12118 fi
12119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12120 fi
12121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12123 if test `eval echo '${'$as_ac_var'}'` = yes; then
12124   cat >>confdefs.h <<_ACEOF
12125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 _ACEOF
12127
12128 fi
12129 done
12130
12131 fi
12132
12133
12134 echo "$as_me:$LINENO: checking for finite" >&5
12135 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12139 #include <math.h>
12140 #ifdef F77_DUMMY_MAIN
12141 #  ifdef __cplusplus
12142      extern "C"
12143 #  endif
12144    int F77_DUMMY_MAIN() { return 1; }
12145 #endif
12146 int
12147 main ()
12148 {
12149 int dummy=finite(1.0);
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156   (eval $ac_link) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -s conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_FINITE 1
12169 _ACEOF
12170
12171 echo "$as_me:$LINENO: result: yes" >&5
12172 echo "${ECHO_T}yes" >&6
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12176 echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6
12178 fi
12179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12180
12181 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12182 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 #include "confdefs.h"
12186 #include <setjmp.h>
12187 #ifdef F77_DUMMY_MAIN
12188 #  ifdef __cplusplus
12189      extern "C"
12190 #  endif
12191    int F77_DUMMY_MAIN() { return 1; }
12192 #endif
12193 int
12194 main ()
12195 {
12196 sigjmp_buf x; sigsetjmp(x, 1);
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203   (eval $ac_link) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -s conftest$ac_exeext'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213
12214 cat >>confdefs.h <<\_ACEOF
12215 #define HAVE_SIGSETJMP 1
12216 _ACEOF
12217
12218 echo "$as_me:$LINENO: result: yes" >&5
12219 echo "${ECHO_T}yes" >&6
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12223 echo "$as_me:$LINENO: result: no" >&5
12224 echo "${ECHO_T}no" >&6
12225 fi
12226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12227
12228 echo "$as_me:$LINENO: checking for syslog" >&5
12229 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12230 if test "${ac_cv_func_syslog+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12235 #include "confdefs.h"
12236 /* System header to define __stub macros and hopefully few prototypes,
12237     which can conflict with char syslog (); below.  */
12238 #include <assert.h>
12239 /* Override any gcc2 internal prototype to avoid an error.  */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 /* We use char because int might match the return type of a gcc2
12244    builtin and then its argument prototype would still apply.  */
12245 char syslog ();
12246 char (*f) ();
12247
12248 #ifdef F77_DUMMY_MAIN
12249 #  ifdef __cplusplus
12250      extern "C"
12251 #  endif
12252    int F77_DUMMY_MAIN() { return 1; }
12253 #endif
12254 int
12255 main ()
12256 {
12257 /* The GNU C library defines this for functions which it implements
12258     to always fail with ENOSYS.  Some functions are actually named
12259     something starting with __ and the normal name is an alias.  */
12260 #if defined (__stub_syslog) || defined (__stub___syslog)
12261 choke me
12262 #else
12263 f = syslog;
12264 #endif
12265
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272   (eval $ac_link) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -s conftest$ac_exeext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_cv_func_syslog=yes
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12286 ac_cv_func_syslog=no
12287 fi
12288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12289 fi
12290 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12291 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12292 if test $ac_cv_func_syslog = yes; then
12293   if test "${ac_cv_header_syslog_h+set}" = set; then
12294   echo "$as_me:$LINENO: checking for syslog.h" >&5
12295 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12296 if test "${ac_cv_header_syslog_h+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 fi
12299 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12300 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12301 else
12302   # Is the header compilable?
12303 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12304 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 $ac_includes_default
12309 #include <syslog.h>
12310 _ACEOF
12311 rm -f conftest.$ac_objext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12313   (eval $ac_compile) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } &&
12317          { ac_try='test -s conftest.$ac_objext'
12318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319   (eval $ac_try) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   ac_header_compiler=yes
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 ac_header_compiler=no
12328 fi
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12331 echo "${ECHO_T}$ac_header_compiler" >&6
12332
12333 # Is the header present?
12334 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12335 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12337 #line $LINENO "configure"
12338 #include "confdefs.h"
12339 #include <syslog.h>
12340 _ACEOF
12341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12343   ac_status=$?
12344   egrep -v '^ *\+' conftest.er1 >conftest.err
12345   rm -f conftest.er1
12346   cat conftest.err >&5
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } >/dev/null; then
12349   if test -s conftest.err; then
12350     ac_cpp_err=$ac_c_preproc_warn_flag
12351   else
12352     ac_cpp_err=
12353   fi
12354 else
12355   ac_cpp_err=yes
12356 fi
12357 if test -z "$ac_cpp_err"; then
12358   ac_header_preproc=yes
12359 else
12360   echo "$as_me: failed program was:" >&5
12361   cat conftest.$ac_ext >&5
12362   ac_header_preproc=no
12363 fi
12364 rm -f conftest.err conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12366 echo "${ECHO_T}$ac_header_preproc" >&6
12367
12368 # So?  What about this header?
12369 case $ac_header_compiler:$ac_header_preproc in
12370   yes:no )
12371     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12372 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12373     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12375   no:yes )
12376     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12378     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12380     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12381 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12382 esac
12383 echo "$as_me:$LINENO: checking for syslog.h" >&5
12384 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12385 if test "${ac_cv_header_syslog_h+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   ac_cv_header_syslog_h=$ac_header_preproc
12389 fi
12390 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12391 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12392
12393 fi
12394 if test $ac_cv_header_syslog_h = yes; then
12395   cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_SYSLOG 1
12397 _ACEOF
12398
12399 fi
12400
12401
12402 fi
12403
12404
12405 echo "$as_me:$LINENO: checking for optreset" >&5
12406 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12407 if test "${pgac_cv_var_int_optreset+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12413 #include <unistd.h>
12414 #ifdef F77_DUMMY_MAIN
12415 #  ifdef __cplusplus
12416      extern "C"
12417 #  endif
12418    int F77_DUMMY_MAIN() { return 1; }
12419 #endif
12420 int
12421 main ()
12422 {
12423 extern int optreset; optreset = 1;
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430   (eval $ac_link) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -s conftest$ac_exeext'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; }; then
12440   pgac_cv_var_int_optreset=yes
12441 else
12442   echo "$as_me: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12444 pgac_cv_var_int_optreset=no
12445 fi
12446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12449 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12450 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12451
12452 cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_INT_OPTRESET 1
12454 _ACEOF
12455
12456 fi
12457
12458
12459 # This test makes sure that run tests work at all.  Sometimes a shared
12460 # library is found by the linker, but the runtime linker can't find it.
12461 # This check should come after all modifications of compiler or linker
12462 # variables, and before any other run tests.
12463 echo "$as_me:$LINENO: checking test program" >&5
12464 echo $ECHO_N "checking test program... $ECHO_C" >&6
12465 if test "$cross_compiling" = yes; then
12466   echo "$as_me:$LINENO: result: cross-compiling" >&5
12467 echo "${ECHO_T}cross-compiling" >&6
12468 else
12469   cat >conftest.$ac_ext <<_ACEOF
12470 #line $LINENO "configure"
12471 #include "confdefs.h"
12472 int main() { return 0; }
12473 _ACEOF
12474 rm -f conftest$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476   (eval $ac_link) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   echo "$as_me:$LINENO: result: ok" >&5
12486 echo "${ECHO_T}ok" >&6
12487 else
12488   echo "$as_me: program exited with status $ac_status" >&5
12489 echo "$as_me: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12491 ( exit $ac_status )
12492 echo "$as_me:$LINENO: result: failed" >&5
12493 echo "${ECHO_T}failed" >&6
12494 { { echo "$as_me:$LINENO: error:
12495 *** Could not execute a simple test program.  This may be a problem
12496 *** related to locating shared libraries.  Check the file 'config.log'
12497 *** for the exact reason." >&5
12498 echo "$as_me: error:
12499 *** Could not execute a simple test program.  This may be a problem
12500 *** related to locating shared libraries.  Check the file 'config.log'
12501 *** for the exact reason." >&2;}
12502    { (exit 1); exit 1; }; }
12503 fi
12504 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12505 fi
12506
12507
12508
12509 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12510 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12511 if test "${pgac_cv_type_long_int_64+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   if test "$cross_compiling" = yes; then
12515   pgac_cv_type_long_int_64=no
12516 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12517 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12518 else
12519   cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522 typedef long int int64;
12523
12524 /*
12525  * These are globals to discourage the compiler from folding all the
12526  * arithmetic tests down to compile-time constants.
12527  */
12528 int64 a = 20000001;
12529 int64 b = 40000005;
12530
12531 int does_int64_work()
12532 {
12533   int64 c,d;
12534
12535   if (sizeof(int64) != 8)
12536     return 0;                   /* definitely not the right size */
12537
12538   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12539   c = a * b;
12540   d = (c + b) / b;
12541   if (d != a+1)
12542     return 0;
12543   return 1;
12544 }
12545 main() {
12546   exit(! does_int64_work());
12547 }
12548 _ACEOF
12549 rm -f conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551   (eval $ac_link) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556   (eval $ac_try) 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   pgac_cv_type_long_int_64=yes
12561 else
12562   echo "$as_me: program exited with status $ac_status" >&5
12563 echo "$as_me: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 ( exit $ac_status )
12566 pgac_cv_type_long_int_64=no
12567 fi
12568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 fi
12571 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12572 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12573
12574 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12575 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12576
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_LONG_INT_64
12579 _ACEOF
12580
12581 fi
12582
12583
12584 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12585   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12586 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12587 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12588   echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590   if test "$cross_compiling" = yes; then
12591   pgac_cv_type_long_long_int_64=no
12592 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12593 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 #include "confdefs.h"
12598 typedef long long int int64;
12599
12600 /*
12601  * These are globals to discourage the compiler from folding all the
12602  * arithmetic tests down to compile-time constants.
12603  */
12604 int64 a = 20000001;
12605 int64 b = 40000005;
12606
12607 int does_int64_work()
12608 {
12609   int64 c,d;
12610
12611   if (sizeof(int64) != 8)
12612     return 0;                   /* definitely not the right size */
12613
12614   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12615   c = a * b;
12616   d = (c + b) / b;
12617   if (d != a+1)
12618     return 0;
12619   return 1;
12620 }
12621 main() {
12622   exit(! does_int64_work());
12623 }
12624 _ACEOF
12625 rm -f conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627   (eval $ac_link) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   pgac_cv_type_long_long_int_64=yes
12637 else
12638   echo "$as_me: program exited with status $ac_status" >&5
12639 echo "$as_me: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 ( exit $ac_status )
12642 pgac_cv_type_long_long_int_64=no
12643 fi
12644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12645 fi
12646 fi
12647 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12648 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12649
12650 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12651 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_LONG_LONG_INT_64
12655 _ACEOF
12656
12657 fi
12658
12659 fi
12660
12661
12662
12663 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12664   cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12666 #include "confdefs.h"
12667
12668 #define INT64CONST(x)  x##LL
12669 long long int foo = INT64CONST(0x1234567890123456);
12670
12671 #ifdef F77_DUMMY_MAIN
12672 #  ifdef __cplusplus
12673      extern "C"
12674 #  endif
12675    int F77_DUMMY_MAIN() { return 1; }
12676 #endif
12677 int
12678 main ()
12679 {
12680
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 rm -f conftest.$ac_objext
12686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12687   (eval $ac_compile) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -s conftest.$ac_objext'
12692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693   (eval $ac_try) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; }; then
12697
12698 cat >>confdefs.h <<\_ACEOF
12699 #define HAVE_LL_CONSTANTS 1
12700 _ACEOF
12701
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 cat conftest.$ac_ext >&5
12705 fi
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12707 fi
12708
12709
12710
12711 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12712   if [ x$SNPRINTF = x ] ; then
12713     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12714 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12715     if test "$cross_compiling" = yes; then
12716    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12717 echo "${ECHO_T}assuming not on target machine" >&6
12718         # Force usage of our own snprintf, since we cannot test foreign snprintf
12719         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12720         INT64_FORMAT='"%lld"'
12721
12722 else
12723   cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12726 #include <stdio.h>
12727 typedef long long int int64;
12728 #define INT64_FORMAT "%lld"
12729
12730 int64 a = 20000001;
12731 int64 b = 40000005;
12732
12733 int does_int64_snprintf_work()
12734 {
12735   int64 c;
12736   char buf[100];
12737
12738   if (sizeof(int64) != 8)
12739     return 0;                   /* doesn't look like the right size */
12740
12741   c = a * b;
12742   snprintf(buf, 100, INT64_FORMAT, c);
12743   if (strcmp(buf, "800000140000005") != 0)
12744     return 0;                   /* either multiply or snprintf is busted */
12745   return 1;
12746 }
12747 main() {
12748   exit(! does_int64_snprintf_work());
12749 }
12750 _ACEOF
12751 rm -f conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753   (eval $ac_link) 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762    echo "$as_me:$LINENO: result: yes" >&5
12763 echo "${ECHO_T}yes" >&6
12764           INT64_FORMAT='"%lld"'
12765
12766 else
12767   echo "$as_me: program exited with status $ac_status" >&5
12768 echo "$as_me: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 ( exit $ac_status )
12771  echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6
12773     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12774 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12775     if test "$cross_compiling" = yes; then
12776    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12777 echo "${ECHO_T}assuming not on target machine" >&6
12778         # Force usage of our own snprintf, since we cannot test foreign snprintf
12779         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12780         INT64_FORMAT='"%lld"'
12781
12782 else
12783   cat >conftest.$ac_ext <<_ACEOF
12784 #line $LINENO "configure"
12785 #include "confdefs.h"
12786 #include <stdio.h>
12787 typedef long long int int64;
12788 #define INT64_FORMAT "%qd"
12789
12790 int64 a = 20000001;
12791 int64 b = 40000005;
12792
12793 int does_int64_snprintf_work()
12794 {
12795   int64 c;
12796   char buf[100];
12797
12798   if (sizeof(int64) != 8)
12799     return 0;     /* doesn't look like the right size */
12800
12801   c = a * b;
12802   snprintf(buf, 100, INT64_FORMAT, c);
12803   if (strcmp(buf, "800000140000005") != 0)
12804     return 0;     /* either multiply or snprintf is busted */
12805   return 1;
12806 }
12807 main() {
12808   exit(! does_int64_snprintf_work());
12809 }
12810 _ACEOF
12811 rm -f conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813   (eval $ac_link) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822    echo "$as_me:$LINENO: result: yes" >&5
12823 echo "${ECHO_T}yes" >&6
12824     INT64_FORMAT='"%qd"'
12825
12826 else
12827   echo "$as_me: program exited with status $ac_status" >&5
12828 echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 ( exit $ac_status )
12831  echo "$as_me:$LINENO: result: no" >&5
12832 echo "${ECHO_T}no" >&6
12833         # Force usage of our own snprintf, since system snprintf is broken
12834         SNPRINTF='$(top_builddir)/src/backend/port/snprintf.o'
12835         INT64_FORMAT='"%lld"'
12836
12837 fi
12838 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 fi
12841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12842 fi
12843   else
12844     # here if we previously decided we needed to use our own snprintf
12845     INT64_FORMAT='"%lld"'
12846   fi
12847 else
12848   # Here if we are not using 'long long int' at all
12849   INT64_FORMAT='"%ld"'
12850 fi
12851
12852
12853 cat >>confdefs.h <<_ACEOF
12854 #define INT64_FORMAT $INT64_FORMAT
12855 _ACEOF
12856
12857
12858
12859
12860
12861 for ac_func in strtoll strtoq
12862 do
12863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864 echo "$as_me:$LINENO: checking for $ac_func" >&5
12865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_var+set}\" = set"; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12871 #include "confdefs.h"
12872 /* System header to define __stub macros and hopefully few prototypes,
12873     which can conflict with char $ac_func (); below.  */
12874 #include <assert.h>
12875 /* Override any gcc2 internal prototype to avoid an error.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 /* We use char because int might match the return type of a gcc2
12880    builtin and then its argument prototype would still apply.  */
12881 char $ac_func ();
12882 char (*f) ();
12883
12884 #ifdef F77_DUMMY_MAIN
12885 #  ifdef __cplusplus
12886      extern "C"
12887 #  endif
12888    int F77_DUMMY_MAIN() { return 1; }
12889 #endif
12890 int
12891 main ()
12892 {
12893 /* The GNU C library defines this for functions which it implements
12894     to always fail with ENOSYS.  Some functions are actually named
12895     something starting with __ and the normal name is an alias.  */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12897 choke me
12898 #else
12899 f = $ac_func;
12900 #endif
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908   (eval $ac_link) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -s conftest$ac_exeext'
12913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   eval "$as_ac_var=yes"
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12923 fi
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925 fi
12926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929   cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 _ACEOF
12932  break
12933 fi
12934 done
12935
12936
12937
12938 for ac_func in strtoull strtouq
12939 do
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_var+set}\" = set"; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12949 /* System header to define __stub macros and hopefully few prototypes,
12950     which can conflict with char $ac_func (); below.  */
12951 #include <assert.h>
12952 /* Override any gcc2 internal prototype to avoid an error.  */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 /* We use char because int might match the return type of a gcc2
12957    builtin and then its argument prototype would still apply.  */
12958 char $ac_func ();
12959 char (*f) ();
12960
12961 #ifdef F77_DUMMY_MAIN
12962 #  ifdef __cplusplus
12963      extern "C"
12964 #  endif
12965    int F77_DUMMY_MAIN() { return 1; }
12966 #endif
12967 int
12968 main ()
12969 {
12970 /* The GNU C library defines this for functions which it implements
12971     to always fail with ENOSYS.  Some functions are actually named
12972     something starting with __ and the normal name is an alias.  */
12973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12974 choke me
12975 #else
12976 f = $ac_func;
12977 #endif
12978
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985   (eval $ac_link) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -s conftest$ac_exeext'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   eval "$as_ac_var=yes"
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
12999 eval "$as_ac_var=no"
13000 fi
13001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13002 fi
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13005 if test `eval echo '${'$as_ac_var'}'` = yes; then
13006   cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13008 _ACEOF
13009  break
13010 fi
13011 done
13012
13013
13014 # Check for one of atexit() or on_exit()
13015
13016 for ac_func in atexit
13017 do
13018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13019 echo "$as_me:$LINENO: checking for $ac_func" >&5
13020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13021 if eval "test \"\${$as_ac_var+set}\" = set"; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 #include "confdefs.h"
13027 /* System header to define __stub macros and hopefully few prototypes,
13028     which can conflict with char $ac_func (); below.  */
13029 #include <assert.h>
13030 /* Override any gcc2 internal prototype to avoid an error.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 /* We use char because int might match the return type of a gcc2
13035    builtin and then its argument prototype would still apply.  */
13036 char $ac_func ();
13037 char (*f) ();
13038
13039 #ifdef F77_DUMMY_MAIN
13040 #  ifdef __cplusplus
13041      extern "C"
13042 #  endif
13043    int F77_DUMMY_MAIN() { return 1; }
13044 #endif
13045 int
13046 main ()
13047 {
13048 /* The GNU C library defines this for functions which it implements
13049     to always fail with ENOSYS.  Some functions are actually named
13050     something starting with __ and the normal name is an alias.  */
13051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13052 choke me
13053 #else
13054 f = $ac_func;
13055 #endif
13056
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063   (eval $ac_link) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -s conftest$ac_exeext'
13068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069   (eval $ac_try) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   eval "$as_ac_var=yes"
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 eval "$as_ac_var=no"
13078 fi
13079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13080 fi
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13083 if test `eval echo '${'$as_ac_var'}'` = yes; then
13084   cat >>confdefs.h <<_ACEOF
13085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13086 _ACEOF
13087
13088 else
13089
13090 for ac_func in on_exit
13091 do
13092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13093 echo "$as_me:$LINENO: checking for $ac_func" >&5
13094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13095 if eval "test \"\${$as_ac_var+set}\" = set"; then
13096   echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098   cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 #include "confdefs.h"
13101 /* System header to define __stub macros and hopefully few prototypes,
13102     which can conflict with char $ac_func (); below.  */
13103 #include <assert.h>
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 /* We use char because int might match the return type of a gcc2
13109    builtin and then its argument prototype would still apply.  */
13110 char $ac_func ();
13111 char (*f) ();
13112
13113 #ifdef F77_DUMMY_MAIN
13114 #  ifdef __cplusplus
13115      extern "C"
13116 #  endif
13117    int F77_DUMMY_MAIN() { return 1; }
13118 #endif
13119 int
13120 main ()
13121 {
13122 /* The GNU C library defines this for functions which it implements
13123     to always fail with ENOSYS.  Some functions are actually named
13124     something starting with __ and the normal name is an alias.  */
13125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13126 choke me
13127 #else
13128 f = $ac_func;
13129 #endif
13130
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137   (eval $ac_link) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -s conftest$ac_exeext'
13142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143   (eval $ac_try) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; }; then
13147   eval "$as_ac_var=yes"
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 eval "$as_ac_var=no"
13152 fi
13153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13154 fi
13155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13157 if test `eval echo '${'$as_ac_var'}'` = yes; then
13158   cat >>confdefs.h <<_ACEOF
13159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13160 _ACEOF
13161
13162 else
13163   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13164 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13165    { (exit 1); exit 1; }; }
13166 fi
13167 done
13168
13169 fi
13170 done
13171
13172
13173
13174 echo "$as_me:$LINENO: checking for unsigned long" >&5
13175 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13176 if test "${ac_cv_type_unsigned_long+set}" = set; then
13177   echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179   cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13181 #include "confdefs.h"
13182 $ac_includes_default
13183 #ifdef F77_DUMMY_MAIN
13184 #  ifdef __cplusplus
13185      extern "C"
13186 #  endif
13187    int F77_DUMMY_MAIN() { return 1; }
13188 #endif
13189 int
13190 main ()
13191 {
13192 if ((unsigned long *) 0)
13193   return 0;
13194 if (sizeof (unsigned long))
13195   return 0;
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202   (eval $ac_compile) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } &&
13206          { ac_try='test -s conftest.$ac_objext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_cv_type_unsigned_long=yes
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 ac_cv_type_unsigned_long=no
13217 fi
13218 rm -f conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13221 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13222
13223 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13224 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13225 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   if test "$ac_cv_type_unsigned_long" = yes; then
13229   # The cast to unsigned long works around a bug in the HP C Compiler
13230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13232   # This bug is HP SR number 8606223364.
13233   if test "$cross_compiling" = yes; then
13234   # Depending upon the size, compute the lo and hi bounds.
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line $LINENO "configure"
13237 #include "confdefs.h"
13238 $ac_includes_default
13239 #ifdef F77_DUMMY_MAIN
13240 #  ifdef __cplusplus
13241      extern "C"
13242 #  endif
13243    int F77_DUMMY_MAIN() { return 1; }
13244 #endif
13245 int
13246 main ()
13247 {
13248 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13249 test_array [0] = 0
13250
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257   (eval $ac_compile) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -s conftest.$ac_objext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_lo=0 ac_mid=0
13268   while :; do
13269     cat >conftest.$ac_ext <<_ACEOF
13270 #line $LINENO "configure"
13271 #include "confdefs.h"
13272 $ac_includes_default
13273 #ifdef F77_DUMMY_MAIN
13274 #  ifdef __cplusplus
13275      extern "C"
13276 #  endif
13277    int F77_DUMMY_MAIN() { return 1; }
13278 #endif
13279 int
13280 main ()
13281 {
13282 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13283 test_array [0] = 0
13284
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291   (eval $ac_compile) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } &&
13295          { ac_try='test -s conftest.$ac_objext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_hi=$ac_mid; break
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 ac_lo=`expr $ac_mid + 1`
13306                     if test $ac_lo -le $ac_mid; then
13307                       ac_lo= ac_hi=
13308                       break
13309                     fi
13310                     ac_mid=`expr 2 '*' $ac_mid + 1`
13311 fi
13312 rm -f conftest.$ac_objext conftest.$ac_ext
13313   done
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13319 #include "confdefs.h"
13320 $ac_includes_default
13321 #ifdef F77_DUMMY_MAIN
13322 #  ifdef __cplusplus
13323      extern "C"
13324 #  endif
13325    int F77_DUMMY_MAIN() { return 1; }
13326 #endif
13327 int
13328 main ()
13329 {
13330 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13331 test_array [0] = 0
13332
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 rm -f conftest.$ac_objext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13339   (eval $ac_compile) 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } &&
13343          { ac_try='test -s conftest.$ac_objext'
13344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345   (eval $ac_try) 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }; }; then
13349   ac_hi=-1 ac_mid=-1
13350   while :; do
13351     cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 #include "confdefs.h"
13354 $ac_includes_default
13355 #ifdef F77_DUMMY_MAIN
13356 #  ifdef __cplusplus
13357      extern "C"
13358 #  endif
13359    int F77_DUMMY_MAIN() { return 1; }
13360 #endif
13361 int
13362 main ()
13363 {
13364 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13365 test_array [0] = 0
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373   (eval $ac_compile) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -s conftest.$ac_objext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_lo=$ac_mid; break
13384 else
13385   echo "$as_me: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13387 ac_hi=`expr '(' $ac_mid ')' - 1`
13388                        if test $ac_mid -le $ac_hi; then
13389                          ac_lo= ac_hi=
13390                          break
13391                        fi
13392                        ac_mid=`expr 2 '*' $ac_mid`
13393 fi
13394 rm -f conftest.$ac_objext conftest.$ac_ext
13395   done
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13399 ac_lo= ac_hi=
13400 fi
13401 rm -f conftest.$ac_objext conftest.$ac_ext
13402 fi
13403 rm -f conftest.$ac_objext conftest.$ac_ext
13404 # Binary search between lo and hi bounds.
13405 while test "x$ac_lo" != "x$ac_hi"; do
13406   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13407   cat >conftest.$ac_ext <<_ACEOF
13408 #line $LINENO "configure"
13409 #include "confdefs.h"
13410 $ac_includes_default
13411 #ifdef F77_DUMMY_MAIN
13412 #  ifdef __cplusplus
13413      extern "C"
13414 #  endif
13415    int F77_DUMMY_MAIN() { return 1; }
13416 #endif
13417 int
13418 main ()
13419 {
13420 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13421 test_array [0] = 0
13422
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429   (eval $ac_compile) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -s conftest.$ac_objext'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; }; then
13439   ac_hi=$ac_mid
13440 else
13441   echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 ac_lo=`expr '(' $ac_mid ')' + 1`
13444 fi
13445 rm -f conftest.$ac_objext conftest.$ac_ext
13446 done
13447 case $ac_lo in
13448 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13449 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13450 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13451    { (exit 1); exit 1; }; } ;;
13452 esac
13453 else
13454   if test "$cross_compiling" = yes; then
13455   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13456 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13457    { (exit 1); exit 1; }; }
13458 else
13459   cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13461 #include "confdefs.h"
13462 $ac_includes_default
13463 long longval () { return (long) (sizeof (unsigned long)); }
13464 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13465 #include <stdio.h>
13466 #include <stdlib.h>
13467 #ifdef F77_DUMMY_MAIN
13468 #  ifdef __cplusplus
13469      extern "C"
13470 #  endif
13471    int F77_DUMMY_MAIN() { return 1; }
13472 #endif
13473 int
13474 main ()
13475 {
13476
13477   FILE *f = fopen ("conftest.val", "w");
13478   if (! f)
13479     exit (1);
13480   if (((long) (sizeof (unsigned long))) < 0)
13481     {
13482       long i = longval ();
13483       if (i != ((long) (sizeof (unsigned long))))
13484         exit (1);
13485       fprintf (f, "%ld\n", i);
13486     }
13487   else
13488     {
13489       unsigned long i = ulongval ();
13490       if (i != ((long) (sizeof (unsigned long))))
13491         exit (1);
13492       fprintf (f, "%lu\n", i);
13493     }
13494   exit (ferror (f) || fclose (f) != 0);
13495
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest$ac_exeext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13502   (eval $ac_link) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13511   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13512 else
13513   echo "$as_me: program exited with status $ac_status" >&5
13514 echo "$as_me: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13516 ( exit $ac_status )
13517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13518 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13519    { (exit 1); exit 1; }; }
13520 fi
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 fi
13523 fi
13524 rm -f conftest.val
13525 else
13526   ac_cv_sizeof_unsigned_long=0
13527 fi
13528 fi
13529 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13530 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13531 cat >>confdefs.h <<_ACEOF
13532 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13533 _ACEOF
13534
13535
13536
13537 cat >>confdefs.h <<_ACEOF
13538 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13539 _ACEOF
13540
13541
13542 # Determine memory alignment requirements for the basic C data types.
13543
13544 echo "$as_me:$LINENO: checking for short" >&5
13545 echo $ECHO_N "checking for short... $ECHO_C" >&6
13546 if test "${ac_cv_type_short+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549   cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13552 $ac_includes_default
13553 #ifdef F77_DUMMY_MAIN
13554 #  ifdef __cplusplus
13555      extern "C"
13556 #  endif
13557    int F77_DUMMY_MAIN() { return 1; }
13558 #endif
13559 int
13560 main ()
13561 {
13562 if ((short *) 0)
13563   return 0;
13564 if (sizeof (short))
13565   return 0;
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572   (eval $ac_compile) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13582   ac_cv_type_short=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 ac_cv_type_short=no
13587 fi
13588 rm -f conftest.$ac_objext conftest.$ac_ext
13589 fi
13590 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13591 echo "${ECHO_T}$ac_cv_type_short" >&6
13592
13593 echo "$as_me:$LINENO: checking alignment of short" >&5
13594 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13595 if test "${pgac_cv_alignof_short+set}" = set; then
13596   echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598   if test "$ac_cv_type_short" = yes; then
13599   if test "$cross_compiling" = yes; then
13600   # Depending upon the size, compute the lo and hi bounds.
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 struct { char filler; short field; } pgac_struct;
13606 #ifdef F77_DUMMY_MAIN
13607 #  ifdef __cplusplus
13608      extern "C"
13609 #  endif
13610    int F77_DUMMY_MAIN() { return 1; }
13611 #endif
13612 int
13613 main ()
13614 {
13615 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13616 test_array [0] = 0
13617
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624   (eval $ac_compile) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -s conftest.$ac_objext'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_lo=0 ac_mid=0
13635   while :; do
13636     cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 $ac_includes_default
13640 struct { char filler; short field; } pgac_struct;
13641 #ifdef F77_DUMMY_MAIN
13642 #  ifdef __cplusplus
13643      extern "C"
13644 #  endif
13645    int F77_DUMMY_MAIN() { return 1; }
13646 #endif
13647 int
13648 main ()
13649 {
13650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13651 test_array [0] = 0
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659   (eval $ac_compile) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -s conftest.$ac_objext'
13664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665   (eval $ac_try) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   ac_hi=$ac_mid; break
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 ac_lo=`expr $ac_mid + 1`
13674                     if test $ac_lo -le $ac_mid; then
13675                       ac_lo= ac_hi=
13676                       break
13677                     fi
13678                     ac_mid=`expr 2 '*' $ac_mid + 1`
13679 fi
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681   done
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 cat >conftest.$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688 $ac_includes_default
13689 struct { char filler; short field; } pgac_struct;
13690 #ifdef F77_DUMMY_MAIN
13691 #  ifdef __cplusplus
13692      extern "C"
13693 #  endif
13694    int F77_DUMMY_MAIN() { return 1; }
13695 #endif
13696 int
13697 main ()
13698 {
13699 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13700 test_array [0] = 0
13701
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708   (eval $ac_compile) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -s conftest.$ac_objext'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718   ac_hi=-1 ac_mid=-1
13719   while :; do
13720     cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 #include "confdefs.h"
13723 $ac_includes_default
13724 struct { char filler; short field; } pgac_struct;
13725 #ifdef F77_DUMMY_MAIN
13726 #  ifdef __cplusplus
13727      extern "C"
13728 #  endif
13729    int F77_DUMMY_MAIN() { return 1; }
13730 #endif
13731 int
13732 main ()
13733 {
13734 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13735 test_array [0] = 0
13736
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743   (eval $ac_compile) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_lo=$ac_mid; break
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 ac_hi=`expr '(' $ac_mid ')' - 1`
13758                        if test $ac_mid -le $ac_hi; then
13759                          ac_lo= ac_hi=
13760                          break
13761                        fi
13762                        ac_mid=`expr 2 '*' $ac_mid`
13763 fi
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13765   done
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 ac_lo= ac_hi=
13770 fi
13771 rm -f conftest.$ac_objext conftest.$ac_ext
13772 fi
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13774 # Binary search between lo and hi bounds.
13775 while test "x$ac_lo" != "x$ac_hi"; do
13776   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13777   cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13779 #include "confdefs.h"
13780 $ac_includes_default
13781 struct { char filler; short field; } pgac_struct;
13782 #ifdef F77_DUMMY_MAIN
13783 #  ifdef __cplusplus
13784      extern "C"
13785 #  endif
13786    int F77_DUMMY_MAIN() { return 1; }
13787 #endif
13788 int
13789 main ()
13790 {
13791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13792 test_array [0] = 0
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800   (eval $ac_compile) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_hi=$ac_mid
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 ac_lo=`expr '(' $ac_mid ')' + 1`
13815 fi
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13817 done
13818 case $ac_lo in
13819 ?*) pgac_cv_alignof_short=$ac_lo;;
13820 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13821 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13822    { (exit 1); exit 1; }; } ;;
13823 esac
13824 else
13825   if test "$cross_compiling" = yes; then
13826   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13827 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13828    { (exit 1); exit 1; }; }
13829 else
13830   cat >conftest.$ac_ext <<_ACEOF
13831 #line $LINENO "configure"
13832 #include "confdefs.h"
13833 $ac_includes_default
13834 struct { char filler; short field; } pgac_struct;
13835 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13836 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13837 #include <stdio.h>
13838 #include <stdlib.h>
13839 #ifdef F77_DUMMY_MAIN
13840 #  ifdef __cplusplus
13841      extern "C"
13842 #  endif
13843    int F77_DUMMY_MAIN() { return 1; }
13844 #endif
13845 int
13846 main ()
13847 {
13848
13849   FILE *f = fopen ("conftest.val", "w");
13850   if (! f)
13851     exit (1);
13852   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13853     {
13854       long i = longval ();
13855       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13856         exit (1);
13857       fprintf (f, "%ld\n", i);
13858     }
13859   else
13860     {
13861       unsigned long i = ulongval ();
13862       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13863         exit (1);
13864       fprintf (f, "%lu\n", i);
13865     }
13866   exit (ferror (f) || fclose (f) != 0);
13867
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874   (eval $ac_link) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879   (eval $ac_try) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; }; then
13883   pgac_cv_alignof_short=`cat conftest.val`
13884 else
13885   echo "$as_me: program exited with status $ac_status" >&5
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ( exit $ac_status )
13889 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13890 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13891    { (exit 1); exit 1; }; }
13892 fi
13893 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13894 fi
13895 fi
13896 rm -f conftest.val
13897 else
13898   pgac_cv_alignof_short=0
13899 fi
13900 fi
13901 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13902 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13903 cat >>confdefs.h <<_ACEOF
13904 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13905 _ACEOF
13906
13907
13908 echo "$as_me:$LINENO: checking for int" >&5
13909 echo $ECHO_N "checking for int... $ECHO_C" >&6
13910 if test "${ac_cv_type_int+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13916 $ac_includes_default
13917 #ifdef F77_DUMMY_MAIN
13918 #  ifdef __cplusplus
13919      extern "C"
13920 #  endif
13921    int F77_DUMMY_MAIN() { return 1; }
13922 #endif
13923 int
13924 main ()
13925 {
13926 if ((int *) 0)
13927   return 0;
13928 if (sizeof (int))
13929   return 0;
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -s conftest.$ac_objext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_cv_type_int=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 ac_cv_type_int=no
13951 fi
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13955 echo "${ECHO_T}$ac_cv_type_int" >&6
13956
13957 echo "$as_me:$LINENO: checking alignment of int" >&5
13958 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13959 if test "${pgac_cv_alignof_int+set}" = set; then
13960   echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962   if test "$ac_cv_type_int" = yes; then
13963   if test "$cross_compiling" = yes; then
13964   # Depending upon the size, compute the lo and hi bounds.
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 $ac_includes_default
13969 struct { char filler; int field; } pgac_struct;
13970 #ifdef F77_DUMMY_MAIN
13971 #  ifdef __cplusplus
13972      extern "C"
13973 #  endif
13974    int F77_DUMMY_MAIN() { return 1; }
13975 #endif
13976 int
13977 main ()
13978 {
13979 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13980 test_array [0] = 0
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988   (eval $ac_compile) 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_lo=0 ac_mid=0
13999   while :; do
14000     cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14002 #include "confdefs.h"
14003 $ac_includes_default
14004 struct { char filler; int field; } pgac_struct;
14005 #ifdef F77_DUMMY_MAIN
14006 #  ifdef __cplusplus
14007      extern "C"
14008 #  endif
14009    int F77_DUMMY_MAIN() { return 1; }
14010 #endif
14011 int
14012 main ()
14013 {
14014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14015 test_array [0] = 0
14016
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>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -s conftest.$ac_objext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_hi=$ac_mid; break
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_lo=`expr $ac_mid + 1`
14038                     if test $ac_lo -le $ac_mid; then
14039                       ac_lo= ac_hi=
14040                       break
14041                     fi
14042                     ac_mid=`expr 2 '*' $ac_mid + 1`
14043 fi
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045   done
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 cat >conftest.$ac_ext <<_ACEOF
14050 #line $LINENO "configure"
14051 #include "confdefs.h"
14052 $ac_includes_default
14053 struct { char filler; int field; } pgac_struct;
14054 #ifdef F77_DUMMY_MAIN
14055 #  ifdef __cplusplus
14056      extern "C"
14057 #  endif
14058    int F77_DUMMY_MAIN() { return 1; }
14059 #endif
14060 int
14061 main ()
14062 {
14063 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14064 test_array [0] = 0
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_hi=-1 ac_mid=-1
14083   while :; do
14084     cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 struct { char filler; int field; } pgac_struct;
14089 #ifdef F77_DUMMY_MAIN
14090 #  ifdef __cplusplus
14091      extern "C"
14092 #  endif
14093    int F77_DUMMY_MAIN() { return 1; }
14094 #endif
14095 int
14096 main ()
14097 {
14098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14099 test_array [0] = 0
14100
14101   ;
14102   return 0;
14103 }
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107   (eval $ac_compile) 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -s conftest.$ac_objext'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_lo=$ac_mid; break
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 ac_hi=`expr '(' $ac_mid ')' - 1`
14122                        if test $ac_mid -le $ac_hi; then
14123                          ac_lo= ac_hi=
14124                          break
14125                        fi
14126                        ac_mid=`expr 2 '*' $ac_mid`
14127 fi
14128 rm -f conftest.$ac_objext conftest.$ac_ext
14129   done
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 ac_lo= ac_hi=
14134 fi
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138 # Binary search between lo and hi bounds.
14139 while test "x$ac_lo" != "x$ac_hi"; do
14140   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14141   cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 #include "confdefs.h"
14144 $ac_includes_default
14145 struct { char filler; int field; } pgac_struct;
14146 #ifdef F77_DUMMY_MAIN
14147 #  ifdef __cplusplus
14148      extern "C"
14149 #  endif
14150    int F77_DUMMY_MAIN() { return 1; }
14151 #endif
14152 int
14153 main ()
14154 {
14155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14156 test_array [0] = 0
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164   (eval $ac_compile) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } &&
14168          { ac_try='test -s conftest.$ac_objext'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; }; then
14174   ac_hi=$ac_mid
14175 else
14176   echo "$as_me: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 ac_lo=`expr '(' $ac_mid ')' + 1`
14179 fi
14180 rm -f conftest.$ac_objext conftest.$ac_ext
14181 done
14182 case $ac_lo in
14183 ?*) pgac_cv_alignof_int=$ac_lo;;
14184 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14185 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14186    { (exit 1); exit 1; }; } ;;
14187 esac
14188 else
14189   if test "$cross_compiling" = yes; then
14190   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14191 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14192    { (exit 1); exit 1; }; }
14193 else
14194   cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197 $ac_includes_default
14198 struct { char filler; int field; } pgac_struct;
14199 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14200 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14201 #include <stdio.h>
14202 #include <stdlib.h>
14203 #ifdef F77_DUMMY_MAIN
14204 #  ifdef __cplusplus
14205      extern "C"
14206 #  endif
14207    int F77_DUMMY_MAIN() { return 1; }
14208 #endif
14209 int
14210 main ()
14211 {
14212
14213   FILE *f = fopen ("conftest.val", "w");
14214   if (! f)
14215     exit (1);
14216   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14217     {
14218       long i = longval ();
14219       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14220         exit (1);
14221       fprintf (f, "%ld\n", i);
14222     }
14223   else
14224     {
14225       unsigned long i = ulongval ();
14226       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14227         exit (1);
14228       fprintf (f, "%lu\n", i);
14229     }
14230   exit (ferror (f) || fclose (f) != 0);
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238   (eval $ac_link) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   pgac_cv_alignof_int=`cat conftest.val`
14248 else
14249   echo "$as_me: program exited with status $ac_status" >&5
14250 echo "$as_me: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14252 ( exit $ac_status )
14253 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14254 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14255    { (exit 1); exit 1; }; }
14256 fi
14257 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 fi
14260 rm -f conftest.val
14261 else
14262   pgac_cv_alignof_int=0
14263 fi
14264 fi
14265 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14266 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14267 cat >>confdefs.h <<_ACEOF
14268 #define ALIGNOF_INT $pgac_cv_alignof_int
14269 _ACEOF
14270
14271
14272 echo "$as_me:$LINENO: checking for long" >&5
14273 echo $ECHO_N "checking for long... $ECHO_C" >&6
14274 if test "${ac_cv_type_long+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 #  ifdef __cplusplus
14283      extern "C"
14284 #  endif
14285    int F77_DUMMY_MAIN() { return 1; }
14286 #endif
14287 int
14288 main ()
14289 {
14290 if ((long *) 0)
14291   return 0;
14292 if (sizeof (long))
14293   return 0;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300   (eval $ac_compile) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -s conftest.$ac_objext'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   ac_cv_type_long=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 ac_cv_type_long=no
14315 fi
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14319 echo "${ECHO_T}$ac_cv_type_long" >&6
14320
14321 echo "$as_me:$LINENO: checking alignment of long" >&5
14322 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_long+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   if test "$ac_cv_type_long" = yes; then
14327   if test "$cross_compiling" = yes; then
14328   # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; long field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 #  ifdef __cplusplus
14336      extern "C"
14337 #  endif
14338    int F77_DUMMY_MAIN() { return 1; }
14339 #endif
14340 int
14341 main ()
14342 {
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14344 test_array [0] = 0
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_lo=0 ac_mid=0
14363   while :; do
14364     cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; long field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 #  ifdef __cplusplus
14371      extern "C"
14372 #  endif
14373    int F77_DUMMY_MAIN() { return 1; }
14374 #endif
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_hi=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402                     if test $ac_lo -le $ac_mid; then
14403                       ac_lo= ac_hi=
14404                       break
14405                     fi
14406                     ac_mid=`expr 2 '*' $ac_mid + 1`
14407 fi
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14409   done
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; long field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 #  ifdef __cplusplus
14420      extern "C"
14421 #  endif
14422    int F77_DUMMY_MAIN() { return 1; }
14423 #endif
14424 int
14425 main ()
14426 {
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14428 test_array [0] = 0
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436   (eval $ac_compile) 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_hi=-1 ac_mid=-1
14447   while :; do
14448     cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; long field; } pgac_struct;
14453 #ifdef F77_DUMMY_MAIN
14454 #  ifdef __cplusplus
14455      extern "C"
14456 #  endif
14457    int F77_DUMMY_MAIN() { return 1; }
14458 #endif
14459 int
14460 main ()
14461 {
14462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14463 test_array [0] = 0
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_lo=$ac_mid; break
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486                        if test $ac_mid -le $ac_hi; then
14487                          ac_lo= ac_hi=
14488                          break
14489                        fi
14490                        ac_mid=`expr 2 '*' $ac_mid`
14491 fi
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493   done
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 ac_lo= ac_hi=
14498 fi
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505   cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; long field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 #  ifdef __cplusplus
14512      extern "C"
14513 #  endif
14514    int F77_DUMMY_MAIN() { return 1; }
14515 #endif
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14520 test_array [0] = 0
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528   (eval $ac_compile) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_hi=$ac_mid
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14543 fi
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14545 done
14546 case $ac_lo in
14547 ?*) pgac_cv_alignof_long=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14550    { (exit 1); exit 1; }; } ;;
14551 esac
14552 else
14553   if test "$cross_compiling" = yes; then
14554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556    { (exit 1); exit 1; }; }
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; long field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14565 #include <stdio.h>
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 #  ifdef __cplusplus
14569      extern "C"
14570 #  endif
14571    int F77_DUMMY_MAIN() { return 1; }
14572 #endif
14573 int
14574 main ()
14575 {
14576
14577   FILE *f = fopen ("conftest.val", "w");
14578   if (! f)
14579     exit (1);
14580   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14581     {
14582       long i = longval ();
14583       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14584         exit (1);
14585       fprintf (f, "%ld\n", i);
14586     }
14587   else
14588     {
14589       unsigned long i = ulongval ();
14590       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14591         exit (1);
14592       fprintf (f, "%lu\n", i);
14593     }
14594   exit (ferror (f) || fclose (f) != 0);
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602   (eval $ac_link) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   pgac_cv_alignof_long=`cat conftest.val`
14612 else
14613   echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14619    { (exit 1); exit 1; }; }
14620 fi
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14622 fi
14623 fi
14624 rm -f conftest.val
14625 else
14626   pgac_cv_alignof_long=0
14627 fi
14628 fi
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_LONG $pgac_cv_alignof_long
14633 _ACEOF
14634
14635
14636 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14637   echo "$as_me:$LINENO: checking for long long int" >&5
14638 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14639 if test "${ac_cv_type_long_long_int+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14646 #ifdef F77_DUMMY_MAIN
14647 #  ifdef __cplusplus
14648      extern "C"
14649 #  endif
14650    int F77_DUMMY_MAIN() { return 1; }
14651 #endif
14652 int
14653 main ()
14654 {
14655 if ((long long int *) 0)
14656   return 0;
14657 if (sizeof (long long int))
14658   return 0;
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665   (eval $ac_compile) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -s conftest.$ac_objext'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   ac_cv_type_long_long_int=yes
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 ac_cv_type_long_long_int=no
14680 fi
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14682 fi
14683 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14684 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14685
14686 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14687 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14688 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   if test "$ac_cv_type_long_long_int" = yes; then
14692   if test "$cross_compiling" = yes; then
14693   # Depending upon the size, compute the lo and hi bounds.
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long long int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 #  ifdef __cplusplus
14701      extern "C"
14702 #  endif
14703    int F77_DUMMY_MAIN() { return 1; }
14704 #endif
14705 int
14706 main ()
14707 {
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14709 test_array [0] = 0
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727   ac_lo=0 ac_mid=0
14728   while :; do
14729     cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; long long int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 #  ifdef __cplusplus
14736      extern "C"
14737 #  endif
14738    int F77_DUMMY_MAIN() { return 1; }
14739 #endif
14740 int
14741 main ()
14742 {
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14744 test_array [0] = 0
14745
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_hi=$ac_mid; break
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_lo=`expr $ac_mid + 1`
14767                     if test $ac_lo -le $ac_mid; then
14768                       ac_lo= ac_hi=
14769                       break
14770                     fi
14771                     ac_mid=`expr 2 '*' $ac_mid + 1`
14772 fi
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14774   done
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781 $ac_includes_default
14782 struct { char filler; long long int field; } pgac_struct;
14783 #ifdef F77_DUMMY_MAIN
14784 #  ifdef __cplusplus
14785      extern "C"
14786 #  endif
14787    int F77_DUMMY_MAIN() { return 1; }
14788 #endif
14789 int
14790 main ()
14791 {
14792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14793 test_array [0] = 0
14794
14795   ;
14796   return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801   (eval $ac_compile) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } &&
14805          { ac_try='test -s conftest.$ac_objext'
14806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807   (eval $ac_try) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }; then
14811   ac_hi=-1 ac_mid=-1
14812   while :; do
14813     cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 struct { char filler; long long int field; } pgac_struct;
14818 #ifdef F77_DUMMY_MAIN
14819 #  ifdef __cplusplus
14820      extern "C"
14821 #  endif
14822    int F77_DUMMY_MAIN() { return 1; }
14823 #endif
14824 int
14825 main ()
14826 {
14827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14828 test_array [0] = 0
14829
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_lo=$ac_mid; break
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 ac_hi=`expr '(' $ac_mid ')' - 1`
14851                        if test $ac_mid -le $ac_hi; then
14852                          ac_lo= ac_hi=
14853                          break
14854                        fi
14855                        ac_mid=`expr 2 '*' $ac_mid`
14856 fi
14857 rm -f conftest.$ac_objext conftest.$ac_ext
14858   done
14859 else
14860   echo "$as_me: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 ac_lo= ac_hi=
14863 fi
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14867 # Binary search between lo and hi bounds.
14868 while test "x$ac_lo" != "x$ac_hi"; do
14869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14870   cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 #include "confdefs.h"
14873 $ac_includes_default
14874 struct { char filler; long long int field; } pgac_struct;
14875 #ifdef F77_DUMMY_MAIN
14876 #  ifdef __cplusplus
14877      extern "C"
14878 #  endif
14879    int F77_DUMMY_MAIN() { return 1; }
14880 #endif
14881 int
14882 main ()
14883 {
14884 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14885 test_array [0] = 0
14886
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893   (eval $ac_compile) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   ac_hi=$ac_mid
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14907 ac_lo=`expr '(' $ac_mid ')' + 1`
14908 fi
14909 rm -f conftest.$ac_objext conftest.$ac_ext
14910 done
14911 case $ac_lo in
14912 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14913 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14914 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14915    { (exit 1); exit 1; }; } ;;
14916 esac
14917 else
14918   if test "$cross_compiling" = yes; then
14919   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14920 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14921    { (exit 1); exit 1; }; }
14922 else
14923   cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 struct { char filler; long long int field; } pgac_struct;
14928 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14929 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14930 #include <stdio.h>
14931 #include <stdlib.h>
14932 #ifdef F77_DUMMY_MAIN
14933 #  ifdef __cplusplus
14934      extern "C"
14935 #  endif
14936    int F77_DUMMY_MAIN() { return 1; }
14937 #endif
14938 int
14939 main ()
14940 {
14941
14942   FILE *f = fopen ("conftest.val", "w");
14943   if (! f)
14944     exit (1);
14945   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14946     {
14947       long i = longval ();
14948       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14949         exit (1);
14950       fprintf (f, "%ld\n", i);
14951     }
14952   else
14953     {
14954       unsigned long i = ulongval ();
14955       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14956         exit (1);
14957       fprintf (f, "%lu\n", i);
14958     }
14959   exit (ferror (f) || fclose (f) != 0);
14960
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967   (eval $ac_link) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976   pgac_cv_alignof_long_long_int=`cat conftest.val`
14977 else
14978   echo "$as_me: program exited with status $ac_status" >&5
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ( exit $ac_status )
14982 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14983 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14984    { (exit 1); exit 1; }; }
14985 fi
14986 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14987 fi
14988 fi
14989 rm -f conftest.val
14990 else
14991   pgac_cv_alignof_long_long_int=0
14992 fi
14993 fi
14994 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14995 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14996 cat >>confdefs.h <<_ACEOF
14997 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14998 _ACEOF
14999
15000
15001 fi
15002 echo "$as_me:$LINENO: checking for double" >&5
15003 echo $ECHO_N "checking for double... $ECHO_C" >&6
15004 if test "${ac_cv_type_double+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 #include "confdefs.h"
15010 $ac_includes_default
15011 #ifdef F77_DUMMY_MAIN
15012 #  ifdef __cplusplus
15013      extern "C"
15014 #  endif
15015    int F77_DUMMY_MAIN() { return 1; }
15016 #endif
15017 int
15018 main ()
15019 {
15020 if ((double *) 0)
15021   return 0;
15022 if (sizeof (double))
15023   return 0;
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 rm -f conftest.$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030   (eval $ac_compile) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); } &&
15034          { ac_try='test -s conftest.$ac_objext'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040   ac_cv_type_double=yes
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 ac_cv_type_double=no
15045 fi
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15047 fi
15048 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15049 echo "${ECHO_T}$ac_cv_type_double" >&6
15050
15051 echo "$as_me:$LINENO: checking alignment of double" >&5
15052 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15053 if test "${pgac_cv_alignof_double+set}" = set; then
15054   echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056   if test "$ac_cv_type_double" = yes; then
15057   if test "$cross_compiling" = yes; then
15058   # Depending upon the size, compute the lo and hi bounds.
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; double field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 #  ifdef __cplusplus
15066      extern "C"
15067 #  endif
15068    int F77_DUMMY_MAIN() { return 1; }
15069 #endif
15070 int
15071 main ()
15072 {
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15074 test_array [0] = 0
15075
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082   (eval $ac_compile) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } &&
15086          { ac_try='test -s conftest.$ac_objext'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; }; then
15092   ac_lo=0 ac_mid=0
15093   while :; do
15094     cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15097 $ac_includes_default
15098 struct { char filler; double field; } pgac_struct;
15099 #ifdef F77_DUMMY_MAIN
15100 #  ifdef __cplusplus
15101      extern "C"
15102 #  endif
15103    int F77_DUMMY_MAIN() { return 1; }
15104 #endif
15105 int
15106 main ()
15107 {
15108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15109 test_array [0] = 0
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117   (eval $ac_compile) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } &&
15121          { ac_try='test -s conftest.$ac_objext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_hi=$ac_mid; break
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 ac_lo=`expr $ac_mid + 1`
15132                     if test $ac_lo -le $ac_mid; then
15133                       ac_lo= ac_hi=
15134                       break
15135                     fi
15136                     ac_mid=`expr 2 '*' $ac_mid + 1`
15137 fi
15138 rm -f conftest.$ac_objext conftest.$ac_ext
15139   done
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 #include "confdefs.h"
15146 $ac_includes_default
15147 struct { char filler; double field; } pgac_struct;
15148 #ifdef F77_DUMMY_MAIN
15149 #  ifdef __cplusplus
15150      extern "C"
15151 #  endif
15152    int F77_DUMMY_MAIN() { return 1; }
15153 #endif
15154 int
15155 main ()
15156 {
15157 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15158 test_array [0] = 0
15159
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166   (eval $ac_compile) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -s conftest.$ac_objext'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176   ac_hi=-1 ac_mid=-1
15177   while :; do
15178     cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 #include "confdefs.h"
15181 $ac_includes_default
15182 struct { char filler; double field; } pgac_struct;
15183 #ifdef F77_DUMMY_MAIN
15184 #  ifdef __cplusplus
15185      extern "C"
15186 #  endif
15187    int F77_DUMMY_MAIN() { return 1; }
15188 #endif
15189 int
15190 main ()
15191 {
15192 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15193 test_array [0] = 0
15194
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201   (eval $ac_compile) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } &&
15205          { ac_try='test -s conftest.$ac_objext'
15206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207   (eval $ac_try) 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; }; then
15211   ac_lo=$ac_mid; break
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 ac_hi=`expr '(' $ac_mid ')' - 1`
15216                        if test $ac_mid -le $ac_hi; then
15217                          ac_lo= ac_hi=
15218                          break
15219                        fi
15220                        ac_mid=`expr 2 '*' $ac_mid`
15221 fi
15222 rm -f conftest.$ac_objext conftest.$ac_ext
15223   done
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15227 ac_lo= ac_hi=
15228 fi
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 fi
15231 rm -f conftest.$ac_objext conftest.$ac_ext
15232 # Binary search between lo and hi bounds.
15233 while test "x$ac_lo" != "x$ac_hi"; do
15234   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15235   cat >conftest.$ac_ext <<_ACEOF
15236 #line $LINENO "configure"
15237 #include "confdefs.h"
15238 $ac_includes_default
15239 struct { char filler; double field; } pgac_struct;
15240 #ifdef F77_DUMMY_MAIN
15241 #  ifdef __cplusplus
15242      extern "C"
15243 #  endif
15244    int F77_DUMMY_MAIN() { return 1; }
15245 #endif
15246 int
15247 main ()
15248 {
15249 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15250 test_array [0] = 0
15251
15252   ;
15253   return 0;
15254 }
15255 _ACEOF
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258   (eval $ac_compile) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } &&
15262          { ac_try='test -s conftest.$ac_objext'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }; then
15268   ac_hi=$ac_mid
15269 else
15270   echo "$as_me: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 ac_lo=`expr '(' $ac_mid ')' + 1`
15273 fi
15274 rm -f conftest.$ac_objext conftest.$ac_ext
15275 done
15276 case $ac_lo in
15277 ?*) pgac_cv_alignof_double=$ac_lo;;
15278 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15279 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15280    { (exit 1); exit 1; }; } ;;
15281 esac
15282 else
15283   if test "$cross_compiling" = yes; then
15284   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15285 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15286    { (exit 1); exit 1; }; }
15287 else
15288   cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 #include "confdefs.h"
15291 $ac_includes_default
15292 struct { char filler; double field; } pgac_struct;
15293 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15294 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15295 #include <stdio.h>
15296 #include <stdlib.h>
15297 #ifdef F77_DUMMY_MAIN
15298 #  ifdef __cplusplus
15299      extern "C"
15300 #  endif
15301    int F77_DUMMY_MAIN() { return 1; }
15302 #endif
15303 int
15304 main ()
15305 {
15306
15307   FILE *f = fopen ("conftest.val", "w");
15308   if (! f)
15309     exit (1);
15310   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15311     {
15312       long i = longval ();
15313       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15314         exit (1);
15315       fprintf (f, "%ld\n", i);
15316     }
15317   else
15318     {
15319       unsigned long i = ulongval ();
15320       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15321         exit (1);
15322       fprintf (f, "%lu\n", i);
15323     }
15324   exit (ferror (f) || fclose (f) != 0);
15325
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332   (eval $ac_link) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337   (eval $ac_try) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; }; then
15341   pgac_cv_alignof_double=`cat conftest.val`
15342 else
15343   echo "$as_me: program exited with status $ac_status" >&5
15344 echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 ( exit $ac_status )
15347 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15348 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15349    { (exit 1); exit 1; }; }
15350 fi
15351 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15352 fi
15353 fi
15354 rm -f conftest.val
15355 else
15356   pgac_cv_alignof_double=0
15357 fi
15358 fi
15359 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15360 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15361 cat >>confdefs.h <<_ACEOF
15362 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15363 _ACEOF
15364
15365
15366
15367 # Compute maximum alignment of any basic type.
15368 # We assume long's alignment is at least as strong as char, short, or int;
15369 # but we must check long long (if it exists) and double.
15370
15371 MAX_ALIGNOF=$pgac_cv_alignof_long
15372 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15373   MAX_ALIGNOF=$pgac_cv_alignof_double
15374 fi
15375 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15376   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15377 fi
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15381 _ACEOF
15382
15383
15384
15385 # Some platforms predefine the types int8, int16, etc.  Only check
15386 # a (hopefully) representative subset.
15387 echo "$as_me:$LINENO: checking for int8" >&5
15388 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15389 if test "${ac_cv_type_int8+set}" = set; then
15390   echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392   cat >conftest.$ac_ext <<_ACEOF
15393 #line $LINENO "configure"
15394 #include "confdefs.h"
15395 #include <stdio.h>
15396 #ifdef HAVE_SUPPORTDEFS_H
15397 #include <SupportDefs.h>
15398 #endif
15399
15400 #ifdef F77_DUMMY_MAIN
15401 #  ifdef __cplusplus
15402      extern "C"
15403 #  endif
15404    int F77_DUMMY_MAIN() { return 1; }
15405 #endif
15406 int
15407 main ()
15408 {
15409 if ((int8 *) 0)
15410   return 0;
15411 if (sizeof (int8))
15412   return 0;
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419   (eval $ac_compile) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -s conftest.$ac_objext'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; }; then
15429   ac_cv_type_int8=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 ac_cv_type_int8=no
15434 fi
15435 rm -f conftest.$ac_objext conftest.$ac_ext
15436 fi
15437 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15438 echo "${ECHO_T}$ac_cv_type_int8" >&6
15439 if test $ac_cv_type_int8 = yes; then
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define HAVE_INT8 1
15443 _ACEOF
15444
15445
15446 fi
15447 echo "$as_me:$LINENO: checking for uint8" >&5
15448 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15449 if test "${ac_cv_type_uint8+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   cat >conftest.$ac_ext <<_ACEOF
15453 #line $LINENO "configure"
15454 #include "confdefs.h"
15455 #include <stdio.h>
15456 #ifdef HAVE_SUPPORTDEFS_H
15457 #include <SupportDefs.h>
15458 #endif
15459
15460 #ifdef F77_DUMMY_MAIN
15461 #  ifdef __cplusplus
15462      extern "C"
15463 #  endif
15464    int F77_DUMMY_MAIN() { return 1; }
15465 #endif
15466 int
15467 main ()
15468 {
15469 if ((uint8 *) 0)
15470   return 0;
15471 if (sizeof (uint8))
15472   return 0;
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479   (eval $ac_compile) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } &&
15483          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15489   ac_cv_type_uint8=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 ac_cv_type_uint8=no
15494 fi
15495 rm -f conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15498 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15499 if test $ac_cv_type_uint8 = yes; then
15500
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_UINT8 1
15503 _ACEOF
15504
15505
15506 fi
15507 echo "$as_me:$LINENO: checking for int64" >&5
15508 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15509 if test "${ac_cv_type_int64+set}" = set; then
15510   echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512   cat >conftest.$ac_ext <<_ACEOF
15513 #line $LINENO "configure"
15514 #include "confdefs.h"
15515 #include <stdio.h>
15516 #ifdef HAVE_SUPPORTDEFS_H
15517 #include <SupportDefs.h>
15518 #endif
15519
15520 #ifdef F77_DUMMY_MAIN
15521 #  ifdef __cplusplus
15522      extern "C"
15523 #  endif
15524    int F77_DUMMY_MAIN() { return 1; }
15525 #endif
15526 int
15527 main ()
15528 {
15529 if ((int64 *) 0)
15530   return 0;
15531 if (sizeof (int64))
15532   return 0;
15533   ;
15534   return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539   (eval $ac_compile) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); } &&
15543          { ac_try='test -s conftest.$ac_objext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   ac_cv_type_int64=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15553 ac_cv_type_int64=no
15554 fi
15555 rm -f conftest.$ac_objext conftest.$ac_ext
15556 fi
15557 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15558 echo "${ECHO_T}$ac_cv_type_int64" >&6
15559 if test $ac_cv_type_int64 = yes; then
15560
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_INT64 1
15563 _ACEOF
15564
15565
15566 fi
15567 echo "$as_me:$LINENO: checking for uint64" >&5
15568 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15569 if test "${ac_cv_type_uint64+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15575 #include <stdio.h>
15576 #ifdef HAVE_SUPPORTDEFS_H
15577 #include <SupportDefs.h>
15578 #endif
15579
15580 #ifdef F77_DUMMY_MAIN
15581 #  ifdef __cplusplus
15582      extern "C"
15583 #  endif
15584    int F77_DUMMY_MAIN() { return 1; }
15585 #endif
15586 int
15587 main ()
15588 {
15589 if ((uint64 *) 0)
15590   return 0;
15591 if (sizeof (uint64))
15592   return 0;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest.$ac_objext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15599   (eval $ac_compile) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -s conftest.$ac_objext'
15604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605   (eval $ac_try) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; }; then
15609   ac_cv_type_uint64=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 ac_cv_type_uint64=no
15614 fi
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15616 fi
15617 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15618 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15619 if test $ac_cv_type_uint64 = yes; then
15620
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_UINT64 1
15623 _ACEOF
15624
15625
15626 fi
15627
15628
15629 # We also check for sig_atomic_t, which *should* be defined per ANSI
15630 # C, but is missing on some old platforms.
15631 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15632 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15633 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   cat >conftest.$ac_ext <<_ACEOF
15637 #line $LINENO "configure"
15638 #include "confdefs.h"
15639 #include <signal.h>
15640
15641 #ifdef F77_DUMMY_MAIN
15642 #  ifdef __cplusplus
15643      extern "C"
15644 #  endif
15645    int F77_DUMMY_MAIN() { return 1; }
15646 #endif
15647 int
15648 main ()
15649 {
15650 if ((sig_atomic_t *) 0)
15651   return 0;
15652 if (sizeof (sig_atomic_t))
15653   return 0;
15654   ;
15655   return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660   (eval $ac_compile) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } &&
15664          { ac_try='test -s conftest.$ac_objext'
15665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666   (eval $ac_try) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_cv_type_sig_atomic_t=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15674 ac_cv_type_sig_atomic_t=no
15675 fi
15676 rm -f conftest.$ac_objext conftest.$ac_ext
15677 fi
15678 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15679 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15680 if test $ac_cv_type_sig_atomic_t = yes; then
15681
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_SIG_ATOMIC_T 1
15684 _ACEOF
15685
15686
15687 fi
15688
15689
15690
15691 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15692 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15693 if test "${pgac_cv_func_posix_signals+set}" = set; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696   cat >conftest.$ac_ext <<_ACEOF
15697 #line $LINENO "configure"
15698 #include "confdefs.h"
15699 #include <signal.h>
15700
15701 #ifdef F77_DUMMY_MAIN
15702 #  ifdef __cplusplus
15703      extern "C"
15704 #  endif
15705    int F77_DUMMY_MAIN() { return 1; }
15706 #endif
15707 int
15708 main ()
15709 {
15710 struct sigaction act, oact;
15711 sigemptyset(&act.sa_mask);
15712 act.sa_flags = SA_RESTART;
15713 sigaction(0, &act, &oact);
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720   (eval $ac_link) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -s conftest$ac_exeext'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730   pgac_cv_func_posix_signals=yes
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 pgac_cv_func_posix_signals=no
15735 fi
15736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15737 fi
15738 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15739 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15740 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15741
15742 cat >>confdefs.h <<\_ACEOF
15743 #define HAVE_POSIX_SIGNALS
15744 _ACEOF
15745
15746 fi
15747 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15748
15749
15750
15751 # Select semaphore implementation type.
15752 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15753
15754 cat >>confdefs.h <<\_ACEOF
15755 #define USE_NAMED_POSIX_SEMAPHORES 1
15756 _ACEOF
15757
15758   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15759 else
15760   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15761
15762 cat >>confdefs.h <<\_ACEOF
15763 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15764 _ACEOF
15765
15766     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15767   else
15768
15769 cat >>confdefs.h <<\_ACEOF
15770 #define USE_SYSV_SEMAPHORES 1
15771 _ACEOF
15772
15773     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15774   fi
15775 fi
15776
15777
15778 # Select shared-memory implementation type.
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define USE_SYSV_SHARED_MEMORY 1
15782 _ACEOF
15783
15784 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15785
15786
15787 if test "$enable_nls" = yes ; then
15788
15789   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15790 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15791 if test "${ac_cv_search_gettext+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   ac_func_search_save_LIBS=$LIBS
15795 ac_cv_search_gettext=no
15796 cat >conftest.$ac_ext <<_ACEOF
15797 #line $LINENO "configure"
15798 #include "confdefs.h"
15799
15800 /* Override any gcc2 internal prototype to avoid an error.  */
15801 #ifdef __cplusplus
15802 extern "C"
15803 #endif
15804 /* We use char because int might match the return type of a gcc2
15805    builtin and then its argument prototype would still apply.  */
15806 char gettext ();
15807 #ifdef F77_DUMMY_MAIN
15808 #  ifdef __cplusplus
15809      extern "C"
15810 #  endif
15811    int F77_DUMMY_MAIN() { return 1; }
15812 #endif
15813 int
15814 main ()
15815 {
15816 gettext ();
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823   (eval $ac_link) 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -s conftest$ac_exeext'
15828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829   (eval $ac_try) 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); }; }; then
15833   ac_cv_search_gettext="none required"
15834 else
15835   echo "$as_me: failed program was:" >&5
15836 cat conftest.$ac_ext >&5
15837 fi
15838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15839 if test "$ac_cv_search_gettext" = no; then
15840   for ac_lib in intl; do
15841     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15842     cat >conftest.$ac_ext <<_ACEOF
15843 #line $LINENO "configure"
15844 #include "confdefs.h"
15845
15846 /* Override any gcc2 internal prototype to avoid an error.  */
15847 #ifdef __cplusplus
15848 extern "C"
15849 #endif
15850 /* We use char because int might match the return type of a gcc2
15851    builtin and then its argument prototype would still apply.  */
15852 char gettext ();
15853 #ifdef F77_DUMMY_MAIN
15854 #  ifdef __cplusplus
15855      extern "C"
15856 #  endif
15857    int F77_DUMMY_MAIN() { return 1; }
15858 #endif
15859 int
15860 main ()
15861 {
15862 gettext ();
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 rm -f conftest.$ac_objext conftest$ac_exeext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15869   (eval $ac_link) 2>&5
15870   ac_status=$?
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } &&
15873          { ac_try='test -s conftest$ac_exeext'
15874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875   (eval $ac_try) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; }; then
15879   ac_cv_search_gettext="-l$ac_lib"
15880 break
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 fi
15885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15886   done
15887 fi
15888 LIBS=$ac_func_search_save_LIBS
15889 fi
15890 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15891 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15892 if test "$ac_cv_search_gettext" != no; then
15893   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15894
15895 else
15896   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15897 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15898    { (exit 1); exit 1; }; }
15899 fi
15900
15901   if test "${ac_cv_header_libintl_h+set}" = set; then
15902   echo "$as_me:$LINENO: checking for libintl.h" >&5
15903 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15904 if test "${ac_cv_header_libintl_h+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 fi
15907 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15908 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15909 else
15910   # Is the header compilable?
15911 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15912 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15914 #line $LINENO "configure"
15915 #include "confdefs.h"
15916 $ac_includes_default
15917 #include <libintl.h>
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921   (eval $ac_compile) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -s conftest.$ac_objext'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; }; then
15931   ac_header_compiler=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15935 ac_header_compiler=no
15936 fi
15937 rm -f conftest.$ac_objext conftest.$ac_ext
15938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939 echo "${ECHO_T}$ac_header_compiler" >&6
15940
15941 # Is the header present?
15942 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15943 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15944 cat >conftest.$ac_ext <<_ACEOF
15945 #line $LINENO "configure"
15946 #include "confdefs.h"
15947 #include <libintl.h>
15948 _ACEOF
15949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15951   ac_status=$?
15952   egrep -v '^ *\+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } >/dev/null; then
15957   if test -s conftest.err; then
15958     ac_cpp_err=$ac_c_preproc_warn_flag
15959   else
15960     ac_cpp_err=
15961   fi
15962 else
15963   ac_cpp_err=yes
15964 fi
15965 if test -z "$ac_cpp_err"; then
15966   ac_header_preproc=yes
15967 else
15968   echo "$as_me: failed program was:" >&5
15969   cat conftest.$ac_ext >&5
15970   ac_header_preproc=no
15971 fi
15972 rm -f conftest.err conftest.$ac_ext
15973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15974 echo "${ECHO_T}$ac_header_preproc" >&6
15975
15976 # So?  What about this header?
15977 case $ac_header_compiler:$ac_header_preproc in
15978   yes:no )
15979     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15980 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15981     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15983   no:yes )
15984     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15988     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15989 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15990 esac
15991 echo "$as_me:$LINENO: checking for libintl.h" >&5
15992 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15993 if test "${ac_cv_header_libintl_h+set}" = set; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996   ac_cv_header_libintl_h=$ac_header_preproc
15997 fi
15998 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15999 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16000
16001 fi
16002 if test $ac_cv_header_libintl_h = yes; then
16003   :
16004 else
16005   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16006 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16007    { (exit 1); exit 1; }; }
16008 fi
16009
16010
16011   for ac_prog in msgfmt
16012 do
16013   # Extract the first word of "$ac_prog", so it can be a program name with args.
16014 set dummy $ac_prog; ac_word=$2
16015 echo "$as_me:$LINENO: checking for $ac_word" >&5
16016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16017 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020   if test -n "$MSGFMT"; then
16021   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16022 else
16023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16024 for as_dir in $PATH
16025 do
16026   IFS=$as_save_IFS
16027   test -z "$as_dir" && as_dir=.
16028   for ac_exec_ext in '' $ac_executable_extensions; do
16029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16030     ac_cv_prog_MSGFMT="$ac_prog"
16031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16032     break 2
16033   fi
16034 done
16035 done
16036
16037 fi
16038 fi
16039 MSGFMT=$ac_cv_prog_MSGFMT
16040 if test -n "$MSGFMT"; then
16041   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16042 echo "${ECHO_T}$MSGFMT" >&6
16043 else
16044   echo "$as_me:$LINENO: result: no" >&5
16045 echo "${ECHO_T}no" >&6
16046 fi
16047
16048   test -n "$MSGFMT" && break
16049 done
16050
16051   if test -z "$MSGFMT"; then
16052     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16053 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16054    { (exit 1); exit 1; }; }
16055   fi
16056   for ac_prog in msgmerge
16057 do
16058   # Extract the first word of "$ac_prog", so it can be a program name with args.
16059 set dummy $ac_prog; ac_word=$2
16060 echo "$as_me:$LINENO: checking for $ac_word" >&5
16061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16062 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   if test -n "$MSGMERGE"; then
16066   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16067 else
16068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069 for as_dir in $PATH
16070 do
16071   IFS=$as_save_IFS
16072   test -z "$as_dir" && as_dir=.
16073   for ac_exec_ext in '' $ac_executable_extensions; do
16074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16075     ac_cv_prog_MSGMERGE="$ac_prog"
16076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16077     break 2
16078   fi
16079 done
16080 done
16081
16082 fi
16083 fi
16084 MSGMERGE=$ac_cv_prog_MSGMERGE
16085 if test -n "$MSGMERGE"; then
16086   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16087 echo "${ECHO_T}$MSGMERGE" >&6
16088 else
16089   echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6
16091 fi
16092
16093   test -n "$MSGMERGE" && break
16094 done
16095
16096   for ac_prog in xgettext
16097 do
16098   # Extract the first word of "$ac_prog", so it can be a program name with args.
16099 set dummy $ac_prog; ac_word=$2
16100 echo "$as_me:$LINENO: checking for $ac_word" >&5
16101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16102 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16103   echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105   if test -n "$XGETTEXT"; then
16106   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16107 else
16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16110 do
16111   IFS=$as_save_IFS
16112   test -z "$as_dir" && as_dir=.
16113   for ac_exec_ext in '' $ac_executable_extensions; do
16114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16115     ac_cv_prog_XGETTEXT="$ac_prog"
16116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16117     break 2
16118   fi
16119 done
16120 done
16121
16122 fi
16123 fi
16124 XGETTEXT=$ac_cv_prog_XGETTEXT
16125 if test -n "$XGETTEXT"; then
16126   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16127 echo "${ECHO_T}$XGETTEXT" >&6
16128 else
16129   echo "$as_me:$LINENO: result: no" >&5
16130 echo "${ECHO_T}no" >&6
16131 fi
16132
16133   test -n "$XGETTEXT" && break
16134 done
16135
16136
16137   # Note: share/locale is always the default, independent of $datadir
16138   localedir='${prefix}/share/locale'
16139   if test x"$prefix" = x"NONE"; then
16140     exp_localedir="$ac_default_prefix/share/locale"
16141   else
16142     exp_localedir="$prefix/share/locale"
16143   fi
16144
16145
16146
16147 cat >>confdefs.h <<_ACEOF
16148 #define LOCALEDIR "$exp_localedir"
16149 _ACEOF
16150
16151
16152 fi
16153
16154 if test "$with_CXX" = yes; then
16155
16156
16157 ac_ext=cc
16158 ac_cpp='$CXXCPP $CPPFLAGS'
16159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16162
16163 if test "${ac_cv_header_string+set}" = set; then
16164   echo "$as_me:$LINENO: checking for string" >&5
16165 echo $ECHO_N "checking for string... $ECHO_C" >&6
16166 if test "${ac_cv_header_string+set}" = set; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 fi
16169 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16170 echo "${ECHO_T}$ac_cv_header_string" >&6
16171 else
16172   # Is the header compilable?
16173 echo "$as_me:$LINENO: checking string usability" >&5
16174 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16177 #include "confdefs.h"
16178 $ac_includes_default
16179 #include <string>
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16183   (eval $ac_compile) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; }; then
16193   ac_header_compiler=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 ac_header_compiler=no
16198 fi
16199 rm -f conftest.$ac_objext conftest.$ac_ext
16200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16201 echo "${ECHO_T}$ac_header_compiler" >&6
16202
16203 # Is the header present?
16204 echo "$as_me:$LINENO: checking string presence" >&5
16205 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16206 cat >conftest.$ac_ext <<_ACEOF
16207 #line $LINENO "configure"
16208 #include "confdefs.h"
16209 #include <string>
16210 _ACEOF
16211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16213   ac_status=$?
16214   egrep -v '^ *\+' conftest.er1 >conftest.err
16215   rm -f conftest.er1
16216   cat conftest.err >&5
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } >/dev/null; then
16219   if test -s conftest.err; then
16220     ac_cpp_err=$ac_cxx_preproc_warn_flag
16221   else
16222     ac_cpp_err=
16223   fi
16224 else
16225   ac_cpp_err=yes
16226 fi
16227 if test -z "$ac_cpp_err"; then
16228   ac_header_preproc=yes
16229 else
16230   echo "$as_me: failed program was:" >&5
16231   cat conftest.$ac_ext >&5
16232   ac_header_preproc=no
16233 fi
16234 rm -f conftest.err conftest.$ac_ext
16235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16236 echo "${ECHO_T}$ac_header_preproc" >&6
16237
16238 # So?  What about this header?
16239 case $ac_header_compiler:$ac_header_preproc in
16240   yes:no )
16241     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16242 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16243     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16244 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16245   no:yes )
16246     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16247 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16248     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16249 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16251 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16252 esac
16253 echo "$as_me:$LINENO: checking for string" >&5
16254 echo $ECHO_N "checking for string... $ECHO_C" >&6
16255 if test "${ac_cv_header_string+set}" = set; then
16256   echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258   ac_cv_header_string=$ac_header_preproc
16259 fi
16260 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16261 echo "${ECHO_T}$ac_cv_header_string" >&6
16262
16263 fi
16264 if test $ac_cv_header_string = yes; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define HAVE_CXX_STRING_HEADER 1
16268 _ACEOF
16269
16270 else
16271   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16272 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16273 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16278 #include "confdefs.h"
16279 #include <stdio.h>
16280 #include <stdlib.h>
16281 #include <string.h>
16282
16283 #ifdef F77_DUMMY_MAIN
16284 #  ifdef __cplusplus
16285      extern "C"
16286 #  endif
16287    int F77_DUMMY_MAIN() { return 1; }
16288 #endif
16289 int
16290 main ()
16291 {
16292 string foo = "test"
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299   (eval $ac_compile) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -s conftest.$ac_objext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   pgac_cv_class_string_in_string_h=yes
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 pgac_cv_class_string_in_string_h=no
16314 fi
16315 rm -f conftest.$ac_objext conftest.$ac_ext
16316 fi
16317 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16318 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16319
16320   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16321     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16322 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16323    { (exit 1); exit 1; }; }
16324   fi
16325
16326 fi
16327
16328
16329 ac_ext=c
16330 ac_cpp='$CPP $CPPFLAGS'
16331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16334
16335
16336 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16337 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16338 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341
16342 ac_ext=cc
16343 ac_cpp='$CXXCPP $CPPFLAGS'
16344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16347
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16351 #include <stdio.h>
16352 #include <stdlib.h>
16353 #ifdef HAVE_CXX_STRING_HEADER
16354 #include <string>
16355 #endif
16356 using namespace std;
16357
16358 #ifdef F77_DUMMY_MAIN
16359 #  ifdef __cplusplus
16360      extern "C"
16361 #  endif
16362    int F77_DUMMY_MAIN() { return 1; }
16363 #endif
16364 int
16365 main ()
16366 {
16367
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16374   (eval $ac_compile) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -s conftest.$ac_objext'
16379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380   (eval $ac_try) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   pgac_cv_cxx_namespace_std=yes
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 pgac_cv_cxx_namespace_std=no
16389 fi
16390 rm -f conftest.$ac_objext conftest.$ac_ext
16391 ac_ext=c
16392 ac_cpp='$CPP $CPPFLAGS'
16393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16396
16397 fi
16398 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16399 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16400
16401 if test $pgac_cv_cxx_namespace_std = yes ; then
16402
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_NAMESPACE_STD 1
16405 _ACEOF
16406
16407 fi
16408 fi
16409
16410
16411 # Check for Tcl configuration script tclConfig.sh
16412 if test "$with_tcl" = yes; then
16413     for ac_prog in tclsh tcl
16414 do
16415   # Extract the first word of "$ac_prog", so it can be a program name with args.
16416 set dummy $ac_prog; ac_word=$2
16417 echo "$as_me:$LINENO: checking for $ac_word" >&5
16418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16419 if test "${ac_cv_path_TCLSH+set}" = set; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   case $TCLSH in
16423   [\\/]* | ?:[\\/]*)
16424   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16425   ;;
16426   *)
16427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16429 do
16430   IFS=$as_save_IFS
16431   test -z "$as_dir" && as_dir=.
16432   for ac_exec_ext in '' $ac_executable_extensions; do
16433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16434     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16436     break 2
16437   fi
16438 done
16439 done
16440
16441   ;;
16442 esac
16443 fi
16444 TCLSH=$ac_cv_path_TCLSH
16445
16446 if test -n "$TCLSH"; then
16447   echo "$as_me:$LINENO: result: $TCLSH" >&5
16448 echo "${ECHO_T}$TCLSH" >&6
16449 else
16450   echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6
16452 fi
16453
16454   test -n "$TCLSH" && break
16455 done
16456
16457 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16458 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16459 # Let user override test
16460 if test -z "$TCL_CONFIG_SH"; then
16461     pgac_test_dirs="$with_tclconfig"
16462
16463     set X $pgac_test_dirs; shift
16464     if test $# -eq 0; then
16465         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16466 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16467    { (exit 1); exit 1; }; }
16468         set X `echo 'puts $auto_path' | $TCLSH`; shift
16469     fi
16470
16471     for pgac_dir do
16472         if test -r "$pgac_dir/tclConfig.sh"; then
16473             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16474             break
16475         fi
16476     done
16477 fi
16478
16479 if test -z "$TCL_CONFIG_SH"; then
16480     echo "$as_me:$LINENO: result: no" >&5
16481 echo "${ECHO_T}no" >&6
16482     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16483 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16484    { (exit 1); exit 1; }; }
16485 else
16486     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16487 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16488 fi
16489
16490
16491
16492     . "$TCL_CONFIG_SH"
16493 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16494 eval TCL_LIBS=\"$TCL_LIBS\"
16495 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16496 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16497
16498     fi
16499
16500 # Check for Tk configuration script tkConfig.sh
16501 if test "$with_tk" = yes; then
16502     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16503 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16504 # Let user override test
16505 if test -z "$TK_CONFIG_SH"; then
16506     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16507
16508     set X $pgac_test_dirs; shift
16509     if test $# -eq 0; then
16510         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16511 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16512    { (exit 1); exit 1; }; }
16513         set X `echo 'puts $auto_path' | $TCLSH`; shift
16514     fi
16515
16516     for pgac_dir do
16517         if test -r "$pgac_dir/tkConfig.sh"; then
16518             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16519             break
16520         fi
16521     done
16522 fi
16523
16524 if test -z "$TK_CONFIG_SH"; then
16525     echo "$as_me:$LINENO: result: no" >&5
16526 echo "${ECHO_T}no" >&6
16527     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16528 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16529    { (exit 1); exit 1; }; }
16530 else
16531     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16532 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16533 fi
16534
16535
16536
16537     . "$TK_CONFIG_SH"
16538 eval TK_LIBS=\"$TK_LIBS\"
16539 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16540 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16541
16542 fi
16543
16544
16545 #
16546 # Check for DocBook and tools
16547 #
16548 for ac_prog in onsgmls nsgmls
16549 do
16550   # Extract the first word of "$ac_prog", so it can be a program name with args.
16551 set dummy $ac_prog; ac_word=$2
16552 echo "$as_me:$LINENO: checking for $ac_word" >&5
16553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16554 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   if test -n "$NSGMLS"; then
16558   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16562 do
16563   IFS=$as_save_IFS
16564   test -z "$as_dir" && as_dir=.
16565   for ac_exec_ext in '' $ac_executable_extensions; do
16566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567     ac_cv_prog_NSGMLS="$ac_prog"
16568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16569     break 2
16570   fi
16571 done
16572 done
16573
16574 fi
16575 fi
16576 NSGMLS=$ac_cv_prog_NSGMLS
16577 if test -n "$NSGMLS"; then
16578   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16579 echo "${ECHO_T}$NSGMLS" >&6
16580 else
16581   echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6
16583 fi
16584
16585   test -n "$NSGMLS" && break
16586 done
16587
16588 for ac_prog in openjade jade
16589 do
16590   # Extract the first word of "$ac_prog", so it can be a program name with args.
16591 set dummy $ac_prog; ac_word=$2
16592 echo "$as_me:$LINENO: checking for $ac_word" >&5
16593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16594 if test "${ac_cv_prog_JADE+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   if test -n "$JADE"; then
16598   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16599 else
16600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16602 do
16603   IFS=$as_save_IFS
16604   test -z "$as_dir" && as_dir=.
16605   for ac_exec_ext in '' $ac_executable_extensions; do
16606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607     ac_cv_prog_JADE="$ac_prog"
16608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16609     break 2
16610   fi
16611 done
16612 done
16613
16614 fi
16615 fi
16616 JADE=$ac_cv_prog_JADE
16617 if test -n "$JADE"; then
16618   echo "$as_me:$LINENO: result: $JADE" >&5
16619 echo "${ECHO_T}$JADE" >&6
16620 else
16621   echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6
16623 fi
16624
16625   test -n "$JADE" && break
16626 done
16627
16628
16629 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16630 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16631 if test "${pgac_cv_check_docbook+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.sgml <<EOF
16635 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16636 <book>
16637  <title>test</title>
16638  <chapter>
16639   <title>random</title>
16640    <sect1>
16641     <title>testsect</title>
16642     <para>text</para>
16643   </sect1>
16644  </chapter>
16645 </book>
16646 EOF
16647
16648 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16649 if test $? -eq 0; then
16650   pgac_cv_check_docbook=yes
16651 else
16652   pgac_cv_check_docbook=no
16653 fi
16654 rm -f conftest.sgml
16655 fi
16656 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16657 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16658
16659 have_docbook=$pgac_cv_check_docbook
16660
16661
16662 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16663 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16664 if test "${pgac_cv_path_stylesheets+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   if test -n "$DOCBOOKSTYLE"; then
16668   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16669 else
16670   for pgac_prefix in /usr /usr/local /opt; do
16671     for pgac_infix in share lib; do
16672       for pgac_postfix in \
16673         sgml/stylesheets/nwalsh-modular \
16674         sgml/stylesheets/docbook \
16675         sgml/docbook/dsssl/modular \
16676         sgml/docbook/dsssl-stylesheets
16677       do
16678         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16679         if test -r "$pgac_candidate/html/docbook.dsl" \
16680            && test -r "$pgac_candidate/print/docbook.dsl"
16681         then
16682           pgac_cv_path_stylesheets=$pgac_candidate
16683           break 3
16684         fi
16685       done
16686     done
16687   done
16688 fi
16689 fi
16690
16691 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16692
16693 if test -n "$DOCBOOKSTYLE"; then
16694   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16695 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16696 else
16697   echo "$as_me:$LINENO: result: no" >&5
16698 echo "${ECHO_T}no" >&6
16699 fi
16700 if test -n "$DOCBOOKSTYLE"; then
16701   for ac_prog in collateindex.pl
16702 do
16703   # Extract the first word of "$ac_prog", so it can be a program name with args.
16704 set dummy $ac_prog; ac_word=$2
16705 echo "$as_me:$LINENO: checking for $ac_word" >&5
16706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16707 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   case $COLLATEINDEX in
16711   [\\/]* | ?:[\\/]*)
16712   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16713   ;;
16714   *)
16715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16716 for as_dir in $DOCBOOKSTYLE/bin $PATH
16717 do
16718   IFS=$as_save_IFS
16719   test -z "$as_dir" && as_dir=.
16720   for ac_exec_ext in '' $ac_executable_extensions; do
16721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16722     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16724     break 2
16725   fi
16726 done
16727 done
16728
16729   ;;
16730 esac
16731 fi
16732 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16733
16734 if test -n "$COLLATEINDEX"; then
16735   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16736 echo "${ECHO_T}$COLLATEINDEX" >&6
16737 else
16738   echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6
16740 fi
16741
16742   test -n "$COLLATEINDEX" && break
16743 done
16744
16745 else
16746   for ac_prog in collateindex.pl
16747 do
16748   # Extract the first word of "$ac_prog", so it can be a program name with args.
16749 set dummy $ac_prog; ac_word=$2
16750 echo "$as_me:$LINENO: checking for $ac_word" >&5
16751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16752 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   case $COLLATEINDEX in
16756   [\\/]* | ?:[\\/]*)
16757   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16758   ;;
16759   *)
16760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16762 do
16763   IFS=$as_save_IFS
16764   test -z "$as_dir" && as_dir=.
16765   for ac_exec_ext in '' $ac_executable_extensions; do
16766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16769     break 2
16770   fi
16771 done
16772 done
16773
16774   ;;
16775 esac
16776 fi
16777 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16778
16779 if test -n "$COLLATEINDEX"; then
16780   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16781 echo "${ECHO_T}$COLLATEINDEX" >&6
16782 else
16783   echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16785 fi
16786
16787   test -n "$COLLATEINDEX" && break
16788 done
16789
16790 fi
16791 for ac_prog in sgmlspl
16792 do
16793   # Extract the first word of "$ac_prog", so it can be a program name with args.
16794 set dummy $ac_prog; ac_word=$2
16795 echo "$as_me:$LINENO: checking for $ac_word" >&5
16796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16797 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   if test -n "$SGMLSPL"; then
16801   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16802 else
16803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16804 for as_dir in $PATH
16805 do
16806   IFS=$as_save_IFS
16807   test -z "$as_dir" && as_dir=.
16808   for ac_exec_ext in '' $ac_executable_extensions; do
16809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16810     ac_cv_prog_SGMLSPL="$ac_prog"
16811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16812     break 2
16813   fi
16814 done
16815 done
16816
16817 fi
16818 fi
16819 SGMLSPL=$ac_cv_prog_SGMLSPL
16820 if test -n "$SGMLSPL"; then
16821   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16822 echo "${ECHO_T}$SGMLSPL" >&6
16823 else
16824   echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6
16826 fi
16827
16828   test -n "$SGMLSPL" && break
16829 done
16830
16831
16832
16833 # prepare build tree if outside source tree
16834 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16835 # Note 2: /bin/pwd might be better than shell's built-in at getting
16836 #         a symlink-free name.
16837 if test "$no_create" != yes; then
16838   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16839     :
16840   else
16841     vpath_build=yes
16842
16843     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16844     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16845     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16846       || { { echo "$as_me:$LINENO: error: failed" >&5
16847 echo "$as_me: error: failed" >&2;}
16848    { (exit 1); exit 1; }; }
16849     echo "$as_me:$LINENO: result: done" >&5
16850 echo "${ECHO_T}done" >&6
16851   fi
16852 fi
16853
16854
16855 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16856
16857
16858 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}"
16859
16860
16861 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16862
16863
16864 cat >confcache <<\_ACEOF
16865 # This file is a shell script that caches the results of configure
16866 # tests run on this system so they can be shared between configure
16867 # scripts and configure runs, see configure's option --config-cache.
16868 # It is not useful on other systems.  If it contains results you don't
16869 # want to keep, you may remove or edit it.
16870 #
16871 # config.status only pays attention to the cache file if you give it
16872 # the --recheck option to rerun configure.
16873 #
16874 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16876 # following values.
16877
16878 _ACEOF
16879
16880 # The following way of writing the cache mishandles newlines in values,
16881 # but we know of no workaround that is simple, portable, and efficient.
16882 # So, don't put newlines in cache variables' values.
16883 # Ultrix sh set writes to stderr and can't be redirected directly,
16884 # and sets the high bit in the cache file unless we assign to the vars.
16885 {
16886   (set) 2>&1 |
16887     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16888     *ac_space=\ *)
16889       # `set' does not quote correctly, so add quotes (double-quote
16890       # substitution turns \\\\ into \\, and sed turns \\ into \).
16891       sed -n \
16892         "s/'/'\\\\''/g;
16893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16894       ;;
16895     *)
16896       # `set' quotes correctly as required by POSIX, so do not add quotes.
16897       sed -n \
16898         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16899       ;;
16900     esac;
16901 } |
16902   sed '
16903      t clear
16904      : clear
16905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16906      t end
16907      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16908      : end' >>confcache
16909 if cmp -s $cache_file confcache; then :; else
16910   if test -w $cache_file; then
16911     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16912     cat confcache >$cache_file
16913   else
16914     echo "not updating unwritable cache $cache_file"
16915   fi
16916 fi
16917 rm -f confcache
16918
16919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16920 # Let make expand exec_prefix.
16921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16922
16923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16925 # trailing colons and then remove the whole line if VPATH becomes empty
16926 # (actually we leave an empty line to preserve line numbers).
16927 if test "x$srcdir" = x.; then
16928   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16929 s/:*\$(srcdir):*/:/;
16930 s/:*\${srcdir}:*/:/;
16931 s/:*@srcdir@:*/:/;
16932 s/^\([^=]*=[    ]*\):*/\1/;
16933 s/:*$//;
16934 s/^[^=]*=[      ]*$//;
16935 }'
16936 fi
16937
16938 DEFS=-DHAVE_CONFIG_H
16939
16940
16941 : ${CONFIG_STATUS=./config.status}
16942 ac_clean_files_save=$ac_clean_files
16943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16946 cat >$CONFIG_STATUS <<_ACEOF
16947 #! $SHELL
16948 # Generated by $as_me.
16949 # Run this file to recreate the current configuration.
16950 # Compiler output produced by configure, useful for debugging
16951 # configure, is in config.log if it exists.
16952
16953 debug=false
16954 SHELL=\${CONFIG_SHELL-$SHELL}
16955 _ACEOF
16956
16957 cat >>$CONFIG_STATUS <<\_ACEOF
16958
16959 ## --------------------- ##
16960 ## M4sh Initialization.  ##
16961 ## --------------------- ##
16962
16963 # Be Bourne compatible
16964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16965   emulate sh
16966   NULLCMD=:
16967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16968   set -o posix
16969 fi
16970
16971 # NLS nuisances.
16972 # Support unset when possible.
16973 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16974   as_unset=unset
16975 else
16976   as_unset=false
16977 fi
16978
16979 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16980     { $as_unset LANG || test "${LANG+set}" != set; } ||
16981       { LANG=C; export LANG; }
16982 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16983     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16984       { LC_ALL=C; export LC_ALL; }
16985 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16986     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16987       { LC_TIME=C; export LC_TIME; }
16988 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16989     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16990       { LC_CTYPE=C; export LC_CTYPE; }
16991 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16992     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16993       { LANGUAGE=C; export LANGUAGE; }
16994 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16995     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16996       { LC_COLLATE=C; export LC_COLLATE; }
16997 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16998     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16999       { LC_NUMERIC=C; export LC_NUMERIC; }
17000 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17001     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17002       { LC_MESSAGES=C; export LC_MESSAGES; }
17003
17004
17005 # Name of the executable.
17006 as_me=`(basename "$0") 2>/dev/null ||
17007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17008          X"$0" : 'X\(//\)$' \| \
17009          X"$0" : 'X\(/\)$' \| \
17010          .     : '\(.\)' 2>/dev/null ||
17011 echo X/"$0" |
17012     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17013           /^X\/\(\/\/\)$/{ s//\1/; q; }
17014           /^X\/\(\/\).*/{ s//\1/; q; }
17015           s/.*/./; q'`
17016
17017 # PATH needs CR, and LINENO needs CR and PATH.
17018 # Avoid depending upon Character Ranges.
17019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17022 as_cr_digits='0123456789'
17023 as_cr_alnum=$as_cr_Letters$as_cr_digits
17024
17025 # The user is always right.
17026 if test "${PATH_SEPARATOR+set}" != set; then
17027   echo "#! /bin/sh" >conftest.sh
17028   echo  "exit 0"   >>conftest.sh
17029   chmod +x conftest.sh
17030   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17031     PATH_SEPARATOR=';'
17032   else
17033     PATH_SEPARATOR=:
17034   fi
17035   rm -f conftest.sh
17036 fi
17037
17038
17039   as_lineno_1=$LINENO
17040   as_lineno_2=$LINENO
17041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17042   test "x$as_lineno_1" != "x$as_lineno_2" &&
17043   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17044   # Find who we are.  Look in the path if we contain no path at all
17045   # relative or not.
17046   case $0 in
17047     *[\\/]* ) as_myself=$0 ;;
17048     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17049 for as_dir in $PATH
17050 do
17051   IFS=$as_save_IFS
17052   test -z "$as_dir" && as_dir=.
17053   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17054 done
17055
17056        ;;
17057   esac
17058   # We did not find ourselves, most probably we were run as `sh COMMAND'
17059   # in which case we are not to be found in the path.
17060   if test "x$as_myself" = x; then
17061     as_myself=$0
17062   fi
17063   if test ! -f "$as_myself"; then
17064     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17066    { (exit 1); exit 1; }; }
17067   fi
17068   case $CONFIG_SHELL in
17069   '')
17070     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17072 do
17073   IFS=$as_save_IFS
17074   test -z "$as_dir" && as_dir=.
17075   for as_base in sh bash ksh sh5; do
17076          case $as_dir in
17077          /*)
17078            if ("$as_dir/$as_base" -c '
17079   as_lineno_1=$LINENO
17080   as_lineno_2=$LINENO
17081   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17082   test "x$as_lineno_1" != "x$as_lineno_2" &&
17083   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17084              CONFIG_SHELL=$as_dir/$as_base
17085              export CONFIG_SHELL
17086              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17087            fi;;
17088          esac
17089        done
17090 done
17091 ;;
17092   esac
17093
17094   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17095   # uniformly replaced by the line number.  The first 'sed' inserts a
17096   # line-number line before each line; the second 'sed' does the real
17097   # work.  The second script uses 'N' to pair each line-number line
17098   # with the numbered line, and appends trailing '-' during
17099   # substitution so that $LINENO is not a special case at line end.
17100   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17101   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17102   sed '=' <$as_myself |
17103     sed '
17104       N
17105       s,$,-,
17106       : loop
17107       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17108       t loop
17109       s,-$,,
17110       s,^['$as_cr_digits']*\n,,
17111     ' >$as_me.lineno &&
17112   chmod +x $as_me.lineno ||
17113     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17115    { (exit 1); exit 1; }; }
17116
17117   # Don't try to exec as it changes $[0], causing all sort of problems
17118   # (the dirname of $[0] is not the place where we might find the
17119   # original and so on.  Autoconf is especially sensible to this).
17120   . ./$as_me.lineno
17121   # Exit status is that of the last command.
17122   exit
17123 }
17124
17125
17126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17127   *c*,-n*) ECHO_N= ECHO_C='
17128 ' ECHO_T='      ' ;;
17129   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17130   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17131 esac
17132
17133 if expr a : '\(a\)' >/dev/null 2>&1; then
17134   as_expr=expr
17135 else
17136   as_expr=false
17137 fi
17138
17139 rm -f conf$$ conf$$.exe conf$$.file
17140 echo >conf$$.file
17141 if ln -s conf$$.file conf$$ 2>/dev/null; then
17142   # We could just check for DJGPP; but this test a) works b) is more generic
17143   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17144   if test -f conf$$.exe; then
17145     # Don't use ln at all; we don't have any links
17146     as_ln_s='cp -p'
17147   else
17148     as_ln_s='ln -s'
17149   fi
17150 elif ln conf$$.file conf$$ 2>/dev/null; then
17151   as_ln_s=ln
17152 else
17153   as_ln_s='cp -p'
17154 fi
17155 rm -f conf$$ conf$$.exe conf$$.file
17156
17157 as_executable_p="test -f"
17158
17159 # Sed expression to map a string onto a valid CPP name.
17160 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17161
17162 # Sed expression to map a string onto a valid variable name.
17163 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17164
17165
17166 # IFS
17167 # We need space, tab and new line, in precisely that order.
17168 as_nl='
17169 '
17170 IFS="   $as_nl"
17171
17172 # CDPATH.
17173 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17174
17175 exec 6>&1
17176
17177 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17178 # report actual input values of CONFIG_FILES etc. instead of their
17179 # values after options handling.  Logging --version etc. is OK.
17180 exec 5>>config.log
17181 {
17182   echo
17183   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17184 ## Running $as_me. ##
17185 _ASBOX
17186 } >&5
17187 cat >&5 <<_CSEOF
17188
17189 This file was extended by PostgreSQL $as_me 7.3devel, which was
17190 generated by GNU Autoconf 2.53.  Invocation command line was
17191
17192   CONFIG_FILES    = $CONFIG_FILES
17193   CONFIG_HEADERS  = $CONFIG_HEADERS
17194   CONFIG_LINKS    = $CONFIG_LINKS
17195   CONFIG_COMMANDS = $CONFIG_COMMANDS
17196   $ $0 $@
17197
17198 _CSEOF
17199 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17200 echo >&5
17201 _ACEOF
17202
17203 # Files that config.status was made for.
17204 if test -n "$ac_config_files"; then
17205   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17206 fi
17207
17208 if test -n "$ac_config_headers"; then
17209   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17210 fi
17211
17212 if test -n "$ac_config_links"; then
17213   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17214 fi
17215
17216 if test -n "$ac_config_commands"; then
17217   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17218 fi
17219
17220 cat >>$CONFIG_STATUS <<\_ACEOF
17221
17222 ac_cs_usage="\
17223 \`$as_me' instantiates files from templates according to the
17224 current configuration.
17225
17226 Usage: $0 [OPTIONS] [FILE]...
17227
17228   -h, --help       print this help, then exit
17229   -V, --version    print version number, then exit
17230   -d, --debug      don't remove temporary files
17231       --recheck    update $as_me by reconfiguring in the same conditions
17232   --file=FILE[:TEMPLATE]
17233                    instantiate the configuration file FILE
17234   --header=FILE[:TEMPLATE]
17235                    instantiate the configuration header FILE
17236
17237 Configuration files:
17238 $config_files
17239
17240 Configuration headers:
17241 $config_headers
17242
17243 Configuration links:
17244 $config_links
17245
17246 Report bugs to <bug-autoconf@gnu.org>."
17247 _ACEOF
17248
17249 cat >>$CONFIG_STATUS <<_ACEOF
17250 ac_cs_version="\\
17251 PostgreSQL config.status 7.3devel
17252 configured by $0, generated by GNU Autoconf 2.53,
17253   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17254
17255 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17256 Free Software Foundation, Inc.
17257 This config.status script is free software; the Free Software Foundation
17258 gives unlimited permission to copy, distribute and modify it."
17259 srcdir=$srcdir
17260 _ACEOF
17261
17262 cat >>$CONFIG_STATUS <<\_ACEOF
17263 # If no file are specified by the user, then we need to provide default
17264 # value.  By we need to know if files were specified by the user.
17265 ac_need_defaults=:
17266 while test $# != 0
17267 do
17268   case $1 in
17269   --*=*)
17270     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17271     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17272     shift
17273     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17274     shift
17275     ;;
17276   -*);;
17277   *) # This is not an option, so the user has probably given explicit
17278      # arguments.
17279      ac_need_defaults=false;;
17280   esac
17281
17282   case $1 in
17283   # Handling of the options.
17284 _ACEOF
17285 cat >>$CONFIG_STATUS <<_ACEOF
17286   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17287     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17288     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17289 _ACEOF
17290 cat >>$CONFIG_STATUS <<\_ACEOF
17291   --version | --vers* | -V )
17292     echo "$ac_cs_version"; exit 0 ;;
17293   --he | --h)
17294     # Conflict between --help and --header
17295     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17296 Try \`$0 --help' for more information." >&5
17297 echo "$as_me: error: ambiguous option: $1
17298 Try \`$0 --help' for more information." >&2;}
17299    { (exit 1); exit 1; }; };;
17300   --help | --hel | -h )
17301     echo "$ac_cs_usage"; exit 0 ;;
17302   --debug | --d* | -d )
17303     debug=: ;;
17304   --file | --fil | --fi | --f )
17305     shift
17306     CONFIG_FILES="$CONFIG_FILES $1"
17307     ac_need_defaults=false;;
17308   --header | --heade | --head | --hea )
17309     shift
17310     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17311     ac_need_defaults=false;;
17312
17313   # This is an error.
17314   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17315 Try \`$0 --help' for more information." >&5
17316 echo "$as_me: error: unrecognized option: $1
17317 Try \`$0 --help' for more information." >&2;}
17318    { (exit 1); exit 1; }; } ;;
17319
17320   *) ac_config_targets="$ac_config_targets $1" ;;
17321
17322   esac
17323   shift
17324 done
17325
17326 _ACEOF
17327
17328
17329
17330
17331
17332 cat >>$CONFIG_STATUS <<\_ACEOF
17333 for ac_config_target in $ac_config_targets
17334 do
17335   case "$ac_config_target" in
17336   # Handling of arguments.
17337   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17338   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17339   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17340   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17341   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17342   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17343   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17344   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17345   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17346   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17347   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17348 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17349    { (exit 1); exit 1; }; };;
17350   esac
17351 done
17352
17353 # If the user did not use the arguments to specify the items to instantiate,
17354 # then the envvar interface is used.  Set only those that are not.
17355 # We use the long form for the default assignment because of an extremely
17356 # bizarre bug on SunOS 4.1.3.
17357 if $ac_need_defaults; then
17358   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17359   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17360   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17361 fi
17362
17363 # Create a temporary directory, and hook for its removal unless debugging.
17364 $debug ||
17365 {
17366   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17367   trap '{ (exit 1); exit 1; }' 1 2 13 15
17368 }
17369
17370 # Create a (secure) tmp directory for tmp files.
17371 : ${TMPDIR=/tmp}
17372 {
17373   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17374   test -n "$tmp" && test -d "$tmp"
17375 }  ||
17376 {
17377   tmp=$TMPDIR/cs$$-$RANDOM
17378   (umask 077 && mkdir $tmp)
17379 } ||
17380 {
17381    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17382    { (exit 1); exit 1; }
17383 }
17384
17385 _ACEOF
17386
17387 cat >>$CONFIG_STATUS <<_ACEOF
17388
17389 #
17390 # CONFIG_FILES section.
17391 #
17392
17393 # No need to generate the scripts if there are no CONFIG_FILES.
17394 # This happens for instance when ./config.status config.h
17395 if test -n "\$CONFIG_FILES"; then
17396   # Protect against being on the right side of a sed subst in config.status.
17397   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17398    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17399 s,@SHELL@,$SHELL,;t t
17400 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17401 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17402 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17403 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17404 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17405 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17406 s,@exec_prefix@,$exec_prefix,;t t
17407 s,@prefix@,$prefix,;t t
17408 s,@program_transform_name@,$program_transform_name,;t t
17409 s,@bindir@,$bindir,;t t
17410 s,@sbindir@,$sbindir,;t t
17411 s,@libexecdir@,$libexecdir,;t t
17412 s,@datadir@,$datadir,;t t
17413 s,@sysconfdir@,$sysconfdir,;t t
17414 s,@sharedstatedir@,$sharedstatedir,;t t
17415 s,@localstatedir@,$localstatedir,;t t
17416 s,@libdir@,$libdir,;t t
17417 s,@includedir@,$includedir,;t t
17418 s,@oldincludedir@,$oldincludedir,;t t
17419 s,@infodir@,$infodir,;t t
17420 s,@mandir@,$mandir,;t t
17421 s,@build_alias@,$build_alias,;t t
17422 s,@host_alias@,$host_alias,;t t
17423 s,@target_alias@,$target_alias,;t t
17424 s,@DEFS@,$DEFS,;t t
17425 s,@ECHO_C@,$ECHO_C,;t t
17426 s,@ECHO_N@,$ECHO_N,;t t
17427 s,@ECHO_T@,$ECHO_T,;t t
17428 s,@LIBS@,$LIBS,;t t
17429 s,@docdir@,$docdir,;t t
17430 s,@configure_args@,$configure_args,;t t
17431 s,@build@,$build,;t t
17432 s,@build_cpu@,$build_cpu,;t t
17433 s,@build_vendor@,$build_vendor,;t t
17434 s,@build_os@,$build_os,;t t
17435 s,@host@,$host,;t t
17436 s,@host_cpu@,$host_cpu,;t t
17437 s,@host_vendor@,$host_vendor,;t t
17438 s,@host_os@,$host_os,;t t
17439 s,@PORTNAME@,$PORTNAME,;t t
17440 s,@TAS@,$TAS,;t t
17441 s,@MULTIBYTE@,$MULTIBYTE,;t t
17442 s,@enable_nls@,$enable_nls,;t t
17443 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17444 s,@default_port@,$default_port,;t t
17445 s,@enable_shared@,$enable_shared,;t t
17446 s,@enable_rpath@,$enable_rpath,;t t
17447 s,@enable_debug@,$enable_debug,;t t
17448 s,@CC@,$CC,;t t
17449 s,@CFLAGS@,$CFLAGS,;t t
17450 s,@LDFLAGS@,$LDFLAGS,;t t
17451 s,@CPPFLAGS@,$CPPFLAGS,;t t
17452 s,@ac_ct_CC@,$ac_ct_CC,;t t
17453 s,@EXEEXT@,$EXEEXT,;t t
17454 s,@OBJEXT@,$OBJEXT,;t t
17455 s,@CPP@,$CPP,;t t
17456 s,@GCC@,$GCC,;t t
17457 s,@autodepend@,$autodepend,;t t
17458 s,@INCLUDES@,$INCLUDES,;t t
17459 s,@with_tcl@,$with_tcl,;t t
17460 s,@with_tk@,$with_tk,;t t
17461 s,@with_perl@,$with_perl,;t t
17462 s,@with_python@,$with_python,;t t
17463 s,@ANT@,$ANT,;t t
17464 s,@with_java@,$with_java,;t t
17465 s,@with_krb4@,$with_krb4,;t t
17466 s,@with_krb5@,$with_krb5,;t t
17467 s,@krb_srvtab@,$krb_srvtab,;t t
17468 s,@with_pam@,$with_pam,;t t
17469 s,@with_openssl@,$with_openssl,;t t
17470 s,@enable_odbc@,$enable_odbc,;t t
17471 s,@with_unixodbc@,$with_unixodbc,;t t
17472 s,@with_iodbc@,$with_iodbc,;t t
17473 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17474 s,@ELF_SYS@,$ELF_SYS,;t t
17475 s,@CXX@,$CXX,;t t
17476 s,@CXXFLAGS@,$CXXFLAGS,;t t
17477 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17478 s,@CXXCPP@,$CXXCPP,;t t
17479 s,@with_CXX@,$with_CXX,;t t
17480 s,@GXX@,$GXX,;t t
17481 s,@AWK@,$AWK,;t t
17482 s,@FLEX@,$FLEX,;t t
17483 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17484 s,@LN_S@,$LN_S,;t t
17485 s,@LD@,$LD,;t t
17486 s,@with_gnu_ld@,$with_gnu_ld,;t t
17487 s,@ld_R_works@,$ld_R_works,;t t
17488 s,@RANLIB@,$RANLIB,;t t
17489 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17490 s,@LORDER@,$LORDER,;t t
17491 s,@TAR@,$TAR,;t t
17492 s,@STRIP@,$STRIP,;t t
17493 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17494 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17495 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17496 s,@YACC@,$YACC,;t t
17497 s,@YFLAGS@,$YFLAGS,;t t
17498 s,@WISH@,$WISH,;t t
17499 s,@PERL@,$PERL,;t t
17500 s,@perl_installsitearch@,$perl_installsitearch,;t t
17501 s,@perl_installman3dir@,$perl_installman3dir,;t t
17502 s,@perl_archlibexp@,$perl_archlibexp,;t t
17503 s,@perl_privlibexp@,$perl_privlibexp,;t t
17504 s,@perl_useshrplib@,$perl_useshrplib,;t t
17505 s,@perl_man3ext@,$perl_man3ext,;t t
17506 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17507 s,@PYTHON@,$PYTHON,;t t
17508 s,@python_version@,$python_version,;t t
17509 s,@python_prefix@,$python_prefix,;t t
17510 s,@python_execprefix@,$python_execprefix,;t t
17511 s,@python_configdir@,$python_configdir,;t t
17512 s,@python_moduledir@,$python_moduledir,;t t
17513 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17514 s,@python_includespec@,$python_includespec,;t t
17515 s,@python_libspec@,$python_libspec,;t t
17516 s,@MEMCMP@,$MEMCMP,;t t
17517 s,@SNPRINTF@,$SNPRINTF,;t t
17518 s,@ISINF@,$ISINF,;t t
17519 s,@GETRUSAGE@,$GETRUSAGE,;t t
17520 s,@SRANDOM@,$SRANDOM,;t t
17521 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17522 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17523 s,@INET_ATON@,$INET_ATON,;t t
17524 s,@STRERROR@,$STRERROR,;t t
17525 s,@STRDUP@,$STRDUP,;t t
17526 s,@STRTOL@,$STRTOL,;t t
17527 s,@STRTOUL@,$STRTOUL,;t t
17528 s,@STRCASECMP@,$STRCASECMP,;t t
17529 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17530 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17531 s,@MSGFMT@,$MSGFMT,;t t
17532 s,@MSGMERGE@,$MSGMERGE,;t t
17533 s,@XGETTEXT@,$XGETTEXT,;t t
17534 s,@localedir@,$localedir,;t t
17535 s,@TCLSH@,$TCLSH,;t t
17536 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17537 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17538 s,@TCL_LIBS@,$TCL_LIBS,;t t
17539 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17540 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17541 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17542 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17543 s,@TK_LIBS@,$TK_LIBS,;t t
17544 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17545 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17546 s,@NSGMLS@,$NSGMLS,;t t
17547 s,@JADE@,$JADE,;t t
17548 s,@have_docbook@,$have_docbook,;t t
17549 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17550 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17551 s,@SGMLSPL@,$SGMLSPL,;t t
17552 s,@vpath_build@,$vpath_build,;t t
17553 CEOF
17554
17555 _ACEOF
17556
17557   cat >>$CONFIG_STATUS <<\_ACEOF
17558   # Split the substitutions into bite-sized pieces for seds with
17559   # small command number limits, like on Digital OSF/1 and HP-UX.
17560   ac_max_sed_lines=48
17561   ac_sed_frag=1 # Number of current file.
17562   ac_beg=1 # First line for current file.
17563   ac_end=$ac_max_sed_lines # Line after last line for current file.
17564   ac_more_lines=:
17565   ac_sed_cmds=
17566   while $ac_more_lines; do
17567     if test $ac_beg -gt 1; then
17568       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17569     else
17570       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17571     fi
17572     if test ! -s $tmp/subs.frag; then
17573       ac_more_lines=false
17574     else
17575       # The purpose of the label and of the branching condition is to
17576       # speed up the sed processing (if there are no `@' at all, there
17577       # is no need to browse any of the substitutions).
17578       # These are the two extra sed commands mentioned above.
17579       (echo ':t
17580   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17581       if test -z "$ac_sed_cmds"; then
17582         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17583       else
17584         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17585       fi
17586       ac_sed_frag=`expr $ac_sed_frag + 1`
17587       ac_beg=$ac_end
17588       ac_end=`expr $ac_end + $ac_max_sed_lines`
17589     fi
17590   done
17591   if test -z "$ac_sed_cmds"; then
17592     ac_sed_cmds=cat
17593   fi
17594 fi # test -n "$CONFIG_FILES"
17595
17596 _ACEOF
17597 cat >>$CONFIG_STATUS <<\_ACEOF
17598 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17599   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17600   case $ac_file in
17601   - | *:- | *:-:* ) # input from stdin
17602         cat >$tmp/stdin
17603         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17604         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17605   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17606         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17607   * )   ac_file_in=$ac_file.in ;;
17608   esac
17609
17610   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17611   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17612 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17613          X"$ac_file" : 'X\(//\)[^/]' \| \
17614          X"$ac_file" : 'X\(//\)$' \| \
17615          X"$ac_file" : 'X\(/\)' \| \
17616          .     : '\(.\)' 2>/dev/null ||
17617 echo X"$ac_file" |
17618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17619           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17620           /^X\(\/\/\)$/{ s//\1/; q; }
17621           /^X\(\/\).*/{ s//\1/; q; }
17622           s/.*/./; q'`
17623   { case "$ac_dir" in
17624   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17625   *)                      as_incr_dir=.;;
17626 esac
17627 as_dummy="$ac_dir"
17628 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17629   case $as_mkdir_dir in
17630     # Skip DOS drivespec
17631     ?:) as_incr_dir=$as_mkdir_dir ;;
17632     *)
17633       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17634       test -d "$as_incr_dir" ||
17635         mkdir "$as_incr_dir" ||
17636         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17637 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17638    { (exit 1); exit 1; }; }
17639     ;;
17640   esac
17641 done; }
17642
17643   ac_builddir=.
17644
17645 if test "$ac_dir" != .; then
17646   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17647   # A "../" for each directory in $ac_dir_suffix.
17648   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17649 else
17650   ac_dir_suffix= ac_top_builddir=
17651 fi
17652
17653 case $srcdir in
17654   .)  # No --srcdir option.  We are building in place.
17655     ac_srcdir=.
17656     if test -z "$ac_top_builddir"; then
17657        ac_top_srcdir=.
17658     else
17659        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17660     fi ;;
17661   [\\/]* | ?:[\\/]* )  # Absolute path.
17662     ac_srcdir=$srcdir$ac_dir_suffix;
17663     ac_top_srcdir=$srcdir ;;
17664   *) # Relative path.
17665     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17666     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17667 esac
17668 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17669 # absolute.
17670 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17671 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17672 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17673 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17674
17675
17676
17677   if test x"$ac_file" != x-; then
17678     { echo "$as_me:$LINENO: creating $ac_file" >&5
17679 echo "$as_me: creating $ac_file" >&6;}
17680     rm -f "$ac_file"
17681   fi
17682   # Let's still pretend it is `configure' which instantiates (i.e., don't
17683   # use $as_me), people would be surprised to read:
17684   #    /* config.h.  Generated by config.status.  */
17685   if test x"$ac_file" = x-; then
17686     configure_input=
17687   else
17688     configure_input="$ac_file.  "
17689   fi
17690   configure_input=$configure_input"Generated from `echo $ac_file_in |
17691                                      sed 's,.*/,,'` by configure."
17692
17693   # First look for the input files in the build tree, otherwise in the
17694   # src tree.
17695   ac_file_inputs=`IFS=:
17696     for f in $ac_file_in; do
17697       case $f in
17698       -) echo $tmp/stdin ;;
17699       [\\/$]*)
17700          # Absolute (can't be DOS-style, as IFS=:)
17701          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17702 echo "$as_me: error: cannot find input file: $f" >&2;}
17703    { (exit 1); exit 1; }; }
17704          echo $f;;
17705       *) # Relative
17706          if test -f "$f"; then
17707            # Build tree
17708            echo $f
17709          elif test -f "$srcdir/$f"; then
17710            # Source tree
17711            echo $srcdir/$f
17712          else
17713            # /dev/null tree
17714            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17715 echo "$as_me: error: cannot find input file: $f" >&2;}
17716    { (exit 1); exit 1; }; }
17717          fi;;
17718       esac
17719     done` || { (exit 1); exit 1; }
17720 _ACEOF
17721 cat >>$CONFIG_STATUS <<_ACEOF
17722   sed "$ac_vpsub
17723 $extrasub
17724 _ACEOF
17725 cat >>$CONFIG_STATUS <<\_ACEOF
17726 :t
17727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17728 s,@configure_input@,$configure_input,;t t
17729 s,@srcdir@,$ac_srcdir,;t t
17730 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17731 s,@top_srcdir@,$ac_top_srcdir,;t t
17732 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17733 s,@builddir@,$ac_builddir,;t t
17734 s,@abs_builddir@,$ac_abs_builddir,;t t
17735 s,@top_builddir@,$ac_top_builddir,;t t
17736 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17738   rm -f $tmp/stdin
17739   if test x"$ac_file" != x-; then
17740     mv $tmp/out $ac_file
17741   else
17742     cat $tmp/out
17743     rm -f $tmp/out
17744   fi
17745
17746 done
17747 _ACEOF
17748 cat >>$CONFIG_STATUS <<\_ACEOF
17749
17750 #
17751 # CONFIG_HEADER section.
17752 #
17753
17754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17756 #
17757 # ac_d sets the value in "#define NAME VALUE" lines.
17758 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17759 ac_dB='[        ].*$,\1#\2'
17760 ac_dC=' '
17761 ac_dD=',;t'
17762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17763 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17764 ac_uB='$,\1#\2define\3'
17765 ac_uC=' '
17766 ac_uD=',;t'
17767
17768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17769   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17770   case $ac_file in
17771   - | *:- | *:-:* ) # input from stdin
17772         cat >$tmp/stdin
17773         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17774         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17775   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17776         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17777   * )   ac_file_in=$ac_file.in ;;
17778   esac
17779
17780   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17781 echo "$as_me: creating $ac_file" >&6;}
17782
17783   # First look for the input files in the build tree, otherwise in the
17784   # src tree.
17785   ac_file_inputs=`IFS=:
17786     for f in $ac_file_in; do
17787       case $f in
17788       -) echo $tmp/stdin ;;
17789       [\\/$]*)
17790          # Absolute (can't be DOS-style, as IFS=:)
17791          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17792 echo "$as_me: error: cannot find input file: $f" >&2;}
17793    { (exit 1); exit 1; }; }
17794          echo $f;;
17795       *) # Relative
17796          if test -f "$f"; then
17797            # Build tree
17798            echo $f
17799          elif test -f "$srcdir/$f"; then
17800            # Source tree
17801            echo $srcdir/$f
17802          else
17803            # /dev/null tree
17804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17805 echo "$as_me: error: cannot find input file: $f" >&2;}
17806    { (exit 1); exit 1; }; }
17807          fi;;
17808       esac
17809     done` || { (exit 1); exit 1; }
17810   # Remove the trailing spaces.
17811   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17812
17813 _ACEOF
17814
17815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17816 # `conftest.undefs', that substitutes the proper values into
17817 # config.h.in to produce config.h.  The first handles `#define'
17818 # templates, and the second `#undef' templates.
17819 # And first: Protect against being on the right side of a sed subst in
17820 # config.status.  Protect against being in an unquoted here document
17821 # in config.status.
17822 rm -f conftest.defines conftest.undefs
17823 # Using a here document instead of a string reduces the quoting nightmare.
17824 # Putting comments in sed scripts is not portable.
17825 #
17826 # `end' is used to avoid that the second main sed command (meant for
17827 # 0-ary CPP macros) applies to n-ary macro definitions.
17828 # See the Autoconf documentation for `clear'.
17829 cat >confdef2sed.sed <<\_ACEOF
17830 s/[\\&,]/\\&/g
17831 s,[\\$`],\\&,g
17832 t clear
17833 : clear
17834 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17835 t end
17836 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17837 : end
17838 _ACEOF
17839 # If some macros were called several times there might be several times
17840 # the same #defines, which is useless.  Nevertheless, we may not want to
17841 # sort them, since we want the *last* AC-DEFINE to be honored.
17842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17844 rm -f confdef2sed.sed
17845
17846 # This sed command replaces #undef with comments.  This is necessary, for
17847 # example, in the case of _POSIX_SOURCE, which is predefined and required
17848 # on some systems where configure will not decide to define it.
17849 cat >>conftest.undefs <<\_ACEOF
17850 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17851 _ACEOF
17852
17853 # Break up conftest.defines because some shells have a limit on the size
17854 # of here documents, and old seds have small limits too (100 cmds).
17855 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17856 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17857 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17858 echo '  :' >>$CONFIG_STATUS
17859 rm -f conftest.tail
17860 while grep . conftest.defines >/dev/null
17861 do
17862   # Write a limited-size here document to $tmp/defines.sed.
17863   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17864   # Speed up: don't consider the non `#define' lines.
17865   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17866   # Work around the forget-to-reset-the-flag bug.
17867   echo 't clr' >>$CONFIG_STATUS
17868   echo ': clr' >>$CONFIG_STATUS
17869   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17870   echo 'CEOF
17871   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17872   rm -f $tmp/in
17873   mv $tmp/out $tmp/in
17874 ' >>$CONFIG_STATUS
17875   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17876   rm -f conftest.defines
17877   mv conftest.tail conftest.defines
17878 done
17879 rm -f conftest.defines
17880 echo '  fi # egrep' >>$CONFIG_STATUS
17881 echo >>$CONFIG_STATUS
17882
17883 # Break up conftest.undefs because some shells have a limit on the size
17884 # of here documents, and old seds have small limits too (100 cmds).
17885 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17886 rm -f conftest.tail
17887 while grep . conftest.undefs >/dev/null
17888 do
17889   # Write a limited-size here document to $tmp/undefs.sed.
17890   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17891   # Speed up: don't consider the non `#undef'
17892   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17893   # Work around the forget-to-reset-the-flag bug.
17894   echo 't clr' >>$CONFIG_STATUS
17895   echo ': clr' >>$CONFIG_STATUS
17896   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17897   echo 'CEOF
17898   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17899   rm -f $tmp/in
17900   mv $tmp/out $tmp/in
17901 ' >>$CONFIG_STATUS
17902   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17903   rm -f conftest.undefs
17904   mv conftest.tail conftest.undefs
17905 done
17906 rm -f conftest.undefs
17907
17908 cat >>$CONFIG_STATUS <<\_ACEOF
17909   # Let's still pretend it is `configure' which instantiates (i.e., don't
17910   # use $as_me), people would be surprised to read:
17911   #    /* config.h.  Generated by config.status.  */
17912   if test x"$ac_file" = x-; then
17913     echo "/* Generated by configure.  */" >$tmp/config.h
17914   else
17915     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17916   fi
17917   cat $tmp/in >>$tmp/config.h
17918   rm -f $tmp/in
17919   if test x"$ac_file" != x-; then
17920     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17921       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17922 echo "$as_me: $ac_file is unchanged" >&6;}
17923     else
17924       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17926          X"$ac_file" : 'X\(//\)[^/]' \| \
17927          X"$ac_file" : 'X\(//\)$' \| \
17928          X"$ac_file" : 'X\(/\)' \| \
17929          .     : '\(.\)' 2>/dev/null ||
17930 echo X"$ac_file" |
17931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17933           /^X\(\/\/\)$/{ s//\1/; q; }
17934           /^X\(\/\).*/{ s//\1/; q; }
17935           s/.*/./; q'`
17936       { case "$ac_dir" in
17937   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17938   *)                      as_incr_dir=.;;
17939 esac
17940 as_dummy="$ac_dir"
17941 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17942   case $as_mkdir_dir in
17943     # Skip DOS drivespec
17944     ?:) as_incr_dir=$as_mkdir_dir ;;
17945     *)
17946       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17947       test -d "$as_incr_dir" ||
17948         mkdir "$as_incr_dir" ||
17949         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17950 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17951    { (exit 1); exit 1; }; }
17952     ;;
17953   esac
17954 done; }
17955
17956       rm -f $ac_file
17957       mv $tmp/config.h $ac_file
17958     fi
17959   else
17960     cat $tmp/config.h
17961     rm -f $tmp/config.h
17962   fi
17963   # Run the commands associated with the file.
17964   case $ac_file in
17965     src/include/pg_config.h )
17966 # Update timestamp for pg_config.h (see Makefile.global)
17967 echo >src/include/stamp-h
17968  ;;
17969   esac
17970 done
17971 _ACEOF
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17973
17974 #
17975 # CONFIG_LINKS section.
17976 #
17977
17978 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17979   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17980   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17981
17982   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17983 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17984
17985   if test ! -r $srcdir/$ac_source; then
17986     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17987 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17988    { (exit 1); exit 1; }; }
17989   fi
17990   rm -f $ac_dest
17991
17992   # Make relative symlinks.
17993   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17994 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17995          X"$ac_dest" : 'X\(//\)[^/]' \| \
17996          X"$ac_dest" : 'X\(//\)$' \| \
17997          X"$ac_dest" : 'X\(/\)' \| \
17998          .     : '\(.\)' 2>/dev/null ||
17999 echo X"$ac_dest" |
18000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18001           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18002           /^X\(\/\/\)$/{ s//\1/; q; }
18003           /^X\(\/\).*/{ s//\1/; q; }
18004           s/.*/./; q'`
18005   { case "$ac_dest_dir" in
18006   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18007   *)                      as_incr_dir=.;;
18008 esac
18009 as_dummy="$ac_dest_dir"
18010 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18011   case $as_mkdir_dir in
18012     # Skip DOS drivespec
18013     ?:) as_incr_dir=$as_mkdir_dir ;;
18014     *)
18015       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18016       test -d "$as_incr_dir" ||
18017         mkdir "$as_incr_dir" ||
18018         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18019 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18020    { (exit 1); exit 1; }; }
18021     ;;
18022   esac
18023 done; }
18024
18025   ac_builddir=.
18026
18027 if test "$ac_dest_dir" != .; then
18028   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18029   # A "../" for each directory in $ac_dir_suffix.
18030   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18031 else
18032   ac_dir_suffix= ac_top_builddir=
18033 fi
18034
18035 case $srcdir in
18036   .)  # No --srcdir option.  We are building in place.
18037     ac_srcdir=.
18038     if test -z "$ac_top_builddir"; then
18039        ac_top_srcdir=.
18040     else
18041        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18042     fi ;;
18043   [\\/]* | ?:[\\/]* )  # Absolute path.
18044     ac_srcdir=$srcdir$ac_dir_suffix;
18045     ac_top_srcdir=$srcdir ;;
18046   *) # Relative path.
18047     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18048     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18049 esac
18050 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18051 # absolute.
18052 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18053 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18054 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18055 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18056
18057
18058   case $srcdir in
18059   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18060       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18061   esac
18062
18063   # Make a symlink if possible; otherwise try a hard link.
18064   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18065     ln $srcdir/$ac_source $ac_dest ||
18066     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18067 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18068    { (exit 1); exit 1; }; }
18069 done
18070 _ACEOF
18071
18072 cat >>$CONFIG_STATUS <<\_ACEOF
18073
18074 { (exit 0); exit 0; }
18075 _ACEOF
18076 chmod +x $CONFIG_STATUS
18077 ac_clean_files=$ac_clean_files_save
18078
18079
18080 # configure is writing to config.log, and then calls config.status.
18081 # config.status does its own redirection, appending to config.log.
18082 # Unfortunately, on DOS this fails, as config.log is still kept open
18083 # by configure, so config.status won't be able to write to it; its
18084 # output is simply discarded.  So we exec the FD to /dev/null,
18085 # effectively closing config.log, so it can be properly (re)opened and
18086 # appended to by config.status.  When coming back to configure, we
18087 # need to make the FD available again.
18088 if test "$no_create" != yes; then
18089   ac_cs_success=:
18090   exec 5>/dev/null
18091   $SHELL $CONFIG_STATUS || ac_cs_success=false
18092   exec 5>>config.log
18093   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18094   # would make configure fail if this is the last instruction.
18095   $ac_cs_success || { (exit 1); exit 1; }
18096 fi
18097