OSDN Git Service

Move CXX platform-specific stuff into template files.
[pg-rex/syncrep.git] / 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 # QNX:
6049
6050 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6051 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6052 if test "${ac_cv_lib_unix_main+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   ac_check_lib_save_LIBS=$LIBS
6056 LIBS="-lunix  $LIBS"
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6059 #include "confdefs.h"
6060
6061
6062 #ifdef F77_DUMMY_MAIN
6063 #  ifdef __cplusplus
6064      extern "C"
6065 #  endif
6066    int F77_DUMMY_MAIN() { return 1; }
6067 #endif
6068 int
6069 main ()
6070 {
6071 main ();
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078   (eval $ac_link) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); } &&
6082          { ac_try='test -s conftest$ac_exeext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   ac_cv_lib_unix_main=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 ac_cv_lib_unix_main=no
6093 fi
6094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_check_lib_save_LIBS
6096 fi
6097 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6098 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6099 if test $ac_cv_lib_unix_main = yes; then
6100   cat >>confdefs.h <<_ACEOF
6101 #define HAVE_LIBUNIX 1
6102 _ACEOF
6103
6104   LIBS="-lunix $LIBS"
6105
6106 fi
6107
6108 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6109 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6110 if test "${ac_cv_search_crypt+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   ac_func_search_save_LIBS=$LIBS
6114 ac_cv_search_crypt=no
6115 cat >conftest.$ac_ext <<_ACEOF
6116 #line $LINENO "configure"
6117 #include "confdefs.h"
6118
6119 /* Override any gcc2 internal prototype to avoid an error.  */
6120 #ifdef __cplusplus
6121 extern "C"
6122 #endif
6123 /* We use char because int might match the return type of a gcc2
6124    builtin and then its argument prototype would still apply.  */
6125 char crypt ();
6126 #ifdef F77_DUMMY_MAIN
6127 #  ifdef __cplusplus
6128      extern "C"
6129 #  endif
6130    int F77_DUMMY_MAIN() { return 1; }
6131 #endif
6132 int
6133 main ()
6134 {
6135 crypt ();
6136   ;
6137   return 0;
6138 }
6139 _ACEOF
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142   (eval $ac_link) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } &&
6146          { ac_try='test -s conftest$ac_exeext'
6147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148   (eval $ac_try) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; }; then
6152   ac_cv_search_crypt="none required"
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 fi
6157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6158 if test "$ac_cv_search_crypt" = no; then
6159   for ac_lib in crypt; do
6160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6161     cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 #include "confdefs.h"
6164
6165 /* Override any gcc2 internal prototype to avoid an error.  */
6166 #ifdef __cplusplus
6167 extern "C"
6168 #endif
6169 /* We use char because int might match the return type of a gcc2
6170    builtin and then its argument prototype would still apply.  */
6171 char crypt ();
6172 #ifdef F77_DUMMY_MAIN
6173 #  ifdef __cplusplus
6174      extern "C"
6175 #  endif
6176    int F77_DUMMY_MAIN() { return 1; }
6177 #endif
6178 int
6179 main ()
6180 {
6181 crypt ();
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188   (eval $ac_link) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -s conftest$ac_exeext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   ac_cv_search_crypt="-l$ac_lib"
6199 break
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6203 fi
6204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6205   done
6206 fi
6207 LIBS=$ac_func_search_save_LIBS
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6210 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6211 if test "$ac_cv_search_crypt" != no; then
6212   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6213
6214 fi
6215
6216 # BeOS:
6217
6218 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6219 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6220 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lbind  $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 #include "confdefs.h"
6228
6229 /* Override any gcc2 internal prototype to avoid an error.  */
6230 #ifdef __cplusplus
6231 extern "C"
6232 #endif
6233 /* We use char because int might match the return type of a gcc2
6234    builtin and then its argument prototype would still apply.  */
6235 char __inet_ntoa ();
6236 #ifdef F77_DUMMY_MAIN
6237 #  ifdef __cplusplus
6238      extern "C"
6239 #  endif
6240    int F77_DUMMY_MAIN() { return 1; }
6241 #endif
6242 int
6243 main ()
6244 {
6245 __inet_ntoa ();
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252   (eval $ac_link) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } &&
6256          { ac_try='test -s conftest$ac_exeext'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; }; then
6262   ac_cv_lib_bind___inet_ntoa=yes
6263 else
6264   echo "$as_me: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 ac_cv_lib_bind___inet_ntoa=no
6267 fi
6268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6269 LIBS=$ac_check_lib_save_LIBS
6270 fi
6271 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6272 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6273 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6274   cat >>confdefs.h <<_ACEOF
6275 #define HAVE_LIBBIND 1
6276 _ACEOF
6277
6278   LIBS="-lbind $LIBS"
6279
6280 fi
6281
6282 # Solaris:
6283 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6284 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6285 if test "${ac_cv_search_fdatasync+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   ac_func_search_save_LIBS=$LIBS
6289 ac_cv_search_fdatasync=no
6290 cat >conftest.$ac_ext <<_ACEOF
6291 #line $LINENO "configure"
6292 #include "confdefs.h"
6293
6294 /* Override any gcc2 internal prototype to avoid an error.  */
6295 #ifdef __cplusplus
6296 extern "C"
6297 #endif
6298 /* We use char because int might match the return type of a gcc2
6299    builtin and then its argument prototype would still apply.  */
6300 char fdatasync ();
6301 #ifdef F77_DUMMY_MAIN
6302 #  ifdef __cplusplus
6303      extern "C"
6304 #  endif
6305    int F77_DUMMY_MAIN() { return 1; }
6306 #endif
6307 int
6308 main ()
6309 {
6310 fdatasync ();
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317   (eval $ac_link) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); } &&
6321          { ac_try='test -s conftest$ac_exeext'
6322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323   (eval $ac_try) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_search_fdatasync="none required"
6328 else
6329   echo "$as_me: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 fi
6332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6333 if test "$ac_cv_search_fdatasync" = no; then
6334   for ac_lib in rt posix4; do
6335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6336     cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 #include "confdefs.h"
6339
6340 /* Override any gcc2 internal prototype to avoid an error.  */
6341 #ifdef __cplusplus
6342 extern "C"
6343 #endif
6344 /* We use char because int might match the return type of a gcc2
6345    builtin and then its argument prototype would still apply.  */
6346 char fdatasync ();
6347 #ifdef F77_DUMMY_MAIN
6348 #  ifdef __cplusplus
6349      extern "C"
6350 #  endif
6351    int F77_DUMMY_MAIN() { return 1; }
6352 #endif
6353 int
6354 main ()
6355 {
6356 fdatasync ();
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363   (eval $ac_link) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } &&
6367          { ac_try='test -s conftest$ac_exeext'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; }; then
6373   ac_cv_search_fdatasync="-l$ac_lib"
6374 break
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 fi
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380   done
6381 fi
6382 LIBS=$ac_func_search_save_LIBS
6383 fi
6384 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6385 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6386 if test "$ac_cv_search_fdatasync" != no; then
6387   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6388
6389 fi
6390
6391
6392 if test "$with_readline" = yes; then
6393
6394 echo "$as_me:$LINENO: checking for readline" >&5
6395 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6396
6397 if test "${pgac_cv_check_readline+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   pgac_cv_check_readline=no
6401 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6402   for pgac_rllib in -lreadline -ledit ; do
6403     pgac_save_LIBS=$LIBS
6404     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6405     cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6408
6409 /* Override any gcc2 internal prototype to avoid an error.  */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414    builtin and then its argument prototype would still apply.  */
6415 char readline ();
6416 #ifdef F77_DUMMY_MAIN
6417 #  ifdef __cplusplus
6418      extern "C"
6419 #  endif
6420    int F77_DUMMY_MAIN() { return 1; }
6421 #endif
6422 int
6423 main ()
6424 {
6425 readline ();
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432   (eval $ac_link) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -s conftest$ac_exeext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442
6443       # NetBSD and OpenBSD have a broken linker that does not
6444       # recognize dependent libraries
6445       case $host_os in netbsd* | openbsd* )
6446         case $pgac_lib in
6447           *curses*) ;;
6448           *) pgac_lib=" -lcurses" ;;
6449         esac
6450       esac
6451
6452       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6453       break 2
6454
6455 else
6456   echo "$as_me: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6458 fi
6459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6460     LIBS=$pgac_save_LIBS
6461   done
6462 done
6463 LIBS=$pgac_save_LIBS
6464
6465 fi
6466
6467 if test "$pgac_cv_check_readline" != no ; then
6468
6469 cat >>confdefs.h <<\_ACEOF
6470 #define HAVE_LIBREADLINE 1
6471 _ACEOF
6472
6473   LIBS="$pgac_cv_check_readline $LIBS"
6474   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6475 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6476 else
6477   echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6
6479 fi
6480   if test x"$pgac_cv_check_readline" = x"no"; then
6481     { { echo "$as_me:$LINENO: error: readline library not found
6482 Use --without-readline to disable readline support." >&5
6483 echo "$as_me: error: readline library not found
6484 Use --without-readline to disable readline support." >&2;}
6485    { (exit 1); exit 1; }; }
6486   fi
6487 fi
6488
6489 if test "$with_zlib" = yes; then
6490
6491 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6492 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6493 if test "${ac_cv_lib_z_inflate+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lz  $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 #include "confdefs.h"
6501
6502 /* Override any gcc2 internal prototype to avoid an error.  */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507    builtin and then its argument prototype would still apply.  */
6508 char inflate ();
6509 #ifdef F77_DUMMY_MAIN
6510 #  ifdef __cplusplus
6511      extern "C"
6512 #  endif
6513    int F77_DUMMY_MAIN() { return 1; }
6514 #endif
6515 int
6516 main ()
6517 {
6518 inflate ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -s conftest$ac_exeext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   ac_cv_lib_z_inflate=yes
6536 else
6537   echo "$as_me: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6539 ac_cv_lib_z_inflate=no
6540 fi
6541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6545 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6546 if test $ac_cv_lib_z_inflate = yes; then
6547   cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LIBZ 1
6549 _ACEOF
6550
6551   LIBS="-lz $LIBS"
6552
6553 else
6554   { { echo "$as_me:$LINENO: error: zlib library not found
6555 Use --without-zlib to disable zlib support." >&5
6556 echo "$as_me: error: zlib library not found
6557 Use --without-zlib to disable zlib support." >&2;}
6558    { (exit 1); exit 1; }; }
6559 fi
6560
6561 fi
6562
6563 if test "$with_krb4" = yes ; then
6564
6565 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6566 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6567 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   ac_check_lib_save_LIBS=$LIBS
6571 LIBS="-ldes  $LIBS"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 #include "confdefs.h"
6575
6576 /* Override any gcc2 internal prototype to avoid an error.  */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 /* We use char because int might match the return type of a gcc2
6581    builtin and then its argument prototype would still apply.  */
6582 char des_encrypt ();
6583 #ifdef F77_DUMMY_MAIN
6584 #  ifdef __cplusplus
6585      extern "C"
6586 #  endif
6587    int F77_DUMMY_MAIN() { return 1; }
6588 #endif
6589 int
6590 main ()
6591 {
6592 des_encrypt ();
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   ac_cv_lib_des_des_encrypt=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 ac_cv_lib_des_des_encrypt=no
6614 fi
6615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6619 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6620 if test $ac_cv_lib_des_des_encrypt = yes; then
6621   cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LIBDES 1
6623 _ACEOF
6624
6625   LIBS="-ldes $LIBS"
6626
6627 else
6628   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6629 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6630    { (exit 1); exit 1; }; }
6631 fi
6632
6633
6634 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6635 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6636 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   ac_check_lib_save_LIBS=$LIBS
6640 LIBS="-lkrb  $LIBS"
6641 cat >conftest.$ac_ext <<_ACEOF
6642 #line $LINENO "configure"
6643 #include "confdefs.h"
6644
6645 /* Override any gcc2 internal prototype to avoid an error.  */
6646 #ifdef __cplusplus
6647 extern "C"
6648 #endif
6649 /* We use char because int might match the return type of a gcc2
6650    builtin and then its argument prototype would still apply.  */
6651 char krb_sendauth ();
6652 #ifdef F77_DUMMY_MAIN
6653 #  ifdef __cplusplus
6654      extern "C"
6655 #  endif
6656    int F77_DUMMY_MAIN() { return 1; }
6657 #endif
6658 int
6659 main ()
6660 {
6661 krb_sendauth ();
6662   ;
6663   return 0;
6664 }
6665 _ACEOF
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668   (eval $ac_link) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } &&
6672          { ac_try='test -s conftest$ac_exeext'
6673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674   (eval $ac_try) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; }; then
6678   ac_cv_lib_krb_krb_sendauth=yes
6679 else
6680   echo "$as_me: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6682 ac_cv_lib_krb_krb_sendauth=no
6683 fi
6684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 LIBS=$ac_check_lib_save_LIBS
6686 fi
6687 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6688 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6689 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6690   cat >>confdefs.h <<_ACEOF
6691 #define HAVE_LIBKRB 1
6692 _ACEOF
6693
6694   LIBS="-lkrb $LIBS"
6695
6696 else
6697   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6698 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6699    { (exit 1); exit 1; }; }
6700 fi
6701
6702 fi
6703
6704 if test "$with_krb5" = yes ; then
6705   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6706 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6707 if test "${ac_cv_search_com_err+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   ac_func_search_save_LIBS=$LIBS
6711 ac_cv_search_com_err=no
6712 cat >conftest.$ac_ext <<_ACEOF
6713 #line $LINENO "configure"
6714 #include "confdefs.h"
6715
6716 /* Override any gcc2 internal prototype to avoid an error.  */
6717 #ifdef __cplusplus
6718 extern "C"
6719 #endif
6720 /* We use char because int might match the return type of a gcc2
6721    builtin and then its argument prototype would still apply.  */
6722 char com_err ();
6723 #ifdef F77_DUMMY_MAIN
6724 #  ifdef __cplusplus
6725      extern "C"
6726 #  endif
6727    int F77_DUMMY_MAIN() { return 1; }
6728 #endif
6729 int
6730 main ()
6731 {
6732 com_err ();
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest$ac_exeext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749   ac_cv_search_com_err="none required"
6750 else
6751   echo "$as_me: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6753 fi
6754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6755 if test "$ac_cv_search_com_err" = no; then
6756   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6758     cat >conftest.$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6760 #include "confdefs.h"
6761
6762 /* Override any gcc2 internal prototype to avoid an error.  */
6763 #ifdef __cplusplus
6764 extern "C"
6765 #endif
6766 /* We use char because int might match the return type of a gcc2
6767    builtin and then its argument prototype would still apply.  */
6768 char com_err ();
6769 #ifdef F77_DUMMY_MAIN
6770 #  ifdef __cplusplus
6771      extern "C"
6772 #  endif
6773    int F77_DUMMY_MAIN() { return 1; }
6774 #endif
6775 int
6776 main ()
6777 {
6778 com_err ();
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -s conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_cv_search_com_err="-l$ac_lib"
6796 break
6797 else
6798   echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 fi
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6802   done
6803 fi
6804 LIBS=$ac_func_search_save_LIBS
6805 fi
6806 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6807 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6808 if test "$ac_cv_search_com_err" != no; then
6809   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6810
6811 else
6812   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6813 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6814    { (exit 1); exit 1; }; }
6815 fi
6816
6817   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6818 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6819 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   ac_func_search_save_LIBS=$LIBS
6823 ac_cv_search_krb5_encrypt=no
6824 cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 #include "confdefs.h"
6827
6828 /* Override any gcc2 internal prototype to avoid an error.  */
6829 #ifdef __cplusplus
6830 extern "C"
6831 #endif
6832 /* We use char because int might match the return type of a gcc2
6833    builtin and then its argument prototype would still apply.  */
6834 char krb5_encrypt ();
6835 #ifdef F77_DUMMY_MAIN
6836 #  ifdef __cplusplus
6837      extern "C"
6838 #  endif
6839    int F77_DUMMY_MAIN() { return 1; }
6840 #endif
6841 int
6842 main ()
6843 {
6844 krb5_encrypt ();
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851   (eval $ac_link) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -s conftest$ac_exeext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_cv_search_krb5_encrypt="none required"
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 fi
6866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6867 if test "$ac_cv_search_krb5_encrypt" = no; then
6868   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6869     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6870     cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6872 #include "confdefs.h"
6873
6874 /* Override any gcc2 internal prototype to avoid an error.  */
6875 #ifdef __cplusplus
6876 extern "C"
6877 #endif
6878 /* We use char because int might match the return type of a gcc2
6879    builtin and then its argument prototype would still apply.  */
6880 char krb5_encrypt ();
6881 #ifdef F77_DUMMY_MAIN
6882 #  ifdef __cplusplus
6883      extern "C"
6884 #  endif
6885    int F77_DUMMY_MAIN() { return 1; }
6886 #endif
6887 int
6888 main ()
6889 {
6890 krb5_encrypt ();
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897   (eval $ac_link) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } &&
6901          { ac_try='test -s conftest$ac_exeext'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; }; then
6907   ac_cv_search_krb5_encrypt="-l$ac_lib"
6908 break
6909 else
6910   echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 fi
6913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914   done
6915 fi
6916 LIBS=$ac_func_search_save_LIBS
6917 fi
6918 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6919 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6920 if test "$ac_cv_search_krb5_encrypt" != no; then
6921   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6922
6923 else
6924   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6925 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6926    { (exit 1); exit 1; }; }
6927 fi
6928
6929   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6930 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6931 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   ac_func_search_save_LIBS=$LIBS
6935 ac_cv_search_krb5_sendauth=no
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6938 #include "confdefs.h"
6939
6940 /* Override any gcc2 internal prototype to avoid an error.  */
6941 #ifdef __cplusplus
6942 extern "C"
6943 #endif
6944 /* We use char because int might match the return type of a gcc2
6945    builtin and then its argument prototype would still apply.  */
6946 char krb5_sendauth ();
6947 #ifdef F77_DUMMY_MAIN
6948 #  ifdef __cplusplus
6949      extern "C"
6950 #  endif
6951    int F77_DUMMY_MAIN() { return 1; }
6952 #endif
6953 int
6954 main ()
6955 {
6956 krb5_sendauth ();
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963   (eval $ac_link) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } &&
6967          { ac_try='test -s conftest$ac_exeext'
6968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969   (eval $ac_try) 2>&5
6970   ac_status=$?
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); }; }; then
6973   ac_cv_search_krb5_sendauth="none required"
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6977 fi
6978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979 if test "$ac_cv_search_krb5_sendauth" = no; then
6980   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6982     cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6985
6986 /* Override any gcc2 internal prototype to avoid an error.  */
6987 #ifdef __cplusplus
6988 extern "C"
6989 #endif
6990 /* We use char because int might match the return type of a gcc2
6991    builtin and then its argument prototype would still apply.  */
6992 char krb5_sendauth ();
6993 #ifdef F77_DUMMY_MAIN
6994 #  ifdef __cplusplus
6995      extern "C"
6996 #  endif
6997    int F77_DUMMY_MAIN() { return 1; }
6998 #endif
6999 int
7000 main ()
7001 {
7002 krb5_sendauth ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   ac_cv_search_krb5_sendauth="-l$ac_lib"
7020 break
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 fi
7025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7026   done
7027 fi
7028 LIBS=$ac_func_search_save_LIBS
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7031 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7032 if test "$ac_cv_search_krb5_sendauth" != no; then
7033   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7034
7035 else
7036   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7037 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7038    { (exit 1); exit 1; }; }
7039 fi
7040
7041 fi
7042
7043 if test "$with_openssl" = yes ; then
7044
7045 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7046 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7047 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   ac_check_lib_save_LIBS=$LIBS
7051 LIBS="-lcrypto  $LIBS"
7052 cat >conftest.$ac_ext <<_ACEOF
7053 #line $LINENO "configure"
7054 #include "confdefs.h"
7055
7056 /* Override any gcc2 internal prototype to avoid an error.  */
7057 #ifdef __cplusplus
7058 extern "C"
7059 #endif
7060 /* We use char because int might match the return type of a gcc2
7061    builtin and then its argument prototype would still apply.  */
7062 char CRYPTO_new_ex_data ();
7063 #ifdef F77_DUMMY_MAIN
7064 #  ifdef __cplusplus
7065      extern "C"
7066 #  endif
7067    int F77_DUMMY_MAIN() { return 1; }
7068 #endif
7069 int
7070 main ()
7071 {
7072 CRYPTO_new_ex_data ();
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079   (eval $ac_link) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); } &&
7083          { ac_try='test -s conftest$ac_exeext'
7084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7090 else
7091   echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7094 fi
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7097 fi
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7099 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7100 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7101   cat >>confdefs.h <<_ACEOF
7102 #define HAVE_LIBCRYPTO 1
7103 _ACEOF
7104
7105   LIBS="-lcrypto $LIBS"
7106
7107 else
7108   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7109 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7110    { (exit 1); exit 1; }; }
7111 fi
7112
7113
7114 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7115 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7116 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   ac_check_lib_save_LIBS=$LIBS
7120 LIBS="-lssl  $LIBS"
7121 cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7124
7125 /* Override any gcc2 internal prototype to avoid an error.  */
7126 #ifdef __cplusplus
7127 extern "C"
7128 #endif
7129 /* We use char because int might match the return type of a gcc2
7130    builtin and then its argument prototype would still apply.  */
7131 char SSL_library_init ();
7132 #ifdef F77_DUMMY_MAIN
7133 #  ifdef __cplusplus
7134      extern "C"
7135 #  endif
7136    int F77_DUMMY_MAIN() { return 1; }
7137 #endif
7138 int
7139 main ()
7140 {
7141 SSL_library_init ();
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148   (eval $ac_link) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -s conftest$ac_exeext'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; }; then
7158   ac_cv_lib_ssl_SSL_library_init=yes
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 ac_cv_lib_ssl_SSL_library_init=no
7163 fi
7164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7165 LIBS=$ac_check_lib_save_LIBS
7166 fi
7167 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7168 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7169 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7170   cat >>confdefs.h <<_ACEOF
7171 #define HAVE_LIBSSL 1
7172 _ACEOF
7173
7174   LIBS="-lssl $LIBS"
7175
7176 else
7177   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7178 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7179    { (exit 1); exit 1; }; }
7180 fi
7181
7182 fi
7183
7184 if test "$with_pam" = yes ; then
7185
7186 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7187 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7188 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpam  $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196
7197 /* Override any gcc2 internal prototype to avoid an error.  */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202    builtin and then its argument prototype would still apply.  */
7203 char pam_start ();
7204 #ifdef F77_DUMMY_MAIN
7205 #  ifdef __cplusplus
7206      extern "C"
7207 #  endif
7208    int F77_DUMMY_MAIN() { return 1; }
7209 #endif
7210 int
7211 main ()
7212 {
7213 pam_start ();
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_lib_pam_pam_start=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_pam_pam_start=no
7235 fi
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7240 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7241 if test $ac_cv_lib_pam_pam_start = yes; then
7242   cat >>confdefs.h <<_ACEOF
7243 #define HAVE_LIBPAM 1
7244 _ACEOF
7245
7246   LIBS="-lpam $LIBS"
7247
7248 else
7249   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7250 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7251    { (exit 1); exit 1; }; }
7252 fi
7253
7254 fi
7255
7256
7257 ##
7258 ## Header files
7259 ##
7260 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7262 if test "${ac_cv_header_stdc+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 #include "confdefs.h"
7268 #include <stdlib.h>
7269 #include <stdarg.h>
7270 #include <string.h>
7271 #include <float.h>
7272
7273 _ACEOF
7274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276   ac_status=$?
7277   egrep -v '^ *\+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } >/dev/null; then
7282   if test -s conftest.err; then
7283     ac_cpp_err=$ac_c_preproc_warn_flag
7284   else
7285     ac_cpp_err=
7286   fi
7287 else
7288   ac_cpp_err=yes
7289 fi
7290 if test -z "$ac_cpp_err"; then
7291   ac_cv_header_stdc=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294   cat conftest.$ac_ext >&5
7295   ac_cv_header_stdc=no
7296 fi
7297 rm -f conftest.err conftest.$ac_ext
7298
7299 if test $ac_cv_header_stdc = yes; then
7300   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7301   cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304 #include <string.h>
7305
7306 _ACEOF
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308   egrep "memchr" >/dev/null 2>&1; then
7309   :
7310 else
7311   ac_cv_header_stdc=no
7312 fi
7313 rm -f conftest*
7314
7315 fi
7316
7317 if test $ac_cv_header_stdc = yes; then
7318   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7319   cat >conftest.$ac_ext <<_ACEOF
7320 #line $LINENO "configure"
7321 #include "confdefs.h"
7322 #include <stdlib.h>
7323
7324 _ACEOF
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326   egrep "free" >/dev/null 2>&1; then
7327   :
7328 else
7329   ac_cv_header_stdc=no
7330 fi
7331 rm -f conftest*
7332
7333 fi
7334
7335 if test $ac_cv_header_stdc = yes; then
7336   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7337   if test "$cross_compiling" = yes; then
7338   :
7339 else
7340   cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7343 #include <ctype.h>
7344 #if ((' ' & 0x0FF) == 0x020)
7345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7347 #else
7348 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7349                      || ('j' <= (c) && (c) <= 'r') \
7350                      || ('s' <= (c) && (c) <= 'z'))
7351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7352 #endif
7353
7354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7355 int
7356 main ()
7357 {
7358   int i;
7359   for (i = 0; i < 256; i++)
7360     if (XOR (islower (i), ISLOWER (i))
7361         || toupper (i) != TOUPPER (i))
7362       exit(2);
7363   exit (0);
7364 }
7365 _ACEOF
7366 rm -f conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368   (eval $ac_link) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; }; then
7377   :
7378 else
7379   echo "$as_me: program exited with status $ac_status" >&5
7380 echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 ( exit $ac_status )
7383 ac_cv_header_stdc=no
7384 fi
7385 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7386 fi
7387 fi
7388 fi
7389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7391 if test $ac_cv_header_stdc = yes; then
7392
7393 cat >>confdefs.h <<\_ACEOF
7394 #define STDC_HEADERS 1
7395 _ACEOF
7396
7397 fi
7398
7399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7410                   inttypes.h stdint.h unistd.h
7411 do
7412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7413 echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   cat >conftest.$ac_ext <<_ACEOF
7419 #line $LINENO "configure"
7420 #include "confdefs.h"
7421 $ac_includes_default
7422
7423 #include <$ac_header>
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427   (eval $ac_compile) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -s conftest.$ac_objext'
7432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433   (eval $ac_try) 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }; }; then
7437   eval "$as_ac_Header=yes"
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7442 fi
7443 rm -f conftest.$ac_objext conftest.$ac_ext
7444 fi
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448   cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450 _ACEOF
7451
7452 fi
7453
7454 done
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475 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
7476 do
7477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479   echo "$as_me:$LINENO: checking for $ac_header" >&5
7480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 fi
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7486 else
7487   # Is the header compilable?
7488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7491 #line $LINENO "configure"
7492 #include "confdefs.h"
7493 $ac_includes_default
7494 #include <$ac_header>
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498   (eval $ac_compile) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } &&
7502          { ac_try='test -s conftest.$ac_objext'
7503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504   (eval $ac_try) 2>&5
7505   ac_status=$?
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); }; }; then
7508   ac_header_compiler=yes
7509 else
7510   echo "$as_me: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7512 ac_header_compiler=no
7513 fi
7514 rm -f conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7516 echo "${ECHO_T}$ac_header_compiler" >&6
7517
7518 # Is the header present?
7519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 #line $LINENO "configure"
7523 #include "confdefs.h"
7524 #include <$ac_header>
7525 _ACEOF
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7528   ac_status=$?
7529   egrep -v '^ *\+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } >/dev/null; then
7534   if test -s conftest.err; then
7535     ac_cpp_err=$ac_c_preproc_warn_flag
7536   else
7537     ac_cpp_err=
7538   fi
7539 else
7540   ac_cpp_err=yes
7541 fi
7542 if test -z "$ac_cpp_err"; then
7543   ac_header_preproc=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546   cat conftest.$ac_ext >&5
7547   ac_header_preproc=no
7548 fi
7549 rm -f conftest.err conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7551 echo "${ECHO_T}$ac_header_preproc" >&6
7552
7553 # So?  What about this header?
7554 case $ac_header_compiler:$ac_header_preproc in
7555   yes:no )
7556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7560   no:yes )
7561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7563     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7567 esac
7568 echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   eval "$as_ac_Header=$ac_header_preproc"
7574 fi
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577
7578 fi
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580   cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7582 _ACEOF
7583
7584 fi
7585
7586 done
7587
7588
7589 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7590 # netinet/in.h is included first.
7591
7592 for ac_header in netinet/in.h
7593 do
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596   echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 fi
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 else
7604   # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 #include "confdefs.h"
7610 $ac_includes_default
7611 #include <$ac_header>
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615   (eval $ac_compile) 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } &&
7619          { ac_try='test -s conftest.$ac_objext'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; }; then
7625   ac_header_compiler=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_header_compiler=no
7630 fi
7631 rm -f conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7633 echo "${ECHO_T}$ac_header_compiler" >&6
7634
7635 # Is the header present?
7636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 #include "confdefs.h"
7641 #include <$ac_header>
7642 _ACEOF
7643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7645   ac_status=$?
7646   egrep -v '^ *\+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } >/dev/null; then
7651   if test -s conftest.err; then
7652     ac_cpp_err=$ac_c_preproc_warn_flag
7653   else
7654     ac_cpp_err=
7655   fi
7656 else
7657   ac_cpp_err=yes
7658 fi
7659 if test -z "$ac_cpp_err"; then
7660   ac_header_preproc=yes
7661 else
7662   echo "$as_me: failed program was:" >&5
7663   cat conftest.$ac_ext >&5
7664   ac_header_preproc=no
7665 fi
7666 rm -f conftest.err conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7668 echo "${ECHO_T}$ac_header_preproc" >&6
7669
7670 # So?  What about this header?
7671 case $ac_header_compiler:$ac_header_preproc in
7672   yes:no )
7673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7677   no:yes )
7678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7680     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7684 esac
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   eval "$as_ac_Header=$ac_header_preproc"
7691 fi
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7694
7695 fi
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697   cat >>confdefs.h <<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706 for ac_header in netinet/tcp.h
7707 do
7708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 #include "confdefs.h"
7717 $ac_includes_default
7718 #ifdef HAVE_NETINET_IN_H
7719 #include <netinet/in.h>
7720 #endif
7721
7722
7723 #include <$ac_header>
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727   (eval $ac_compile) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); } &&
7731          { ac_try='test -s conftest.$ac_objext'
7732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   eval "$as_ac_Header=yes"
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7741 eval "$as_ac_Header=no"
7742 fi
7743 rm -f conftest.$ac_objext conftest.$ac_ext
7744 fi
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7748   cat >>confdefs.h <<_ACEOF
7749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7750 _ACEOF
7751
7752 fi
7753
7754 done
7755
7756
7757 if test "$with_readline" = yes; then
7758
7759 for ac_header in readline/readline.h
7760 do
7761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763   echo "$as_me:$LINENO: checking for $ac_header" >&5
7764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 fi
7768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770 else
7771   # Is the header compilable?
7772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 #include "confdefs.h"
7777 $ac_includes_default
7778 #include <$ac_header>
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782   (eval $ac_compile) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   ac_header_compiler=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 ac_header_compiler=no
7797 fi
7798 rm -f conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800 echo "${ECHO_T}$ac_header_compiler" >&6
7801
7802 # Is the header present?
7803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7808 #include <$ac_header>
7809 _ACEOF
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7812   ac_status=$?
7813   egrep -v '^ *\+' conftest.er1 >conftest.err
7814   rm -f conftest.er1
7815   cat conftest.err >&5
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } >/dev/null; then
7818   if test -s conftest.err; then
7819     ac_cpp_err=$ac_c_preproc_warn_flag
7820   else
7821     ac_cpp_err=
7822   fi
7823 else
7824   ac_cpp_err=yes
7825 fi
7826 if test -z "$ac_cpp_err"; then
7827   ac_header_preproc=yes
7828 else
7829   echo "$as_me: failed program was:" >&5
7830   cat conftest.$ac_ext >&5
7831   ac_header_preproc=no
7832 fi
7833 rm -f conftest.err conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 echo "${ECHO_T}$ac_header_preproc" >&6
7836
7837 # So?  What about this header?
7838 case $ac_header_compiler:$ac_header_preproc in
7839   yes:no )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7844   no:yes )
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7847     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7851 esac
7852 echo "$as_me:$LINENO: checking for $ac_header" >&5
7853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   eval "$as_ac_Header=$ac_header_preproc"
7858 fi
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7861
7862 fi
7863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7864   cat >>confdefs.h <<_ACEOF
7865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 _ACEOF
7867
7868 else
7869
7870 for ac_header in readline.h
7871 do
7872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7874   echo "$as_me:$LINENO: checking for $ac_header" >&5
7875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 fi
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7881 else
7882   # Is the header compilable?
7883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 #include "confdefs.h"
7888 $ac_includes_default
7889 #include <$ac_header>
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893   (eval $ac_compile) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); } &&
7897          { ac_try='test -s conftest.$ac_objext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   ac_header_compiler=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 ac_header_compiler=no
7908 fi
7909 rm -f conftest.$ac_objext conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 echo "${ECHO_T}$ac_header_compiler" >&6
7912
7913 # Is the header present?
7914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 #include "confdefs.h"
7919 #include <$ac_header>
7920 _ACEOF
7921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7923   ac_status=$?
7924   egrep -v '^ *\+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } >/dev/null; then
7929   if test -s conftest.err; then
7930     ac_cpp_err=$ac_c_preproc_warn_flag
7931   else
7932     ac_cpp_err=
7933   fi
7934 else
7935   ac_cpp_err=yes
7936 fi
7937 if test -z "$ac_cpp_err"; then
7938   ac_header_preproc=yes
7939 else
7940   echo "$as_me: failed program was:" >&5
7941   cat conftest.$ac_ext >&5
7942   ac_header_preproc=no
7943 fi
7944 rm -f conftest.err conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7946 echo "${ECHO_T}$ac_header_preproc" >&6
7947
7948 # So?  What about this header?
7949 case $ac_header_compiler:$ac_header_preproc in
7950   yes:no )
7951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7955   no:yes )
7956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7958     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7962 esac
7963 echo "$as_me:$LINENO: checking for $ac_header" >&5
7964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   eval "$as_ac_Header=$ac_header_preproc"
7969 fi
7970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972
7973 fi
7974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7975   cat >>confdefs.h <<_ACEOF
7976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7977 _ACEOF
7978
7979 else
7980   { { echo "$as_me:$LINENO: error: readline header not found
7981 Use --without-readline to disable readline support." >&5
7982 echo "$as_me: error: readline header not found
7983 Use --without-readline to disable readline support." >&2;}
7984    { (exit 1); exit 1; }; }
7985 fi
7986
7987 done
7988
7989 fi
7990
7991 done
7992
7993
7994 for ac_header in readline/history.h
7995 do
7996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7998   echo "$as_me:$LINENO: checking for $ac_header" >&5
7999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 fi
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 else
8006   # Is the header compilable?
8007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 #include "confdefs.h"
8012 $ac_includes_default
8013 #include <$ac_header>
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017   (eval $ac_compile) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } &&
8021          { ac_try='test -s conftest.$ac_objext'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   ac_header_compiler=yes
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 ac_header_compiler=no
8032 fi
8033 rm -f conftest.$ac_objext conftest.$ac_ext
8034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8035 echo "${ECHO_T}$ac_header_compiler" >&6
8036
8037 # Is the header present?
8038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 #include "confdefs.h"
8043 #include <$ac_header>
8044 _ACEOF
8045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047   ac_status=$?
8048   egrep -v '^ *\+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } >/dev/null; then
8053   if test -s conftest.err; then
8054     ac_cpp_err=$ac_c_preproc_warn_flag
8055   else
8056     ac_cpp_err=
8057   fi
8058 else
8059   ac_cpp_err=yes
8060 fi
8061 if test -z "$ac_cpp_err"; then
8062   ac_header_preproc=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065   cat conftest.$ac_ext >&5
8066   ac_header_preproc=no
8067 fi
8068 rm -f conftest.err conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8070 echo "${ECHO_T}$ac_header_preproc" >&6
8071
8072 # So?  What about this header?
8073 case $ac_header_compiler:$ac_header_preproc in
8074   yes:no )
8075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8079   no:yes )
8080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8086 esac
8087 echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   eval "$as_ac_Header=$ac_header_preproc"
8093 fi
8094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8096
8097 fi
8098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8099   cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101 _ACEOF
8102
8103 else
8104
8105 for ac_header in history.h
8106 do
8107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109   echo "$as_me:$LINENO: checking for $ac_header" >&5
8110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 fi
8114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116 else
8117   # Is the header compilable?
8118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 #include "confdefs.h"
8123 $ac_includes_default
8124 #include <$ac_header>
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128   (eval $ac_compile) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -s conftest.$ac_objext'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   ac_header_compiler=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8142 ac_header_compiler=no
8143 fi
8144 rm -f conftest.$ac_objext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8146 echo "${ECHO_T}$ac_header_compiler" >&6
8147
8148 # Is the header present?
8149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 #include "confdefs.h"
8154 #include <$ac_header>
8155 _ACEOF
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158   ac_status=$?
8159   egrep -v '^ *\+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } >/dev/null; then
8164   if test -s conftest.err; then
8165     ac_cpp_err=$ac_c_preproc_warn_flag
8166   else
8167     ac_cpp_err=
8168   fi
8169 else
8170   ac_cpp_err=yes
8171 fi
8172 if test -z "$ac_cpp_err"; then
8173   ac_header_preproc=yes
8174 else
8175   echo "$as_me: failed program was:" >&5
8176   cat conftest.$ac_ext >&5
8177   ac_header_preproc=no
8178 fi
8179 rm -f conftest.err conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 echo "${ECHO_T}$ac_header_preproc" >&6
8182
8183 # So?  What about this header?
8184 case $ac_header_compiler:$ac_header_preproc in
8185   yes:no )
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8190   no:yes )
8191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8197 esac
8198 echo "$as_me:$LINENO: checking for $ac_header" >&5
8199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   eval "$as_ac_Header=$ac_header_preproc"
8204 fi
8205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8207
8208 fi
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210   cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212 _ACEOF
8213
8214 else
8215   { { echo "$as_me:$LINENO: error: history header not found
8216 Use --without-readline to disable readline support." >&5
8217 echo "$as_me: error: history header not found
8218 Use --without-readline to disable readline support." >&2;}
8219    { (exit 1); exit 1; }; }
8220 fi
8221
8222 done
8223
8224 fi
8225
8226 done
8227
8228 fi
8229
8230 if test "$with_zlib" = yes; then
8231   if test "${ac_cv_header_zlib_h+set}" = set; then
8232   echo "$as_me:$LINENO: checking for zlib.h" >&5
8233 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_zlib_h+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 fi
8237 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8238 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8239 else
8240   # Is the header compilable?
8241 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8242 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 #include "confdefs.h"
8246 $ac_includes_default
8247 #include <zlib.h>
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251   (eval $ac_compile) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; }; then
8261   ac_header_compiler=yes
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 ac_header_compiler=no
8266 fi
8267 rm -f conftest.$ac_objext conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269 echo "${ECHO_T}$ac_header_compiler" >&6
8270
8271 # Is the header present?
8272 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8273 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 #include "confdefs.h"
8277 #include <zlib.h>
8278 _ACEOF
8279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281   ac_status=$?
8282   egrep -v '^ *\+' conftest.er1 >conftest.err
8283   rm -f conftest.er1
8284   cat conftest.err >&5
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); } >/dev/null; then
8287   if test -s conftest.err; then
8288     ac_cpp_err=$ac_c_preproc_warn_flag
8289   else
8290     ac_cpp_err=
8291   fi
8292 else
8293   ac_cpp_err=yes
8294 fi
8295 if test -z "$ac_cpp_err"; then
8296   ac_header_preproc=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299   cat conftest.$ac_ext >&5
8300   ac_header_preproc=no
8301 fi
8302 rm -f conftest.err conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8304 echo "${ECHO_T}$ac_header_preproc" >&6
8305
8306 # So?  What about this header?
8307 case $ac_header_compiler:$ac_header_preproc in
8308   yes:no )
8309     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8310 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8311     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8312 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8313   no:yes )
8314     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8315 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8316     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8317 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8318     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8319 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8320 esac
8321 echo "$as_me:$LINENO: checking for zlib.h" >&5
8322 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_zlib_h+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   ac_cv_header_zlib_h=$ac_header_preproc
8327 fi
8328 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8329 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8330
8331 fi
8332 if test $ac_cv_header_zlib_h = yes; then
8333   :
8334 else
8335   { { echo "$as_me:$LINENO: error: zlib header not found
8336 Use --without-zlib to disable zlib support." >&5
8337 echo "$as_me: error: zlib header not found
8338 Use --without-zlib to disable zlib support." >&2;}
8339    { (exit 1); exit 1; }; }
8340 fi
8341
8342
8343 fi
8344
8345 if test "$with_krb4" = yes ; then
8346   if test "${ac_cv_header_krb_h+set}" = set; then
8347   echo "$as_me:$LINENO: checking for krb.h" >&5
8348 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8349 if test "${ac_cv_header_krb_h+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 fi
8352 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8353 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8354 else
8355   # Is the header compilable?
8356 echo "$as_me:$LINENO: checking krb.h usability" >&5
8357 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8360 #include "confdefs.h"
8361 $ac_includes_default
8362 #include <krb.h>
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366   (eval $ac_compile) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } &&
8370          { ac_try='test -s conftest.$ac_objext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_header_compiler=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8380 ac_header_compiler=no
8381 fi
8382 rm -f conftest.$ac_objext conftest.$ac_ext
8383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8384 echo "${ECHO_T}$ac_header_compiler" >&6
8385
8386 # Is the header present?
8387 echo "$as_me:$LINENO: checking krb.h presence" >&5
8388 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8391 #include "confdefs.h"
8392 #include <krb.h>
8393 _ACEOF
8394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8396   ac_status=$?
8397   egrep -v '^ *\+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } >/dev/null; then
8402   if test -s conftest.err; then
8403     ac_cpp_err=$ac_c_preproc_warn_flag
8404   else
8405     ac_cpp_err=
8406   fi
8407 else
8408   ac_cpp_err=yes
8409 fi
8410 if test -z "$ac_cpp_err"; then
8411   ac_header_preproc=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414   cat conftest.$ac_ext >&5
8415   ac_header_preproc=no
8416 fi
8417 rm -f conftest.err conftest.$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8419 echo "${ECHO_T}$ac_header_preproc" >&6
8420
8421 # So?  What about this header?
8422 case $ac_header_compiler:$ac_header_preproc in
8423   yes:no )
8424     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8425 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8427 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8428   no:yes )
8429     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8430 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8431     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8432 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8433     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8435 esac
8436 echo "$as_me:$LINENO: checking for krb.h" >&5
8437 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8438 if test "${ac_cv_header_krb_h+set}" = set; then
8439   echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441   ac_cv_header_krb_h=$ac_header_preproc
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8444 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8445
8446 fi
8447 if test $ac_cv_header_krb_h = yes; then
8448   :
8449 else
8450   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8451 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8452    { (exit 1); exit 1; }; }
8453 fi
8454
8455
8456 fi
8457
8458 if test "$with_krb5" = yes ; then
8459   if test "${ac_cv_header_krb5_h+set}" = set; then
8460   echo "$as_me:$LINENO: checking for krb5.h" >&5
8461 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8462 if test "${ac_cv_header_krb5_h+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8466 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8467 else
8468   # Is the header compilable?
8469 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8470 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 #include "confdefs.h"
8474 $ac_includes_default
8475 #include <krb5.h>
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8479   (eval $ac_compile) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -s conftest.$ac_objext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_header_compiler=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8493 ac_header_compiler=no
8494 fi
8495 rm -f conftest.$ac_objext conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8497 echo "${ECHO_T}$ac_header_compiler" >&6
8498
8499 # Is the header present?
8500 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8501 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 #include "confdefs.h"
8505 #include <krb5.h>
8506 _ACEOF
8507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8509   ac_status=$?
8510   egrep -v '^ *\+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } >/dev/null; then
8515   if test -s conftest.err; then
8516     ac_cpp_err=$ac_c_preproc_warn_flag
8517   else
8518     ac_cpp_err=
8519   fi
8520 else
8521   ac_cpp_err=yes
8522 fi
8523 if test -z "$ac_cpp_err"; then
8524   ac_header_preproc=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527   cat conftest.$ac_ext >&5
8528   ac_header_preproc=no
8529 fi
8530 rm -f conftest.err conftest.$ac_ext
8531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8532 echo "${ECHO_T}$ac_header_preproc" >&6
8533
8534 # So?  What about this header?
8535 case $ac_header_compiler:$ac_header_preproc in
8536   yes:no )
8537     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8538 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8541   no:yes )
8542     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8543 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8544     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8545 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8546     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8547 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8548 esac
8549 echo "$as_me:$LINENO: checking for krb5.h" >&5
8550 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8551 if test "${ac_cv_header_krb5_h+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   ac_cv_header_krb5_h=$ac_header_preproc
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8558
8559 fi
8560 if test $ac_cv_header_krb5_h = yes; then
8561   :
8562 else
8563   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8564 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8565    { (exit 1); exit 1; }; }
8566 fi
8567
8568
8569   if test "${ac_cv_header_com_err_h+set}" = set; then
8570   echo "$as_me:$LINENO: checking for com_err.h" >&5
8571 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8572 if test "${ac_cv_header_com_err_h+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8577 else
8578   # Is the header compilable?
8579 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8580 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584 $ac_includes_default
8585 #include <com_err.h>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589   (eval $ac_compile) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -s conftest.$ac_objext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   ac_header_compiler=yes
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 ac_header_compiler=no
8604 fi
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8608
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8611 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8615 #include <com_err.h>
8616 _ACEOF
8617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8619   ac_status=$?
8620   egrep -v '^ *\+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } >/dev/null; then
8625   if test -s conftest.err; then
8626     ac_cpp_err=$ac_c_preproc_warn_flag
8627   else
8628     ac_cpp_err=
8629   fi
8630 else
8631   ac_cpp_err=yes
8632 fi
8633 if test -z "$ac_cpp_err"; then
8634   ac_header_preproc=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637   cat conftest.$ac_ext >&5
8638   ac_header_preproc=no
8639 fi
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8643
8644 # So?  What about this header?
8645 case $ac_header_compiler:$ac_header_preproc in
8646   yes:no )
8647     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8651   no:yes )
8652     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8654     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8656     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8657 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8658 esac
8659 echo "$as_me:$LINENO: checking for com_err.h" >&5
8660 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8661 if test "${ac_cv_header_com_err_h+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   ac_cv_header_com_err_h=$ac_header_preproc
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8668
8669 fi
8670 if test $ac_cv_header_com_err_h = yes; then
8671   :
8672 else
8673   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8674 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8675    { (exit 1); exit 1; }; }
8676 fi
8677
8678
8679 fi
8680
8681 if test "$with_openssl" = yes ; then
8682   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8683   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8684 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8685 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 fi
8688 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8689 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8690 else
8691   # Is the header compilable?
8692 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8693 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 #include "confdefs.h"
8697 $ac_includes_default
8698 #include <openssl/ssl.h>
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702   (eval $ac_compile) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest.$ac_objext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_header_compiler=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 ac_header_compiler=no
8717 fi
8718 rm -f conftest.$ac_objext conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6
8721
8722 # Is the header present?
8723 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8724 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8725 cat >conftest.$ac_ext <<_ACEOF
8726 #line $LINENO "configure"
8727 #include "confdefs.h"
8728 #include <openssl/ssl.h>
8729 _ACEOF
8730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8732   ac_status=$?
8733   egrep -v '^ *\+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } >/dev/null; then
8738   if test -s conftest.err; then
8739     ac_cpp_err=$ac_c_preproc_warn_flag
8740   else
8741     ac_cpp_err=
8742   fi
8743 else
8744   ac_cpp_err=yes
8745 fi
8746 if test -z "$ac_cpp_err"; then
8747   ac_header_preproc=yes
8748 else
8749   echo "$as_me: failed program was:" >&5
8750   cat conftest.$ac_ext >&5
8751   ac_header_preproc=no
8752 fi
8753 rm -f conftest.err conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8755 echo "${ECHO_T}$ac_header_preproc" >&6
8756
8757 # So?  What about this header?
8758 case $ac_header_compiler:$ac_header_preproc in
8759   yes:no )
8760     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8761 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8764   no:yes )
8765     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8766 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8768 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8771 esac
8772 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8778 fi
8779 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8780 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8781
8782 fi
8783 if test $ac_cv_header_openssl_ssl_h = yes; then
8784   :
8785 else
8786   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8787 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8788    { (exit 1); exit 1; }; }
8789 fi
8790
8791
8792   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8793   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8794 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8799 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8800 else
8801   # Is the header compilable?
8802 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8803 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <openssl/err.h>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812   (eval $ac_compile) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } &&
8816          { ac_try='test -s conftest.$ac_objext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_header_compiler=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8827 fi
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8831
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8834 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <openssl/err.h>
8839 _ACEOF
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842   ac_status=$?
8843   egrep -v '^ *\+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } >/dev/null; then
8848   if test -s conftest.err; then
8849     ac_cpp_err=$ac_c_preproc_warn_flag
8850   else
8851     ac_cpp_err=
8852   fi
8853 else
8854   ac_cpp_err=yes
8855 fi
8856 if test -z "$ac_cpp_err"; then
8857   ac_header_preproc=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   ac_header_preproc=no
8862 fi
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8866
8867 # So?  What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8869   yes:no )
8870     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8874   no:yes )
8875     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8881 esac
8882 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8883 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8884 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   ac_cv_header_openssl_err_h=$ac_header_preproc
8888 fi
8889 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8890 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8891
8892 fi
8893 if test $ac_cv_header_openssl_err_h = yes; then
8894   :
8895 else
8896   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8897 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8898    { (exit 1); exit 1; }; }
8899 fi
8900
8901
8902 fi
8903
8904 if test "$with_pam" = yes ; then
8905   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8906   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8907 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8908 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 fi
8911 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8912 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8913 else
8914   # Is the header compilable?
8915 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8916 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8920 $ac_includes_default
8921 #include <security/pam_appl.h>
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925   (eval $ac_compile) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -s conftest.$ac_objext'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; }; then
8935   ac_header_compiler=yes
8936 else
8937   echo "$as_me: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 ac_header_compiler=no
8940 fi
8941 rm -f conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8944
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8947 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 #include "confdefs.h"
8951 #include <security/pam_appl.h>
8952 _ACEOF
8953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955   ac_status=$?
8956   egrep -v '^ *\+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } >/dev/null; then
8961   if test -s conftest.err; then
8962     ac_cpp_err=$ac_c_preproc_warn_flag
8963   else
8964     ac_cpp_err=
8965   fi
8966 else
8967   ac_cpp_err=yes
8968 fi
8969 if test -z "$ac_cpp_err"; then
8970   ac_header_preproc=yes
8971 else
8972   echo "$as_me: failed program was:" >&5
8973   cat conftest.$ac_ext >&5
8974   ac_header_preproc=no
8975 fi
8976 rm -f conftest.err conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8978 echo "${ECHO_T}$ac_header_preproc" >&6
8979
8980 # So?  What about this header?
8981 case $ac_header_compiler:$ac_header_preproc in
8982   yes:no )
8983     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8984 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8985     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8986 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8987   no:yes )
8988     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8989 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8990     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8991 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8994 esac
8995 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8996 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8997 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9004
9005 fi
9006 if test $ac_cv_header_security_pam_appl_h = yes; then
9007   :
9008 else
9009   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9010 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9011    { (exit 1); exit 1; }; }
9012 fi
9013
9014
9015 fi
9016
9017
9018 ##
9019 ## Types, structures, compiler characteristics
9020 ##
9021
9022 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9023 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9024 if test "${ac_cv_c_const+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9030
9031 #ifdef F77_DUMMY_MAIN
9032 #  ifdef __cplusplus
9033      extern "C"
9034 #  endif
9035    int F77_DUMMY_MAIN() { return 1; }
9036 #endif
9037 int
9038 main ()
9039 {
9040 /* FIXME: Include the comments suggested by Paul. */
9041 #ifndef __cplusplus
9042   /* Ultrix mips cc rejects this.  */
9043   typedef int charset[2];
9044   const charset x;
9045   /* SunOS 4.1.1 cc rejects this.  */
9046   char const *const *ccp;
9047   char **p;
9048   /* NEC SVR4.0.2 mips cc rejects this.  */
9049   struct point {int x, y;};
9050   static struct point const zero = {0,0};
9051   /* AIX XL C 1.02.0.0 rejects this.
9052      It does not let you subtract one const X* pointer from another in
9053      an arm of an if-expression whose if-part is not a constant
9054      expression */
9055   const char *g = "string";
9056   ccp = &g + (g ? g-g : 0);
9057   /* HPUX 7.0 cc rejects these. */
9058   ++ccp;
9059   p = (char**) ccp;
9060   ccp = (char const *const *) p;
9061   { /* SCO 3.2v4 cc rejects this.  */
9062     char *t;
9063     char const *s = 0 ? (char *) 0 : (char const *) 0;
9064
9065     *t++ = 0;
9066   }
9067   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9068     int x[] = {25, 17};
9069     const int *foo = &x[0];
9070     ++foo;
9071   }
9072   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9073     typedef const int *iptr;
9074     iptr p = 0;
9075     ++p;
9076   }
9077   { /* AIX XL C 1.02.0.0 rejects this saying
9078        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9079     struct s { int j; const int *ap[3]; };
9080     struct s *b; b->j = 5;
9081   }
9082   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9083     const int foo = 10;
9084   }
9085 #endif
9086
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -s conftest.$ac_objext'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; }; then
9103   ac_cv_c_const=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9107 ac_cv_c_const=no
9108 fi
9109 rm -f conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9112 echo "${ECHO_T}$ac_cv_c_const" >&6
9113 if test $ac_cv_c_const = no; then
9114
9115 cat >>confdefs.h <<\_ACEOF
9116 #define const
9117 _ACEOF
9118
9119 fi
9120
9121 echo "$as_me:$LINENO: checking for inline" >&5
9122 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9123 if test "${ac_cv_c_inline+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   ac_cv_c_inline=no
9127 for ac_kw in inline __inline__ __inline; do
9128   cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9130 #include "confdefs.h"
9131 #ifndef __cplusplus
9132 static $ac_kw int static_foo () {return 0; }
9133 $ac_kw int foo () {return 0; }
9134 #endif
9135
9136 _ACEOF
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139   (eval $ac_compile) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -s conftest.$ac_objext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_cv_c_inline=$ac_kw; break
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9153 fi
9154 rm -f conftest.$ac_objext conftest.$ac_ext
9155 done
9156
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9159 echo "${ECHO_T}$ac_cv_c_inline" >&6
9160 case $ac_cv_c_inline in
9161   inline | yes) ;;
9162   no)
9163 cat >>confdefs.h <<\_ACEOF
9164 #define inline
9165 _ACEOF
9166  ;;
9167   *)  cat >>confdefs.h <<_ACEOF
9168 #define inline $ac_cv_c_inline
9169 _ACEOF
9170  ;;
9171 esac
9172
9173 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9174 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9175 if test "${ac_cv_c_stringize+set}" = set; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   cat >conftest.$ac_ext <<_ACEOF
9179 #line $LINENO "configure"
9180 #include "confdefs.h"
9181 #define x(y) #y
9182
9183 char *s = x(teststring);
9184 _ACEOF
9185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9186   egrep "#teststring" >/dev/null 2>&1; then
9187   ac_cv_c_stringize=no
9188 else
9189   ac_cv_c_stringize=yes
9190 fi
9191 rm -f conftest*
9192
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9195 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9196 if test $ac_cv_c_stringize = yes; then
9197
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_STRINGIZE 1
9200 _ACEOF
9201
9202 fi
9203
9204 echo "$as_me:$LINENO: checking for signed types" >&5
9205 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9206 if test "${pgac_cv_c_signed+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9211 #include "confdefs.h"
9212
9213 #ifdef F77_DUMMY_MAIN
9214 #  ifdef __cplusplus
9215      extern "C"
9216 #  endif
9217    int F77_DUMMY_MAIN() { return 1; }
9218 #endif
9219 int
9220 main ()
9221 {
9222 signed char c; signed short s; signed int i;
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229   (eval $ac_compile) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -s conftest.$ac_objext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239   pgac_cv_c_signed=yes
9240 else
9241   echo "$as_me: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 pgac_cv_c_signed=no
9244 fi
9245 rm -f conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9248 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9249 if test x"$pgac_cv_c_signed" = xno ; then
9250
9251 cat >>confdefs.h <<\_ACEOF
9252 #define signed
9253 _ACEOF
9254
9255 fi
9256 echo "$as_me:$LINENO: checking for working volatile" >&5
9257 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9258 if test "${ac_cv_c_volatile+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   cat >conftest.$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 #include "confdefs.h"
9264
9265 #ifdef F77_DUMMY_MAIN
9266 #  ifdef __cplusplus
9267      extern "C"
9268 #  endif
9269    int F77_DUMMY_MAIN() { return 1; }
9270 #endif
9271 int
9272 main ()
9273 {
9274
9275 volatile int x;
9276 int * volatile y;
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283   (eval $ac_compile) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -s conftest.$ac_objext'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; }; then
9293   ac_cv_c_volatile=yes
9294 else
9295   echo "$as_me: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 ac_cv_c_volatile=no
9298 fi
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9302 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9303 if test $ac_cv_c_volatile = no; then
9304
9305 cat >>confdefs.h <<\_ACEOF
9306 #define volatile
9307 _ACEOF
9308
9309 fi
9310
9311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9313 if test "${ac_cv_struct_tm+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   cat >conftest.$ac_ext <<_ACEOF
9317 #line $LINENO "configure"
9318 #include "confdefs.h"
9319 #include <sys/types.h>
9320 #include <time.h>
9321
9322 #ifdef F77_DUMMY_MAIN
9323 #  ifdef __cplusplus
9324      extern "C"
9325 #  endif
9326    int F77_DUMMY_MAIN() { return 1; }
9327 #endif
9328 int
9329 main ()
9330 {
9331 struct tm *tp; tp->tm_sec;
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338   (eval $ac_compile) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -s conftest.$ac_objext'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; }; then
9348   ac_cv_struct_tm=time.h
9349 else
9350   echo "$as_me: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 ac_cv_struct_tm=sys/time.h
9353 fi
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9357 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9358 if test $ac_cv_struct_tm = sys/time.h; then
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define TM_IN_SYS_TIME 1
9362 _ACEOF
9363
9364 fi
9365
9366 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9367 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9368 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9374 #include <sys/types.h>
9375 #include <$ac_cv_struct_tm>
9376
9377
9378 #ifdef F77_DUMMY_MAIN
9379 #  ifdef __cplusplus
9380      extern "C"
9381 #  endif
9382    int F77_DUMMY_MAIN() { return 1; }
9383 #endif
9384 int
9385 main ()
9386 {
9387 static struct tm ac_aggr;
9388 if (ac_aggr.tm_zone)
9389 return 0;
9390   ;
9391   return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396   (eval $ac_compile) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } &&
9400          { ac_try='test -s conftest.$ac_objext'
9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402   (eval $ac_try) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; }; then
9406   ac_cv_member_struct_tm_tm_zone=yes
9407 else
9408   echo "$as_me: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9410 ac_cv_member_struct_tm_tm_zone=no
9411 fi
9412 rm -f conftest.$ac_objext conftest.$ac_ext
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9415 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9416 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9417
9418 cat >>confdefs.h <<_ACEOF
9419 #define HAVE_STRUCT_TM_TM_ZONE 1
9420 _ACEOF
9421
9422
9423 fi
9424
9425 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9426
9427 cat >>confdefs.h <<\_ACEOF
9428 #define HAVE_TM_ZONE 1
9429 _ACEOF
9430
9431 else
9432   echo "$as_me:$LINENO: checking for tzname" >&5
9433 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9434 if test "${ac_cv_var_tzname+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 #include "confdefs.h"
9440 #include <time.h>
9441 #ifndef tzname /* For SGI.  */
9442 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9443 #endif
9444
9445 #ifdef F77_DUMMY_MAIN
9446 #  ifdef __cplusplus
9447      extern "C"
9448 #  endif
9449    int F77_DUMMY_MAIN() { return 1; }
9450 #endif
9451 int
9452 main ()
9453 {
9454 atoi(*tzname);
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461   (eval $ac_link) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } &&
9465          { ac_try='test -s conftest$ac_exeext'
9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467   (eval $ac_try) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }; }; then
9471   ac_cv_var_tzname=yes
9472 else
9473   echo "$as_me: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 ac_cv_var_tzname=no
9476 fi
9477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9480 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9481   if test $ac_cv_var_tzname = yes; then
9482
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_TZNAME 1
9485 _ACEOF
9486
9487   fi
9488 fi
9489
9490 echo "$as_me:$LINENO: checking for union semun" >&5
9491 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9492 if test "${ac_cv_type_union_semun+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <sys/ipc.h>
9500 #include <sys/sem.h>
9501
9502 #ifdef F77_DUMMY_MAIN
9503 #  ifdef __cplusplus
9504      extern "C"
9505 #  endif
9506    int F77_DUMMY_MAIN() { return 1; }
9507 #endif
9508 int
9509 main ()
9510 {
9511 if ((union semun *) 0)
9512   return 0;
9513 if (sizeof (union semun))
9514   return 0;
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521   (eval $ac_compile) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } &&
9525          { ac_try='test -s conftest.$ac_objext'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   ac_cv_type_union_semun=yes
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 ac_cv_type_union_semun=no
9536 fi
9537 rm -f conftest.$ac_objext conftest.$ac_ext
9538 fi
9539 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9540 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9541 if test $ac_cv_type_union_semun = yes; then
9542
9543 cat >>confdefs.h <<_ACEOF
9544 #define HAVE_UNION_SEMUN 1
9545 _ACEOF
9546
9547
9548 fi
9549
9550 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9551 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9552 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 #include "confdefs.h"
9558 #include <sys/types.h>
9559 #ifdef HAVE_SYS_UN_H
9560 #include <sys/un.h>
9561 #endif
9562
9563
9564 #ifdef F77_DUMMY_MAIN
9565 #  ifdef __cplusplus
9566      extern "C"
9567 #  endif
9568    int F77_DUMMY_MAIN() { return 1; }
9569 #endif
9570 int
9571 main ()
9572 {
9573 if ((struct sockaddr_un *) 0)
9574   return 0;
9575 if (sizeof (struct sockaddr_un))
9576   return 0;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583   (eval $ac_compile) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -s conftest.$ac_objext'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   ac_cv_type_struct_sockaddr_un=yes
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 ac_cv_type_struct_sockaddr_un=no
9598 fi
9599 rm -f conftest.$ac_objext conftest.$ac_ext
9600 fi
9601 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9602 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9603 if test $ac_cv_type_struct_sockaddr_un = yes; then
9604
9605 cat >>confdefs.h <<_ACEOF
9606 #define HAVE_STRUCT_SOCKADDR_UN 1
9607 _ACEOF
9608
9609
9610 fi
9611
9612
9613 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9614 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9615 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9620 #include "confdefs.h"
9621 #include <sys/param.h>
9622 #include <sys/socket.h>
9623 #include <sys/ucred.h>
9624
9625 #ifdef F77_DUMMY_MAIN
9626 #  ifdef __cplusplus
9627      extern "C"
9628 #  endif
9629    int F77_DUMMY_MAIN() { return 1; }
9630 #endif
9631 int
9632 main ()
9633 {
9634 if ((struct cmsgcred *) 0)
9635   return 0;
9636 if (sizeof (struct cmsgcred))
9637   return 0;
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644   (eval $ac_compile) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } &&
9648          { ac_try='test -s conftest.$ac_objext'
9649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650   (eval $ac_try) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }; }; then
9654   ac_cv_type_struct_cmsgcred=yes
9655 else
9656   echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 ac_cv_type_struct_cmsgcred=no
9659 fi
9660 rm -f conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9663 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9664 if test $ac_cv_type_struct_cmsgcred = yes; then
9665
9666 cat >>confdefs.h <<_ACEOF
9667 #define HAVE_STRUCT_CMSGCRED 1
9668 _ACEOF
9669
9670
9671 fi
9672 echo "$as_me:$LINENO: checking for struct fcred" >&5
9673 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9674 if test "${ac_cv_type_struct_fcred+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 fcred *) 0)
9694   return 0;
9695 if (sizeof (struct fcred))
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_fcred=yes
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 ac_cv_type_struct_fcred=no
9718 fi
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9720 fi
9721 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9722 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9723 if test $ac_cv_type_struct_fcred = yes; then
9724
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_STRUCT_FCRED 1
9727 _ACEOF
9728
9729
9730 fi
9731 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9732 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9733 if test "${ac_cv_type_struct_sockcred+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 sockcred *) 0)
9753   return 0;
9754 if (sizeof (struct sockcred))
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_sockcred=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockcred=no
9777 fi
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9782 if test $ac_cv_type_struct_sockcred = yes; then
9783
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKCRED 1
9786 _ACEOF
9787
9788
9789 fi
9790
9791
9792 if test "$with_zlib" = yes; then
9793   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9794   # did not).  While we could work around the lack of z_streamp, it
9795   # seems unwise to encourage people to use such old zlib versions...
9796   echo "$as_me:$LINENO: checking for z_streamp" >&5
9797 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9798 if test "${ac_cv_type_z_streamp+set}" = set; then
9799   echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801   cat >conftest.$ac_ext <<_ACEOF
9802 #line $LINENO "configure"
9803 #include "confdefs.h"
9804 #include <zlib.h>
9805
9806 #ifdef F77_DUMMY_MAIN
9807 #  ifdef __cplusplus
9808      extern "C"
9809 #  endif
9810    int F77_DUMMY_MAIN() { return 1; }
9811 #endif
9812 int
9813 main ()
9814 {
9815 if ((z_streamp *) 0)
9816   return 0;
9817 if (sizeof (z_streamp))
9818   return 0;
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9825   (eval $ac_compile) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -s conftest.$ac_objext'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; }; then
9835   ac_cv_type_z_streamp=yes
9836 else
9837   echo "$as_me: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 ac_cv_type_z_streamp=no
9840 fi
9841 rm -f conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9844 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9845 if test $ac_cv_type_z_streamp = yes; then
9846   :
9847 else
9848   { { echo "$as_me:$LINENO: error: zlib version is too old
9849 Use --without-zlib to disable zlib support." >&5
9850 echo "$as_me: error: zlib version is too old
9851 Use --without-zlib to disable zlib support." >&2;}
9852    { (exit 1); exit 1; }; }
9853 fi
9854
9855 fi
9856
9857 if test "$with_krb5" = yes; then
9858 # Check for differences between MIT and Heimdal (KTH) releases
9859   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9860 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9861 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9867 #include <krb5.h>
9868
9869 #ifdef F77_DUMMY_MAIN
9870 #  ifdef __cplusplus
9871      extern "C"
9872 #  endif
9873    int F77_DUMMY_MAIN() { return 1; }
9874 #endif
9875 int
9876 main ()
9877 {
9878 static krb5_ticket ac_aggr;
9879 if (ac_aggr.enc_part2)
9880 return 0;
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887   (eval $ac_compile) 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); } &&
9891          { ac_try='test -s conftest.$ac_objext'
9892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893   (eval $ac_try) 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_member_krb5_ticket_enc_part2=yes
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 ac_cv_member_krb5_ticket_enc_part2=no
9902 fi
9903 rm -f conftest.$ac_objext conftest.$ac_ext
9904 fi
9905 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9906 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9907 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_KRB5_TICKET_ENC_PART2 1
9911 _ACEOF
9912
9913
9914 else
9915   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9916 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9917 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 #include "confdefs.h"
9923 #include <krb5.h>
9924
9925 #ifdef F77_DUMMY_MAIN
9926 #  ifdef __cplusplus
9927      extern "C"
9928 #  endif
9929    int F77_DUMMY_MAIN() { return 1; }
9930 #endif
9931 int
9932 main ()
9933 {
9934 static krb5_ticket ac_aggr;
9935 if (ac_aggr.client)
9936 return 0;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943   (eval $ac_compile) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -s conftest.$ac_objext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   ac_cv_member_krb5_ticket_client=yes
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_krb5_ticket_client=no
9958 fi
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9962 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9963 if test $ac_cv_member_krb5_ticket_client = yes; then
9964
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_KRB5_TICKET_CLIENT 1
9967 _ACEOF
9968
9969
9970 else
9971   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9972 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9973    { (exit 1); exit 1; }; }
9974 fi
9975
9976 fi
9977
9978   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9979 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9980 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9986 #include <krb5.h>
9987
9988 #ifdef F77_DUMMY_MAIN
9989 #  ifdef __cplusplus
9990      extern "C"
9991 #  endif
9992    int F77_DUMMY_MAIN() { return 1; }
9993 #endif
9994 int
9995 main ()
9996 {
9997 static krb5_error ac_aggr;
9998 if (ac_aggr.text.data)
9999 return 0;
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006   (eval $ac_compile) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -s conftest.$ac_objext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   ac_cv_member_krb5_error_text_data=yes
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 ac_cv_member_krb5_error_text_data=no
10021 fi
10022 rm -f conftest.$ac_objext conftest.$ac_ext
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10025 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10026 if test $ac_cv_member_krb5_error_text_data = yes; then
10027
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10030 _ACEOF
10031
10032
10033 else
10034   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10035 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10036 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 #line $LINENO "configure"
10041 #include "confdefs.h"
10042 #include <krb5.h>
10043
10044 #ifdef F77_DUMMY_MAIN
10045 #  ifdef __cplusplus
10046      extern "C"
10047 #  endif
10048    int F77_DUMMY_MAIN() { return 1; }
10049 #endif
10050 int
10051 main ()
10052 {
10053 static krb5_error ac_aggr;
10054 if (ac_aggr.e_data)
10055 return 0;
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062   (eval $ac_compile) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -s conftest.$ac_objext'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_member_krb5_error_e_data=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 ac_cv_member_krb5_error_e_data=no
10077 fi
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10079 fi
10080 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10081 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10082 if test $ac_cv_member_krb5_error_e_data = yes; then
10083   :
10084 else
10085   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10086 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10087    { (exit 1); exit 1; }; }
10088 fi
10089
10090 fi
10091
10092 fi
10093
10094
10095 ##
10096 ## Functions, global variables
10097 ##
10098 echo "$as_me:$LINENO: checking for int timezone" >&5
10099 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10100 if test "${pgac_cv_var_int_timezone+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10105 #include "confdefs.h"
10106 #include <time.h>
10107 int res;
10108 #ifdef F77_DUMMY_MAIN
10109 #  ifdef __cplusplus
10110      extern "C"
10111 #  endif
10112    int F77_DUMMY_MAIN() { return 1; }
10113 #endif
10114 int
10115 main ()
10116 {
10117 res = timezone / 60;
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124   (eval $ac_link) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -s conftest$ac_exeext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   pgac_cv_var_int_timezone=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 pgac_cv_var_int_timezone=no
10139 fi
10140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10141 fi
10142 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10143 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10144 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10145
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_INT_TIMEZONE
10148 _ACEOF
10149
10150 fi
10151 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10152 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10153  if test "${ac_cv_func_accept_arg1+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156    if test "${ac_cv_func_accept_arg2+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159     if test "${ac_cv_func_accept_arg3+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10163      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10164       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10165        cat >conftest.$ac_ext <<_ACEOF
10166 #line $LINENO "configure"
10167 #include "confdefs.h"
10168 #ifdef HAVE_SYS_TYPES_H
10169 #include <sys/types.h>
10170 #endif
10171 #ifdef HAVE_SYS_SOCKET_H
10172 #include <sys/socket.h>
10173 #endif
10174 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10175 #ifdef F77_DUMMY_MAIN
10176 #  ifdef __cplusplus
10177      extern "C"
10178 #  endif
10179    int F77_DUMMY_MAIN() { return 1; }
10180 #endif
10181 int
10182 main ()
10183 {
10184
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191   (eval $ac_compile) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -s conftest.$ac_objext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_not_found=no; break 3
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10205 ac_not_found=yes
10206 fi
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10208       done
10209      done
10210     done
10211     if test "$ac_not_found" = yes; then
10212       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10213 echo "$as_me: error: could not determine argument types" >&2;}
10214    { (exit 1); exit 1; }; }
10215     fi
10216     if test "$ac_cv_func_accept_arg3" = "void"; then
10217       ac_cv_func_accept_arg3=int
10218     fi
10219
10220 fi
10221
10222 fi
10223
10224 fi
10225  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10226 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10227
10228 cat >>confdefs.h <<_ACEOF
10229 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10230 _ACEOF
10231
10232
10233 cat >>confdefs.h <<_ACEOF
10234 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10235 _ACEOF
10236
10237
10238 cat >>confdefs.h <<_ACEOF
10239 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10240 _ACEOF
10241
10242
10243 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10244 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10245 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248   cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 #include "confdefs.h"
10251 #include <sys/time.h>
10252 #ifdef F77_DUMMY_MAIN
10253 #  ifdef __cplusplus
10254      extern "C"
10255 #  endif
10256    int F77_DUMMY_MAIN() { return 1; }
10257 #endif
10258 int
10259 main ()
10260 {
10261 struct timeval *tp;
10262 struct timezone *tzp;
10263 gettimeofday(tp,tzp);
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270   (eval $ac_compile) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); } &&
10274          { ac_try='test -s conftest.$ac_objext'
10275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276   (eval $ac_try) 2>&5
10277   ac_status=$?
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }; }; then
10280   pgac_cv_func_gettimeofday_1arg=no
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 pgac_cv_func_gettimeofday_1arg=yes
10285 fi
10286 rm -f conftest.$ac_objext conftest.$ac_ext
10287 fi
10288 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10289 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10290 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10291
10292 cat >>confdefs.h <<\_ACEOF
10293 #define GETTIMEOFDAY_1ARG
10294 _ACEOF
10295
10296 fi
10297
10298 # SunOS doesn't handle negative byte comparisons properly with +/- return
10299 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10300 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10301 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   if test "$cross_compiling" = yes; then
10305   pgac_cv_func_memcmp_clean=no
10306 else
10307   cat >conftest.$ac_ext <<_ACEOF
10308 #line $LINENO "configure"
10309 #include "confdefs.h"
10310
10311 main()
10312 {
10313   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10314   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10315 }
10316
10317 _ACEOF
10318 rm -f conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320   (eval $ac_link) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   pgac_cv_func_memcmp_clean=yes
10330 else
10331   echo "$as_me: program exited with status $ac_status" >&5
10332 echo "$as_me: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 ( exit $ac_status )
10335 pgac_cv_func_memcmp_clean=no
10336 fi
10337 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 fi
10340 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10341 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10342 if test $pgac_cv_func_memcmp_clean = no ; then
10343   MEMCMP=memcmp.o
10344 else
10345   MEMCMP=
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10362 do
10363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10366 if eval "test \"\${$as_ac_var+set}\" = set"; then
10367   echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369   cat >conftest.$ac_ext <<_ACEOF
10370 #line $LINENO "configure"
10371 #include "confdefs.h"
10372 /* System header to define __stub macros and hopefully few prototypes,
10373     which can conflict with char $ac_func (); below.  */
10374 #include <assert.h>
10375 /* Override any gcc2 internal prototype to avoid an error.  */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 /* We use char because int might match the return type of a gcc2
10380    builtin and then its argument prototype would still apply.  */
10381 char $ac_func ();
10382 char (*f) ();
10383
10384 #ifdef F77_DUMMY_MAIN
10385 #  ifdef __cplusplus
10386      extern "C"
10387 #  endif
10388    int F77_DUMMY_MAIN() { return 1; }
10389 #endif
10390 int
10391 main ()
10392 {
10393 /* The GNU C library defines this for functions which it implements
10394     to always fail with ENOSYS.  Some functions are actually named
10395     something starting with __ and the normal name is an alias.  */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10397 choke me
10398 #else
10399 f = $ac_func;
10400 #endif
10401
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408   (eval $ac_link) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -s conftest$ac_exeext'
10413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418   eval "$as_ac_var=yes"
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 eval "$as_ac_var=no"
10423 fi
10424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10425 fi
10426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10428 if test `eval echo '${'$as_ac_var'}'` = yes; then
10429   cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10431 _ACEOF
10432
10433 fi
10434 done
10435
10436
10437 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10438 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10439 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 #include "confdefs.h"
10445 #include <unistd.h>
10446
10447 #ifdef F77_DUMMY_MAIN
10448 #  ifdef __cplusplus
10449      extern "C"
10450 #  endif
10451    int F77_DUMMY_MAIN() { return 1; }
10452 #endif
10453 int
10454 main ()
10455 {
10456 #ifndef fdatasync
10457   char *p = (char *) fdatasync;
10458 #endif
10459
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466   (eval $ac_compile) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -s conftest.$ac_objext'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; }; then
10476   ac_cv_have_decl_fdatasync=yes
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ac_cv_have_decl_fdatasync=no
10481 fi
10482 rm -f conftest.$ac_objext conftest.$ac_ext
10483 fi
10484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10485 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10486 if test $ac_cv_have_decl_fdatasync = yes; then
10487
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_FDATASYNC 1
10490 _ACEOF
10491
10492
10493 else
10494   cat >>confdefs.h <<_ACEOF
10495 #define HAVE_DECL_FDATASYNC 0
10496 _ACEOF
10497
10498
10499 fi
10500
10501
10502
10503 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10504 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10505 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #include <machine/vmparam.h>
10512 #include <sys/exec.h>
10513
10514 #ifdef F77_DUMMY_MAIN
10515 #  ifdef __cplusplus
10516      extern "C"
10517 #  endif
10518    int F77_DUMMY_MAIN() { return 1; }
10519 #endif
10520 int
10521 main ()
10522 {
10523 PS_STRINGS->ps_nargvstr = 1;
10524 PS_STRINGS->ps_argvstr = "foo";
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531   (eval $ac_link) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } &&
10535          { ac_try='test -s conftest$ac_exeext'
10536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537   (eval $ac_try) 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; }; then
10541   pgac_cv_var_PS_STRINGS=yes
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10545 pgac_cv_var_PS_STRINGS=no
10546 fi
10547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10548 fi
10549 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10550 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10551 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_PS_STRINGS
10555 _ACEOF
10556
10557 fi
10558
10559
10560 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10561 # is missing.  Yes, there are machines that have only one.  We may
10562 # also decide to use snprintf.c if snprintf() is present but does not
10563 # have working "long long int" support -- see below.
10564
10565 SNPRINTF=''
10566
10567 for ac_func in snprintf
10568 do
10569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10570 echo "$as_me:$LINENO: checking for $ac_func" >&5
10571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_var+set}\" = set"; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 #include "confdefs.h"
10578 /* System header to define __stub macros and hopefully few prototypes,
10579     which can conflict with char $ac_func (); below.  */
10580 #include <assert.h>
10581 /* Override any gcc2 internal prototype to avoid an error.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 /* We use char because int might match the return type of a gcc2
10586    builtin and then its argument prototype would still apply.  */
10587 char $ac_func ();
10588 char (*f) ();
10589
10590 #ifdef F77_DUMMY_MAIN
10591 #  ifdef __cplusplus
10592      extern "C"
10593 #  endif
10594    int F77_DUMMY_MAIN() { return 1; }
10595 #endif
10596 int
10597 main ()
10598 {
10599 /* The GNU C library defines this for functions which it implements
10600     to always fail with ENOSYS.  Some functions are actually named
10601     something starting with __ and the normal name is an alias.  */
10602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10603 choke me
10604 #else
10605 f = $ac_func;
10606 #endif
10607
10608   ;
10609   return 0;
10610 }
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614   (eval $ac_link) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } &&
10618          { ac_try='test -s conftest$ac_exeext'
10619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620   (eval $ac_try) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; }; then
10624   eval "$as_ac_var=yes"
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10628 eval "$as_ac_var=no"
10629 fi
10630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10631 fi
10632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10634 if test `eval echo '${'$as_ac_var'}'` = yes; then
10635   cat >>confdefs.h <<_ACEOF
10636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10637 _ACEOF
10638
10639 else
10640   SNPRINTF='snprintf.o'
10641 fi
10642 done
10643
10644
10645 for ac_func in vsnprintf
10646 do
10647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10648 echo "$as_me:$LINENO: checking for $ac_func" >&5
10649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10650 if eval "test \"\${$as_ac_var+set}\" = set"; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 /* System header to define __stub macros and hopefully few prototypes,
10657     which can conflict with char $ac_func (); below.  */
10658 #include <assert.h>
10659 /* Override any gcc2 internal prototype to avoid an error.  */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 /* We use char because int might match the return type of a gcc2
10664    builtin and then its argument prototype would still apply.  */
10665 char $ac_func ();
10666 char (*f) ();
10667
10668 #ifdef F77_DUMMY_MAIN
10669 #  ifdef __cplusplus
10670      extern "C"
10671 #  endif
10672    int F77_DUMMY_MAIN() { return 1; }
10673 #endif
10674 int
10675 main ()
10676 {
10677 /* The GNU C library defines this for functions which it implements
10678     to always fail with ENOSYS.  Some functions are actually named
10679     something starting with __ and the normal name is an alias.  */
10680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10681 choke me
10682 #else
10683 f = $ac_func;
10684 #endif
10685
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692   (eval $ac_link) 2>&5
10693   ac_status=$?
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } &&
10696          { ac_try='test -s conftest$ac_exeext'
10697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698   (eval $ac_try) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); }; }; then
10702   eval "$as_ac_var=yes"
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 eval "$as_ac_var=no"
10707 fi
10708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10712 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713   cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10715 _ACEOF
10716
10717 else
10718   SNPRINTF='snprintf.o'
10719 fi
10720 done
10721
10722
10723
10724
10725 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10726 # include/c.h will provide declarations.  Note this is a separate test
10727 # from whether the functions exist in the C library --- there are
10728 # systems that have the functions but don't bother to declare them :-(
10729
10730 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10731 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10732 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10737 #include "confdefs.h"
10738 $ac_includes_default
10739 #ifdef F77_DUMMY_MAIN
10740 #  ifdef __cplusplus
10741      extern "C"
10742 #  endif
10743    int F77_DUMMY_MAIN() { return 1; }
10744 #endif
10745 int
10746 main ()
10747 {
10748 #ifndef snprintf
10749   char *p = (char *) snprintf;
10750 #endif
10751
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758   (eval $ac_compile) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest.$ac_objext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_cv_have_decl_snprintf=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 ac_cv_have_decl_snprintf=no
10773 fi
10774 rm -f conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10777 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10778 if test $ac_cv_have_decl_snprintf = yes; then
10779
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE_DECL_SNPRINTF 1
10782 _ACEOF
10783
10784
10785 else
10786   cat >>confdefs.h <<_ACEOF
10787 #define HAVE_DECL_SNPRINTF 0
10788 _ACEOF
10789
10790
10791 fi
10792 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10793 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10794 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10800 $ac_includes_default
10801 #ifdef F77_DUMMY_MAIN
10802 #  ifdef __cplusplus
10803      extern "C"
10804 #  endif
10805    int F77_DUMMY_MAIN() { return 1; }
10806 #endif
10807 int
10808 main ()
10809 {
10810 #ifndef vsnprintf
10811   char *p = (char *) vsnprintf;
10812 #endif
10813
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 rm -f conftest.$ac_objext
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820   (eval $ac_compile) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); } &&
10824          { ac_try='test -s conftest.$ac_objext'
10825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826   (eval $ac_try) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }; }; then
10830   ac_cv_have_decl_vsnprintf=yes
10831 else
10832   echo "$as_me: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 ac_cv_have_decl_vsnprintf=no
10835 fi
10836 rm -f conftest.$ac_objext conftest.$ac_ext
10837 fi
10838 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10839 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10840 if test $ac_cv_have_decl_vsnprintf = yes; then
10841
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DECL_VSNPRINTF 1
10844 _ACEOF
10845
10846
10847 else
10848   cat >>confdefs.h <<_ACEOF
10849 #define HAVE_DECL_VSNPRINTF 0
10850 _ACEOF
10851
10852
10853 fi
10854
10855
10856
10857
10858 # do this one the hard way in case isinf() is a macro
10859 echo "$as_me:$LINENO: checking for isinf" >&5
10860 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10861 if test "${ac_cv_func_isinf+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 #include <math.h>
10868
10869 #ifdef F77_DUMMY_MAIN
10870 #  ifdef __cplusplus
10871      extern "C"
10872 #  endif
10873    int F77_DUMMY_MAIN() { return 1; }
10874 #endif
10875 int
10876 main ()
10877 {
10878 double x = 0.0; int res = isinf(x);
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885   (eval $ac_link) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -s conftest$ac_exeext'
10890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891   (eval $ac_try) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; }; then
10895   ac_cv_func_isinf=yes
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 ac_cv_func_isinf=no
10900 fi
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10902 fi
10903 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10904 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10905
10906 if test $ac_cv_func_isinf = yes ; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_ISINF 1
10910 _ACEOF
10911
10912   ISINF=
10913 else
10914   ISINF='isinf.o'
10915   # Look for a way to implement a substitute for isinf()
10916
10917
10918
10919
10920 for ac_func in fpclass fp_class fp_class_d class
10921 do
10922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 echo "$as_me:$LINENO: checking for $ac_func" >&5
10924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10925 if eval "test \"\${$as_ac_var+set}\" = set"; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 #include "confdefs.h"
10931 /* System header to define __stub macros and hopefully few prototypes,
10932     which can conflict with char $ac_func (); below.  */
10933 #include <assert.h>
10934 /* Override any gcc2 internal prototype to avoid an error.  */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 /* We use char because int might match the return type of a gcc2
10939    builtin and then its argument prototype would still apply.  */
10940 char $ac_func ();
10941 char (*f) ();
10942
10943 #ifdef F77_DUMMY_MAIN
10944 #  ifdef __cplusplus
10945      extern "C"
10946 #  endif
10947    int F77_DUMMY_MAIN() { return 1; }
10948 #endif
10949 int
10950 main ()
10951 {
10952 /* The GNU C library defines this for functions which it implements
10953     to always fail with ENOSYS.  Some functions are actually named
10954     something starting with __ and the normal name is an alias.  */
10955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10956 choke me
10957 #else
10958 f = $ac_func;
10959 #endif
10960
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967   (eval $ac_link) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } &&
10971          { ac_try='test -s conftest$ac_exeext'
10972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973   (eval $ac_try) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977   eval "$as_ac_var=yes"
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 eval "$as_ac_var=no"
10982 fi
10983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10984 fi
10985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10987 if test `eval echo '${'$as_ac_var'}'` = yes; then
10988   cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990 _ACEOF
10991  break
10992 fi
10993 done
10994
10995 fi
10996
10997
10998
10999
11000 for ac_func in getrusage
11001 do
11002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003 echo "$as_me:$LINENO: checking for $ac_func" >&5
11004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11005 if eval "test \"\${$as_ac_var+set}\" = set"; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011 /* System header to define __stub macros and hopefully few prototypes,
11012     which can conflict with char $ac_func (); below.  */
11013 #include <assert.h>
11014 /* Override any gcc2 internal prototype to avoid an error.  */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 /* We use char because int might match the return type of a gcc2
11019    builtin and then its argument prototype would still apply.  */
11020 char $ac_func ();
11021 char (*f) ();
11022
11023 #ifdef F77_DUMMY_MAIN
11024 #  ifdef __cplusplus
11025      extern "C"
11026 #  endif
11027    int F77_DUMMY_MAIN() { return 1; }
11028 #endif
11029 int
11030 main ()
11031 {
11032 /* The GNU C library defines this for functions which it implements
11033     to always fail with ENOSYS.  Some functions are actually named
11034     something starting with __ and the normal name is an alias.  */
11035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11036 choke me
11037 #else
11038 f = $ac_func;
11039 #endif
11040
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } &&
11051          { ac_try='test -s conftest$ac_exeext'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   eval "$as_ac_var=yes"
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11061 eval "$as_ac_var=no"
11062 fi
11063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11064 fi
11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11067 if test `eval echo '${'$as_ac_var'}'` = yes; then
11068   cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 _ACEOF
11071
11072 else
11073   GETRUSAGE='getrusage.o'
11074 fi
11075 done
11076
11077
11078
11079 for ac_func in srandom
11080 do
11081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11082 echo "$as_me:$LINENO: checking for $ac_func" >&5
11083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_var+set}\" = set"; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091     which can conflict with char $ac_func (); below.  */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error.  */
11094 #ifdef __cplusplus
11095 extern "C"
11096 #endif
11097 /* We use char because int might match the return type of a gcc2
11098    builtin and then its argument prototype would still apply.  */
11099 char $ac_func ();
11100 char (*f) ();
11101
11102 #ifdef F77_DUMMY_MAIN
11103 #  ifdef __cplusplus
11104      extern "C"
11105 #  endif
11106    int F77_DUMMY_MAIN() { return 1; }
11107 #endif
11108 int
11109 main ()
11110 {
11111 /* The GNU C library defines this for functions which it implements
11112     to always fail with ENOSYS.  Some functions are actually named
11113     something starting with __ and the normal name is an alias.  */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115 choke me
11116 #else
11117 f = $ac_func;
11118 #endif
11119
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126   (eval $ac_link) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -s conftest$ac_exeext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   eval "$as_ac_var=yes"
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 eval "$as_ac_var=no"
11141 fi
11142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11143 fi
11144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11146 if test `eval echo '${'$as_ac_var'}'` = yes; then
11147   cat >>confdefs.h <<_ACEOF
11148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11149 _ACEOF
11150
11151 else
11152   SRANDOM='srandom.o'
11153 fi
11154 done
11155
11156
11157
11158 for ac_func in gethostname
11159 do
11160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11161 echo "$as_me:$LINENO: checking for $ac_func" >&5
11162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11163 if eval "test \"\${$as_ac_var+set}\" = set"; then
11164   echo $ECHO_N "(cached) $ECHO_C" >&6
11165 else
11166   cat >conftest.$ac_ext <<_ACEOF
11167 #line $LINENO "configure"
11168 #include "confdefs.h"
11169 /* System header to define __stub macros and hopefully few prototypes,
11170     which can conflict with char $ac_func (); below.  */
11171 #include <assert.h>
11172 /* Override any gcc2 internal prototype to avoid an error.  */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 /* We use char because int might match the return type of a gcc2
11177    builtin and then its argument prototype would still apply.  */
11178 char $ac_func ();
11179 char (*f) ();
11180
11181 #ifdef F77_DUMMY_MAIN
11182 #  ifdef __cplusplus
11183      extern "C"
11184 #  endif
11185    int F77_DUMMY_MAIN() { return 1; }
11186 #endif
11187 int
11188 main ()
11189 {
11190 /* The GNU C library defines this for functions which it implements
11191     to always fail with ENOSYS.  Some functions are actually named
11192     something starting with __ and the normal name is an alias.  */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 choke me
11195 #else
11196 f = $ac_func;
11197 #endif
11198
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 rm -f conftest.$ac_objext conftest$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205   (eval $ac_link) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -s conftest$ac_exeext'
11210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211   (eval $ac_try) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; }; then
11215   eval "$as_ac_var=yes"
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 eval "$as_ac_var=no"
11220 fi
11221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11225 if test `eval echo '${'$as_ac_var'}'` = yes; then
11226   cat >>confdefs.h <<_ACEOF
11227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11228 _ACEOF
11229
11230 else
11231   GETHOSTNAME='gethostname.o'
11232 fi
11233 done
11234
11235
11236
11237 for ac_func in random
11238 do
11239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11240 echo "$as_me:$LINENO: checking for $ac_func" >&5
11241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_var+set}\" = set"; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   cat >conftest.$ac_ext <<_ACEOF
11246 #line $LINENO "configure"
11247 #include "confdefs.h"
11248 /* System header to define __stub macros and hopefully few prototypes,
11249     which can conflict with char $ac_func (); below.  */
11250 #include <assert.h>
11251 /* Override any gcc2 internal prototype to avoid an error.  */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 /* We use char because int might match the return type of a gcc2
11256    builtin and then its argument prototype would still apply.  */
11257 char $ac_func ();
11258 char (*f) ();
11259
11260 #ifdef F77_DUMMY_MAIN
11261 #  ifdef __cplusplus
11262      extern "C"
11263 #  endif
11264    int F77_DUMMY_MAIN() { return 1; }
11265 #endif
11266 int
11267 main ()
11268 {
11269 /* The GNU C library defines this for functions which it implements
11270     to always fail with ENOSYS.  Some functions are actually named
11271     something starting with __ and the normal name is an alias.  */
11272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11273 choke me
11274 #else
11275 f = $ac_func;
11276 #endif
11277
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284   (eval $ac_link) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -s conftest$ac_exeext'
11289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290   (eval $ac_try) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   eval "$as_ac_var=yes"
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 eval "$as_ac_var=no"
11299 fi
11300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11301 fi
11302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11304 if test `eval echo '${'$as_ac_var'}'` = yes; then
11305   cat >>confdefs.h <<_ACEOF
11306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 _ACEOF
11308
11309 else
11310   MISSING_RANDOM='random.o'
11311 fi
11312 done
11313
11314
11315
11316 for ac_func in inet_aton
11317 do
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328     which can conflict with char $ac_func (); below.  */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error.  */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 /* We use char because int might match the return type of a gcc2
11335    builtin and then its argument prototype would still apply.  */
11336 char $ac_func ();
11337 char (*f) ();
11338
11339 #ifdef F77_DUMMY_MAIN
11340 #  ifdef __cplusplus
11341      extern "C"
11342 #  endif
11343    int F77_DUMMY_MAIN() { return 1; }
11344 #endif
11345 int
11346 main ()
11347 {
11348 /* The GNU C library defines this for functions which it implements
11349     to always fail with ENOSYS.  Some functions are actually named
11350     something starting with __ and the normal name is an alias.  */
11351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11352 choke me
11353 #else
11354 f = $ac_func;
11355 #endif
11356
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363   (eval $ac_link) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); } &&
11367          { ac_try='test -s conftest$ac_exeext'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; }; then
11373   eval "$as_ac_var=yes"
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 eval "$as_ac_var=no"
11378 fi
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11380 fi
11381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11383 if test `eval echo '${'$as_ac_var'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11386 _ACEOF
11387
11388 else
11389   INET_ATON='inet_aton.o'
11390 fi
11391 done
11392
11393
11394
11395 for ac_func in strerror
11396 do
11397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398 echo "$as_me:$LINENO: checking for $ac_func" >&5
11399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11400 if eval "test \"\${$as_ac_var+set}\" = set"; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   cat >conftest.$ac_ext <<_ACEOF
11404 #line $LINENO "configure"
11405 #include "confdefs.h"
11406 /* System header to define __stub macros and hopefully few prototypes,
11407     which can conflict with char $ac_func (); below.  */
11408 #include <assert.h>
11409 /* Override any gcc2 internal prototype to avoid an error.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 /* We use char because int might match the return type of a gcc2
11414    builtin and then its argument prototype would still apply.  */
11415 char $ac_func ();
11416 char (*f) ();
11417
11418 #ifdef F77_DUMMY_MAIN
11419 #  ifdef __cplusplus
11420      extern "C"
11421 #  endif
11422    int F77_DUMMY_MAIN() { return 1; }
11423 #endif
11424 int
11425 main ()
11426 {
11427 /* The GNU C library defines this for functions which it implements
11428     to always fail with ENOSYS.  Some functions are actually named
11429     something starting with __ and the normal name is an alias.  */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11431 choke me
11432 #else
11433 f = $ac_func;
11434 #endif
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442   (eval $ac_link) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -s conftest$ac_exeext'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }; then
11452   eval "$as_ac_var=yes"
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11457 fi
11458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 fi
11460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463   cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11465 _ACEOF
11466
11467 else
11468   STRERROR='strerror.o'
11469 fi
11470 done
11471
11472
11473
11474 for ac_func in strdup
11475 do
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11479 if eval "test \"\${$as_ac_var+set}\" = set"; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11485 /* System header to define __stub macros and hopefully few prototypes,
11486     which can conflict with char $ac_func (); below.  */
11487 #include <assert.h>
11488 /* Override any gcc2 internal prototype to avoid an error.  */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 /* We use char because int might match the return type of a gcc2
11493    builtin and then its argument prototype would still apply.  */
11494 char $ac_func ();
11495 char (*f) ();
11496
11497 #ifdef F77_DUMMY_MAIN
11498 #  ifdef __cplusplus
11499      extern "C"
11500 #  endif
11501    int F77_DUMMY_MAIN() { return 1; }
11502 #endif
11503 int
11504 main ()
11505 {
11506 /* The GNU C library defines this for functions which it implements
11507     to always fail with ENOSYS.  Some functions are actually named
11508     something starting with __ and the normal name is an alias.  */
11509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11510 choke me
11511 #else
11512 f = $ac_func;
11513 #endif
11514
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521   (eval $ac_link) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } &&
11525          { ac_try='test -s conftest$ac_exeext'
11526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527   (eval $ac_try) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }; then
11531   eval "$as_ac_var=yes"
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 eval "$as_ac_var=no"
11536 fi
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11541 if test `eval echo '${'$as_ac_var'}'` = yes; then
11542   cat >>confdefs.h <<_ACEOF
11543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 _ACEOF
11545
11546 else
11547   STRDUP='../../utils/strdup.o'
11548 fi
11549 done
11550
11551
11552
11553 for ac_func in strtol
11554 do
11555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11556 echo "$as_me:$LINENO: checking for $ac_func" >&5
11557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_var+set}\" = set"; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565     which can conflict with char $ac_func (); below.  */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 /* We use char because int might match the return type of a gcc2
11572    builtin and then its argument prototype would still apply.  */
11573 char $ac_func ();
11574 char (*f) ();
11575
11576 #ifdef F77_DUMMY_MAIN
11577 #  ifdef __cplusplus
11578      extern "C"
11579 #  endif
11580    int F77_DUMMY_MAIN() { return 1; }
11581 #endif
11582 int
11583 main ()
11584 {
11585 /* The GNU C library defines this for functions which it implements
11586     to always fail with ENOSYS.  Some functions are actually named
11587     something starting with __ and the normal name is an alias.  */
11588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11589 choke me
11590 #else
11591 f = $ac_func;
11592 #endif
11593
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600   (eval $ac_link) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -s conftest$ac_exeext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   eval "$as_ac_var=yes"
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 eval "$as_ac_var=no"
11615 fi
11616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11617 fi
11618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11620 if test `eval echo '${'$as_ac_var'}'` = yes; then
11621   cat >>confdefs.h <<_ACEOF
11622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 _ACEOF
11624
11625 else
11626   STRTOL='strtol.o'
11627 fi
11628 done
11629
11630
11631
11632 for ac_func in strtoul
11633 do
11634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11635 echo "$as_me:$LINENO: checking for $ac_func" >&5
11636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11637 if eval "test \"\${$as_ac_var+set}\" = set"; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 #include "confdefs.h"
11643 /* System header to define __stub macros and hopefully few prototypes,
11644     which can conflict with char $ac_func (); below.  */
11645 #include <assert.h>
11646 /* Override any gcc2 internal prototype to avoid an error.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 /* We use char because int might match the return type of a gcc2
11651    builtin and then its argument prototype would still apply.  */
11652 char $ac_func ();
11653 char (*f) ();
11654
11655 #ifdef F77_DUMMY_MAIN
11656 #  ifdef __cplusplus
11657      extern "C"
11658 #  endif
11659    int F77_DUMMY_MAIN() { return 1; }
11660 #endif
11661 int
11662 main ()
11663 {
11664 /* The GNU C library defines this for functions which it implements
11665     to always fail with ENOSYS.  Some functions are actually named
11666     something starting with __ and the normal name is an alias.  */
11667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668 choke me
11669 #else
11670 f = $ac_func;
11671 #endif
11672
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679   (eval $ac_link) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } &&
11683          { ac_try='test -s conftest$ac_exeext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   eval "$as_ac_var=yes"
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11694 fi
11695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 fi
11697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700   cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702 _ACEOF
11703
11704 else
11705   STRTOUL='strtoul.o'
11706 fi
11707 done
11708
11709
11710
11711 for ac_func in strcasecmp
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11716 if eval "test \"\${$as_ac_var+set}\" = set"; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11721 #include "confdefs.h"
11722 /* System header to define __stub macros and hopefully few prototypes,
11723     which can conflict with char $ac_func (); below.  */
11724 #include <assert.h>
11725 /* Override any gcc2 internal prototype to avoid an error.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730    builtin and then its argument prototype would still apply.  */
11731 char $ac_func ();
11732 char (*f) ();
11733
11734 #ifdef F77_DUMMY_MAIN
11735 #  ifdef __cplusplus
11736      extern "C"
11737 #  endif
11738    int F77_DUMMY_MAIN() { return 1; }
11739 #endif
11740 int
11741 main ()
11742 {
11743 /* The GNU C library defines this for functions which it implements
11744     to always fail with ENOSYS.  Some functions are actually named
11745     something starting with __ and the normal name is an alias.  */
11746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11747 choke me
11748 #else
11749 f = $ac_func;
11750 #endif
11751
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758   (eval $ac_link) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   eval "$as_ac_var=yes"
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 eval "$as_ac_var=no"
11773 fi
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11775 fi
11776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779   cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781 _ACEOF
11782
11783 else
11784   STRCASECMP='strcasecmp.o'
11785 fi
11786 done
11787
11788
11789
11790 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11791 # this hackery with HPUXMATHLIB allows us to cope.
11792 HPUXMATHLIB=""
11793 case $host_cpu in
11794   hppa1.1)
11795         if [ -r /lib/pa1.1/libm.a ] ; then
11796             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11797         fi ;;
11798 esac
11799
11800
11801
11802 for ac_func in rint
11803 do
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11807 if eval "test \"\${$as_ac_var+set}\" = set"; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 #line $LINENO "configure"
11812 #include "confdefs.h"
11813 /* System header to define __stub macros and hopefully few prototypes,
11814     which can conflict with char $ac_func (); below.  */
11815 #include <assert.h>
11816 /* Override any gcc2 internal prototype to avoid an error.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 /* We use char because int might match the return type of a gcc2
11821    builtin and then its argument prototype would still apply.  */
11822 char $ac_func ();
11823 char (*f) ();
11824
11825 #ifdef F77_DUMMY_MAIN
11826 #  ifdef __cplusplus
11827      extern "C"
11828 #  endif
11829    int F77_DUMMY_MAIN() { return 1; }
11830 #endif
11831 int
11832 main ()
11833 {
11834 /* The GNU C library defines this for functions which it implements
11835     to always fail with ENOSYS.  Some functions are actually named
11836     something starting with __ and the normal name is an alias.  */
11837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11838 choke me
11839 #else
11840 f = $ac_func;
11841 #endif
11842
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849   (eval $ac_link) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -s conftest$ac_exeext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   eval "$as_ac_var=yes"
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 eval "$as_ac_var=no"
11864 fi
11865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11866 fi
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11869 if test `eval echo '${'$as_ac_var'}'` = yes; then
11870   cat >>confdefs.h <<_ACEOF
11871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11872 _ACEOF
11873
11874 else
11875   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11876 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11877 if test "${ac_cv_lib_m_rint+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lm $HPUXMATHLIB $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11885
11886 /* Override any gcc2 internal prototype to avoid an error.  */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 /* We use char because int might match the return type of a gcc2
11891    builtin and then its argument prototype would still apply.  */
11892 char rint ();
11893 #ifdef F77_DUMMY_MAIN
11894 #  ifdef __cplusplus
11895      extern "C"
11896 #  endif
11897    int F77_DUMMY_MAIN() { return 1; }
11898 #endif
11899 int
11900 main ()
11901 {
11902 rint ();
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909   (eval $ac_link) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -s conftest$ac_exeext'
11914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915   (eval $ac_try) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; }; then
11919   ac_cv_lib_m_rint=yes
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 ac_cv_lib_m_rint=no
11924 fi
11925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11929 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11930 if test $ac_cv_lib_m_rint = yes; then
11931   cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_RINT 1
11933 _ACEOF
11934
11935 fi
11936
11937 fi
11938 done
11939
11940
11941
11942 if test "$with_readline" = yes; then
11943   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11944 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11946 #line $LINENO "configure"
11947 #include "confdefs.h"
11948 #include <stdio.h>
11949 #ifdef HAVE_READLINE_READLINE_H
11950 # include <readline/readline.h>
11951 #elif defined(HAVE_READLINE_H)
11952 # include <readline.h>
11953 #endif
11954
11955 #ifdef F77_DUMMY_MAIN
11956 #  ifdef __cplusplus
11957      extern "C"
11958 #  endif
11959    int F77_DUMMY_MAIN() { return 1; }
11960 #endif
11961 int
11962 main ()
11963 {
11964 rl_completion_append_character = 'x';
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971   (eval $ac_link) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } &&
11975          { ac_try='test -s conftest$ac_exeext'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; }; then
11981   echo "$as_me:$LINENO: result: yes" >&5
11982 echo "${ECHO_T}yes" >&6
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11986 _ACEOF
11987
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 echo "$as_me:$LINENO: result: no" >&5
11992 echo "${ECHO_T}no" >&6
11993 fi
11994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11995
11996
11997 for ac_func in rl_completion_matches rl_filename_completion_function
11998 do
11999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12000 echo "$as_me:$LINENO: checking for $ac_func" >&5
12001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12002 if eval "test \"\${$as_ac_var+set}\" = set"; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 #include "confdefs.h"
12008 /* System header to define __stub macros and hopefully few prototypes,
12009     which can conflict with char $ac_func (); below.  */
12010 #include <assert.h>
12011 /* Override any gcc2 internal prototype to avoid an error.  */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 /* We use char because int might match the return type of a gcc2
12016    builtin and then its argument prototype would still apply.  */
12017 char $ac_func ();
12018 char (*f) ();
12019
12020 #ifdef F77_DUMMY_MAIN
12021 #  ifdef __cplusplus
12022      extern "C"
12023 #  endif
12024    int F77_DUMMY_MAIN() { return 1; }
12025 #endif
12026 int
12027 main ()
12028 {
12029 /* The GNU C library defines this for functions which it implements
12030     to always fail with ENOSYS.  Some functions are actually named
12031     something starting with __ and the normal name is an alias.  */
12032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12033 choke me
12034 #else
12035 f = $ac_func;
12036 #endif
12037
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044   (eval $ac_link) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   eval "$as_ac_var=yes"
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12059 fi
12060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12064 if test `eval echo '${'$as_ac_var'}'` = yes; then
12065   cat >>confdefs.h <<_ACEOF
12066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12067 _ACEOF
12068
12069 fi
12070 done
12071
12072 fi
12073
12074
12075 echo "$as_me:$LINENO: checking for finite" >&5
12076 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 #include "confdefs.h"
12080 #include <math.h>
12081 #ifdef F77_DUMMY_MAIN
12082 #  ifdef __cplusplus
12083      extern "C"
12084 #  endif
12085    int F77_DUMMY_MAIN() { return 1; }
12086 #endif
12087 int
12088 main ()
12089 {
12090 int dummy=finite(1.0);
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_FINITE 1
12110 _ACEOF
12111
12112 echo "$as_me:$LINENO: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12119 fi
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12121
12122 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12123 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 #include "confdefs.h"
12127 #include <setjmp.h>
12128 #ifdef F77_DUMMY_MAIN
12129 #  ifdef __cplusplus
12130      extern "C"
12131 #  endif
12132    int F77_DUMMY_MAIN() { return 1; }
12133 #endif
12134 int
12135 main ()
12136 {
12137 sigjmp_buf x; sigsetjmp(x, 1);
12138   ;
12139   return 0;
12140 }
12141 _ACEOF
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12144   (eval $ac_link) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } &&
12148          { ac_try='test -s conftest$ac_exeext'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; }; then
12154
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_SIGSETJMP 1
12157 _ACEOF
12158
12159 echo "$as_me:$LINENO: result: yes" >&5
12160 echo "${ECHO_T}yes" >&6
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 cat conftest.$ac_ext >&5
12164 echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12166 fi
12167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12168
12169 echo "$as_me:$LINENO: checking for syslog" >&5
12170 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12171 if test "${ac_cv_func_syslog+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   cat >conftest.$ac_ext <<_ACEOF
12175 #line $LINENO "configure"
12176 #include "confdefs.h"
12177 /* System header to define __stub macros and hopefully few prototypes,
12178     which can conflict with char syslog (); below.  */
12179 #include <assert.h>
12180 /* Override any gcc2 internal prototype to avoid an error.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185    builtin and then its argument prototype would still apply.  */
12186 char syslog ();
12187 char (*f) ();
12188
12189 #ifdef F77_DUMMY_MAIN
12190 #  ifdef __cplusplus
12191      extern "C"
12192 #  endif
12193    int F77_DUMMY_MAIN() { return 1; }
12194 #endif
12195 int
12196 main ()
12197 {
12198 /* The GNU C library defines this for functions which it implements
12199     to always fail with ENOSYS.  Some functions are actually named
12200     something starting with __ and the normal name is an alias.  */
12201 #if defined (__stub_syslog) || defined (__stub___syslog)
12202 choke me
12203 #else
12204 f = syslog;
12205 #endif
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213   (eval $ac_link) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_func_syslog=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 ac_cv_func_syslog=no
12228 fi
12229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12230 fi
12231 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12232 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12233 if test $ac_cv_func_syslog = yes; then
12234   if test "${ac_cv_header_syslog_h+set}" = set; then
12235   echo "$as_me:$LINENO: checking for syslog.h" >&5
12236 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12237 if test "${ac_cv_header_syslog_h+set}" = set; then
12238   echo $ECHO_N "(cached) $ECHO_C" >&6
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12241 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12242 else
12243   # Is the header compilable?
12244 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12245 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line $LINENO "configure"
12248 #include "confdefs.h"
12249 $ac_includes_default
12250 #include <syslog.h>
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254   (eval $ac_compile) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_header_compiler=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 ac_header_compiler=no
12269 fi
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12272 echo "${ECHO_T}$ac_header_compiler" >&6
12273
12274 # Is the header present?
12275 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12276 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 #include "confdefs.h"
12280 #include <syslog.h>
12281 _ACEOF
12282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12284   ac_status=$?
12285   egrep -v '^ *\+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } >/dev/null; then
12290   if test -s conftest.err; then
12291     ac_cpp_err=$ac_c_preproc_warn_flag
12292   else
12293     ac_cpp_err=
12294   fi
12295 else
12296   ac_cpp_err=yes
12297 fi
12298 if test -z "$ac_cpp_err"; then
12299   ac_header_preproc=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302   cat conftest.$ac_ext >&5
12303   ac_header_preproc=no
12304 fi
12305 rm -f conftest.err conftest.$ac_ext
12306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12307 echo "${ECHO_T}$ac_header_preproc" >&6
12308
12309 # So?  What about this header?
12310 case $ac_header_compiler:$ac_header_preproc in
12311   yes:no )
12312     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12313 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12314     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12315 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12316   no:yes )
12317     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12318 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12319     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12320 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12321     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12322 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12323 esac
12324 echo "$as_me:$LINENO: checking for syslog.h" >&5
12325 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12326 if test "${ac_cv_header_syslog_h+set}" = set; then
12327   echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329   ac_cv_header_syslog_h=$ac_header_preproc
12330 fi
12331 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12332 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12333
12334 fi
12335 if test $ac_cv_header_syslog_h = yes; then
12336   cat >>confdefs.h <<\_ACEOF
12337 #define HAVE_SYSLOG 1
12338 _ACEOF
12339
12340 fi
12341
12342
12343 fi
12344
12345
12346 echo "$as_me:$LINENO: checking for optreset" >&5
12347 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12348 if test "${pgac_cv_var_int_optreset+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   cat >conftest.$ac_ext <<_ACEOF
12352 #line $LINENO "configure"
12353 #include "confdefs.h"
12354 #include <unistd.h>
12355 #ifdef F77_DUMMY_MAIN
12356 #  ifdef __cplusplus
12357      extern "C"
12358 #  endif
12359    int F77_DUMMY_MAIN() { return 1; }
12360 #endif
12361 int
12362 main ()
12363 {
12364 extern int optreset; optreset = 1;
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371   (eval $ac_link) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -s conftest$ac_exeext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   pgac_cv_var_int_optreset=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 pgac_cv_var_int_optreset=no
12386 fi
12387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12388 fi
12389 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12390 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12391 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_INT_OPTRESET 1
12395 _ACEOF
12396
12397 fi
12398
12399
12400 # This test makes sure that run tests work at all.  Sometimes a shared
12401 # library is found by the linker, but the runtime linker can't find it.
12402 # This check should come after all modifications of compiler or linker
12403 # variables, and before any other run tests.
12404 echo "$as_me:$LINENO: checking test program" >&5
12405 echo $ECHO_N "checking test program... $ECHO_C" >&6
12406 if test "$cross_compiling" = yes; then
12407   echo "$as_me:$LINENO: result: cross-compiling" >&5
12408 echo "${ECHO_T}cross-compiling" >&6
12409 else
12410   cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12413 int main() { return 0; }
12414 _ACEOF
12415 rm -f conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417   (eval $ac_link) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; }; then
12426   echo "$as_me:$LINENO: result: ok" >&5
12427 echo "${ECHO_T}ok" >&6
12428 else
12429   echo "$as_me: program exited with status $ac_status" >&5
12430 echo "$as_me: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 ( exit $ac_status )
12433 echo "$as_me:$LINENO: result: failed" >&5
12434 echo "${ECHO_T}failed" >&6
12435 { { echo "$as_me:$LINENO: error:
12436 *** Could not execute a simple test program.  This may be a problem
12437 *** related to locating shared libraries.  Check the file 'config.log'
12438 *** for the exact reason." >&5
12439 echo "$as_me: error:
12440 *** Could not execute a simple test program.  This may be a problem
12441 *** related to locating shared libraries.  Check the file 'config.log'
12442 *** for the exact reason." >&2;}
12443    { (exit 1); exit 1; }; }
12444 fi
12445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12446 fi
12447
12448
12449
12450 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12451 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12452 if test "${pgac_cv_type_long_int_64+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   if test "$cross_compiling" = yes; then
12456   pgac_cv_type_long_int_64=no
12457 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12458 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12459 else
12460   cat >conftest.$ac_ext <<_ACEOF
12461 #line $LINENO "configure"
12462 #include "confdefs.h"
12463 typedef long int int64;
12464
12465 /*
12466  * These are globals to discourage the compiler from folding all the
12467  * arithmetic tests down to compile-time constants.
12468  */
12469 int64 a = 20000001;
12470 int64 b = 40000005;
12471
12472 int does_int64_work()
12473 {
12474   int64 c,d;
12475
12476   if (sizeof(int64) != 8)
12477     return 0;                   /* definitely not the right size */
12478
12479   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12480   c = a * b;
12481   d = (c + b) / b;
12482   if (d != a+1)
12483     return 0;
12484   return 1;
12485 }
12486 main() {
12487   exit(! does_int64_work());
12488 }
12489 _ACEOF
12490 rm -f conftest$ac_exeext
12491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12492   (eval $ac_link) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   pgac_cv_type_long_int_64=yes
12502 else
12503   echo "$as_me: program exited with status $ac_status" >&5
12504 echo "$as_me: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12506 ( exit $ac_status )
12507 pgac_cv_type_long_int_64=no
12508 fi
12509 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12510 fi
12511 fi
12512 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12513 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12514
12515 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12516 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12517
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_LONG_INT_64
12520 _ACEOF
12521
12522 fi
12523
12524
12525 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12526   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12527 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12528 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   if test "$cross_compiling" = yes; then
12532   pgac_cv_type_long_long_int_64=no
12533 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12534 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12535 else
12536   cat >conftest.$ac_ext <<_ACEOF
12537 #line $LINENO "configure"
12538 #include "confdefs.h"
12539 typedef long long int int64;
12540
12541 /*
12542  * These are globals to discourage the compiler from folding all the
12543  * arithmetic tests down to compile-time constants.
12544  */
12545 int64 a = 20000001;
12546 int64 b = 40000005;
12547
12548 int does_int64_work()
12549 {
12550   int64 c,d;
12551
12552   if (sizeof(int64) != 8)
12553     return 0;                   /* definitely not the right size */
12554
12555   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12556   c = a * b;
12557   d = (c + b) / b;
12558   if (d != a+1)
12559     return 0;
12560   return 1;
12561 }
12562 main() {
12563   exit(! does_int64_work());
12564 }
12565 _ACEOF
12566 rm -f conftest$ac_exeext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568   (eval $ac_link) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   pgac_cv_type_long_long_int_64=yes
12578 else
12579   echo "$as_me: program exited with status $ac_status" >&5
12580 echo "$as_me: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 ( exit $ac_status )
12583 pgac_cv_type_long_long_int_64=no
12584 fi
12585 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12586 fi
12587 fi
12588 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12589 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12590
12591 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12592 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define HAVE_LONG_LONG_INT_64
12596 _ACEOF
12597
12598 fi
12599
12600 fi
12601
12602
12603
12604 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12605   cat >conftest.$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12607 #include "confdefs.h"
12608
12609 #define INT64CONST(x)  x##LL
12610 long long int foo = INT64CONST(0x1234567890123456);
12611
12612 #ifdef F77_DUMMY_MAIN
12613 #  ifdef __cplusplus
12614      extern "C"
12615 #  endif
12616    int F77_DUMMY_MAIN() { return 1; }
12617 #endif
12618 int
12619 main ()
12620 {
12621
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628   (eval $ac_compile) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -s conftest.$ac_objext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_LL_CONSTANTS 1
12641 _ACEOF
12642
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 fi
12647 rm -f conftest.$ac_objext conftest.$ac_ext
12648 fi
12649
12650
12651
12652 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12653   if [ x$SNPRINTF = x ] ; then
12654     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12655 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12656     if test "$cross_compiling" = yes; then
12657    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12658 echo "${ECHO_T}assuming not on target machine" >&6
12659         # Force usage of our own snprintf, since we cannot test foreign snprintf
12660         SNPRINTF='snprintf.o'
12661         INT64_FORMAT='"%lld"'
12662
12663 else
12664   cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12666 #include "confdefs.h"
12667 #include <stdio.h>
12668 typedef long long int int64;
12669 #define INT64_FORMAT "%lld"
12670
12671 int64 a = 20000001;
12672 int64 b = 40000005;
12673
12674 int does_int64_snprintf_work()
12675 {
12676   int64 c;
12677   char buf[100];
12678
12679   if (sizeof(int64) != 8)
12680     return 0;                   /* doesn't look like the right size */
12681
12682   c = a * b;
12683   snprintf(buf, 100, INT64_FORMAT, c);
12684   if (strcmp(buf, "800000140000005") != 0)
12685     return 0;                   /* either multiply or snprintf is busted */
12686   return 1;
12687 }
12688 main() {
12689   exit(! does_int64_snprintf_work());
12690 }
12691 _ACEOF
12692 rm -f conftest$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694   (eval $ac_link) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699   (eval $ac_try) 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; }; then
12703    echo "$as_me:$LINENO: result: yes" >&5
12704 echo "${ECHO_T}yes" >&6
12705           INT64_FORMAT='"%lld"'
12706
12707 else
12708   echo "$as_me: program exited with status $ac_status" >&5
12709 echo "$as_me: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 ( exit $ac_status )
12712  echo "$as_me:$LINENO: result: no" >&5
12713 echo "${ECHO_T}no" >&6
12714     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12715 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12716     if test "$cross_compiling" = yes; then
12717    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12718 echo "${ECHO_T}assuming not on target machine" >&6
12719         # Force usage of our own snprintf, since we cannot test foreign snprintf
12720         SNPRINTF='snprintf.o'
12721         INT64_FORMAT='"%lld"'
12722
12723 else
12724   cat >conftest.$ac_ext <<_ACEOF
12725 #line $LINENO "configure"
12726 #include "confdefs.h"
12727 #include <stdio.h>
12728 typedef long long int int64;
12729 #define INT64_FORMAT "%qd"
12730
12731 int64 a = 20000001;
12732 int64 b = 40000005;
12733
12734 int does_int64_snprintf_work()
12735 {
12736   int64 c;
12737   char buf[100];
12738
12739   if (sizeof(int64) != 8)
12740     return 0;     /* doesn't look like the right size */
12741
12742   c = a * b;
12743   snprintf(buf, 100, INT64_FORMAT, c);
12744   if (strcmp(buf, "800000140000005") != 0)
12745     return 0;     /* either multiply or snprintf is busted */
12746   return 1;
12747 }
12748 main() {
12749   exit(! does_int64_snprintf_work());
12750 }
12751 _ACEOF
12752 rm -f conftest$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754   (eval $ac_link) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759   (eval $ac_try) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; }; then
12763    echo "$as_me:$LINENO: result: yes" >&5
12764 echo "${ECHO_T}yes" >&6
12765     INT64_FORMAT='"%qd"'
12766
12767 else
12768   echo "$as_me: program exited with status $ac_status" >&5
12769 echo "$as_me: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 ( exit $ac_status )
12772  echo "$as_me:$LINENO: result: no" >&5
12773 echo "${ECHO_T}no" >&6
12774         # Force usage of our own snprintf, since system snprintf is broken
12775         SNPRINTF='snprintf.o'
12776         INT64_FORMAT='"%lld"'
12777
12778 fi
12779 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 fi
12782 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12783 fi
12784   else
12785     # here if we previously decided we needed to use our own snprintf
12786     INT64_FORMAT='"%lld"'
12787   fi
12788 else
12789   # Here if we are not using 'long long int' at all
12790   INT64_FORMAT='"%ld"'
12791 fi
12792
12793
12794 cat >>confdefs.h <<_ACEOF
12795 #define INT64_FORMAT $INT64_FORMAT
12796 _ACEOF
12797
12798
12799
12800
12801
12802 for ac_func in strtoll strtoq
12803 do
12804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12805 echo "$as_me:$LINENO: checking for $ac_func" >&5
12806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12807 if eval "test \"\${$as_ac_var+set}\" = set"; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   cat >conftest.$ac_ext <<_ACEOF
12811 #line $LINENO "configure"
12812 #include "confdefs.h"
12813 /* System header to define __stub macros and hopefully few prototypes,
12814     which can conflict with char $ac_func (); below.  */
12815 #include <assert.h>
12816 /* Override any gcc2 internal prototype to avoid an error.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 /* We use char because int might match the return type of a gcc2
12821    builtin and then its argument prototype would still apply.  */
12822 char $ac_func ();
12823 char (*f) ();
12824
12825 #ifdef F77_DUMMY_MAIN
12826 #  ifdef __cplusplus
12827      extern "C"
12828 #  endif
12829    int F77_DUMMY_MAIN() { return 1; }
12830 #endif
12831 int
12832 main ()
12833 {
12834 /* The GNU C library defines this for functions which it implements
12835     to always fail with ENOSYS.  Some functions are actually named
12836     something starting with __ and the normal name is an alias.  */
12837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12838 choke me
12839 #else
12840 f = $ac_func;
12841 #endif
12842
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12849   (eval $ac_link) 2>&5
12850   ac_status=$?
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } &&
12853          { ac_try='test -s conftest$ac_exeext'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   eval "$as_ac_var=yes"
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12863 eval "$as_ac_var=no"
12864 fi
12865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12866 fi
12867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12869 if test `eval echo '${'$as_ac_var'}'` = yes; then
12870   cat >>confdefs.h <<_ACEOF
12871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12872 _ACEOF
12873  break
12874 fi
12875 done
12876
12877
12878
12879 for ac_func in strtoull strtouq
12880 do
12881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12882 echo "$as_me:$LINENO: checking for $ac_func" >&5
12883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12884 if eval "test \"\${$as_ac_var+set}\" = set"; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   cat >conftest.$ac_ext <<_ACEOF
12888 #line $LINENO "configure"
12889 #include "confdefs.h"
12890 /* System header to define __stub macros and hopefully few prototypes,
12891     which can conflict with char $ac_func (); below.  */
12892 #include <assert.h>
12893 /* Override any gcc2 internal prototype to avoid an error.  */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 /* We use char because int might match the return type of a gcc2
12898    builtin and then its argument prototype would still apply.  */
12899 char $ac_func ();
12900 char (*f) ();
12901
12902 #ifdef F77_DUMMY_MAIN
12903 #  ifdef __cplusplus
12904      extern "C"
12905 #  endif
12906    int F77_DUMMY_MAIN() { return 1; }
12907 #endif
12908 int
12909 main ()
12910 {
12911 /* The GNU C library defines this for functions which it implements
12912     to always fail with ENOSYS.  Some functions are actually named
12913     something starting with __ and the normal name is an alias.  */
12914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12915 choke me
12916 #else
12917 f = $ac_func;
12918 #endif
12919
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926   (eval $ac_link) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   eval "$as_ac_var=yes"
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 eval "$as_ac_var=no"
12941 fi
12942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12943 fi
12944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12946 if test `eval echo '${'$as_ac_var'}'` = yes; then
12947   cat >>confdefs.h <<_ACEOF
12948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12949 _ACEOF
12950  break
12951 fi
12952 done
12953
12954
12955 # Check for one of atexit() or on_exit()
12956
12957 for ac_func in atexit
12958 do
12959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 echo "$as_me:$LINENO: checking for $ac_func" >&5
12961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_var+set}\" = set"; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   cat >conftest.$ac_ext <<_ACEOF
12966 #line $LINENO "configure"
12967 #include "confdefs.h"
12968 /* System header to define __stub macros and hopefully few prototypes,
12969     which can conflict with char $ac_func (); below.  */
12970 #include <assert.h>
12971 /* Override any gcc2 internal prototype to avoid an error.  */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 /* We use char because int might match the return type of a gcc2
12976    builtin and then its argument prototype would still apply.  */
12977 char $ac_func ();
12978 char (*f) ();
12979
12980 #ifdef F77_DUMMY_MAIN
12981 #  ifdef __cplusplus
12982      extern "C"
12983 #  endif
12984    int F77_DUMMY_MAIN() { return 1; }
12985 #endif
12986 int
12987 main ()
12988 {
12989 /* The GNU C library defines this for functions which it implements
12990     to always fail with ENOSYS.  Some functions are actually named
12991     something starting with __ and the normal name is an alias.  */
12992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12993 choke me
12994 #else
12995 f = $ac_func;
12996 #endif
12997
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004   (eval $ac_link) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } &&
13008          { ac_try='test -s conftest$ac_exeext'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   eval "$as_ac_var=yes"
13015 else
13016   echo "$as_me: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 eval "$as_ac_var=no"
13019 fi
13020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13021 fi
13022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13024 if test `eval echo '${'$as_ac_var'}'` = yes; then
13025   cat >>confdefs.h <<_ACEOF
13026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13027 _ACEOF
13028
13029 else
13030
13031 for ac_func in on_exit
13032 do
13033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13034 echo "$as_me:$LINENO: checking for $ac_func" >&5
13035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13036 if eval "test \"\${$as_ac_var+set}\" = set"; then
13037   echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039   cat >conftest.$ac_ext <<_ACEOF
13040 #line $LINENO "configure"
13041 #include "confdefs.h"
13042 /* System header to define __stub macros and hopefully few prototypes,
13043     which can conflict with char $ac_func (); below.  */
13044 #include <assert.h>
13045 /* Override any gcc2 internal prototype to avoid an error.  */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 /* We use char because int might match the return type of a gcc2
13050    builtin and then its argument prototype would still apply.  */
13051 char $ac_func ();
13052 char (*f) ();
13053
13054 #ifdef F77_DUMMY_MAIN
13055 #  ifdef __cplusplus
13056      extern "C"
13057 #  endif
13058    int F77_DUMMY_MAIN() { return 1; }
13059 #endif
13060 int
13061 main ()
13062 {
13063 /* The GNU C library defines this for functions which it implements
13064     to always fail with ENOSYS.  Some functions are actually named
13065     something starting with __ and the normal name is an alias.  */
13066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13067 choke me
13068 #else
13069 f = $ac_func;
13070 #endif
13071
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13078   (eval $ac_link) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } &&
13082          { ac_try='test -s conftest$ac_exeext'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   eval "$as_ac_var=yes"
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13092 eval "$as_ac_var=no"
13093 fi
13094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095 fi
13096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13098 if test `eval echo '${'$as_ac_var'}'` = yes; then
13099   cat >>confdefs.h <<_ACEOF
13100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13101 _ACEOF
13102
13103 else
13104   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13105 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13106    { (exit 1); exit 1; }; }
13107 fi
13108 done
13109
13110 fi
13111 done
13112
13113
13114
13115 echo "$as_me:$LINENO: checking for unsigned long" >&5
13116 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13117 if test "${ac_cv_type_unsigned_long+set}" = set; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   cat >conftest.$ac_ext <<_ACEOF
13121 #line $LINENO "configure"
13122 #include "confdefs.h"
13123 $ac_includes_default
13124 #ifdef F77_DUMMY_MAIN
13125 #  ifdef __cplusplus
13126      extern "C"
13127 #  endif
13128    int F77_DUMMY_MAIN() { return 1; }
13129 #endif
13130 int
13131 main ()
13132 {
13133 if ((unsigned long *) 0)
13134   return 0;
13135 if (sizeof (unsigned long))
13136   return 0;
13137   ;
13138   return 0;
13139 }
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143   (eval $ac_compile) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -s conftest.$ac_objext'
13148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149   (eval $ac_try) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; }; then
13153   ac_cv_type_unsigned_long=yes
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 ac_cv_type_unsigned_long=no
13158 fi
13159 rm -f conftest.$ac_objext conftest.$ac_ext
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13162 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13163
13164 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13165 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13166 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   if test "$ac_cv_type_unsigned_long" = yes; then
13170   # The cast to unsigned long works around a bug in the HP C Compiler
13171   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13172   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13173   # This bug is HP SR number 8606223364.
13174   if test "$cross_compiling" = yes; then
13175   # Depending upon the size, compute the lo and hi bounds.
13176 cat >conftest.$ac_ext <<_ACEOF
13177 #line $LINENO "configure"
13178 #include "confdefs.h"
13179 $ac_includes_default
13180 #ifdef F77_DUMMY_MAIN
13181 #  ifdef __cplusplus
13182      extern "C"
13183 #  endif
13184    int F77_DUMMY_MAIN() { return 1; }
13185 #endif
13186 int
13187 main ()
13188 {
13189 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13190 test_array [0] = 0
13191
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_lo=0 ac_mid=0
13209   while :; do
13210     cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 #include "confdefs.h"
13213 $ac_includes_default
13214 #ifdef F77_DUMMY_MAIN
13215 #  ifdef __cplusplus
13216      extern "C"
13217 #  endif
13218    int F77_DUMMY_MAIN() { return 1; }
13219 #endif
13220 int
13221 main ()
13222 {
13223 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13224 test_array [0] = 0
13225
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232   (eval $ac_compile) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -s conftest.$ac_objext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_hi=$ac_mid; break
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13246 ac_lo=`expr $ac_mid + 1`
13247                     if test $ac_lo -le $ac_mid; then
13248                       ac_lo= ac_hi=
13249                       break
13250                     fi
13251                     ac_mid=`expr 2 '*' $ac_mid + 1`
13252 fi
13253 rm -f conftest.$ac_objext conftest.$ac_ext
13254   done
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261 $ac_includes_default
13262 #ifdef F77_DUMMY_MAIN
13263 #  ifdef __cplusplus
13264      extern "C"
13265 #  endif
13266    int F77_DUMMY_MAIN() { return 1; }
13267 #endif
13268 int
13269 main ()
13270 {
13271 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13272 test_array [0] = 0
13273
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280   (eval $ac_compile) 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } &&
13284          { ac_try='test -s conftest.$ac_objext'
13285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286   (eval $ac_try) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); }; }; then
13290   ac_hi=-1 ac_mid=-1
13291   while :; do
13292     cat >conftest.$ac_ext <<_ACEOF
13293 #line $LINENO "configure"
13294 #include "confdefs.h"
13295 $ac_includes_default
13296 #ifdef F77_DUMMY_MAIN
13297 #  ifdef __cplusplus
13298      extern "C"
13299 #  endif
13300    int F77_DUMMY_MAIN() { return 1; }
13301 #endif
13302 int
13303 main ()
13304 {
13305 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13306 test_array [0] = 0
13307
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314   (eval $ac_compile) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } &&
13318          { ac_try='test -s conftest.$ac_objext'
13319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320   (eval $ac_try) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; }; then
13324   ac_lo=$ac_mid; break
13325 else
13326   echo "$as_me: failed program was:" >&5
13327 cat conftest.$ac_ext >&5
13328 ac_hi=`expr '(' $ac_mid ')' - 1`
13329                        if test $ac_mid -le $ac_hi; then
13330                          ac_lo= ac_hi=
13331                          break
13332                        fi
13333                        ac_mid=`expr 2 '*' $ac_mid`
13334 fi
13335 rm -f conftest.$ac_objext conftest.$ac_ext
13336   done
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13340 ac_lo= ac_hi=
13341 fi
13342 rm -f conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 rm -f conftest.$ac_objext conftest.$ac_ext
13345 # Binary search between lo and hi bounds.
13346 while test "x$ac_lo" != "x$ac_hi"; do
13347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13348   cat >conftest.$ac_ext <<_ACEOF
13349 #line $LINENO "configure"
13350 #include "confdefs.h"
13351 $ac_includes_default
13352 #ifdef F77_DUMMY_MAIN
13353 #  ifdef __cplusplus
13354      extern "C"
13355 #  endif
13356    int F77_DUMMY_MAIN() { return 1; }
13357 #endif
13358 int
13359 main ()
13360 {
13361 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13362 test_array [0] = 0
13363
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370   (eval $ac_compile) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } &&
13374          { ac_try='test -s conftest.$ac_objext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ac_hi=$ac_mid
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ac_lo=`expr '(' $ac_mid ')' + 1`
13385 fi
13386 rm -f conftest.$ac_objext conftest.$ac_ext
13387 done
13388 case $ac_lo in
13389 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13391 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13392    { (exit 1); exit 1; }; } ;;
13393 esac
13394 else
13395   if test "$cross_compiling" = yes; then
13396   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13397 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13398    { (exit 1); exit 1; }; }
13399 else
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 #include "confdefs.h"
13403 $ac_includes_default
13404 long longval () { return (long) (sizeof (unsigned long)); }
13405 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13406 #include <stdio.h>
13407 #include <stdlib.h>
13408 #ifdef F77_DUMMY_MAIN
13409 #  ifdef __cplusplus
13410      extern "C"
13411 #  endif
13412    int F77_DUMMY_MAIN() { return 1; }
13413 #endif
13414 int
13415 main ()
13416 {
13417
13418   FILE *f = fopen ("conftest.val", "w");
13419   if (! f)
13420     exit (1);
13421   if (((long) (sizeof (unsigned long))) < 0)
13422     {
13423       long i = longval ();
13424       if (i != ((long) (sizeof (unsigned long))))
13425         exit (1);
13426       fprintf (f, "%ld\n", i);
13427     }
13428   else
13429     {
13430       unsigned long i = ulongval ();
13431       if (i != ((long) (sizeof (unsigned long))))
13432         exit (1);
13433       fprintf (f, "%lu\n", i);
13434     }
13435   exit (ferror (f) || fclose (f) != 0);
13436
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13453 else
13454   echo "$as_me: program exited with status $ac_status" >&5
13455 echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 ( exit $ac_status )
13458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13459 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13460    { (exit 1); exit 1; }; }
13461 fi
13462 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 fi
13465 rm -f conftest.val
13466 else
13467   ac_cv_sizeof_unsigned_long=0
13468 fi
13469 fi
13470 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13471 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13472 cat >>confdefs.h <<_ACEOF
13473 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13474 _ACEOF
13475
13476
13477
13478 cat >>confdefs.h <<_ACEOF
13479 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13480 _ACEOF
13481
13482
13483 # Determine memory alignment requirements for the basic C data types.
13484
13485 echo "$as_me:$LINENO: checking for short" >&5
13486 echo $ECHO_N "checking for short... $ECHO_C" >&6
13487 if test "${ac_cv_type_short+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   cat >conftest.$ac_ext <<_ACEOF
13491 #line $LINENO "configure"
13492 #include "confdefs.h"
13493 $ac_includes_default
13494 #ifdef F77_DUMMY_MAIN
13495 #  ifdef __cplusplus
13496      extern "C"
13497 #  endif
13498    int F77_DUMMY_MAIN() { return 1; }
13499 #endif
13500 int
13501 main ()
13502 {
13503 if ((short *) 0)
13504   return 0;
13505 if (sizeof (short))
13506   return 0;
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -s conftest.$ac_objext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_cv_type_short=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13527 ac_cv_type_short=no
13528 fi
13529 rm -f conftest.$ac_objext conftest.$ac_ext
13530 fi
13531 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13532 echo "${ECHO_T}$ac_cv_type_short" >&6
13533
13534 echo "$as_me:$LINENO: checking alignment of short" >&5
13535 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13536 if test "${pgac_cv_alignof_short+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   if test "$ac_cv_type_short" = yes; then
13540   if test "$cross_compiling" = yes; then
13541   # Depending upon the size, compute the lo and hi bounds.
13542 cat >conftest.$ac_ext <<_ACEOF
13543 #line $LINENO "configure"
13544 #include "confdefs.h"
13545 $ac_includes_default
13546 struct { char filler; short field; } pgac_struct;
13547 #ifdef F77_DUMMY_MAIN
13548 #  ifdef __cplusplus
13549      extern "C"
13550 #  endif
13551    int F77_DUMMY_MAIN() { return 1; }
13552 #endif
13553 int
13554 main ()
13555 {
13556 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13557 test_array [0] = 0
13558
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565   (eval $ac_compile) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } &&
13569          { ac_try='test -s conftest.$ac_objext'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; }; then
13575   ac_lo=0 ac_mid=0
13576   while :; do
13577     cat >conftest.$ac_ext <<_ACEOF
13578 #line $LINENO "configure"
13579 #include "confdefs.h"
13580 $ac_includes_default
13581 struct { char filler; short field; } pgac_struct;
13582 #ifdef F77_DUMMY_MAIN
13583 #  ifdef __cplusplus
13584      extern "C"
13585 #  endif
13586    int F77_DUMMY_MAIN() { return 1; }
13587 #endif
13588 int
13589 main ()
13590 {
13591 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13592 test_array [0] = 0
13593
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600   (eval $ac_compile) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -s conftest.$ac_objext'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_hi=$ac_mid; break
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 ac_lo=`expr $ac_mid + 1`
13615                     if test $ac_lo -le $ac_mid; then
13616                       ac_lo= ac_hi=
13617                       break
13618                     fi
13619                     ac_mid=`expr 2 '*' $ac_mid + 1`
13620 fi
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13622   done
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13626 cat >conftest.$ac_ext <<_ACEOF
13627 #line $LINENO "configure"
13628 #include "confdefs.h"
13629 $ac_includes_default
13630 struct { char filler; short field; } pgac_struct;
13631 #ifdef F77_DUMMY_MAIN
13632 #  ifdef __cplusplus
13633      extern "C"
13634 #  endif
13635    int F77_DUMMY_MAIN() { return 1; }
13636 #endif
13637 int
13638 main ()
13639 {
13640 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13641 test_array [0] = 0
13642
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649   (eval $ac_compile) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -s conftest.$ac_objext'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; }; then
13659   ac_hi=-1 ac_mid=-1
13660   while :; do
13661     cat >conftest.$ac_ext <<_ACEOF
13662 #line $LINENO "configure"
13663 #include "confdefs.h"
13664 $ac_includes_default
13665 struct { char filler; short field; } pgac_struct;
13666 #ifdef F77_DUMMY_MAIN
13667 #  ifdef __cplusplus
13668      extern "C"
13669 #  endif
13670    int F77_DUMMY_MAIN() { return 1; }
13671 #endif
13672 int
13673 main ()
13674 {
13675 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13676 test_array [0] = 0
13677
13678   ;
13679   return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684   (eval $ac_compile) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -s conftest.$ac_objext'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; }; then
13694   ac_lo=$ac_mid; break
13695 else
13696   echo "$as_me: failed program was:" >&5
13697 cat conftest.$ac_ext >&5
13698 ac_hi=`expr '(' $ac_mid ')' - 1`
13699                        if test $ac_mid -le $ac_hi; then
13700                          ac_lo= ac_hi=
13701                          break
13702                        fi
13703                        ac_mid=`expr 2 '*' $ac_mid`
13704 fi
13705 rm -f conftest.$ac_objext conftest.$ac_ext
13706   done
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 ac_lo= ac_hi=
13711 fi
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 rm -f conftest.$ac_objext conftest.$ac_ext
13715 # Binary search between lo and hi bounds.
13716 while test "x$ac_lo" != "x$ac_hi"; do
13717   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13718   cat >conftest.$ac_ext <<_ACEOF
13719 #line $LINENO "configure"
13720 #include "confdefs.h"
13721 $ac_includes_default
13722 struct { char filler; short field; } pgac_struct;
13723 #ifdef F77_DUMMY_MAIN
13724 #  ifdef __cplusplus
13725      extern "C"
13726 #  endif
13727    int F77_DUMMY_MAIN() { return 1; }
13728 #endif
13729 int
13730 main ()
13731 {
13732 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13733 test_array [0] = 0
13734
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741   (eval $ac_compile) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); } &&
13745          { ac_try='test -s conftest.$ac_objext'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; }; then
13751   ac_hi=$ac_mid
13752 else
13753   echo "$as_me: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 ac_lo=`expr '(' $ac_mid ')' + 1`
13756 fi
13757 rm -f conftest.$ac_objext conftest.$ac_ext
13758 done
13759 case $ac_lo in
13760 ?*) pgac_cv_alignof_short=$ac_lo;;
13761 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13762 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13763    { (exit 1); exit 1; }; } ;;
13764 esac
13765 else
13766   if test "$cross_compiling" = yes; then
13767   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13768 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13769    { (exit 1); exit 1; }; }
13770 else
13771   cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13773 #include "confdefs.h"
13774 $ac_includes_default
13775 struct { char filler; short field; } pgac_struct;
13776 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13777 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13778 #include <stdio.h>
13779 #include <stdlib.h>
13780 #ifdef F77_DUMMY_MAIN
13781 #  ifdef __cplusplus
13782      extern "C"
13783 #  endif
13784    int F77_DUMMY_MAIN() { return 1; }
13785 #endif
13786 int
13787 main ()
13788 {
13789
13790   FILE *f = fopen ("conftest.val", "w");
13791   if (! f)
13792     exit (1);
13793   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13794     {
13795       long i = longval ();
13796       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13797         exit (1);
13798       fprintf (f, "%ld\n", i);
13799     }
13800   else
13801     {
13802       unsigned long i = ulongval ();
13803       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13804         exit (1);
13805       fprintf (f, "%lu\n", i);
13806     }
13807   exit (ferror (f) || fclose (f) != 0);
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest$ac_exeext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13815   (eval $ac_link) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; }; then
13824   pgac_cv_alignof_short=`cat conftest.val`
13825 else
13826   echo "$as_me: program exited with status $ac_status" >&5
13827 echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 ( exit $ac_status )
13830 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13831 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13832    { (exit 1); exit 1; }; }
13833 fi
13834 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 fi
13837 rm -f conftest.val
13838 else
13839   pgac_cv_alignof_short=0
13840 fi
13841 fi
13842 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13843 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13844 cat >>confdefs.h <<_ACEOF
13845 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13846 _ACEOF
13847
13848
13849 echo "$as_me:$LINENO: checking for int" >&5
13850 echo $ECHO_N "checking for int... $ECHO_C" >&6
13851 if test "${ac_cv_type_int+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13856 #include "confdefs.h"
13857 $ac_includes_default
13858 #ifdef F77_DUMMY_MAIN
13859 #  ifdef __cplusplus
13860      extern "C"
13861 #  endif
13862    int F77_DUMMY_MAIN() { return 1; }
13863 #endif
13864 int
13865 main ()
13866 {
13867 if ((int *) 0)
13868   return 0;
13869 if (sizeof (int))
13870   return 0;
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877   (eval $ac_compile) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -s conftest.$ac_objext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_cv_type_int=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 ac_cv_type_int=no
13892 fi
13893 rm -f conftest.$ac_objext conftest.$ac_ext
13894 fi
13895 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13896 echo "${ECHO_T}$ac_cv_type_int" >&6
13897
13898 echo "$as_me:$LINENO: checking alignment of int" >&5
13899 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13900 if test "${pgac_cv_alignof_int+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903   if test "$ac_cv_type_int" = yes; then
13904   if test "$cross_compiling" = yes; then
13905   # Depending upon the size, compute the lo and hi bounds.
13906 cat >conftest.$ac_ext <<_ACEOF
13907 #line $LINENO "configure"
13908 #include "confdefs.h"
13909 $ac_includes_default
13910 struct { char filler; int field; } pgac_struct;
13911 #ifdef F77_DUMMY_MAIN
13912 #  ifdef __cplusplus
13913      extern "C"
13914 #  endif
13915    int F77_DUMMY_MAIN() { return 1; }
13916 #endif
13917 int
13918 main ()
13919 {
13920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13921 test_array [0] = 0
13922
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -s conftest.$ac_objext'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939   ac_lo=0 ac_mid=0
13940   while :; do
13941     cat >conftest.$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13943 #include "confdefs.h"
13944 $ac_includes_default
13945 struct { char filler; int field; } pgac_struct;
13946 #ifdef F77_DUMMY_MAIN
13947 #  ifdef __cplusplus
13948      extern "C"
13949 #  endif
13950    int F77_DUMMY_MAIN() { return 1; }
13951 #endif
13952 int
13953 main ()
13954 {
13955 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13956 test_array [0] = 0
13957
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } &&
13968          { ac_try='test -s conftest.$ac_objext'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_hi=$ac_mid; break
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 ac_lo=`expr $ac_mid + 1`
13979                     if test $ac_lo -le $ac_mid; then
13980                       ac_lo= ac_hi=
13981                       break
13982                     fi
13983                     ac_mid=`expr 2 '*' $ac_mid + 1`
13984 fi
13985 rm -f conftest.$ac_objext conftest.$ac_ext
13986   done
13987 else
13988   echo "$as_me: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 #include "confdefs.h"
13993 $ac_includes_default
13994 struct { char filler; int field; } pgac_struct;
13995 #ifdef F77_DUMMY_MAIN
13996 #  ifdef __cplusplus
13997      extern "C"
13998 #  endif
13999    int F77_DUMMY_MAIN() { return 1; }
14000 #endif
14001 int
14002 main ()
14003 {
14004 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14005 test_array [0] = 0
14006
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013   (eval $ac_compile) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); } &&
14017          { ac_try='test -s conftest.$ac_objext'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; }; then
14023   ac_hi=-1 ac_mid=-1
14024   while :; do
14025     cat >conftest.$ac_ext <<_ACEOF
14026 #line $LINENO "configure"
14027 #include "confdefs.h"
14028 $ac_includes_default
14029 struct { char filler; int field; } pgac_struct;
14030 #ifdef F77_DUMMY_MAIN
14031 #  ifdef __cplusplus
14032      extern "C"
14033 #  endif
14034    int F77_DUMMY_MAIN() { return 1; }
14035 #endif
14036 int
14037 main ()
14038 {
14039 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14040 test_array [0] = 0
14041
14042   ;
14043   return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048   (eval $ac_compile) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); } &&
14052          { ac_try='test -s conftest.$ac_objext'
14053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054   (eval $ac_try) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   ac_lo=$ac_mid; break
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 cat conftest.$ac_ext >&5
14062 ac_hi=`expr '(' $ac_mid ')' - 1`
14063                        if test $ac_mid -le $ac_hi; then
14064                          ac_lo= ac_hi=
14065                          break
14066                        fi
14067                        ac_mid=`expr 2 '*' $ac_mid`
14068 fi
14069 rm -f conftest.$ac_objext conftest.$ac_ext
14070   done
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14074 ac_lo= ac_hi=
14075 fi
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077 fi
14078 rm -f conftest.$ac_objext conftest.$ac_ext
14079 # Binary search between lo and hi bounds.
14080 while test "x$ac_lo" != "x$ac_hi"; do
14081   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14082   cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 #include "confdefs.h"
14085 $ac_includes_default
14086 struct { char filler; int field; } pgac_struct;
14087 #ifdef F77_DUMMY_MAIN
14088 #  ifdef __cplusplus
14089      extern "C"
14090 #  endif
14091    int F77_DUMMY_MAIN() { return 1; }
14092 #endif
14093 int
14094 main ()
14095 {
14096 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14097 test_array [0] = 0
14098
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105   (eval $ac_compile) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } &&
14109          { ac_try='test -s conftest.$ac_objext'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115   ac_hi=$ac_mid
14116 else
14117   echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 ac_lo=`expr '(' $ac_mid ')' + 1`
14120 fi
14121 rm -f conftest.$ac_objext conftest.$ac_ext
14122 done
14123 case $ac_lo in
14124 ?*) pgac_cv_alignof_int=$ac_lo;;
14125 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14126 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14127    { (exit 1); exit 1; }; } ;;
14128 esac
14129 else
14130   if test "$cross_compiling" = yes; then
14131   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14132 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14133    { (exit 1); exit 1; }; }
14134 else
14135   cat >conftest.$ac_ext <<_ACEOF
14136 #line $LINENO "configure"
14137 #include "confdefs.h"
14138 $ac_includes_default
14139 struct { char filler; int field; } pgac_struct;
14140 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14141 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14142 #include <stdio.h>
14143 #include <stdlib.h>
14144 #ifdef F77_DUMMY_MAIN
14145 #  ifdef __cplusplus
14146      extern "C"
14147 #  endif
14148    int F77_DUMMY_MAIN() { return 1; }
14149 #endif
14150 int
14151 main ()
14152 {
14153
14154   FILE *f = fopen ("conftest.val", "w");
14155   if (! f)
14156     exit (1);
14157   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14158     {
14159       long i = longval ();
14160       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14161         exit (1);
14162       fprintf (f, "%ld\n", i);
14163     }
14164   else
14165     {
14166       unsigned long i = ulongval ();
14167       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14168         exit (1);
14169       fprintf (f, "%lu\n", i);
14170     }
14171   exit (ferror (f) || fclose (f) != 0);
14172
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 rm -f conftest$ac_exeext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179   (eval $ac_link) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   pgac_cv_alignof_int=`cat conftest.val`
14189 else
14190   echo "$as_me: program exited with status $ac_status" >&5
14191 echo "$as_me: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 ( exit $ac_status )
14194 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14195 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14196    { (exit 1); exit 1; }; }
14197 fi
14198 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14199 fi
14200 fi
14201 rm -f conftest.val
14202 else
14203   pgac_cv_alignof_int=0
14204 fi
14205 fi
14206 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14207 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14208 cat >>confdefs.h <<_ACEOF
14209 #define ALIGNOF_INT $pgac_cv_alignof_int
14210 _ACEOF
14211
14212
14213 echo "$as_me:$LINENO: checking for long" >&5
14214 echo $ECHO_N "checking for long... $ECHO_C" >&6
14215 if test "${ac_cv_type_long+set}" = set; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218   cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 #include "confdefs.h"
14221 $ac_includes_default
14222 #ifdef F77_DUMMY_MAIN
14223 #  ifdef __cplusplus
14224      extern "C"
14225 #  endif
14226    int F77_DUMMY_MAIN() { return 1; }
14227 #endif
14228 int
14229 main ()
14230 {
14231 if ((long *) 0)
14232   return 0;
14233 if (sizeof (long))
14234   return 0;
14235   ;
14236   return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; }; then
14251   ac_cv_type_long=yes
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 ac_cv_type_long=no
14256 fi
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14260 echo "${ECHO_T}$ac_cv_type_long" >&6
14261
14262 echo "$as_me:$LINENO: checking alignment of long" >&5
14263 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14264 if test "${pgac_cv_alignof_long+set}" = set; then
14265   echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267   if test "$ac_cv_type_long" = yes; then
14268   if test "$cross_compiling" = yes; then
14269   # Depending upon the size, compute the lo and hi bounds.
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line $LINENO "configure"
14272 #include "confdefs.h"
14273 $ac_includes_default
14274 struct { char filler; long field; } pgac_struct;
14275 #ifdef F77_DUMMY_MAIN
14276 #  ifdef __cplusplus
14277      extern "C"
14278 #  endif
14279    int F77_DUMMY_MAIN() { return 1; }
14280 #endif
14281 int
14282 main ()
14283 {
14284 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14285 test_array [0] = 0
14286
14287   ;
14288   return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293   (eval $ac_compile) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } &&
14297          { ac_try='test -s conftest.$ac_objext'
14298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299   (eval $ac_try) 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }; then
14303   ac_lo=0 ac_mid=0
14304   while :; do
14305     cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14307 #include "confdefs.h"
14308 $ac_includes_default
14309 struct { char filler; long field; } pgac_struct;
14310 #ifdef F77_DUMMY_MAIN
14311 #  ifdef __cplusplus
14312      extern "C"
14313 #  endif
14314    int F77_DUMMY_MAIN() { return 1; }
14315 #endif
14316 int
14317 main ()
14318 {
14319 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14320 test_array [0] = 0
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328   (eval $ac_compile) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } &&
14332          { ac_try='test -s conftest.$ac_objext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   ac_hi=$ac_mid; break
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 ac_lo=`expr $ac_mid + 1`
14343                     if test $ac_lo -le $ac_mid; then
14344                       ac_lo= ac_hi=
14345                       break
14346                     fi
14347                     ac_mid=`expr 2 '*' $ac_mid + 1`
14348 fi
14349 rm -f conftest.$ac_objext conftest.$ac_ext
14350   done
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14354 cat >conftest.$ac_ext <<_ACEOF
14355 #line $LINENO "configure"
14356 #include "confdefs.h"
14357 $ac_includes_default
14358 struct { char filler; long field; } pgac_struct;
14359 #ifdef F77_DUMMY_MAIN
14360 #  ifdef __cplusplus
14361      extern "C"
14362 #  endif
14363    int F77_DUMMY_MAIN() { return 1; }
14364 #endif
14365 int
14366 main ()
14367 {
14368 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14369 test_array [0] = 0
14370
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377   (eval $ac_compile) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_hi=-1 ac_mid=-1
14388   while :; do
14389     cat >conftest.$ac_ext <<_ACEOF
14390 #line $LINENO "configure"
14391 #include "confdefs.h"
14392 $ac_includes_default
14393 struct { char filler; long field; } pgac_struct;
14394 #ifdef F77_DUMMY_MAIN
14395 #  ifdef __cplusplus
14396      extern "C"
14397 #  endif
14398    int F77_DUMMY_MAIN() { return 1; }
14399 #endif
14400 int
14401 main ()
14402 {
14403 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14404 test_array [0] = 0
14405
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412   (eval $ac_compile) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -s conftest.$ac_objext'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   ac_lo=$ac_mid; break
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 ac_hi=`expr '(' $ac_mid ')' - 1`
14427                        if test $ac_mid -le $ac_hi; then
14428                          ac_lo= ac_hi=
14429                          break
14430                        fi
14431                        ac_mid=`expr 2 '*' $ac_mid`
14432 fi
14433 rm -f conftest.$ac_objext conftest.$ac_ext
14434   done
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14438 ac_lo= ac_hi=
14439 fi
14440 rm -f conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 rm -f conftest.$ac_objext conftest.$ac_ext
14443 # Binary search between lo and hi bounds.
14444 while test "x$ac_lo" != "x$ac_hi"; do
14445   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14446   cat >conftest.$ac_ext <<_ACEOF
14447 #line $LINENO "configure"
14448 #include "confdefs.h"
14449 $ac_includes_default
14450 struct { char filler; long field; } pgac_struct;
14451 #ifdef F77_DUMMY_MAIN
14452 #  ifdef __cplusplus
14453      extern "C"
14454 #  endif
14455    int F77_DUMMY_MAIN() { return 1; }
14456 #endif
14457 int
14458 main ()
14459 {
14460 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14461 test_array [0] = 0
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   ac_hi=$ac_mid
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 ac_lo=`expr '(' $ac_mid ')' + 1`
14484 fi
14485 rm -f conftest.$ac_objext conftest.$ac_ext
14486 done
14487 case $ac_lo in
14488 ?*) pgac_cv_alignof_long=$ac_lo;;
14489 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14490 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14491    { (exit 1); exit 1; }; } ;;
14492 esac
14493 else
14494   if test "$cross_compiling" = yes; then
14495   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14496 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14497    { (exit 1); exit 1; }; }
14498 else
14499   cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14501 #include "confdefs.h"
14502 $ac_includes_default
14503 struct { char filler; long field; } pgac_struct;
14504 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14505 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14506 #include <stdio.h>
14507 #include <stdlib.h>
14508 #ifdef F77_DUMMY_MAIN
14509 #  ifdef __cplusplus
14510      extern "C"
14511 #  endif
14512    int F77_DUMMY_MAIN() { return 1; }
14513 #endif
14514 int
14515 main ()
14516 {
14517
14518   FILE *f = fopen ("conftest.val", "w");
14519   if (! f)
14520     exit (1);
14521   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14522     {
14523       long i = longval ();
14524       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14525         exit (1);
14526       fprintf (f, "%ld\n", i);
14527     }
14528   else
14529     {
14530       unsigned long i = ulongval ();
14531       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14532         exit (1);
14533       fprintf (f, "%lu\n", i);
14534     }
14535   exit (ferror (f) || fclose (f) != 0);
14536
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543   (eval $ac_link) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   pgac_cv_alignof_long=`cat conftest.val`
14553 else
14554   echo "$as_me: program exited with status $ac_status" >&5
14555 echo "$as_me: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 ( exit $ac_status )
14558 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14559 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14560    { (exit 1); exit 1; }; }
14561 fi
14562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14563 fi
14564 fi
14565 rm -f conftest.val
14566 else
14567   pgac_cv_alignof_long=0
14568 fi
14569 fi
14570 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14571 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14572 cat >>confdefs.h <<_ACEOF
14573 #define ALIGNOF_LONG $pgac_cv_alignof_long
14574 _ACEOF
14575
14576
14577 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14578   echo "$as_me:$LINENO: checking for long long int" >&5
14579 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14580 if test "${ac_cv_type_long_long_int+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   cat >conftest.$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14585 #include "confdefs.h"
14586 $ac_includes_default
14587 #ifdef F77_DUMMY_MAIN
14588 #  ifdef __cplusplus
14589      extern "C"
14590 #  endif
14591    int F77_DUMMY_MAIN() { return 1; }
14592 #endif
14593 int
14594 main ()
14595 {
14596 if ((long long int *) 0)
14597   return 0;
14598 if (sizeof (long long int))
14599   return 0;
14600   ;
14601   return 0;
14602 }
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606   (eval $ac_compile) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } &&
14610          { ac_try='test -s conftest.$ac_objext'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   ac_cv_type_long_long_int=yes
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 ac_cv_type_long_long_int=no
14621 fi
14622 rm -f conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14625 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14626
14627 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14628 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14629 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14630   echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632   if test "$ac_cv_type_long_long_int" = yes; then
14633   if test "$cross_compiling" = yes; then
14634   # Depending upon the size, compute the lo and hi bounds.
14635 cat >conftest.$ac_ext <<_ACEOF
14636 #line $LINENO "configure"
14637 #include "confdefs.h"
14638 $ac_includes_default
14639 struct { char filler; long long int field; } pgac_struct;
14640 #ifdef F77_DUMMY_MAIN
14641 #  ifdef __cplusplus
14642      extern "C"
14643 #  endif
14644    int F77_DUMMY_MAIN() { return 1; }
14645 #endif
14646 int
14647 main ()
14648 {
14649 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14650 test_array [0] = 0
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658   (eval $ac_compile) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -s conftest.$ac_objext'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668   ac_lo=0 ac_mid=0
14669   while :; do
14670     cat >conftest.$ac_ext <<_ACEOF
14671 #line $LINENO "configure"
14672 #include "confdefs.h"
14673 $ac_includes_default
14674 struct { char filler; long long int field; } pgac_struct;
14675 #ifdef F77_DUMMY_MAIN
14676 #  ifdef __cplusplus
14677      extern "C"
14678 #  endif
14679    int F77_DUMMY_MAIN() { return 1; }
14680 #endif
14681 int
14682 main ()
14683 {
14684 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14685 test_array [0] = 0
14686
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14693   (eval $ac_compile) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } &&
14697          { ac_try='test -s conftest.$ac_objext'
14698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699   (eval $ac_try) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); }; }; then
14703   ac_hi=$ac_mid; break
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 ac_lo=`expr $ac_mid + 1`
14708                     if test $ac_lo -le $ac_mid; then
14709                       ac_lo= ac_hi=
14710                       break
14711                     fi
14712                     ac_mid=`expr 2 '*' $ac_mid + 1`
14713 fi
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14715   done
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 cat >conftest.$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14721 #include "confdefs.h"
14722 $ac_includes_default
14723 struct { char filler; long long int field; } pgac_struct;
14724 #ifdef F77_DUMMY_MAIN
14725 #  ifdef __cplusplus
14726      extern "C"
14727 #  endif
14728    int F77_DUMMY_MAIN() { return 1; }
14729 #endif
14730 int
14731 main ()
14732 {
14733 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14734 test_array [0] = 0
14735
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742   (eval $ac_compile) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -s conftest.$ac_objext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_hi=-1 ac_mid=-1
14753   while :; do
14754     cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14756 #include "confdefs.h"
14757 $ac_includes_default
14758 struct { char filler; long long int field; } pgac_struct;
14759 #ifdef F77_DUMMY_MAIN
14760 #  ifdef __cplusplus
14761      extern "C"
14762 #  endif
14763    int F77_DUMMY_MAIN() { return 1; }
14764 #endif
14765 int
14766 main ()
14767 {
14768 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14769 test_array [0] = 0
14770
14771   ;
14772   return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777   (eval $ac_compile) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); } &&
14781          { ac_try='test -s conftest.$ac_objext'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787   ac_lo=$ac_mid; break
14788 else
14789   echo "$as_me: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 ac_hi=`expr '(' $ac_mid ')' - 1`
14792                        if test $ac_mid -le $ac_hi; then
14793                          ac_lo= ac_hi=
14794                          break
14795                        fi
14796                        ac_mid=`expr 2 '*' $ac_mid`
14797 fi
14798 rm -f conftest.$ac_objext conftest.$ac_ext
14799   done
14800 else
14801   echo "$as_me: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14803 ac_lo= ac_hi=
14804 fi
14805 rm -f conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 rm -f conftest.$ac_objext conftest.$ac_ext
14808 # Binary search between lo and hi bounds.
14809 while test "x$ac_lo" != "x$ac_hi"; do
14810   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14811   cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14813 #include "confdefs.h"
14814 $ac_includes_default
14815 struct { char filler; long long int field; } pgac_struct;
14816 #ifdef F77_DUMMY_MAIN
14817 #  ifdef __cplusplus
14818      extern "C"
14819 #  endif
14820    int F77_DUMMY_MAIN() { return 1; }
14821 #endif
14822 int
14823 main ()
14824 {
14825 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14826 test_array [0] = 0
14827
14828   ;
14829   return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834   (eval $ac_compile) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } &&
14838          { ac_try='test -s conftest.$ac_objext'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_hi=$ac_mid
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14848 ac_lo=`expr '(' $ac_mid ')' + 1`
14849 fi
14850 rm -f conftest.$ac_objext conftest.$ac_ext
14851 done
14852 case $ac_lo in
14853 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14854 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14855 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14856    { (exit 1); exit 1; }; } ;;
14857 esac
14858 else
14859   if test "$cross_compiling" = yes; then
14860   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14861 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14862    { (exit 1); exit 1; }; }
14863 else
14864   cat >conftest.$ac_ext <<_ACEOF
14865 #line $LINENO "configure"
14866 #include "confdefs.h"
14867 $ac_includes_default
14868 struct { char filler; long long int field; } pgac_struct;
14869 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14870 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14871 #include <stdio.h>
14872 #include <stdlib.h>
14873 #ifdef F77_DUMMY_MAIN
14874 #  ifdef __cplusplus
14875      extern "C"
14876 #  endif
14877    int F77_DUMMY_MAIN() { return 1; }
14878 #endif
14879 int
14880 main ()
14881 {
14882
14883   FILE *f = fopen ("conftest.val", "w");
14884   if (! f)
14885     exit (1);
14886   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14887     {
14888       long i = longval ();
14889       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14890         exit (1);
14891       fprintf (f, "%ld\n", i);
14892     }
14893   else
14894     {
14895       unsigned long i = ulongval ();
14896       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14897         exit (1);
14898       fprintf (f, "%lu\n", i);
14899     }
14900   exit (ferror (f) || fclose (f) != 0);
14901
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908   (eval $ac_link) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; }; then
14917   pgac_cv_alignof_long_long_int=`cat conftest.val`
14918 else
14919   echo "$as_me: program exited with status $ac_status" >&5
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ( exit $ac_status )
14923 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14924 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14925    { (exit 1); exit 1; }; }
14926 fi
14927 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 fi
14929 fi
14930 rm -f conftest.val
14931 else
14932   pgac_cv_alignof_long_long_int=0
14933 fi
14934 fi
14935 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14936 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14937 cat >>confdefs.h <<_ACEOF
14938 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14939 _ACEOF
14940
14941
14942 fi
14943 echo "$as_me:$LINENO: checking for double" >&5
14944 echo $ECHO_N "checking for double... $ECHO_C" >&6
14945 if test "${ac_cv_type_double+set}" = set; then
14946   echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948   cat >conftest.$ac_ext <<_ACEOF
14949 #line $LINENO "configure"
14950 #include "confdefs.h"
14951 $ac_includes_default
14952 #ifdef F77_DUMMY_MAIN
14953 #  ifdef __cplusplus
14954      extern "C"
14955 #  endif
14956    int F77_DUMMY_MAIN() { return 1; }
14957 #endif
14958 int
14959 main ()
14960 {
14961 if ((double *) 0)
14962   return 0;
14963 if (sizeof (double))
14964   return 0;
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14971   (eval $ac_compile) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -s conftest.$ac_objext'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981   ac_cv_type_double=yes
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 ac_cv_type_double=no
14986 fi
14987 rm -f conftest.$ac_objext conftest.$ac_ext
14988 fi
14989 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14990 echo "${ECHO_T}$ac_cv_type_double" >&6
14991
14992 echo "$as_me:$LINENO: checking alignment of double" >&5
14993 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14994 if test "${pgac_cv_alignof_double+set}" = set; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997   if test "$ac_cv_type_double" = yes; then
14998   if test "$cross_compiling" = yes; then
14999   # Depending upon the size, compute the lo and hi bounds.
15000 cat >conftest.$ac_ext <<_ACEOF
15001 #line $LINENO "configure"
15002 #include "confdefs.h"
15003 $ac_includes_default
15004 struct { char filler; double field; } pgac_struct;
15005 #ifdef F77_DUMMY_MAIN
15006 #  ifdef __cplusplus
15007      extern "C"
15008 #  endif
15009    int F77_DUMMY_MAIN() { return 1; }
15010 #endif
15011 int
15012 main ()
15013 {
15014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15015 test_array [0] = 0
15016
15017   ;
15018   return 0;
15019 }
15020 _ACEOF
15021 rm -f conftest.$ac_objext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15023   (eval $ac_compile) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -s conftest.$ac_objext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   ac_lo=0 ac_mid=0
15034   while :; do
15035     cat >conftest.$ac_ext <<_ACEOF
15036 #line $LINENO "configure"
15037 #include "confdefs.h"
15038 $ac_includes_default
15039 struct { char filler; double field; } pgac_struct;
15040 #ifdef F77_DUMMY_MAIN
15041 #  ifdef __cplusplus
15042      extern "C"
15043 #  endif
15044    int F77_DUMMY_MAIN() { return 1; }
15045 #endif
15046 int
15047 main ()
15048 {
15049 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15050 test_array [0] = 0
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -s conftest.$ac_objext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068   ac_hi=$ac_mid; break
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 cat conftest.$ac_ext >&5
15072 ac_lo=`expr $ac_mid + 1`
15073                     if test $ac_lo -le $ac_mid; then
15074                       ac_lo= ac_hi=
15075                       break
15076                     fi
15077                     ac_mid=`expr 2 '*' $ac_mid + 1`
15078 fi
15079 rm -f conftest.$ac_objext conftest.$ac_ext
15080   done
15081 else
15082   echo "$as_me: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15084 cat >conftest.$ac_ext <<_ACEOF
15085 #line $LINENO "configure"
15086 #include "confdefs.h"
15087 $ac_includes_default
15088 struct { char filler; double field; } pgac_struct;
15089 #ifdef F77_DUMMY_MAIN
15090 #  ifdef __cplusplus
15091      extern "C"
15092 #  endif
15093    int F77_DUMMY_MAIN() { return 1; }
15094 #endif
15095 int
15096 main ()
15097 {
15098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15099 test_array [0] = 0
15100
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107   (eval $ac_compile) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); } &&
15111          { ac_try='test -s conftest.$ac_objext'
15112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113   (eval $ac_try) 2>&5
15114   ac_status=$?
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); }; }; then
15117   ac_hi=-1 ac_mid=-1
15118   while :; do
15119     cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15122 $ac_includes_default
15123 struct { char filler; double field; } pgac_struct;
15124 #ifdef F77_DUMMY_MAIN
15125 #  ifdef __cplusplus
15126      extern "C"
15127 #  endif
15128    int F77_DUMMY_MAIN() { return 1; }
15129 #endif
15130 int
15131 main ()
15132 {
15133 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15134 test_array [0] = 0
15135
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142   (eval $ac_compile) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } &&
15146          { ac_try='test -s conftest.$ac_objext'
15147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148   (eval $ac_try) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); }; }; then
15152   ac_lo=$ac_mid; break
15153 else
15154   echo "$as_me: failed program was:" >&5
15155 cat conftest.$ac_ext >&5
15156 ac_hi=`expr '(' $ac_mid ')' - 1`
15157                        if test $ac_mid -le $ac_hi; then
15158                          ac_lo= ac_hi=
15159                          break
15160                        fi
15161                        ac_mid=`expr 2 '*' $ac_mid`
15162 fi
15163 rm -f conftest.$ac_objext conftest.$ac_ext
15164   done
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 ac_lo= ac_hi=
15169 fi
15170 rm -f conftest.$ac_objext conftest.$ac_ext
15171 fi
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15173 # Binary search between lo and hi bounds.
15174 while test "x$ac_lo" != "x$ac_hi"; do
15175   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15176   cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; double field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 #  ifdef __cplusplus
15183      extern "C"
15184 #  endif
15185    int F77_DUMMY_MAIN() { return 1; }
15186 #endif
15187 int
15188 main ()
15189 {
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15191 test_array [0] = 0
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199   (eval $ac_compile) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } &&
15203          { ac_try='test -s conftest.$ac_objext'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }; then
15209   ac_hi=$ac_mid
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_lo=`expr '(' $ac_mid ')' + 1`
15214 fi
15215 rm -f conftest.$ac_objext conftest.$ac_ext
15216 done
15217 case $ac_lo in
15218 ?*) pgac_cv_alignof_double=$ac_lo;;
15219 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15220 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15221    { (exit 1); exit 1; }; } ;;
15222 esac
15223 else
15224   if test "$cross_compiling" = yes; then
15225   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15226 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15227    { (exit 1); exit 1; }; }
15228 else
15229   cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 $ac_includes_default
15233 struct { char filler; double field; } pgac_struct;
15234 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15235 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15236 #include <stdio.h>
15237 #include <stdlib.h>
15238 #ifdef F77_DUMMY_MAIN
15239 #  ifdef __cplusplus
15240      extern "C"
15241 #  endif
15242    int F77_DUMMY_MAIN() { return 1; }
15243 #endif
15244 int
15245 main ()
15246 {
15247
15248   FILE *f = fopen ("conftest.val", "w");
15249   if (! f)
15250     exit (1);
15251   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15252     {
15253       long i = longval ();
15254       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15255         exit (1);
15256       fprintf (f, "%ld\n", i);
15257     }
15258   else
15259     {
15260       unsigned long i = ulongval ();
15261       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15262         exit (1);
15263       fprintf (f, "%lu\n", i);
15264     }
15265   exit (ferror (f) || fclose (f) != 0);
15266
15267   ;
15268   return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273   (eval $ac_link) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }; then
15282   pgac_cv_alignof_double=`cat conftest.val`
15283 else
15284   echo "$as_me: program exited with status $ac_status" >&5
15285 echo "$as_me: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 ( exit $ac_status )
15288 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15289 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15290    { (exit 1); exit 1; }; }
15291 fi
15292 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15293 fi
15294 fi
15295 rm -f conftest.val
15296 else
15297   pgac_cv_alignof_double=0
15298 fi
15299 fi
15300 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15301 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15302 cat >>confdefs.h <<_ACEOF
15303 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15304 _ACEOF
15305
15306
15307
15308 # Compute maximum alignment of any basic type.
15309 # We assume long's alignment is at least as strong as char, short, or int;
15310 # but we must check long long (if it exists) and double.
15311
15312 MAX_ALIGNOF=$pgac_cv_alignof_long
15313 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15314   MAX_ALIGNOF=$pgac_cv_alignof_double
15315 fi
15316 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15317   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15318 fi
15319
15320 cat >>confdefs.h <<_ACEOF
15321 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15322 _ACEOF
15323
15324
15325
15326 # Some platforms predefine the types int8, int16, etc.  Only check
15327 # a (hopefully) representative subset.
15328 echo "$as_me:$LINENO: checking for int8" >&5
15329 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15330 if test "${ac_cv_type_int8+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   cat >conftest.$ac_ext <<_ACEOF
15334 #line $LINENO "configure"
15335 #include "confdefs.h"
15336 #include <stdio.h>
15337 #ifdef HAVE_SUPPORTDEFS_H
15338 #include <SupportDefs.h>
15339 #endif
15340
15341 #ifdef F77_DUMMY_MAIN
15342 #  ifdef __cplusplus
15343      extern "C"
15344 #  endif
15345    int F77_DUMMY_MAIN() { return 1; }
15346 #endif
15347 int
15348 main ()
15349 {
15350 if ((int8 *) 0)
15351   return 0;
15352 if (sizeof (int8))
15353   return 0;
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360   (eval $ac_compile) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -s conftest.$ac_objext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370   ac_cv_type_int8=yes
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 cat conftest.$ac_ext >&5
15374 ac_cv_type_int8=no
15375 fi
15376 rm -f conftest.$ac_objext conftest.$ac_ext
15377 fi
15378 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15379 echo "${ECHO_T}$ac_cv_type_int8" >&6
15380 if test $ac_cv_type_int8 = yes; then
15381
15382 cat >>confdefs.h <<_ACEOF
15383 #define HAVE_INT8 1
15384 _ACEOF
15385
15386
15387 fi
15388 echo "$as_me:$LINENO: checking for uint8" >&5
15389 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15390 if test "${ac_cv_type_uint8+set}" = set; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 #line $LINENO "configure"
15395 #include "confdefs.h"
15396 #include <stdio.h>
15397 #ifdef HAVE_SUPPORTDEFS_H
15398 #include <SupportDefs.h>
15399 #endif
15400
15401 #ifdef F77_DUMMY_MAIN
15402 #  ifdef __cplusplus
15403      extern "C"
15404 #  endif
15405    int F77_DUMMY_MAIN() { return 1; }
15406 #endif
15407 int
15408 main ()
15409 {
15410 if ((uint8 *) 0)
15411   return 0;
15412 if (sizeof (uint8))
15413   return 0;
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420   (eval $ac_compile) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -s conftest.$ac_objext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   ac_cv_type_uint8=yes
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 cat conftest.$ac_ext >&5
15434 ac_cv_type_uint8=no
15435 fi
15436 rm -f conftest.$ac_objext conftest.$ac_ext
15437 fi
15438 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15439 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15440 if test $ac_cv_type_uint8 = yes; then
15441
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_UINT8 1
15444 _ACEOF
15445
15446
15447 fi
15448 echo "$as_me:$LINENO: checking for int64" >&5
15449 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15450 if test "${ac_cv_type_int64+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   cat >conftest.$ac_ext <<_ACEOF
15454 #line $LINENO "configure"
15455 #include "confdefs.h"
15456 #include <stdio.h>
15457 #ifdef HAVE_SUPPORTDEFS_H
15458 #include <SupportDefs.h>
15459 #endif
15460
15461 #ifdef F77_DUMMY_MAIN
15462 #  ifdef __cplusplus
15463      extern "C"
15464 #  endif
15465    int F77_DUMMY_MAIN() { return 1; }
15466 #endif
15467 int
15468 main ()
15469 {
15470 if ((int64 *) 0)
15471   return 0;
15472 if (sizeof (int64))
15473   return 0;
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480   (eval $ac_compile) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -s conftest.$ac_objext'
15485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486   (eval $ac_try) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; }; then
15490   ac_cv_type_int64=yes
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_cv_type_int64=no
15495 fi
15496 rm -f conftest.$ac_objext conftest.$ac_ext
15497 fi
15498 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15499 echo "${ECHO_T}$ac_cv_type_int64" >&6
15500 if test $ac_cv_type_int64 = yes; then
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define HAVE_INT64 1
15504 _ACEOF
15505
15506
15507 fi
15508 echo "$as_me:$LINENO: checking for uint64" >&5
15509 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15510 if test "${ac_cv_type_uint64+set}" = set; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   cat >conftest.$ac_ext <<_ACEOF
15514 #line $LINENO "configure"
15515 #include "confdefs.h"
15516 #include <stdio.h>
15517 #ifdef HAVE_SUPPORTDEFS_H
15518 #include <SupportDefs.h>
15519 #endif
15520
15521 #ifdef F77_DUMMY_MAIN
15522 #  ifdef __cplusplus
15523      extern "C"
15524 #  endif
15525    int F77_DUMMY_MAIN() { return 1; }
15526 #endif
15527 int
15528 main ()
15529 {
15530 if ((uint64 *) 0)
15531   return 0;
15532 if (sizeof (uint64))
15533   return 0;
15534   ;
15535   return 0;
15536 }
15537 _ACEOF
15538 rm -f conftest.$ac_objext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540   (eval $ac_compile) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } &&
15544          { ac_try='test -s conftest.$ac_objext'
15545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546   (eval $ac_try) 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; }; then
15550   ac_cv_type_uint64=yes
15551 else
15552   echo "$as_me: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15554 ac_cv_type_uint64=no
15555 fi
15556 rm -f conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15559 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15560 if test $ac_cv_type_uint64 = yes; then
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_UINT64 1
15564 _ACEOF
15565
15566
15567 fi
15568
15569
15570 # We also check for sig_atomic_t, which *should* be defined per ANSI
15571 # C, but is missing on some old platforms.
15572 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15573 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15574 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   cat >conftest.$ac_ext <<_ACEOF
15578 #line $LINENO "configure"
15579 #include "confdefs.h"
15580 #include <signal.h>
15581
15582 #ifdef F77_DUMMY_MAIN
15583 #  ifdef __cplusplus
15584      extern "C"
15585 #  endif
15586    int F77_DUMMY_MAIN() { return 1; }
15587 #endif
15588 int
15589 main ()
15590 {
15591 if ((sig_atomic_t *) 0)
15592   return 0;
15593 if (sizeof (sig_atomic_t))
15594   return 0;
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601   (eval $ac_compile) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } &&
15605          { ac_try='test -s conftest.$ac_objext'
15606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607   (eval $ac_try) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611   ac_cv_type_sig_atomic_t=yes
15612 else
15613   echo "$as_me: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 ac_cv_type_sig_atomic_t=no
15616 fi
15617 rm -f conftest.$ac_objext conftest.$ac_ext
15618 fi
15619 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15620 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15621 if test $ac_cv_type_sig_atomic_t = yes; then
15622
15623 cat >>confdefs.h <<_ACEOF
15624 #define HAVE_SIG_ATOMIC_T 1
15625 _ACEOF
15626
15627
15628 fi
15629
15630
15631
15632 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15633 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15634 if test "${pgac_cv_func_posix_signals+set}" = set; then
15635   echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637   cat >conftest.$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15639 #include "confdefs.h"
15640 #include <signal.h>
15641
15642 #ifdef F77_DUMMY_MAIN
15643 #  ifdef __cplusplus
15644      extern "C"
15645 #  endif
15646    int F77_DUMMY_MAIN() { return 1; }
15647 #endif
15648 int
15649 main ()
15650 {
15651 struct sigaction act, oact;
15652 sigemptyset(&act.sa_mask);
15653 act.sa_flags = SA_RESTART;
15654 sigaction(0, &act, &oact);
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661   (eval $ac_link) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   pgac_cv_func_posix_signals=yes
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 pgac_cv_func_posix_signals=no
15676 fi
15677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15678 fi
15679 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15680 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15681 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15682
15683 cat >>confdefs.h <<\_ACEOF
15684 #define HAVE_POSIX_SIGNALS
15685 _ACEOF
15686
15687 fi
15688 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15689
15690
15691
15692 # Select semaphore implementation type.
15693 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define USE_NAMED_POSIX_SEMAPHORES 1
15697 _ACEOF
15698
15699   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15700 else
15701   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15702
15703 cat >>confdefs.h <<\_ACEOF
15704 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15705 _ACEOF
15706
15707     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15708   else
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define USE_SYSV_SEMAPHORES 1
15712 _ACEOF
15713
15714     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15715   fi
15716 fi
15717
15718
15719 # Select shared-memory implementation type.
15720
15721 cat >>confdefs.h <<\_ACEOF
15722 #define USE_SYSV_SHARED_MEMORY 1
15723 _ACEOF
15724
15725 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15726
15727
15728 if test "$enable_nls" = yes ; then
15729
15730   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15731 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15732 if test "${ac_cv_search_gettext+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   ac_func_search_save_LIBS=$LIBS
15736 ac_cv_search_gettext=no
15737 cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 #include "confdefs.h"
15740
15741 /* Override any gcc2 internal prototype to avoid an error.  */
15742 #ifdef __cplusplus
15743 extern "C"
15744 #endif
15745 /* We use char because int might match the return type of a gcc2
15746    builtin and then its argument prototype would still apply.  */
15747 char gettext ();
15748 #ifdef F77_DUMMY_MAIN
15749 #  ifdef __cplusplus
15750      extern "C"
15751 #  endif
15752    int F77_DUMMY_MAIN() { return 1; }
15753 #endif
15754 int
15755 main ()
15756 {
15757 gettext ();
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764   (eval $ac_link) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); } &&
15768          { ac_try='test -s conftest$ac_exeext'
15769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770   (eval $ac_try) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; }; then
15774   ac_cv_search_gettext="none required"
15775 else
15776   echo "$as_me: failed program was:" >&5
15777 cat conftest.$ac_ext >&5
15778 fi
15779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15780 if test "$ac_cv_search_gettext" = no; then
15781   for ac_lib in intl; do
15782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15783     cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 #include "confdefs.h"
15786
15787 /* Override any gcc2 internal prototype to avoid an error.  */
15788 #ifdef __cplusplus
15789 extern "C"
15790 #endif
15791 /* We use char because int might match the return type of a gcc2
15792    builtin and then its argument prototype would still apply.  */
15793 char gettext ();
15794 #ifdef F77_DUMMY_MAIN
15795 #  ifdef __cplusplus
15796      extern "C"
15797 #  endif
15798    int F77_DUMMY_MAIN() { return 1; }
15799 #endif
15800 int
15801 main ()
15802 {
15803 gettext ();
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810   (eval $ac_link) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } &&
15814          { ac_try='test -s conftest$ac_exeext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_cv_search_gettext="-l$ac_lib"
15821 break
15822 else
15823   echo "$as_me: failed program was:" >&5
15824 cat conftest.$ac_ext >&5
15825 fi
15826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15827   done
15828 fi
15829 LIBS=$ac_func_search_save_LIBS
15830 fi
15831 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15832 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15833 if test "$ac_cv_search_gettext" != no; then
15834   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15835
15836 else
15837   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15838 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15839    { (exit 1); exit 1; }; }
15840 fi
15841
15842   if test "${ac_cv_header_libintl_h+set}" = set; then
15843   echo "$as_me:$LINENO: checking for libintl.h" >&5
15844 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15845 if test "${ac_cv_header_libintl_h+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 fi
15848 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15849 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15850 else
15851   # Is the header compilable?
15852 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15853 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15856 #include "confdefs.h"
15857 $ac_includes_default
15858 #include <libintl.h>
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862   (eval $ac_compile) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } &&
15866          { ac_try='test -s conftest.$ac_objext'
15867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868   (eval $ac_try) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; }; then
15872   ac_header_compiler=yes
15873 else
15874   echo "$as_me: failed program was:" >&5
15875 cat conftest.$ac_ext >&5
15876 ac_header_compiler=no
15877 fi
15878 rm -f conftest.$ac_objext conftest.$ac_ext
15879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6
15881
15882 # Is the header present?
15883 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15884 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15887 #include "confdefs.h"
15888 #include <libintl.h>
15889 _ACEOF
15890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15892   ac_status=$?
15893   egrep -v '^ *\+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } >/dev/null; then
15898   if test -s conftest.err; then
15899     ac_cpp_err=$ac_c_preproc_warn_flag
15900   else
15901     ac_cpp_err=
15902   fi
15903 else
15904   ac_cpp_err=yes
15905 fi
15906 if test -z "$ac_cpp_err"; then
15907   ac_header_preproc=yes
15908 else
15909   echo "$as_me: failed program was:" >&5
15910   cat conftest.$ac_ext >&5
15911   ac_header_preproc=no
15912 fi
15913 rm -f conftest.err conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6
15916
15917 # So?  What about this header?
15918 case $ac_header_compiler:$ac_header_preproc in
15919   yes:no )
15920     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15924   no:yes )
15925     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15926 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15927     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15928 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15930 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15931 esac
15932 echo "$as_me:$LINENO: checking for libintl.h" >&5
15933 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15934 if test "${ac_cv_header_libintl_h+set}" = set; then
15935   echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937   ac_cv_header_libintl_h=$ac_header_preproc
15938 fi
15939 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15940 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15941
15942 fi
15943 if test $ac_cv_header_libintl_h = yes; then
15944   :
15945 else
15946   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15947 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15948    { (exit 1); exit 1; }; }
15949 fi
15950
15951
15952   for ac_prog in msgfmt
15953 do
15954   # Extract the first word of "$ac_prog", so it can be a program name with args.
15955 set dummy $ac_prog; ac_word=$2
15956 echo "$as_me:$LINENO: checking for $ac_word" >&5
15957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15958 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15959   echo $ECHO_N "(cached) $ECHO_C" >&6
15960 else
15961   if test -n "$MSGFMT"; then
15962   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15963 else
15964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15965 for as_dir in $PATH
15966 do
15967   IFS=$as_save_IFS
15968   test -z "$as_dir" && as_dir=.
15969   for ac_exec_ext in '' $ac_executable_extensions; do
15970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15971     ac_cv_prog_MSGFMT="$ac_prog"
15972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15973     break 2
15974   fi
15975 done
15976 done
15977
15978 fi
15979 fi
15980 MSGFMT=$ac_cv_prog_MSGFMT
15981 if test -n "$MSGFMT"; then
15982   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15983 echo "${ECHO_T}$MSGFMT" >&6
15984 else
15985   echo "$as_me:$LINENO: result: no" >&5
15986 echo "${ECHO_T}no" >&6
15987 fi
15988
15989   test -n "$MSGFMT" && break
15990 done
15991
15992   if test -z "$MSGFMT"; then
15993     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15994 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15995    { (exit 1); exit 1; }; }
15996   fi
15997   for ac_prog in msgmerge
15998 do
15999   # Extract the first word of "$ac_prog", so it can be a program name with args.
16000 set dummy $ac_prog; ac_word=$2
16001 echo "$as_me:$LINENO: checking for $ac_word" >&5
16002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16003 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   if test -n "$MSGMERGE"; then
16007   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16008 else
16009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010 for as_dir in $PATH
16011 do
16012   IFS=$as_save_IFS
16013   test -z "$as_dir" && as_dir=.
16014   for ac_exec_ext in '' $ac_executable_extensions; do
16015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16016     ac_cv_prog_MSGMERGE="$ac_prog"
16017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16018     break 2
16019   fi
16020 done
16021 done
16022
16023 fi
16024 fi
16025 MSGMERGE=$ac_cv_prog_MSGMERGE
16026 if test -n "$MSGMERGE"; then
16027   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16028 echo "${ECHO_T}$MSGMERGE" >&6
16029 else
16030   echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6
16032 fi
16033
16034   test -n "$MSGMERGE" && break
16035 done
16036
16037   for ac_prog in xgettext
16038 do
16039   # Extract the first word of "$ac_prog", so it can be a program name with args.
16040 set dummy $ac_prog; ac_word=$2
16041 echo "$as_me:$LINENO: checking for $ac_word" >&5
16042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16043 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   if test -n "$XGETTEXT"; then
16047   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16048 else
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16051 do
16052   IFS=$as_save_IFS
16053   test -z "$as_dir" && as_dir=.
16054   for ac_exec_ext in '' $ac_executable_extensions; do
16055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056     ac_cv_prog_XGETTEXT="$ac_prog"
16057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16058     break 2
16059   fi
16060 done
16061 done
16062
16063 fi
16064 fi
16065 XGETTEXT=$ac_cv_prog_XGETTEXT
16066 if test -n "$XGETTEXT"; then
16067   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16068 echo "${ECHO_T}$XGETTEXT" >&6
16069 else
16070   echo "$as_me:$LINENO: result: no" >&5
16071 echo "${ECHO_T}no" >&6
16072 fi
16073
16074   test -n "$XGETTEXT" && break
16075 done
16076
16077
16078   # Note: share/locale is always the default, independent of $datadir
16079   localedir='${prefix}/share/locale'
16080   if test x"$prefix" = x"NONE"; then
16081     exp_localedir="$ac_default_prefix/share/locale"
16082   else
16083     exp_localedir="$prefix/share/locale"
16084   fi
16085
16086
16087
16088 cat >>confdefs.h <<_ACEOF
16089 #define LOCALEDIR "$exp_localedir"
16090 _ACEOF
16091
16092
16093 fi
16094
16095 if test "$with_CXX" = yes; then
16096
16097
16098 ac_ext=cc
16099 ac_cpp='$CXXCPP $CPPFLAGS'
16100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16103
16104 if test "${ac_cv_header_string+set}" = set; then
16105   echo "$as_me:$LINENO: checking for string" >&5
16106 echo $ECHO_N "checking for string... $ECHO_C" >&6
16107 if test "${ac_cv_header_string+set}" = set; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 fi
16110 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16111 echo "${ECHO_T}$ac_cv_header_string" >&6
16112 else
16113   # Is the header compilable?
16114 echo "$as_me:$LINENO: checking string usability" >&5
16115 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16118 #include "confdefs.h"
16119 $ac_includes_default
16120 #include <string>
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124   (eval $ac_compile) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } &&
16128          { ac_try='test -s conftest.$ac_objext'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   ac_header_compiler=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 ac_header_compiler=no
16139 fi
16140 rm -f conftest.$ac_objext conftest.$ac_ext
16141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16142 echo "${ECHO_T}$ac_header_compiler" >&6
16143
16144 # Is the header present?
16145 echo "$as_me:$LINENO: checking string presence" >&5
16146 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16147 cat >conftest.$ac_ext <<_ACEOF
16148 #line $LINENO "configure"
16149 #include "confdefs.h"
16150 #include <string>
16151 _ACEOF
16152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16154   ac_status=$?
16155   egrep -v '^ *\+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } >/dev/null; then
16160   if test -s conftest.err; then
16161     ac_cpp_err=$ac_cxx_preproc_warn_flag
16162   else
16163     ac_cpp_err=
16164   fi
16165 else
16166   ac_cpp_err=yes
16167 fi
16168 if test -z "$ac_cpp_err"; then
16169   ac_header_preproc=yes
16170 else
16171   echo "$as_me: failed program was:" >&5
16172   cat conftest.$ac_ext >&5
16173   ac_header_preproc=no
16174 fi
16175 rm -f conftest.err conftest.$ac_ext
16176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16177 echo "${ECHO_T}$ac_header_preproc" >&6
16178
16179 # So?  What about this header?
16180 case $ac_header_compiler:$ac_header_preproc in
16181   yes:no )
16182     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16183 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16184     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16186   no:yes )
16187     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16188 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16189     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16190 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16191     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16192 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16193 esac
16194 echo "$as_me:$LINENO: checking for string" >&5
16195 echo $ECHO_N "checking for string... $ECHO_C" >&6
16196 if test "${ac_cv_header_string+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   ac_cv_header_string=$ac_header_preproc
16200 fi
16201 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16202 echo "${ECHO_T}$ac_cv_header_string" >&6
16203
16204 fi
16205 if test $ac_cv_header_string = yes; then
16206
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE_CXX_STRING_HEADER 1
16209 _ACEOF
16210
16211 else
16212   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16213 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16214 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16215   echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217   cat >conftest.$ac_ext <<_ACEOF
16218 #line $LINENO "configure"
16219 #include "confdefs.h"
16220 #include <stdio.h>
16221 #include <stdlib.h>
16222 #include <string.h>
16223
16224 #ifdef F77_DUMMY_MAIN
16225 #  ifdef __cplusplus
16226      extern "C"
16227 #  endif
16228    int F77_DUMMY_MAIN() { return 1; }
16229 #endif
16230 int
16231 main ()
16232 {
16233 string foo = "test"
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240   (eval $ac_compile) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -s conftest.$ac_objext'
16245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246   (eval $ac_try) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   pgac_cv_class_string_in_string_h=yes
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 cat conftest.$ac_ext >&5
16254 pgac_cv_class_string_in_string_h=no
16255 fi
16256 rm -f conftest.$ac_objext conftest.$ac_ext
16257 fi
16258 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16259 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16260
16261   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16262     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16263 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16264    { (exit 1); exit 1; }; }
16265   fi
16266
16267 fi
16268
16269
16270 ac_ext=c
16271 ac_cpp='$CPP $CPPFLAGS'
16272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16275
16276
16277 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16278 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16279 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282
16283 ac_ext=cc
16284 ac_cpp='$CXXCPP $CPPFLAGS'
16285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16288
16289 cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 #include "confdefs.h"
16292 #include <stdio.h>
16293 #include <stdlib.h>
16294 #ifdef HAVE_CXX_STRING_HEADER
16295 #include <string>
16296 #endif
16297 using namespace std;
16298
16299 #ifdef F77_DUMMY_MAIN
16300 #  ifdef __cplusplus
16301      extern "C"
16302 #  endif
16303    int F77_DUMMY_MAIN() { return 1; }
16304 #endif
16305 int
16306 main ()
16307 {
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315   (eval $ac_compile) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -s conftest.$ac_objext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   pgac_cv_cxx_namespace_std=yes
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 pgac_cv_cxx_namespace_std=no
16330 fi
16331 rm -f conftest.$ac_objext conftest.$ac_ext
16332 ac_ext=c
16333 ac_cpp='$CPP $CPPFLAGS'
16334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16337
16338 fi
16339 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16340 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16341
16342 if test $pgac_cv_cxx_namespace_std = yes ; then
16343
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_NAMESPACE_STD 1
16346 _ACEOF
16347
16348 fi
16349 fi
16350
16351
16352 # Check for Tcl configuration script tclConfig.sh
16353 if test "$with_tcl" = yes; then
16354     for ac_prog in tclsh tcl
16355 do
16356   # Extract the first word of "$ac_prog", so it can be a program name with args.
16357 set dummy $ac_prog; ac_word=$2
16358 echo "$as_me:$LINENO: checking for $ac_word" >&5
16359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16360 if test "${ac_cv_path_TCLSH+set}" = set; then
16361   echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363   case $TCLSH in
16364   [\\/]* | ?:[\\/]*)
16365   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16366   ;;
16367   *)
16368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16369 for as_dir in $PATH
16370 do
16371   IFS=$as_save_IFS
16372   test -z "$as_dir" && as_dir=.
16373   for ac_exec_ext in '' $ac_executable_extensions; do
16374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16375     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16377     break 2
16378   fi
16379 done
16380 done
16381
16382   ;;
16383 esac
16384 fi
16385 TCLSH=$ac_cv_path_TCLSH
16386
16387 if test -n "$TCLSH"; then
16388   echo "$as_me:$LINENO: result: $TCLSH" >&5
16389 echo "${ECHO_T}$TCLSH" >&6
16390 else
16391   echo "$as_me:$LINENO: result: no" >&5
16392 echo "${ECHO_T}no" >&6
16393 fi
16394
16395   test -n "$TCLSH" && break
16396 done
16397
16398 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16399 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16400 # Let user override test
16401 if test -z "$TCL_CONFIG_SH"; then
16402     pgac_test_dirs="$with_tclconfig"
16403
16404     set X $pgac_test_dirs; shift
16405     if test $# -eq 0; then
16406         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16407 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16408    { (exit 1); exit 1; }; }
16409         set X `echo 'puts $auto_path' | $TCLSH`; shift
16410     fi
16411
16412     for pgac_dir do
16413         if test -r "$pgac_dir/tclConfig.sh"; then
16414             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16415             break
16416         fi
16417     done
16418 fi
16419
16420 if test -z "$TCL_CONFIG_SH"; then
16421     echo "$as_me:$LINENO: result: no" >&5
16422 echo "${ECHO_T}no" >&6
16423     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16424 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16425    { (exit 1); exit 1; }; }
16426 else
16427     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16428 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16429 fi
16430
16431
16432
16433     . "$TCL_CONFIG_SH"
16434 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16435 eval TCL_LIBS=\"$TCL_LIBS\"
16436 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16437 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16438
16439     fi
16440
16441 # Check for Tk configuration script tkConfig.sh
16442 if test "$with_tk" = yes; then
16443     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16444 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16445 # Let user override test
16446 if test -z "$TK_CONFIG_SH"; then
16447     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16448
16449     set X $pgac_test_dirs; shift
16450     if test $# -eq 0; then
16451         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16452 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16453    { (exit 1); exit 1; }; }
16454         set X `echo 'puts $auto_path' | $TCLSH`; shift
16455     fi
16456
16457     for pgac_dir do
16458         if test -r "$pgac_dir/tkConfig.sh"; then
16459             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16460             break
16461         fi
16462     done
16463 fi
16464
16465 if test -z "$TK_CONFIG_SH"; then
16466     echo "$as_me:$LINENO: result: no" >&5
16467 echo "${ECHO_T}no" >&6
16468     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16469 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16470    { (exit 1); exit 1; }; }
16471 else
16472     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16473 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16474 fi
16475
16476
16477
16478     . "$TK_CONFIG_SH"
16479 eval TK_LIBS=\"$TK_LIBS\"
16480 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16481 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16482
16483 fi
16484
16485
16486 #
16487 # Check for DocBook and tools
16488 #
16489 for ac_prog in onsgmls nsgmls
16490 do
16491   # Extract the first word of "$ac_prog", so it can be a program name with args.
16492 set dummy $ac_prog; ac_word=$2
16493 echo "$as_me:$LINENO: checking for $ac_word" >&5
16494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16495 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   if test -n "$NSGMLS"; then
16499   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16500 else
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in $PATH
16503 do
16504   IFS=$as_save_IFS
16505   test -z "$as_dir" && as_dir=.
16506   for ac_exec_ext in '' $ac_executable_extensions; do
16507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16508     ac_cv_prog_NSGMLS="$ac_prog"
16509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16510     break 2
16511   fi
16512 done
16513 done
16514
16515 fi
16516 fi
16517 NSGMLS=$ac_cv_prog_NSGMLS
16518 if test -n "$NSGMLS"; then
16519   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16520 echo "${ECHO_T}$NSGMLS" >&6
16521 else
16522   echo "$as_me:$LINENO: result: no" >&5
16523 echo "${ECHO_T}no" >&6
16524 fi
16525
16526   test -n "$NSGMLS" && break
16527 done
16528
16529 for ac_prog in openjade jade
16530 do
16531   # Extract the first word of "$ac_prog", so it can be a program name with args.
16532 set dummy $ac_prog; ac_word=$2
16533 echo "$as_me:$LINENO: checking for $ac_word" >&5
16534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16535 if test "${ac_cv_prog_JADE+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   if test -n "$JADE"; then
16539   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16540 else
16541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16542 for as_dir in $PATH
16543 do
16544   IFS=$as_save_IFS
16545   test -z "$as_dir" && as_dir=.
16546   for ac_exec_ext in '' $ac_executable_extensions; do
16547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16548     ac_cv_prog_JADE="$ac_prog"
16549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16550     break 2
16551   fi
16552 done
16553 done
16554
16555 fi
16556 fi
16557 JADE=$ac_cv_prog_JADE
16558 if test -n "$JADE"; then
16559   echo "$as_me:$LINENO: result: $JADE" >&5
16560 echo "${ECHO_T}$JADE" >&6
16561 else
16562   echo "$as_me:$LINENO: result: no" >&5
16563 echo "${ECHO_T}no" >&6
16564 fi
16565
16566   test -n "$JADE" && break
16567 done
16568
16569
16570 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16571 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16572 if test "${pgac_cv_check_docbook+set}" = set; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575   cat >conftest.sgml <<EOF
16576 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16577 <book>
16578  <title>test</title>
16579  <chapter>
16580   <title>random</title>
16581    <sect1>
16582     <title>testsect</title>
16583     <para>text</para>
16584   </sect1>
16585  </chapter>
16586 </book>
16587 EOF
16588
16589 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16590 if test $? -eq 0; then
16591   pgac_cv_check_docbook=yes
16592 else
16593   pgac_cv_check_docbook=no
16594 fi
16595 rm -f conftest.sgml
16596 fi
16597 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16598 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16599
16600 have_docbook=$pgac_cv_check_docbook
16601
16602
16603 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16604 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16605 if test "${pgac_cv_path_stylesheets+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   if test -n "$DOCBOOKSTYLE"; then
16609   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16610 else
16611   for pgac_prefix in /usr /usr/local /opt; do
16612     for pgac_infix in share lib; do
16613       for pgac_postfix in \
16614         sgml/stylesheets/nwalsh-modular \
16615         sgml/stylesheets/docbook \
16616         sgml/docbook/dsssl/modular \
16617         sgml/docbook/dsssl-stylesheets
16618       do
16619         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16620         if test -r "$pgac_candidate/html/docbook.dsl" \
16621            && test -r "$pgac_candidate/print/docbook.dsl"
16622         then
16623           pgac_cv_path_stylesheets=$pgac_candidate
16624           break 3
16625         fi
16626       done
16627     done
16628   done
16629 fi
16630 fi
16631
16632 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16633
16634 if test -n "$DOCBOOKSTYLE"; then
16635   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16636 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16637 else
16638   echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6
16640 fi
16641 if test -n "$DOCBOOKSTYLE"; then
16642   for ac_prog in collateindex.pl
16643 do
16644   # Extract the first word of "$ac_prog", so it can be a program name with args.
16645 set dummy $ac_prog; ac_word=$2
16646 echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16648 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   case $COLLATEINDEX in
16652   [\\/]* | ?:[\\/]*)
16653   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16654   ;;
16655   *)
16656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16657 for as_dir in $DOCBOOKSTYLE/bin $PATH
16658 do
16659   IFS=$as_save_IFS
16660   test -z "$as_dir" && as_dir=.
16661   for ac_exec_ext in '' $ac_executable_extensions; do
16662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16663     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16665     break 2
16666   fi
16667 done
16668 done
16669
16670   ;;
16671 esac
16672 fi
16673 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16674
16675 if test -n "$COLLATEINDEX"; then
16676   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16677 echo "${ECHO_T}$COLLATEINDEX" >&6
16678 else
16679   echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6
16681 fi
16682
16683   test -n "$COLLATEINDEX" && break
16684 done
16685
16686 else
16687   for ac_prog in collateindex.pl
16688 do
16689   # Extract the first word of "$ac_prog", so it can be a program name with args.
16690 set dummy $ac_prog; ac_word=$2
16691 echo "$as_me:$LINENO: checking for $ac_word" >&5
16692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16693 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16694   echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696   case $COLLATEINDEX in
16697   [\\/]* | ?:[\\/]*)
16698   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16699   ;;
16700   *)
16701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16702 for as_dir in $PATH
16703 do
16704   IFS=$as_save_IFS
16705   test -z "$as_dir" && as_dir=.
16706   for ac_exec_ext in '' $ac_executable_extensions; do
16707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16708     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16710     break 2
16711   fi
16712 done
16713 done
16714
16715   ;;
16716 esac
16717 fi
16718 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16719
16720 if test -n "$COLLATEINDEX"; then
16721   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16722 echo "${ECHO_T}$COLLATEINDEX" >&6
16723 else
16724   echo "$as_me:$LINENO: result: no" >&5
16725 echo "${ECHO_T}no" >&6
16726 fi
16727
16728   test -n "$COLLATEINDEX" && break
16729 done
16730
16731 fi
16732 for ac_prog in sgmlspl
16733 do
16734   # Extract the first word of "$ac_prog", so it can be a program name with args.
16735 set dummy $ac_prog; ac_word=$2
16736 echo "$as_me:$LINENO: checking for $ac_word" >&5
16737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16738 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   if test -n "$SGMLSPL"; then
16742   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16746 do
16747   IFS=$as_save_IFS
16748   test -z "$as_dir" && as_dir=.
16749   for ac_exec_ext in '' $ac_executable_extensions; do
16750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751     ac_cv_prog_SGMLSPL="$ac_prog"
16752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16753     break 2
16754   fi
16755 done
16756 done
16757
16758 fi
16759 fi
16760 SGMLSPL=$ac_cv_prog_SGMLSPL
16761 if test -n "$SGMLSPL"; then
16762   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16763 echo "${ECHO_T}$SGMLSPL" >&6
16764 else
16765   echo "$as_me:$LINENO: result: no" >&5
16766 echo "${ECHO_T}no" >&6
16767 fi
16768
16769   test -n "$SGMLSPL" && break
16770 done
16771
16772
16773
16774 # prepare build tree if outside source tree
16775 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16776 # Note 2: /bin/pwd might be better than shell's built-in at getting
16777 #         a symlink-free name.
16778 if test "$no_create" != yes; then
16779   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16780     :
16781   else
16782     vpath_build=yes
16783
16784     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16785     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16786     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16787       || { { echo "$as_me:$LINENO: error: failed" >&5
16788 echo "$as_me: error: failed" >&2;}
16789    { (exit 1); exit 1; }; }
16790     echo "$as_me:$LINENO: result: done" >&5
16791 echo "${ECHO_T}done" >&6
16792   fi
16793 fi
16794
16795
16796 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16797
16798
16799 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}"
16800
16801
16802 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16803
16804
16805 cat >confcache <<\_ACEOF
16806 # This file is a shell script that caches the results of configure
16807 # tests run on this system so they can be shared between configure
16808 # scripts and configure runs, see configure's option --config-cache.
16809 # It is not useful on other systems.  If it contains results you don't
16810 # want to keep, you may remove or edit it.
16811 #
16812 # config.status only pays attention to the cache file if you give it
16813 # the --recheck option to rerun configure.
16814 #
16815 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16817 # following values.
16818
16819 _ACEOF
16820
16821 # The following way of writing the cache mishandles newlines in values,
16822 # but we know of no workaround that is simple, portable, and efficient.
16823 # So, don't put newlines in cache variables' values.
16824 # Ultrix sh set writes to stderr and can't be redirected directly,
16825 # and sets the high bit in the cache file unless we assign to the vars.
16826 {
16827   (set) 2>&1 |
16828     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16829     *ac_space=\ *)
16830       # `set' does not quote correctly, so add quotes (double-quote
16831       # substitution turns \\\\ into \\, and sed turns \\ into \).
16832       sed -n \
16833         "s/'/'\\\\''/g;
16834           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16835       ;;
16836     *)
16837       # `set' quotes correctly as required by POSIX, so do not add quotes.
16838       sed -n \
16839         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16840       ;;
16841     esac;
16842 } |
16843   sed '
16844      t clear
16845      : clear
16846      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16847      t end
16848      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16849      : end' >>confcache
16850 if cmp -s $cache_file confcache; then :; else
16851   if test -w $cache_file; then
16852     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16853     cat confcache >$cache_file
16854   else
16855     echo "not updating unwritable cache $cache_file"
16856   fi
16857 fi
16858 rm -f confcache
16859
16860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16861 # Let make expand exec_prefix.
16862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16863
16864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16866 # trailing colons and then remove the whole line if VPATH becomes empty
16867 # (actually we leave an empty line to preserve line numbers).
16868 if test "x$srcdir" = x.; then
16869   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16870 s/:*\$(srcdir):*/:/;
16871 s/:*\${srcdir}:*/:/;
16872 s/:*@srcdir@:*/:/;
16873 s/^\([^=]*=[    ]*\):*/\1/;
16874 s/:*$//;
16875 s/^[^=]*=[      ]*$//;
16876 }'
16877 fi
16878
16879 DEFS=-DHAVE_CONFIG_H
16880
16881
16882 : ${CONFIG_STATUS=./config.status}
16883 ac_clean_files_save=$ac_clean_files
16884 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16885 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16886 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16887 cat >$CONFIG_STATUS <<_ACEOF
16888 #! $SHELL
16889 # Generated by $as_me.
16890 # Run this file to recreate the current configuration.
16891 # Compiler output produced by configure, useful for debugging
16892 # configure, is in config.log if it exists.
16893
16894 debug=false
16895 SHELL=\${CONFIG_SHELL-$SHELL}
16896 _ACEOF
16897
16898 cat >>$CONFIG_STATUS <<\_ACEOF
16899
16900 ## --------------------- ##
16901 ## M4sh Initialization.  ##
16902 ## --------------------- ##
16903
16904 # Be Bourne compatible
16905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16906   emulate sh
16907   NULLCMD=:
16908 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16909   set -o posix
16910 fi
16911
16912 # NLS nuisances.
16913 # Support unset when possible.
16914 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16915   as_unset=unset
16916 else
16917   as_unset=false
16918 fi
16919
16920 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16921     { $as_unset LANG || test "${LANG+set}" != set; } ||
16922       { LANG=C; export LANG; }
16923 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16924     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16925       { LC_ALL=C; export LC_ALL; }
16926 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16927     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16928       { LC_TIME=C; export LC_TIME; }
16929 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16930     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16931       { LC_CTYPE=C; export LC_CTYPE; }
16932 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16933     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16934       { LANGUAGE=C; export LANGUAGE; }
16935 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16936     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16937       { LC_COLLATE=C; export LC_COLLATE; }
16938 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16939     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16940       { LC_NUMERIC=C; export LC_NUMERIC; }
16941 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16942     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16943       { LC_MESSAGES=C; export LC_MESSAGES; }
16944
16945
16946 # Name of the executable.
16947 as_me=`(basename "$0") 2>/dev/null ||
16948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16949          X"$0" : 'X\(//\)$' \| \
16950          X"$0" : 'X\(/\)$' \| \
16951          .     : '\(.\)' 2>/dev/null ||
16952 echo X/"$0" |
16953     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16954           /^X\/\(\/\/\)$/{ s//\1/; q; }
16955           /^X\/\(\/\).*/{ s//\1/; q; }
16956           s/.*/./; q'`
16957
16958 # PATH needs CR, and LINENO needs CR and PATH.
16959 # Avoid depending upon Character Ranges.
16960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16963 as_cr_digits='0123456789'
16964 as_cr_alnum=$as_cr_Letters$as_cr_digits
16965
16966 # The user is always right.
16967 if test "${PATH_SEPARATOR+set}" != set; then
16968   echo "#! /bin/sh" >conftest.sh
16969   echo  "exit 0"   >>conftest.sh
16970   chmod +x conftest.sh
16971   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16972     PATH_SEPARATOR=';'
16973   else
16974     PATH_SEPARATOR=:
16975   fi
16976   rm -f conftest.sh
16977 fi
16978
16979
16980   as_lineno_1=$LINENO
16981   as_lineno_2=$LINENO
16982   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16983   test "x$as_lineno_1" != "x$as_lineno_2" &&
16984   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16985   # Find who we are.  Look in the path if we contain no path at all
16986   # relative or not.
16987   case $0 in
16988     *[\\/]* ) as_myself=$0 ;;
16989     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 for as_dir in $PATH
16991 do
16992   IFS=$as_save_IFS
16993   test -z "$as_dir" && as_dir=.
16994   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16995 done
16996
16997        ;;
16998   esac
16999   # We did not find ourselves, most probably we were run as `sh COMMAND'
17000   # in which case we are not to be found in the path.
17001   if test "x$as_myself" = x; then
17002     as_myself=$0
17003   fi
17004   if test ! -f "$as_myself"; then
17005     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17006 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17007    { (exit 1); exit 1; }; }
17008   fi
17009   case $CONFIG_SHELL in
17010   '')
17011     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17013 do
17014   IFS=$as_save_IFS
17015   test -z "$as_dir" && as_dir=.
17016   for as_base in sh bash ksh sh5; do
17017          case $as_dir in
17018          /*)
17019            if ("$as_dir/$as_base" -c '
17020   as_lineno_1=$LINENO
17021   as_lineno_2=$LINENO
17022   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17023   test "x$as_lineno_1" != "x$as_lineno_2" &&
17024   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17025              CONFIG_SHELL=$as_dir/$as_base
17026              export CONFIG_SHELL
17027              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17028            fi;;
17029          esac
17030        done
17031 done
17032 ;;
17033   esac
17034
17035   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17036   # uniformly replaced by the line number.  The first 'sed' inserts a
17037   # line-number line before each line; the second 'sed' does the real
17038   # work.  The second script uses 'N' to pair each line-number line
17039   # with the numbered line, and appends trailing '-' during
17040   # substitution so that $LINENO is not a special case at line end.
17041   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17042   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17043   sed '=' <$as_myself |
17044     sed '
17045       N
17046       s,$,-,
17047       : loop
17048       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17049       t loop
17050       s,-$,,
17051       s,^['$as_cr_digits']*\n,,
17052     ' >$as_me.lineno &&
17053   chmod +x $as_me.lineno ||
17054     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17055 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17056    { (exit 1); exit 1; }; }
17057
17058   # Don't try to exec as it changes $[0], causing all sort of problems
17059   # (the dirname of $[0] is not the place where we might find the
17060   # original and so on.  Autoconf is especially sensible to this).
17061   . ./$as_me.lineno
17062   # Exit status is that of the last command.
17063   exit
17064 }
17065
17066
17067 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17068   *c*,-n*) ECHO_N= ECHO_C='
17069 ' ECHO_T='      ' ;;
17070   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17071   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17072 esac
17073
17074 if expr a : '\(a\)' >/dev/null 2>&1; then
17075   as_expr=expr
17076 else
17077   as_expr=false
17078 fi
17079
17080 rm -f conf$$ conf$$.exe conf$$.file
17081 echo >conf$$.file
17082 if ln -s conf$$.file conf$$ 2>/dev/null; then
17083   # We could just check for DJGPP; but this test a) works b) is more generic
17084   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17085   if test -f conf$$.exe; then
17086     # Don't use ln at all; we don't have any links
17087     as_ln_s='cp -p'
17088   else
17089     as_ln_s='ln -s'
17090   fi
17091 elif ln conf$$.file conf$$ 2>/dev/null; then
17092   as_ln_s=ln
17093 else
17094   as_ln_s='cp -p'
17095 fi
17096 rm -f conf$$ conf$$.exe conf$$.file
17097
17098 as_executable_p="test -f"
17099
17100 # Sed expression to map a string onto a valid CPP name.
17101 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17102
17103 # Sed expression to map a string onto a valid variable name.
17104 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17105
17106
17107 # IFS
17108 # We need space, tab and new line, in precisely that order.
17109 as_nl='
17110 '
17111 IFS="   $as_nl"
17112
17113 # CDPATH.
17114 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17115
17116 exec 6>&1
17117
17118 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17119 # report actual input values of CONFIG_FILES etc. instead of their
17120 # values after options handling.  Logging --version etc. is OK.
17121 exec 5>>config.log
17122 {
17123   echo
17124   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17125 ## Running $as_me. ##
17126 _ASBOX
17127 } >&5
17128 cat >&5 <<_CSEOF
17129
17130 This file was extended by PostgreSQL $as_me 7.3devel, which was
17131 generated by GNU Autoconf 2.53.  Invocation command line was
17132
17133   CONFIG_FILES    = $CONFIG_FILES
17134   CONFIG_HEADERS  = $CONFIG_HEADERS
17135   CONFIG_LINKS    = $CONFIG_LINKS
17136   CONFIG_COMMANDS = $CONFIG_COMMANDS
17137   $ $0 $@
17138
17139 _CSEOF
17140 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17141 echo >&5
17142 _ACEOF
17143
17144 # Files that config.status was made for.
17145 if test -n "$ac_config_files"; then
17146   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17147 fi
17148
17149 if test -n "$ac_config_headers"; then
17150   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17151 fi
17152
17153 if test -n "$ac_config_links"; then
17154   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17155 fi
17156
17157 if test -n "$ac_config_commands"; then
17158   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17159 fi
17160
17161 cat >>$CONFIG_STATUS <<\_ACEOF
17162
17163 ac_cs_usage="\
17164 \`$as_me' instantiates files from templates according to the
17165 current configuration.
17166
17167 Usage: $0 [OPTIONS] [FILE]...
17168
17169   -h, --help       print this help, then exit
17170   -V, --version    print version number, then exit
17171   -d, --debug      don't remove temporary files
17172       --recheck    update $as_me by reconfiguring in the same conditions
17173   --file=FILE[:TEMPLATE]
17174                    instantiate the configuration file FILE
17175   --header=FILE[:TEMPLATE]
17176                    instantiate the configuration header FILE
17177
17178 Configuration files:
17179 $config_files
17180
17181 Configuration headers:
17182 $config_headers
17183
17184 Configuration links:
17185 $config_links
17186
17187 Report bugs to <bug-autoconf@gnu.org>."
17188 _ACEOF
17189
17190 cat >>$CONFIG_STATUS <<_ACEOF
17191 ac_cs_version="\\
17192 PostgreSQL config.status 7.3devel
17193 configured by $0, generated by GNU Autoconf 2.53,
17194   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17195
17196 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17197 Free Software Foundation, Inc.
17198 This config.status script is free software; the Free Software Foundation
17199 gives unlimited permission to copy, distribute and modify it."
17200 srcdir=$srcdir
17201 _ACEOF
17202
17203 cat >>$CONFIG_STATUS <<\_ACEOF
17204 # If no file are specified by the user, then we need to provide default
17205 # value.  By we need to know if files were specified by the user.
17206 ac_need_defaults=:
17207 while test $# != 0
17208 do
17209   case $1 in
17210   --*=*)
17211     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17212     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17213     shift
17214     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17215     shift
17216     ;;
17217   -*);;
17218   *) # This is not an option, so the user has probably given explicit
17219      # arguments.
17220      ac_need_defaults=false;;
17221   esac
17222
17223   case $1 in
17224   # Handling of the options.
17225 _ACEOF
17226 cat >>$CONFIG_STATUS <<_ACEOF
17227   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17228     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17229     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17230 _ACEOF
17231 cat >>$CONFIG_STATUS <<\_ACEOF
17232   --version | --vers* | -V )
17233     echo "$ac_cs_version"; exit 0 ;;
17234   --he | --h)
17235     # Conflict between --help and --header
17236     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17237 Try \`$0 --help' for more information." >&5
17238 echo "$as_me: error: ambiguous option: $1
17239 Try \`$0 --help' for more information." >&2;}
17240    { (exit 1); exit 1; }; };;
17241   --help | --hel | -h )
17242     echo "$ac_cs_usage"; exit 0 ;;
17243   --debug | --d* | -d )
17244     debug=: ;;
17245   --file | --fil | --fi | --f )
17246     shift
17247     CONFIG_FILES="$CONFIG_FILES $1"
17248     ac_need_defaults=false;;
17249   --header | --heade | --head | --hea )
17250     shift
17251     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17252     ac_need_defaults=false;;
17253
17254   # This is an error.
17255   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17256 Try \`$0 --help' for more information." >&5
17257 echo "$as_me: error: unrecognized option: $1
17258 Try \`$0 --help' for more information." >&2;}
17259    { (exit 1); exit 1; }; } ;;
17260
17261   *) ac_config_targets="$ac_config_targets $1" ;;
17262
17263   esac
17264   shift
17265 done
17266
17267 _ACEOF
17268
17269
17270
17271
17272
17273 cat >>$CONFIG_STATUS <<\_ACEOF
17274 for ac_config_target in $ac_config_targets
17275 do
17276   case "$ac_config_target" in
17277   # Handling of arguments.
17278   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17279   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17280   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17281   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17282   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17283   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17284   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17285   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17286   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17287   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17288   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17289 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17290    { (exit 1); exit 1; }; };;
17291   esac
17292 done
17293
17294 # If the user did not use the arguments to specify the items to instantiate,
17295 # then the envvar interface is used.  Set only those that are not.
17296 # We use the long form for the default assignment because of an extremely
17297 # bizarre bug on SunOS 4.1.3.
17298 if $ac_need_defaults; then
17299   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17300   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17301   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17302 fi
17303
17304 # Create a temporary directory, and hook for its removal unless debugging.
17305 $debug ||
17306 {
17307   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17308   trap '{ (exit 1); exit 1; }' 1 2 13 15
17309 }
17310
17311 # Create a (secure) tmp directory for tmp files.
17312 : ${TMPDIR=/tmp}
17313 {
17314   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17315   test -n "$tmp" && test -d "$tmp"
17316 }  ||
17317 {
17318   tmp=$TMPDIR/cs$$-$RANDOM
17319   (umask 077 && mkdir $tmp)
17320 } ||
17321 {
17322    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17323    { (exit 1); exit 1; }
17324 }
17325
17326 _ACEOF
17327
17328 cat >>$CONFIG_STATUS <<_ACEOF
17329
17330 #
17331 # CONFIG_FILES section.
17332 #
17333
17334 # No need to generate the scripts if there are no CONFIG_FILES.
17335 # This happens for instance when ./config.status config.h
17336 if test -n "\$CONFIG_FILES"; then
17337   # Protect against being on the right side of a sed subst in config.status.
17338   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17339    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17340 s,@SHELL@,$SHELL,;t t
17341 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17342 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17343 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17344 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17345 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17346 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17347 s,@exec_prefix@,$exec_prefix,;t t
17348 s,@prefix@,$prefix,;t t
17349 s,@program_transform_name@,$program_transform_name,;t t
17350 s,@bindir@,$bindir,;t t
17351 s,@sbindir@,$sbindir,;t t
17352 s,@libexecdir@,$libexecdir,;t t
17353 s,@datadir@,$datadir,;t t
17354 s,@sysconfdir@,$sysconfdir,;t t
17355 s,@sharedstatedir@,$sharedstatedir,;t t
17356 s,@localstatedir@,$localstatedir,;t t
17357 s,@libdir@,$libdir,;t t
17358 s,@includedir@,$includedir,;t t
17359 s,@oldincludedir@,$oldincludedir,;t t
17360 s,@infodir@,$infodir,;t t
17361 s,@mandir@,$mandir,;t t
17362 s,@build_alias@,$build_alias,;t t
17363 s,@host_alias@,$host_alias,;t t
17364 s,@target_alias@,$target_alias,;t t
17365 s,@DEFS@,$DEFS,;t t
17366 s,@ECHO_C@,$ECHO_C,;t t
17367 s,@ECHO_N@,$ECHO_N,;t t
17368 s,@ECHO_T@,$ECHO_T,;t t
17369 s,@LIBS@,$LIBS,;t t
17370 s,@docdir@,$docdir,;t t
17371 s,@configure_args@,$configure_args,;t t
17372 s,@build@,$build,;t t
17373 s,@build_cpu@,$build_cpu,;t t
17374 s,@build_vendor@,$build_vendor,;t t
17375 s,@build_os@,$build_os,;t t
17376 s,@host@,$host,;t t
17377 s,@host_cpu@,$host_cpu,;t t
17378 s,@host_vendor@,$host_vendor,;t t
17379 s,@host_os@,$host_os,;t t
17380 s,@PORTNAME@,$PORTNAME,;t t
17381 s,@TAS@,$TAS,;t t
17382 s,@MULTIBYTE@,$MULTIBYTE,;t t
17383 s,@enable_nls@,$enable_nls,;t t
17384 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17385 s,@default_port@,$default_port,;t t
17386 s,@enable_shared@,$enable_shared,;t t
17387 s,@enable_rpath@,$enable_rpath,;t t
17388 s,@enable_debug@,$enable_debug,;t t
17389 s,@CC@,$CC,;t t
17390 s,@CFLAGS@,$CFLAGS,;t t
17391 s,@LDFLAGS@,$LDFLAGS,;t t
17392 s,@CPPFLAGS@,$CPPFLAGS,;t t
17393 s,@ac_ct_CC@,$ac_ct_CC,;t t
17394 s,@EXEEXT@,$EXEEXT,;t t
17395 s,@OBJEXT@,$OBJEXT,;t t
17396 s,@CPP@,$CPP,;t t
17397 s,@GCC@,$GCC,;t t
17398 s,@autodepend@,$autodepend,;t t
17399 s,@INCLUDES@,$INCLUDES,;t t
17400 s,@with_tcl@,$with_tcl,;t t
17401 s,@with_tk@,$with_tk,;t t
17402 s,@with_perl@,$with_perl,;t t
17403 s,@with_python@,$with_python,;t t
17404 s,@ANT@,$ANT,;t t
17405 s,@with_java@,$with_java,;t t
17406 s,@with_krb4@,$with_krb4,;t t
17407 s,@with_krb5@,$with_krb5,;t t
17408 s,@krb_srvtab@,$krb_srvtab,;t t
17409 s,@with_pam@,$with_pam,;t t
17410 s,@with_openssl@,$with_openssl,;t t
17411 s,@enable_odbc@,$enable_odbc,;t t
17412 s,@with_unixodbc@,$with_unixodbc,;t t
17413 s,@with_iodbc@,$with_iodbc,;t t
17414 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17415 s,@ELF_SYS@,$ELF_SYS,;t t
17416 s,@CXX@,$CXX,;t t
17417 s,@CXXFLAGS@,$CXXFLAGS,;t t
17418 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17419 s,@CXXCPP@,$CXXCPP,;t t
17420 s,@with_CXX@,$with_CXX,;t t
17421 s,@GXX@,$GXX,;t t
17422 s,@AWK@,$AWK,;t t
17423 s,@FLEX@,$FLEX,;t t
17424 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17425 s,@LN_S@,$LN_S,;t t
17426 s,@LD@,$LD,;t t
17427 s,@with_gnu_ld@,$with_gnu_ld,;t t
17428 s,@ld_R_works@,$ld_R_works,;t t
17429 s,@RANLIB@,$RANLIB,;t t
17430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17431 s,@LORDER@,$LORDER,;t t
17432 s,@TAR@,$TAR,;t t
17433 s,@STRIP@,$STRIP,;t t
17434 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17435 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17436 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17437 s,@YACC@,$YACC,;t t
17438 s,@YFLAGS@,$YFLAGS,;t t
17439 s,@WISH@,$WISH,;t t
17440 s,@PERL@,$PERL,;t t
17441 s,@perl_installsitearch@,$perl_installsitearch,;t t
17442 s,@perl_installman3dir@,$perl_installman3dir,;t t
17443 s,@perl_archlibexp@,$perl_archlibexp,;t t
17444 s,@perl_privlibexp@,$perl_privlibexp,;t t
17445 s,@perl_useshrplib@,$perl_useshrplib,;t t
17446 s,@perl_man3ext@,$perl_man3ext,;t t
17447 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17448 s,@PYTHON@,$PYTHON,;t t
17449 s,@python_version@,$python_version,;t t
17450 s,@python_prefix@,$python_prefix,;t t
17451 s,@python_execprefix@,$python_execprefix,;t t
17452 s,@python_configdir@,$python_configdir,;t t
17453 s,@python_moduledir@,$python_moduledir,;t t
17454 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17455 s,@python_includespec@,$python_includespec,;t t
17456 s,@python_libspec@,$python_libspec,;t t
17457 s,@MEMCMP@,$MEMCMP,;t t
17458 s,@SNPRINTF@,$SNPRINTF,;t t
17459 s,@ISINF@,$ISINF,;t t
17460 s,@GETRUSAGE@,$GETRUSAGE,;t t
17461 s,@SRANDOM@,$SRANDOM,;t t
17462 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17463 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17464 s,@INET_ATON@,$INET_ATON,;t t
17465 s,@STRERROR@,$STRERROR,;t t
17466 s,@STRDUP@,$STRDUP,;t t
17467 s,@STRTOL@,$STRTOL,;t t
17468 s,@STRTOUL@,$STRTOUL,;t t
17469 s,@STRCASECMP@,$STRCASECMP,;t t
17470 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17471 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17472 s,@MSGFMT@,$MSGFMT,;t t
17473 s,@MSGMERGE@,$MSGMERGE,;t t
17474 s,@XGETTEXT@,$XGETTEXT,;t t
17475 s,@localedir@,$localedir,;t t
17476 s,@TCLSH@,$TCLSH,;t t
17477 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17478 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17479 s,@TCL_LIBS@,$TCL_LIBS,;t t
17480 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17481 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17482 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17483 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17484 s,@TK_LIBS@,$TK_LIBS,;t t
17485 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17486 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17487 s,@NSGMLS@,$NSGMLS,;t t
17488 s,@JADE@,$JADE,;t t
17489 s,@have_docbook@,$have_docbook,;t t
17490 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17491 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17492 s,@SGMLSPL@,$SGMLSPL,;t t
17493 s,@vpath_build@,$vpath_build,;t t
17494 CEOF
17495
17496 _ACEOF
17497
17498   cat >>$CONFIG_STATUS <<\_ACEOF
17499   # Split the substitutions into bite-sized pieces for seds with
17500   # small command number limits, like on Digital OSF/1 and HP-UX.
17501   ac_max_sed_lines=48
17502   ac_sed_frag=1 # Number of current file.
17503   ac_beg=1 # First line for current file.
17504   ac_end=$ac_max_sed_lines # Line after last line for current file.
17505   ac_more_lines=:
17506   ac_sed_cmds=
17507   while $ac_more_lines; do
17508     if test $ac_beg -gt 1; then
17509       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17510     else
17511       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17512     fi
17513     if test ! -s $tmp/subs.frag; then
17514       ac_more_lines=false
17515     else
17516       # The purpose of the label and of the branching condition is to
17517       # speed up the sed processing (if there are no `@' at all, there
17518       # is no need to browse any of the substitutions).
17519       # These are the two extra sed commands mentioned above.
17520       (echo ':t
17521   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17522       if test -z "$ac_sed_cmds"; then
17523         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17524       else
17525         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17526       fi
17527       ac_sed_frag=`expr $ac_sed_frag + 1`
17528       ac_beg=$ac_end
17529       ac_end=`expr $ac_end + $ac_max_sed_lines`
17530     fi
17531   done
17532   if test -z "$ac_sed_cmds"; then
17533     ac_sed_cmds=cat
17534   fi
17535 fi # test -n "$CONFIG_FILES"
17536
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<\_ACEOF
17539 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17540   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17541   case $ac_file in
17542   - | *:- | *:-:* ) # input from stdin
17543         cat >$tmp/stdin
17544         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17545         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17546   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17547         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17548   * )   ac_file_in=$ac_file.in ;;
17549   esac
17550
17551   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17552   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17554          X"$ac_file" : 'X\(//\)[^/]' \| \
17555          X"$ac_file" : 'X\(//\)$' \| \
17556          X"$ac_file" : 'X\(/\)' \| \
17557          .     : '\(.\)' 2>/dev/null ||
17558 echo X"$ac_file" |
17559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17560           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17561           /^X\(\/\/\)$/{ s//\1/; q; }
17562           /^X\(\/\).*/{ s//\1/; q; }
17563           s/.*/./; q'`
17564   { case "$ac_dir" in
17565   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17566   *)                      as_incr_dir=.;;
17567 esac
17568 as_dummy="$ac_dir"
17569 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17570   case $as_mkdir_dir in
17571     # Skip DOS drivespec
17572     ?:) as_incr_dir=$as_mkdir_dir ;;
17573     *)
17574       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17575       test -d "$as_incr_dir" ||
17576         mkdir "$as_incr_dir" ||
17577         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17578 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17579    { (exit 1); exit 1; }; }
17580     ;;
17581   esac
17582 done; }
17583
17584   ac_builddir=.
17585
17586 if test "$ac_dir" != .; then
17587   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17588   # A "../" for each directory in $ac_dir_suffix.
17589   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17590 else
17591   ac_dir_suffix= ac_top_builddir=
17592 fi
17593
17594 case $srcdir in
17595   .)  # No --srcdir option.  We are building in place.
17596     ac_srcdir=.
17597     if test -z "$ac_top_builddir"; then
17598        ac_top_srcdir=.
17599     else
17600        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17601     fi ;;
17602   [\\/]* | ?:[\\/]* )  # Absolute path.
17603     ac_srcdir=$srcdir$ac_dir_suffix;
17604     ac_top_srcdir=$srcdir ;;
17605   *) # Relative path.
17606     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17607     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17608 esac
17609 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17610 # absolute.
17611 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17612 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17613 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17614 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17615
17616
17617
17618   if test x"$ac_file" != x-; then
17619     { echo "$as_me:$LINENO: creating $ac_file" >&5
17620 echo "$as_me: creating $ac_file" >&6;}
17621     rm -f "$ac_file"
17622   fi
17623   # Let's still pretend it is `configure' which instantiates (i.e., don't
17624   # use $as_me), people would be surprised to read:
17625   #    /* config.h.  Generated by config.status.  */
17626   if test x"$ac_file" = x-; then
17627     configure_input=
17628   else
17629     configure_input="$ac_file.  "
17630   fi
17631   configure_input=$configure_input"Generated from `echo $ac_file_in |
17632                                      sed 's,.*/,,'` by configure."
17633
17634   # First look for the input files in the build tree, otherwise in the
17635   # src tree.
17636   ac_file_inputs=`IFS=:
17637     for f in $ac_file_in; do
17638       case $f in
17639       -) echo $tmp/stdin ;;
17640       [\\/$]*)
17641          # Absolute (can't be DOS-style, as IFS=:)
17642          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17643 echo "$as_me: error: cannot find input file: $f" >&2;}
17644    { (exit 1); exit 1; }; }
17645          echo $f;;
17646       *) # Relative
17647          if test -f "$f"; then
17648            # Build tree
17649            echo $f
17650          elif test -f "$srcdir/$f"; then
17651            # Source tree
17652            echo $srcdir/$f
17653          else
17654            # /dev/null tree
17655            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17656 echo "$as_me: error: cannot find input file: $f" >&2;}
17657    { (exit 1); exit 1; }; }
17658          fi;;
17659       esac
17660     done` || { (exit 1); exit 1; }
17661 _ACEOF
17662 cat >>$CONFIG_STATUS <<_ACEOF
17663   sed "$ac_vpsub
17664 $extrasub
17665 _ACEOF
17666 cat >>$CONFIG_STATUS <<\_ACEOF
17667 :t
17668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17669 s,@configure_input@,$configure_input,;t t
17670 s,@srcdir@,$ac_srcdir,;t t
17671 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17672 s,@top_srcdir@,$ac_top_srcdir,;t t
17673 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17674 s,@builddir@,$ac_builddir,;t t
17675 s,@abs_builddir@,$ac_abs_builddir,;t t
17676 s,@top_builddir@,$ac_top_builddir,;t t
17677 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17678 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17679   rm -f $tmp/stdin
17680   if test x"$ac_file" != x-; then
17681     mv $tmp/out $ac_file
17682   else
17683     cat $tmp/out
17684     rm -f $tmp/out
17685   fi
17686
17687 done
17688 _ACEOF
17689 cat >>$CONFIG_STATUS <<\_ACEOF
17690
17691 #
17692 # CONFIG_HEADER section.
17693 #
17694
17695 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17696 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17697 #
17698 # ac_d sets the value in "#define NAME VALUE" lines.
17699 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17700 ac_dB='[        ].*$,\1#\2'
17701 ac_dC=' '
17702 ac_dD=',;t'
17703 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17704 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17705 ac_uB='$,\1#\2define\3'
17706 ac_uC=' '
17707 ac_uD=',;t'
17708
17709 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17710   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17711   case $ac_file in
17712   - | *:- | *:-:* ) # input from stdin
17713         cat >$tmp/stdin
17714         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17715         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17716   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17717         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17718   * )   ac_file_in=$ac_file.in ;;
17719   esac
17720
17721   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17722 echo "$as_me: creating $ac_file" >&6;}
17723
17724   # First look for the input files in the build tree, otherwise in the
17725   # src tree.
17726   ac_file_inputs=`IFS=:
17727     for f in $ac_file_in; do
17728       case $f in
17729       -) echo $tmp/stdin ;;
17730       [\\/$]*)
17731          # Absolute (can't be DOS-style, as IFS=:)
17732          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17733 echo "$as_me: error: cannot find input file: $f" >&2;}
17734    { (exit 1); exit 1; }; }
17735          echo $f;;
17736       *) # Relative
17737          if test -f "$f"; then
17738            # Build tree
17739            echo $f
17740          elif test -f "$srcdir/$f"; then
17741            # Source tree
17742            echo $srcdir/$f
17743          else
17744            # /dev/null tree
17745            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17746 echo "$as_me: error: cannot find input file: $f" >&2;}
17747    { (exit 1); exit 1; }; }
17748          fi;;
17749       esac
17750     done` || { (exit 1); exit 1; }
17751   # Remove the trailing spaces.
17752   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17753
17754 _ACEOF
17755
17756 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17757 # `conftest.undefs', that substitutes the proper values into
17758 # config.h.in to produce config.h.  The first handles `#define'
17759 # templates, and the second `#undef' templates.
17760 # And first: Protect against being on the right side of a sed subst in
17761 # config.status.  Protect against being in an unquoted here document
17762 # in config.status.
17763 rm -f conftest.defines conftest.undefs
17764 # Using a here document instead of a string reduces the quoting nightmare.
17765 # Putting comments in sed scripts is not portable.
17766 #
17767 # `end' is used to avoid that the second main sed command (meant for
17768 # 0-ary CPP macros) applies to n-ary macro definitions.
17769 # See the Autoconf documentation for `clear'.
17770 cat >confdef2sed.sed <<\_ACEOF
17771 s/[\\&,]/\\&/g
17772 s,[\\$`],\\&,g
17773 t clear
17774 : clear
17775 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17776 t end
17777 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17778 : end
17779 _ACEOF
17780 # If some macros were called several times there might be several times
17781 # the same #defines, which is useless.  Nevertheless, we may not want to
17782 # sort them, since we want the *last* AC-DEFINE to be honored.
17783 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17784 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17785 rm -f confdef2sed.sed
17786
17787 # This sed command replaces #undef with comments.  This is necessary, for
17788 # example, in the case of _POSIX_SOURCE, which is predefined and required
17789 # on some systems where configure will not decide to define it.
17790 cat >>conftest.undefs <<\_ACEOF
17791 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17792 _ACEOF
17793
17794 # Break up conftest.defines because some shells have a limit on the size
17795 # of here documents, and old seds have small limits too (100 cmds).
17796 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17797 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17798 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17799 echo '  :' >>$CONFIG_STATUS
17800 rm -f conftest.tail
17801 while grep . conftest.defines >/dev/null
17802 do
17803   # Write a limited-size here document to $tmp/defines.sed.
17804   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17805   # Speed up: don't consider the non `#define' lines.
17806   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17807   # Work around the forget-to-reset-the-flag bug.
17808   echo 't clr' >>$CONFIG_STATUS
17809   echo ': clr' >>$CONFIG_STATUS
17810   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17811   echo 'CEOF
17812   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17813   rm -f $tmp/in
17814   mv $tmp/out $tmp/in
17815 ' >>$CONFIG_STATUS
17816   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17817   rm -f conftest.defines
17818   mv conftest.tail conftest.defines
17819 done
17820 rm -f conftest.defines
17821 echo '  fi # egrep' >>$CONFIG_STATUS
17822 echo >>$CONFIG_STATUS
17823
17824 # Break up conftest.undefs because some shells have a limit on the size
17825 # of here documents, and old seds have small limits too (100 cmds).
17826 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17827 rm -f conftest.tail
17828 while grep . conftest.undefs >/dev/null
17829 do
17830   # Write a limited-size here document to $tmp/undefs.sed.
17831   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17832   # Speed up: don't consider the non `#undef'
17833   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17834   # Work around the forget-to-reset-the-flag bug.
17835   echo 't clr' >>$CONFIG_STATUS
17836   echo ': clr' >>$CONFIG_STATUS
17837   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17838   echo 'CEOF
17839   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17840   rm -f $tmp/in
17841   mv $tmp/out $tmp/in
17842 ' >>$CONFIG_STATUS
17843   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17844   rm -f conftest.undefs
17845   mv conftest.tail conftest.undefs
17846 done
17847 rm -f conftest.undefs
17848
17849 cat >>$CONFIG_STATUS <<\_ACEOF
17850   # Let's still pretend it is `configure' which instantiates (i.e., don't
17851   # use $as_me), people would be surprised to read:
17852   #    /* config.h.  Generated by config.status.  */
17853   if test x"$ac_file" = x-; then
17854     echo "/* Generated by configure.  */" >$tmp/config.h
17855   else
17856     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17857   fi
17858   cat $tmp/in >>$tmp/config.h
17859   rm -f $tmp/in
17860   if test x"$ac_file" != x-; then
17861     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17862       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17863 echo "$as_me: $ac_file is unchanged" >&6;}
17864     else
17865       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17867          X"$ac_file" : 'X\(//\)[^/]' \| \
17868          X"$ac_file" : 'X\(//\)$' \| \
17869          X"$ac_file" : 'X\(/\)' \| \
17870          .     : '\(.\)' 2>/dev/null ||
17871 echo X"$ac_file" |
17872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17874           /^X\(\/\/\)$/{ s//\1/; q; }
17875           /^X\(\/\).*/{ s//\1/; q; }
17876           s/.*/./; q'`
17877       { case "$ac_dir" in
17878   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17879   *)                      as_incr_dir=.;;
17880 esac
17881 as_dummy="$ac_dir"
17882 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17883   case $as_mkdir_dir in
17884     # Skip DOS drivespec
17885     ?:) as_incr_dir=$as_mkdir_dir ;;
17886     *)
17887       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17888       test -d "$as_incr_dir" ||
17889         mkdir "$as_incr_dir" ||
17890         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17891 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17892    { (exit 1); exit 1; }; }
17893     ;;
17894   esac
17895 done; }
17896
17897       rm -f $ac_file
17898       mv $tmp/config.h $ac_file
17899     fi
17900   else
17901     cat $tmp/config.h
17902     rm -f $tmp/config.h
17903   fi
17904   # Run the commands associated with the file.
17905   case $ac_file in
17906     src/include/pg_config.h )
17907 # Update timestamp for pg_config.h (see Makefile.global)
17908 echo >src/include/stamp-h
17909  ;;
17910   esac
17911 done
17912 _ACEOF
17913 cat >>$CONFIG_STATUS <<\_ACEOF
17914
17915 #
17916 # CONFIG_LINKS section.
17917 #
17918
17919 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17920   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17921   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17922
17923   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17924 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17925
17926   if test ! -r $srcdir/$ac_source; then
17927     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17928 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17929    { (exit 1); exit 1; }; }
17930   fi
17931   rm -f $ac_dest
17932
17933   # Make relative symlinks.
17934   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17935 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17936          X"$ac_dest" : 'X\(//\)[^/]' \| \
17937          X"$ac_dest" : 'X\(//\)$' \| \
17938          X"$ac_dest" : 'X\(/\)' \| \
17939          .     : '\(.\)' 2>/dev/null ||
17940 echo X"$ac_dest" |
17941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17942           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17943           /^X\(\/\/\)$/{ s//\1/; q; }
17944           /^X\(\/\).*/{ s//\1/; q; }
17945           s/.*/./; q'`
17946   { case "$ac_dest_dir" in
17947   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17948   *)                      as_incr_dir=.;;
17949 esac
17950 as_dummy="$ac_dest_dir"
17951 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17952   case $as_mkdir_dir in
17953     # Skip DOS drivespec
17954     ?:) as_incr_dir=$as_mkdir_dir ;;
17955     *)
17956       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17957       test -d "$as_incr_dir" ||
17958         mkdir "$as_incr_dir" ||
17959         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17960 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17961    { (exit 1); exit 1; }; }
17962     ;;
17963   esac
17964 done; }
17965
17966   ac_builddir=.
17967
17968 if test "$ac_dest_dir" != .; then
17969   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17970   # A "../" for each directory in $ac_dir_suffix.
17971   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17972 else
17973   ac_dir_suffix= ac_top_builddir=
17974 fi
17975
17976 case $srcdir in
17977   .)  # No --srcdir option.  We are building in place.
17978     ac_srcdir=.
17979     if test -z "$ac_top_builddir"; then
17980        ac_top_srcdir=.
17981     else
17982        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17983     fi ;;
17984   [\\/]* | ?:[\\/]* )  # Absolute path.
17985     ac_srcdir=$srcdir$ac_dir_suffix;
17986     ac_top_srcdir=$srcdir ;;
17987   *) # Relative path.
17988     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17989     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17990 esac
17991 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17992 # absolute.
17993 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17994 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17995 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17996 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17997
17998
17999   case $srcdir in
18000   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18001       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18002   esac
18003
18004   # Make a symlink if possible; otherwise try a hard link.
18005   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18006     ln $srcdir/$ac_source $ac_dest ||
18007     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18008 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18009    { (exit 1); exit 1; }; }
18010 done
18011 _ACEOF
18012
18013 cat >>$CONFIG_STATUS <<\_ACEOF
18014
18015 { (exit 0); exit 0; }
18016 _ACEOF
18017 chmod +x $CONFIG_STATUS
18018 ac_clean_files=$ac_clean_files_save
18019
18020
18021 # configure is writing to config.log, and then calls config.status.
18022 # config.status does its own redirection, appending to config.log.
18023 # Unfortunately, on DOS this fails, as config.log is still kept open
18024 # by configure, so config.status won't be able to write to it; its
18025 # output is simply discarded.  So we exec the FD to /dev/null,
18026 # effectively closing config.log, so it can be properly (re)opened and
18027 # appended to by config.status.  When coming back to configure, we
18028 # need to make the FD available again.
18029 if test "$no_create" != yes; then
18030   ac_cs_success=:
18031   exec 5>/dev/null
18032   $SHELL $CONFIG_STATUS || ac_cs_success=false
18033   exec 5>>config.log
18034   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18035   # would make configure fail if this is the last instruction.
18036   $ac_cs_success || { (exit 1); exit 1; }
18037 fi
18038