OSDN Git Service

Sorry for the package, but the following patch need to be applied to get
[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-multibyte      enable multibyte character support
855   --enable-nls[=LANGUAGES]  enable Native Language Support
856   --disable-shared        do not build shared libraries
857   --disable-rpath         do not embed shared library search path in executables
858   --enable-debug          build with debugging symbols (-g)
859   --enable-depend         turn on automatic dependency tracking
860   --enable-cassert        enable assertion checks (for debugging)
861   --enable-odbc           build the ODBC driver package
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866
867   --with-includes=DIRS    look for additional header files in DIRS
868   --with-libraries=DIRS   look for additional libraries in DIRS
869   --with-libs=DIRS        alternative spelling of --with-libraries
870   --with-pgport=PORTNUM   change default port number 5432
871   --with-maxbackends=N    set default maximum number of connections 32
872   --with-tcl              build Tcl and Tk interfaces
873   --without-tk            do not build Tk interfaces if Tcl is enabled
874   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
875   --with-tkconfig=DIR     tkConfig.sh is in DIR
876   --with-perl             build Perl interface and PL/Perl
877   --with-python           build Python interface module
878   --with-java             build JDBC interface and Java tools
879   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
880   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
881   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
882   --with-pam              build with PAM support
883   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
884   --without-readline      do not use Readline
885   --without-zlib          do not use Zlib
886   --with-unixodbc         build ODBC driver for unixODBC
887   --with-iodbc            build ODBC driver for iODBC
888   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
889   --with-CXX              build C++ modules (libpq++)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891
892 Some influential environment variables:
893   CC          C compiler command
894   CFLAGS      C compiler flags
895   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
896               nonstandard directory <lib dir>
897   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
898               headers in a nonstandard directory <include dir>
899   CPP         C preprocessor
900   CXX         C++ compiler command
901   CXXFLAGS    C++ compiler flags
902   CXXCPP      C++ preprocessor
903   DOCBOOKSTYLE
904               location of DocBook stylesheets
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 Report bugs to <pgsql-bugs@postgresql.org>.
910 _ACEOF
911 fi
912
913 if test "$ac_init_help" = "recursive"; then
914   # If there are subdirs, report their specific --help.
915   ac_popdir=`pwd`
916   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917     test -d $ac_dir || continue
918     ac_builddir=.
919
920 if test "$ac_dir" != .; then
921   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922   # A "../" for each directory in $ac_dir_suffix.
923   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 else
925   ac_dir_suffix= ac_top_builddir=
926 fi
927
928 case $srcdir in
929   .)  # No --srcdir option.  We are building in place.
930     ac_srcdir=.
931     if test -z "$ac_top_builddir"; then
932        ac_top_srcdir=.
933     else
934        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935     fi ;;
936   [\\/]* | ?:[\\/]* )  # Absolute path.
937     ac_srcdir=$srcdir$ac_dir_suffix;
938     ac_top_srcdir=$srcdir ;;
939   *) # Relative path.
940     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941     ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 esac
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 # absolute.
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949
950     cd $ac_dir
951     # Check for guested configure; otherwise get Cygnus style configure.
952     if test -f $ac_srcdir/configure.gnu; then
953       echo
954       $SHELL $ac_srcdir/configure.gnu  --help=recursive
955     elif test -f $ac_srcdir/configure; then
956       echo
957       $SHELL $ac_srcdir/configure  --help=recursive
958     elif test -f $ac_srcdir/configure.ac ||
959            test -f $ac_srcdir/configure.in; then
960       echo
961       $ac_configure --help
962     else
963       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964     fi
965     cd $ac_popdir
966   done
967 fi
968
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971   cat <<\_ACEOF
972 PostgreSQL configure 7.3devel
973 generated by GNU Autoconf 2.53
974
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979
980 Copyright 2002 PostgreSQL Global Development Group
981 _ACEOF
982   exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by PostgreSQL $as_me 7.3devel, which was
990 generated by GNU Autoconf 2.53.  Invocation command line was
991
992   $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1009
1010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023   IFS=$as_save_IFS
1024   test -z "$as_dir" && as_dir=.
1025   echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Also quote any args containing shell meta-characters.
1043 ac_configure_args=
1044 ac_sep=
1045 for ac_arg
1046 do
1047   case $ac_arg in
1048   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049   | --no-cr | --no-c | -n ) continue ;;
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     continue ;;
1053   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055   esac
1056   case " $ac_configure_args " in
1057     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1058     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059        ac_sep=" " ;;
1060   esac
1061   # Get rid of the leading space.
1062 done
1063
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log.  We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070   # Save into config.log some information that might help in debugging.
1071   {
1072     echo
1073     cat <<\_ASBOX
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1077 _ASBOX
1078     echo
1079     # The following way of writing the cache mishandles newlines in values,
1080 {
1081   (set) 2>&1 |
1082     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083     *ac_space=\ *)
1084       sed -n \
1085         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1087       ;;
1088     *)
1089       sed -n \
1090         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1091       ;;
1092     esac;
1093 }
1094     echo
1095     if test -s confdefs.h; then
1096       cat <<\_ASBOX
1097 ## ----------- ##
1098 ## confdefs.h. ##
1099 ## ----------- ##
1100 _ASBOX
1101       echo
1102       sed "/^$/d" confdefs.h
1103       echo
1104     fi
1105     test "$ac_signal" != 0 &&
1106       echo "$as_me: caught signal $ac_signal"
1107     echo "$as_me: exit $exit_status"
1108   } >&5
1109   rm -f core core.* *.core &&
1110   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1111     exit $exit_status
1112      ' 0
1113 for ac_signal in 1 2 13 15; do
1114   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115 done
1116 ac_signal=0
1117
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1121 echo >confdefs.h
1122
1123 # Predefined preprocessor variables.
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1127 _ACEOF
1128
1129
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132 _ACEOF
1133
1134
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1137 _ACEOF
1138
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147 _ACEOF
1148
1149
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153   if test "x$prefix" != xNONE; then
1154     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155   else
1156     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1157   fi
1158 fi
1159 for ac_site_file in $CONFIG_SITE; do
1160   if test -r "$ac_site_file"; then
1161     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163     sed 's/^/| /' "$ac_site_file" >&5
1164     . "$ac_site_file"
1165   fi
1166 done
1167
1168 if test -r "$cache_file"; then
1169   # Some versions of bash will fail to source /dev/null (special
1170   # files actually), so we avoid doing that.
1171   if test -f "$cache_file"; then
1172     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1174     case $cache_file in
1175       [\\/]* | ?:[\\/]* ) . $cache_file;;
1176       *)                      . ./$cache_file;;
1177     esac
1178   fi
1179 else
1180   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1182   >$cache_file
1183 fi
1184
1185 # Check that the precious variables saved in the cache have kept the same
1186 # value.
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191   eval ac_new_set=\$ac_env_${ac_var}_set
1192   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193   eval ac_new_val="\$ac_env_${ac_var}_value"
1194   case $ac_old_set,$ac_new_set in
1195     set,)
1196       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198       ac_cache_corrupted=: ;;
1199     ,set)
1200       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202       ac_cache_corrupted=: ;;
1203     ,);;
1204     *)
1205       if test "x$ac_old_val" != "x$ac_new_val"; then
1206         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1209 echo "$as_me:   former value:  $ac_old_val" >&2;}
1210         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1211 echo "$as_me:   current value: $ac_new_val" >&2;}
1212         ac_cache_corrupted=:
1213       fi;;
1214   esac
1215   # Pass precious variables to config.status.
1216   if test "$ac_new_set" = set; then
1217     case $ac_new_val in
1218     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220     *) ac_arg=$ac_var=$ac_new_val ;;
1221     esac
1222     case " $ac_configure_args " in
1223       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1224       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1225     esac
1226   fi
1227 done
1228 if $ac_cache_corrupted; then
1229   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233    { (exit 1); exit 1; }; }
1234 fi
1235
1236 ac_ext=c
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1274 ac_aux_dir=
1275 for ac_dir in config $srcdir/config; do
1276   if test -f $ac_dir/install-sh; then
1277     ac_aux_dir=$ac_dir
1278     ac_install_sh="$ac_aux_dir/install-sh -c"
1279     break
1280   elif test -f $ac_dir/install.sh; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/install.sh -c"
1283     break
1284   elif test -f $ac_dir/shtool; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/shtool install -c"
1287     break
1288   fi
1289 done
1290 if test -z "$ac_aux_dir"; then
1291   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298
1299
1300 configure_args=$ac_configure_args
1301
1302
1303
1304 cat >>confdefs.h <<_ACEOF
1305 #define PG_VERSION "$PACKAGE_VERSION"
1306 _ACEOF
1307
1308
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313    { (exit 1); exit 1; }; }
1314
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318   echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320   ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322   ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326    { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330    { (exit 1); exit 1; }; }
1331
1332 fi
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1335 build=$ac_cv_build
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348   ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352    { (exit 1); exit 1; }; }
1353
1354 fi
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1357 host=$ac_cv_host
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363
1364 template=
1365 echo "$as_me:$LINENO: checking which template to use" >&5
1366 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1367
1368
1369
1370
1371 # Check whether --with-template or --without-template was given.
1372 if test "${with_template+set}" = set; then
1373   withval="$with_template"
1374
1375   case $withval in
1376     yes)
1377       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1378 echo "$as_me: error: argument required for --with-template option" >&2;}
1379    { (exit 1); exit 1; }; }
1380       ;;
1381     no)
1382       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1383 echo "$as_me: error: argument required for --with-template option" >&2;}
1384    { (exit 1); exit 1; }; }
1385       ;;
1386     *)
1387
1388   case $withval in
1389     list)   echo; ls "$srcdir/src/template"; exit;;
1390     *)      if test -f "$srcdir/src/template/$with_template" ; then
1391               template=$withval
1392             else
1393               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1394 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1395    { (exit 1); exit 1; }; }
1396             fi;;
1397   esac
1398
1399       ;;
1400   esac
1401
1402 else
1403
1404   # --with-template not given
1405
1406 case $host_os in
1407      aix*) template=aix ;;
1408     beos*) template=beos ;;
1409     bsdi*) template=bsdi ;;
1410   cygwin*) template=win ;;
1411   darwin*) template=darwin ;;
1412     dgux*) template=dgux ;;
1413  freebsd*) template=freebsd ;;
1414     hpux*) template=hpux ;;
1415     irix*) template=irix5 ;;
1416    linux*) template=linux ;;
1417   netbsd*) template=netbsd ;;
1418 nextstep*) template=nextstep ;;
1419  openbsd*) template=openbsd ;;
1420      osf*) template=osf ;;
1421      qnx*) template=qnx4 ;;
1422      sco*) template=sco ;;
1423  solaris*) template=solaris ;;
1424    sunos*) template=sunos4 ;;
1425  sysv4.2*)
1426         case $host_vendor in
1427           univel) template=univel ;;
1428         esac ;;
1429    sysv4*) template=svr4 ;;
1430    sysv5*) template=unixware ;;
1431   ultrix*) template=ultrix4 ;;
1432 esac
1433
1434   if test x"$template" = x"" ; then
1435     { { echo "$as_me:$LINENO: error:
1436 *******************************************************************
1437 PostgreSQL has apparently not been ported to your platform yet.
1438 To try a manual configuration, look into the src/template directory
1439 for a similar platform and use the '--with-template=' option.
1440
1441 Please also contact <pgsql-ports@postgresql.org> to see about
1442 rectifying this.  Include the above 'checking host system type...'
1443 line.
1444 *******************************************************************
1445 " >&5
1446 echo "$as_me: error:
1447 *******************************************************************
1448 PostgreSQL has apparently not been ported to your platform yet.
1449 To try a manual configuration, look into the src/template directory
1450 for a similar platform and use the '--with-template=' option.
1451
1452 Please also contact <pgsql-ports@postgresql.org> to see about
1453 rectifying this.  Include the above 'checking host system type...'
1454 line.
1455 *******************************************************************
1456 " >&2;}
1457    { (exit 1); exit 1; }; }
1458   fi
1459
1460
1461 fi;
1462
1463
1464 echo "$as_me:$LINENO: result: $template" >&5
1465 echo "${ECHO_T}$template" >&6
1466
1467 PORTNAME=$template
1468
1469
1470 # Pick right test-and-set (TAS) code.  Most platforms have inline
1471 # assembler code in src/include/storage/s_lock.h, so we just use
1472 # a dummy file here.
1473 case $host in
1474   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1475   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1476   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1477   *)                need_tas=no;  tas_file=dummy.s ;;
1478 esac
1479 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1480
1481
1482 if test "$need_tas" = yes ; then
1483   TAS=tas.o
1484 fi
1485
1486
1487
1488
1489 ##
1490 ## Command line options
1491 ##
1492
1493
1494 #
1495 # Add non-standard directories to the include path
1496 #
1497
1498
1499
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502   withval="$with_includes"
1503
1504   case $withval in
1505     yes)
1506       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508    { (exit 1); exit 1; }; }
1509       ;;
1510     no)
1511       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513    { (exit 1); exit 1; }; }
1514       ;;
1515     *)
1516
1517       ;;
1518   esac
1519
1520 fi;
1521
1522
1523
1524 #
1525 # Add non-standard directories to the library search path
1526 #
1527
1528
1529
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532   withval="$with_libraries"
1533
1534   case $withval in
1535     yes)
1536       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538    { (exit 1); exit 1; }; }
1539       ;;
1540     no)
1541       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543    { (exit 1); exit 1; }; }
1544       ;;
1545     *)
1546       LIBRARY_DIRS=$withval
1547       ;;
1548   esac
1549
1550 fi;
1551
1552
1553
1554
1555
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558   withval="$with_libs"
1559
1560   case $withval in
1561     yes)
1562       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564    { (exit 1); exit 1; }; }
1565       ;;
1566     no)
1567       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569    { (exit 1); exit 1; }; }
1570       ;;
1571     *)
1572       LIBRARY_DIRS=$withval
1573       ;;
1574   esac
1575
1576 fi;
1577
1578
1579
1580 #
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 #
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1585
1586
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589   enableval="$enable_integer_datetimes"
1590
1591   case $enableval in
1592     yes)
1593
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1596 _ACEOF
1597
1598       ;;
1599     no)
1600       :
1601       ;;
1602     *)
1603       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605    { (exit 1); exit 1; }; }
1606       ;;
1607   esac
1608
1609 else
1610   enable_integer_datetimes=no
1611
1612 fi;
1613
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1616
1617
1618 # Character set recode (--enable-recode)
1619 #
1620 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1621 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1622
1623
1624 # Check whether --enable-recode or --disable-recode was given.
1625 if test "${enable_recode+set}" = set; then
1626   enableval="$enable_recode"
1627
1628   case $enableval in
1629     yes)
1630
1631 cat >>confdefs.h <<\_ACEOF
1632 #define CYR_RECODE 1
1633 _ACEOF
1634
1635       ;;
1636     no)
1637       :
1638       ;;
1639     *)
1640       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1641 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1642    { (exit 1); exit 1; }; }
1643       ;;
1644   esac
1645
1646 else
1647   enable_recode=no
1648
1649 fi;
1650
1651 echo "$as_me:$LINENO: result: $enable_recode" >&5
1652 echo "${ECHO_T}$enable_recode" >&6
1653
1654
1655 #
1656 # Multibyte support
1657 #
1658 MULTIBYTE=
1659 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1660 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1661
1662
1663
1664 # Check whether --enable-multibyte or --disable-multibyte was given.
1665 if test "${enable_multibyte+set}" = set; then
1666   enableval="$enable_multibyte"
1667
1668   case $enableval in
1669     yes)
1670       MULTIBYTE=SQL_ASCII
1671       ;;
1672     no)
1673       :
1674       ;;
1675     *)
1676       enable_multibyte=yes
1677
1678   case $enableval in
1679     SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
1680       MULTIBYTE=$enableval;;
1681     *)
1682       { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1683   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1684   UNICODE, MULE_INTERNAL,
1685   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1686   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1687   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1688   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1689 Or do not specify an argument to the option to use the default." >&5
1690 echo "$as_me: error: argument to --enable-multibyte must be one of:
1691   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1692   UNICODE, MULE_INTERNAL,
1693   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1694   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1695   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1696   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1697 Or do not specify an argument to the option to use the default." >&2;}
1698    { (exit 1); exit 1; }; };;
1699   esac
1700
1701       ;;
1702   esac
1703
1704 else
1705   enable_multibyte=no
1706 fi;
1707
1708
1709 if test "$enable_multibyte" = yes; then
1710
1711
1712 cat >>confdefs.h <<\_ACEOF
1713 #define MULTIBYTE 1
1714 _ACEOF
1715
1716   echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1717 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1718
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724
1725
1726
1727 #
1728 # NLS
1729 #
1730 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1731 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1732
1733
1734 # Check whether --enable-nls or --disable-nls was given.
1735 if test "${enable_nls+set}" = set; then
1736   enableval="$enable_nls"
1737
1738   case $enableval in
1739     yes)
1740       :
1741       ;;
1742     no)
1743       :
1744       ;;
1745     *)
1746       enable_nls=yes
1747 WANTED_LANGUAGES=$enableval
1748       ;;
1749   esac
1750
1751 else
1752   enable_nls=no
1753 fi;
1754
1755
1756 if test "$enable_nls" = yes; then
1757
1758 cat >>confdefs.h <<\_ACEOF
1759 #define ENABLE_NLS 1
1760 _ACEOF
1761
1762 fi
1763
1764 echo "$as_me:$LINENO: result: $enable_nls" >&5
1765 echo "${ECHO_T}$enable_nls" >&6
1766
1767
1768
1769 #
1770 # Default port number (--with-pgport), default 5432
1771 #
1772 echo "$as_me:$LINENO: checking for default port number" >&5
1773 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1774
1775
1776
1777 # Check whether --with-pgport or --without-pgport was given.
1778 if test "${with_pgport+set}" = set; then
1779   withval="$with_pgport"
1780
1781   case $withval in
1782     yes)
1783       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1784 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1785    { (exit 1); exit 1; }; }
1786       ;;
1787     no)
1788       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1789 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1790    { (exit 1); exit 1; }; }
1791       ;;
1792     *)
1793       default_port=$withval
1794       ;;
1795   esac
1796
1797 else
1798   default_port=5432
1799 fi;
1800
1801 echo "$as_me:$LINENO: result: $default_port" >&5
1802 echo "${ECHO_T}$default_port" >&6
1803 # Need both of these because some places want an integer and some a string
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define DEF_PGPORT ${default_port}
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define DEF_PGPORT_STR "${default_port}"
1812 _ACEOF
1813
1814
1815
1816 #
1817 # Maximum number of allowed connections (--with-maxbackends), default 32
1818 #
1819 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1820 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1821
1822
1823
1824 # Check whether --with-maxbackends or --without-maxbackends was given.
1825 if test "${with_maxbackends+set}" = set; then
1826   withval="$with_maxbackends"
1827
1828   case $withval in
1829     yes)
1830       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1831 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1832    { (exit 1); exit 1; }; }
1833       ;;
1834     no)
1835       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1836 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1837    { (exit 1); exit 1; }; }
1838       ;;
1839     *)
1840
1841       ;;
1842   esac
1843
1844 else
1845   with_maxbackends=32
1846 fi;
1847
1848 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1849 echo "${ECHO_T}$with_maxbackends" >&6
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define DEF_MAXBACKENDS $with_maxbackends
1853 _ACEOF
1854
1855
1856
1857 #
1858 # Option to disable shared libraries
1859 #
1860
1861
1862 # Check whether --enable-shared or --disable-shared was given.
1863 if test "${enable_shared+set}" = set; then
1864   enableval="$enable_shared"
1865
1866   case $enableval in
1867     yes)
1868       :
1869       ;;
1870     no)
1871       :
1872       ;;
1873     *)
1874       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1875 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1876    { (exit 1); exit 1; }; }
1877       ;;
1878   esac
1879
1880 else
1881   enable_shared=yes
1882
1883 fi;
1884
1885
1886
1887 #
1888 # '-rpath'-like feature can be disabled
1889 #
1890
1891
1892 # Check whether --enable-rpath or --disable-rpath was given.
1893 if test "${enable_rpath+set}" = set; then
1894   enableval="$enable_rpath"
1895
1896   case $enableval in
1897     yes)
1898       :
1899       ;;
1900     no)
1901       :
1902       ;;
1903     *)
1904       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1905 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1906    { (exit 1); exit 1; }; }
1907       ;;
1908   esac
1909
1910 else
1911   enable_rpath=yes
1912
1913 fi;
1914
1915
1916
1917
1918 #
1919 # --enable-debug adds -g to compiler flags
1920 #
1921
1922
1923 # Check whether --enable-debug or --disable-debug was given.
1924 if test "${enable_debug+set}" = set; then
1925   enableval="$enable_debug"
1926
1927   case $enableval in
1928     yes)
1929       :
1930       ;;
1931     no)
1932       :
1933       ;;
1934     *)
1935       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1936 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1937    { (exit 1); exit 1; }; }
1938       ;;
1939   esac
1940
1941 else
1942   enable_debug=no
1943
1944 fi;
1945
1946
1947
1948 #
1949 # C compiler
1950 #
1951
1952 # For historical reasons you can also use --with-CC to specify the C compiler
1953 # to use, although the standard way to do this is to set the CC environment
1954 # variable.
1955
1956
1957
1958 # Check whether --with-CC or --without-CC was given.
1959 if test "${with_CC+set}" = set; then
1960   withval="$with_CC"
1961
1962   case $withval in
1963     yes)
1964       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1965 echo "$as_me: error: argument required for --with-CC option" >&2;}
1966    { (exit 1); exit 1; }; }
1967       ;;
1968     no)
1969       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1970 echo "$as_me: error: argument required for --with-CC option" >&2;}
1971    { (exit 1); exit 1; }; }
1972       ;;
1973     *)
1974       CC=$with_CC
1975       ;;
1976   esac
1977
1978 fi;
1979
1980
1981 case $template in
1982   aix) pgac_cc_list="gcc xlc";;
1983  irix) pgac_cc_list="cc";; # no gcc
1984     *) pgac_cc_list="gcc cc";;
1985 esac
1986
1987 ac_ext=c
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992 if test -n "$ac_tool_prefix"; then
1993   for ac_prog in $pgac_cc_list
1994   do
1995     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$CC"; then
2003   ac_cv_prog_CC="$CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019 fi
2020 fi
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023   echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030     test -n "$CC" && break
2031   done
2032 fi
2033 if test -z "$CC"; then
2034   ac_ct_CC=$CC
2035   for ac_prog in $pgac_cc_list
2036 do
2037   # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$ac_ct_CC"; then
2045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_ac_ct_CC="$ac_prog"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072   test -n "$ac_ct_CC" && break
2073 done
2074
2075   CC=$ac_ct_CC
2076 fi
2077
2078
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2080 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO:" \
2085      "checking for C compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088   (eval $ac_compiler --version </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093   (eval $ac_compiler -v </dev/null >&5) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098   (eval $ac_compiler -V </dev/null >&5) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line $LINENO "configure"
2105 #include "confdefs.h"
2106
2107 #ifdef F77_DUMMY_MAIN
2108 #  ifdef __cplusplus
2109      extern "C"
2110 #  endif
2111    int F77_DUMMY_MAIN() { return 1; }
2112 #endif
2113 int
2114 main ()
2115 {
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2125 # of exeext.
2126 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2127 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130   (eval $ac_link_default) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }; then
2134   # Find the output, starting from the most likely.  This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136 # resort.
2137
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 ac_cv_exeext=
2141 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2142                 ls a.out conftest 2>/dev/null;
2143                 ls a.* conftest.* 2>/dev/null`; do
2144   case $ac_file in
2145     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2146     a.out ) # We found the default executable, but exeext='' is most
2147             # certainly right.
2148             break;;
2149     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2151           export ac_cv_exeext
2152           break;;
2153     * ) break;;
2154   esac
2155 done
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2160 echo "$as_me: error: C compiler cannot create executables" >&2;}
2161    { (exit 77); exit 77; }; }
2162 fi
2163
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2167
2168 # Check the compiler produces executables we can run.  If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175   if { ac_try='./$ac_file'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181     cross_compiling=no
2182   else
2183     if test "$cross_compiling" = maybe; then
2184         cross_compiling=yes
2185     else
2186         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'." >&5
2188 echo "$as_me: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'." >&2;}
2190    { (exit 1); exit 1; }; }
2191     fi
2192   fi
2193 fi
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2196
2197 rm -f a.out a.exe conftest$ac_cv_exeext
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run.  If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2205
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209   (eval $ac_link) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; then
2213   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2216 # `rm'.
2217 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2218   case $ac_file in
2219     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2220     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2221           export ac_cv_exeext
2222           break;;
2223     * ) break;;
2224   esac
2225 done
2226 else
2227   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2238 ac_exeext=$EXEEXT
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 #include "confdefs.h"
2247
2248 #ifdef F77_DUMMY_MAIN
2249 #  ifdef __cplusplus
2250      extern "C"
2251 #  endif
2252    int F77_DUMMY_MAIN() { return 1; }
2253 #endif
2254 int
2255 main ()
2256 {
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2271     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272        break;;
2273   esac
2274 done
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2280    { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 fi
2285 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 echo "${ECHO_T}$ac_cv_objext" >&6
2287 OBJEXT=$ac_cv_objext
2288 ac_objext=$OBJEXT
2289 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 #include "confdefs.h"
2297
2298 #ifdef F77_DUMMY_MAIN
2299 #  ifdef __cplusplus
2300      extern "C"
2301 #  endif
2302    int F77_DUMMY_MAIN() { return 1; }
2303 #endif
2304 int
2305 main ()
2306 {
2307 #ifndef __GNUC__
2308        choke me
2309 #endif
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   ac_compiler_gnu=yes
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 ac_compiler_gnu=no
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
2336 fi
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 CFLAGS="-g"
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351
2352 #ifdef F77_DUMMY_MAIN
2353 #  ifdef __cplusplus
2354      extern "C"
2355 #  endif
2356    int F77_DUMMY_MAIN() { return 1; }
2357 #endif
2358 int
2359 main ()
2360 {
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   ac_cv_prog_cc_g=yes
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 ac_cv_prog_cc_g=no
2383 fi
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2388 if test "$ac_test_CFLAGS" = set; then
2389   CFLAGS=$ac_save_CFLAGS
2390 elif test $ac_cv_prog_cc_g = yes; then
2391   if test "$GCC" = yes; then
2392     CFLAGS="-g -O2"
2393   else
2394     CFLAGS="-g"
2395   fi
2396 else
2397   if test "$GCC" = yes; then
2398     CFLAGS="-O2"
2399   else
2400     CFLAGS=
2401   fi
2402 fi
2403 # Some people use a C++ compiler to compile C.  Since we use `exit',
2404 # in C++ we need to declare it.  In case someone uses the same compiler
2405 # for both compiling C and C++ we need to have the C++ compiler decide
2406 # the declaration of exit, since it's the most demanding environment.
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #ifndef __cplusplus
2409   choke me
2410 #endif
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   for ac_declaration in \
2425    ''\
2426    '#include <stdlib.h>' \
2427    'extern "C" void std::exit (int) throw (); using std::exit;' \
2428    'extern "C" void std::exit (int); using std::exit;' \
2429    'extern "C" void exit (int) throw ();' \
2430    'extern "C" void exit (int);' \
2431    'void exit (int);'
2432 do
2433   cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 #include "confdefs.h"
2436 #include <stdlib.h>
2437 $ac_declaration
2438 #ifdef F77_DUMMY_MAIN
2439 #  ifdef __cplusplus
2440      extern "C"
2441 #  endif
2442    int F77_DUMMY_MAIN() { return 1; }
2443 #endif
2444 int
2445 main ()
2446 {
2447 exit (42);
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454   (eval $ac_compile) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -s conftest.$ac_objext'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; }; then
2464   :
2465 else
2466   echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 continue
2469 fi
2470 rm -f conftest.$ac_objext conftest.$ac_ext
2471   cat >conftest.$ac_ext <<_ACEOF
2472 #line $LINENO "configure"
2473 #include "confdefs.h"
2474 $ac_declaration
2475 #ifdef F77_DUMMY_MAIN
2476 #  ifdef __cplusplus
2477      extern "C"
2478 #  endif
2479    int F77_DUMMY_MAIN() { return 1; }
2480 #endif
2481 int
2482 main ()
2483 {
2484 exit (42);
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   break
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 fi
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 done
2508 rm -f conftest*
2509 if test -n "$ac_declaration"; then
2510   echo '#ifdef __cplusplus' >>confdefs.h
2511   echo $ac_declaration      >>confdefs.h
2512   echo '#endif'             >>confdefs.h
2513 fi
2514
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 fi
2519 rm -f conftest.$ac_objext conftest.$ac_ext
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526 # Read the template
2527 . "$srcdir/src/template/$template" || exit
2528
2529 if test "$ac_env_CFLAGS_set" = set; then
2530   CFLAGS=$ac_env_CFLAGS_value
2531 fi
2532 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2533   CFLAGS="$CFLAGS -g"
2534 fi
2535 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2536 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2537 # Check if the compiler still works with the template settings
2538 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2539 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2540
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 #include "confdefs.h"
2544
2545 #ifdef F77_DUMMY_MAIN
2546 #  ifdef __cplusplus
2547      extern "C"
2548 #  endif
2549    int F77_DUMMY_MAIN() { return 1; }
2550 #endif
2551 int
2552 main ()
2553 {
2554 return 0;
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext conftest$ac_exeext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2561   (eval $ac_link) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } &&
2565          { ac_try='test -s conftest$ac_exeext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2579 echo "$as_me: error: cannot proceed" >&2;}
2580    { (exit 1); exit 1; }; }
2581 fi
2582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2589 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2590 # On Suns, sometimes $CPP names a directory.
2591 if test -n "$CPP" && test -d "$CPP"; then
2592   CPP=
2593 fi
2594 if test -z "$CPP"; then
2595   if test "${ac_cv_prog_CPP+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598       # Double quotes because CPP needs to be expanded
2599     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2600     do
2601       ac_preproc_ok=false
2602 for ac_c_preproc_warn_flag in '' yes
2603 do
2604   # Use a header file that comes with gcc, so configuring glibc
2605   # with a fresh cross-compiler works.
2606   # On the NeXT, cc -E runs the code through the compiler's parser,
2607   # not just through cpp. "Syntax error" is here to catch this case.
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 #include "confdefs.h"
2611 #include <assert.h>
2612                      Syntax error
2613 _ACEOF
2614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616   ac_status=$?
2617   egrep -v '^ *\+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } >/dev/null; then
2622   if test -s conftest.err; then
2623     ac_cpp_err=$ac_c_preproc_warn_flag
2624   else
2625     ac_cpp_err=
2626   fi
2627 else
2628   ac_cpp_err=yes
2629 fi
2630 if test -z "$ac_cpp_err"; then
2631   :
2632 else
2633   echo "$as_me: failed program was:" >&5
2634   cat conftest.$ac_ext >&5
2635   # Broken: fails on valid input.
2636 continue
2637 fi
2638 rm -f conftest.err conftest.$ac_ext
2639
2640   # OK, works on sane cases.  Now check whether non-existent headers
2641   # can be detected and how.
2642   cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 #include "confdefs.h"
2645 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
2665 continue
2666 else
2667   echo "$as_me: failed program was:" >&5
2668   cat conftest.$ac_ext >&5
2669   # Passes both tests.
2670 ac_preproc_ok=:
2671 break
2672 fi
2673 rm -f conftest.err conftest.$ac_ext
2674
2675 done
2676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2677 rm -f conftest.err conftest.$ac_ext
2678 if $ac_preproc_ok; then
2679   break
2680 fi
2681
2682     done
2683     ac_cv_prog_CPP=$CPP
2684
2685 fi
2686   CPP=$ac_cv_prog_CPP
2687 else
2688   ac_cv_prog_CPP=$CPP
2689 fi
2690 echo "$as_me:$LINENO: result: $CPP" >&5
2691 echo "${ECHO_T}$CPP" >&6
2692 ac_preproc_ok=false
2693 for ac_c_preproc_warn_flag in '' yes
2694 do
2695   # Use a header file that comes with gcc, so configuring glibc
2696   # with a fresh cross-compiler works.
2697   # On the NeXT, cc -E runs the code through the compiler's parser,
2698   # not just through cpp. "Syntax error" is here to catch this case.
2699   cat >conftest.$ac_ext <<_ACEOF
2700 #line $LINENO "configure"
2701 #include "confdefs.h"
2702 #include <assert.h>
2703                      Syntax error
2704 _ACEOF
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707   ac_status=$?
2708   egrep -v '^ *\+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } >/dev/null; then
2713   if test -s conftest.err; then
2714     ac_cpp_err=$ac_c_preproc_warn_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   :
2723 else
2724   echo "$as_me: failed program was:" >&5
2725   cat conftest.$ac_ext >&5
2726   # Broken: fails on valid input.
2727 continue
2728 fi
2729 rm -f conftest.err conftest.$ac_ext
2730
2731   # OK, works on sane cases.  Now check whether non-existent headers
2732   # can be detected and how.
2733   cat >conftest.$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2735 #include "confdefs.h"
2736 #include <ac_nonexistent.h>
2737 _ACEOF
2738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2740   ac_status=$?
2741   egrep -v '^ *\+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } >/dev/null; then
2746   if test -s conftest.err; then
2747     ac_cpp_err=$ac_c_preproc_warn_flag
2748   else
2749     ac_cpp_err=
2750   fi
2751 else
2752   ac_cpp_err=yes
2753 fi
2754 if test -z "$ac_cpp_err"; then
2755   # Broken: success on invalid input.
2756 continue
2757 else
2758   echo "$as_me: failed program was:" >&5
2759   cat conftest.$ac_ext >&5
2760   # Passes both tests.
2761 ac_preproc_ok=:
2762 break
2763 fi
2764 rm -f conftest.err conftest.$ac_ext
2765
2766 done
2767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2768 rm -f conftest.err conftest.$ac_ext
2769 if $ac_preproc_ok; then
2770   :
2771 else
2772   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2773 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2774    { (exit 1); exit 1; }; }
2775 fi
2776
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
2783
2784
2785 # Create compiler version string
2786 if test x"$GCC" = x"yes" ; then
2787   cc_string="GCC `${CC} --version | sed q`"
2788 else
2789   cc_string=$CC
2790 fi
2791
2792 cat >>confdefs.h <<_ACEOF
2793 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2794 _ACEOF
2795
2796
2797
2798 #
2799 # Automatic dependency tracking
2800 #
2801
2802
2803 # Check whether --enable-depend or --disable-depend was given.
2804 if test "${enable_depend+set}" = set; then
2805   enableval="$enable_depend"
2806
2807   case $enableval in
2808     yes)
2809       autodepend=yes
2810       ;;
2811     no)
2812       :
2813       ;;
2814     *)
2815       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2816 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2817    { (exit 1); exit 1; }; }
2818       ;;
2819   esac
2820
2821 else
2822   enable_depend=no
2823
2824 fi;
2825
2826
2827
2828
2829 #
2830 # Enable assert checks
2831 #
2832
2833
2834 # Check whether --enable-cassert or --disable-cassert was given.
2835 if test "${enable_cassert+set}" = set; then
2836   enableval="$enable_cassert"
2837
2838   case $enableval in
2839     yes)
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define USE_ASSERT_CHECKING 1
2843 _ACEOF
2844
2845       ;;
2846     no)
2847       :
2848       ;;
2849     *)
2850       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2851 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2852    { (exit 1); exit 1; }; }
2853       ;;
2854   esac
2855
2856 else
2857   enable_cassert=no
2858
2859 fi;
2860
2861
2862
2863 #
2864 # Include directories
2865 #
2866 ac_save_IFS=$IFS
2867 IFS="${IFS}:"
2868 # SRCH_INC comes from the template file
2869 for dir in $with_includes $SRCH_INC; do
2870   if test -d "$dir"; then
2871     INCLUDES="$INCLUDES -I$dir"
2872   else
2873     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2874 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2875   fi
2876 done
2877 IFS=$ac_save_IFS
2878
2879
2880
2881 #
2882 # Library directories
2883 #
2884 ac_save_IFS=$IFS
2885 IFS="${IFS}:"
2886 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2887 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2888   if test -d "$dir"; then
2889     LIBDIRS="$LIBDIRS -L$dir"
2890   else
2891     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2892 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2893   fi
2894 done
2895 IFS=$ac_save_IFS
2896
2897
2898 #
2899 # Tcl/Tk
2900 #
2901 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2902 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2903
2904
2905
2906 # Check whether --with-tcl or --without-tcl was given.
2907 if test "${with_tcl+set}" = set; then
2908   withval="$with_tcl"
2909
2910   case $withval in
2911     yes)
2912       :
2913       ;;
2914     no)
2915       :
2916       ;;
2917     *)
2918       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2919 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2920    { (exit 1); exit 1; }; }
2921       ;;
2922   esac
2923
2924 else
2925   with_tcl=no
2926
2927 fi;
2928
2929 echo "$as_me:$LINENO: result: $with_tcl" >&5
2930 echo "${ECHO_T}$with_tcl" >&6
2931
2932
2933 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2934 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2935 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2936 if test "$with_tcl" = yes; then
2937
2938
2939
2940 # Check whether --with-tk or --without-tk was given.
2941 if test "${with_tk+set}" = set; then
2942   withval="$with_tk"
2943
2944   case $withval in
2945     yes)
2946       :
2947       ;;
2948     no)
2949       :
2950       ;;
2951     *)
2952       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2953 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956   esac
2957
2958 else
2959   with_tk=yes
2960
2961 fi;
2962
2963 else
2964   with_tk=no
2965 fi
2966 echo "$as_me:$LINENO: result: $with_tk" >&5
2967 echo "${ECHO_T}$with_tk" >&6
2968
2969
2970
2971 # We see if the path to the Tcl/Tk configuration scripts is specified.
2972 # This will override the use of tclsh to find the paths to search.
2973
2974
2975
2976
2977 # Check whether --with-tclconfig or --without-tclconfig was given.
2978 if test "${with_tclconfig+set}" = set; then
2979   withval="$with_tclconfig"
2980
2981   case $withval in
2982     yes)
2983       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2984 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2985    { (exit 1); exit 1; }; }
2986       ;;
2987     no)
2988       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2989 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2990    { (exit 1); exit 1; }; }
2991       ;;
2992     *)
2993
2994       ;;
2995   esac
2996
2997 fi;
2998
2999
3000 # We see if the path to the Tk configuration scripts is specified.
3001 # This will override the use of tclsh to find the paths to search.
3002
3003
3004
3005
3006 # Check whether --with-tkconfig or --without-tkconfig was given.
3007 if test "${with_tkconfig+set}" = set; then
3008   withval="$with_tkconfig"
3009
3010   case $withval in
3011     yes)
3012       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3013 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3014    { (exit 1); exit 1; }; }
3015       ;;
3016     no)
3017       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3018 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3019    { (exit 1); exit 1; }; }
3020       ;;
3021     *)
3022
3023       ;;
3024   esac
3025
3026 fi;
3027
3028
3029 #
3030 # Optionally build Perl modules (Pg.pm and PL/Perl)
3031 #
3032 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3033 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3034
3035
3036
3037 # Check whether --with-perl or --without-perl was given.
3038 if test "${with_perl+set}" = set; then
3039   withval="$with_perl"
3040
3041   case $withval in
3042     yes)
3043       :
3044       ;;
3045     no)
3046       :
3047       ;;
3048     *)
3049       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3050 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3051    { (exit 1); exit 1; }; }
3052       ;;
3053   esac
3054
3055 else
3056   with_perl=no
3057
3058 fi;
3059
3060 echo "$as_me:$LINENO: result: $with_perl" >&5
3061 echo "${ECHO_T}$with_perl" >&6
3062
3063
3064 #
3065 # Optionally build Python interface module
3066 #
3067 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3068 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3069
3070
3071
3072 # Check whether --with-python or --without-python was given.
3073 if test "${with_python+set}" = set; then
3074   withval="$with_python"
3075
3076   case $withval in
3077     yes)
3078       :
3079       ;;
3080     no)
3081       :
3082       ;;
3083     *)
3084       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3085 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3086    { (exit 1); exit 1; }; }
3087       ;;
3088   esac
3089
3090 else
3091   with_python=no
3092
3093 fi;
3094
3095 echo "$as_me:$LINENO: result: $with_python" >&5
3096 echo "${ECHO_T}$with_python" >&6
3097
3098
3099 #
3100 # Optionally build the Java/JDBC tools
3101 #
3102 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3103 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3104
3105
3106
3107 # Check whether --with-java or --without-java was given.
3108 if test "${with_java+set}" = set; then
3109   withval="$with_java"
3110
3111   case $withval in
3112     yes)
3113       echo "$as_me:$LINENO: result: yes" >&5
3114 echo "${ECHO_T}yes" >&6
3115
3116   for ac_prog in jakarta-ant ant ant.sh ant.bat
3117 do
3118   # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_path_ANT+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   case $ANT in
3126   [\\/]* | ?:[\\/]*)
3127   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3128   ;;
3129   *)
3130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143
3144   ;;
3145 esac
3146 fi
3147 ANT=$ac_cv_path_ANT
3148
3149 if test -n "$ANT"; then
3150   echo "$as_me:$LINENO: result: $ANT" >&5
3151 echo "${ECHO_T}$ANT" >&6
3152 else
3153   echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3155 fi
3156
3157   test -n "$ANT" && break
3158 done
3159
3160
3161   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3162 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3163 if test "${pgac_cv_prog_ant_works+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166
3167     cat > conftest.java << EOF
3168 public class conftest {
3169     int testmethod(int a, int b) {
3170         return a + b;
3171     }
3172 }
3173 EOF
3174
3175     cat > conftest.xml << EOF
3176 <project name="conftest" default="conftest">
3177  <target name="conftest">
3178   <javac srcdir="." includes="conftest.java">
3179   </javac>
3180  </target>
3181 </project>
3182 EOF
3183
3184     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3185     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3186   (eval $pgac_cmd) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }
3190     pgac_save_status=$?
3191     if test $? = 0 && test -f ./conftest.class ; then
3192       pgac_cv_prog_ant_works=yes
3193     else
3194       echo "configure: failed java program was:" >&5
3195       cat conftest.java >&5
3196       echo "configure: failed build file was:" >&5
3197       cat conftest.xml >&5
3198       pgac_cv_prog_ant_works=no
3199     fi
3200
3201     rm -f conftest* core core.* *.core
3202
3203 fi
3204 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3205 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3206
3207   if test "$pgac_cv_prog_ant_works" != yes; then
3208     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3209 echo "$as_me: error: ant does not work" >&2;}
3210    { (exit 1); exit 1; }; }
3211   fi
3212
3213
3214 if test -z "$ANT"; then
3215   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3216 echo "$as_me: error: Ant is required to build Java components" >&2;}
3217    { (exit 1); exit 1; }; }
3218 fi
3219       ;;
3220     no)
3221       echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223       ;;
3224     *)
3225       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3226 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3227    { (exit 1); exit 1; }; }
3228       ;;
3229   esac
3230
3231 else
3232   with_java=no
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi;
3236
3237
3238
3239
3240 #
3241 # Kerberos 4
3242 #
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3245
3246
3247
3248 # Check whether --with-krb4 or --without-krb4 was given.
3249 if test "${with_krb4+set}" = set; then
3250   withval="$with_krb4"
3251
3252   case $withval in
3253     yes)
3254       krb4_prefix=/usr/athena
3255       ;;
3256     no)
3257       :
3258       ;;
3259     *)
3260       with_krb4=yes
3261 krb4_prefix=$withval
3262       ;;
3263   esac
3264
3265 else
3266   with_krb4=no
3267 fi;
3268
3269
3270 if test "$with_krb4" = 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 KRB4 1
3277 _ACEOF
3278
3279
3280   if test -d "$krb4_prefix/include"; then
3281     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3282   fi
3283   if test -d "$krb4_prefix/lib"; then
3284     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3285   fi
3286
3287   krb_srvtab="/etc/srvtab"
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 #
3299 # Kerberos 5
3300 #
3301 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3302 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3303
3304
3305
3306 # Check whether --with-krb5 or --without-krb5 was given.
3307 if test "${with_krb5+set}" = set; then
3308   withval="$with_krb5"
3309
3310   case $withval in
3311     yes)
3312       krb5_prefix=/usr/athena
3313       ;;
3314     no)
3315       :
3316       ;;
3317     *)
3318       with_krb5=yes
3319 krb5_prefix=$withval
3320       ;;
3321   esac
3322
3323 else
3324   with_krb5=no
3325 fi;
3326
3327
3328 if test "$with_krb5" = yes; then
3329
3330   echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6
3332
3333 cat >>confdefs.h <<\_ACEOF
3334 #define KRB5 1
3335 _ACEOF
3336
3337
3338   if test -d "$krb5_prefix/include"; then
3339     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3340   fi
3341   if test -d "$krb5_prefix/lib"; then
3342     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3343   fi
3344
3345   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3346
3347 else
3348   echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350 fi
3351
3352
3353
3354
3355
3356 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3357 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3358   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3359 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3360    { (exit 1); exit 1; }; }
3361 fi
3362
3363
3364
3365
3366 #
3367 # Kerberos configuration parameters
3368 #
3369
3370
3371
3372 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3373 if test "${with_krb_srvnam+set}" = set; then
3374   withval="$with_krb_srvnam"
3375
3376   case $withval in
3377     yes)
3378       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3379 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3380    { (exit 1); exit 1; }; }
3381       ;;
3382     no)
3383       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3384 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3385    { (exit 1); exit 1; }; }
3386       ;;
3387     *)
3388
3389       ;;
3390   esac
3391
3392 else
3393   with_krb_srvnam="postgres"
3394 fi;
3395
3396
3397 cat >>confdefs.h <<_ACEOF
3398 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3399 _ACEOF
3400
3401
3402
3403 #
3404 # PAM
3405 #
3406 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3407 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3408
3409
3410
3411 # Check whether --with-pam or --without-pam was given.
3412 if test "${with_pam+set}" = set; then
3413   withval="$with_pam"
3414
3415   case $withval in
3416     yes)
3417
3418 cat >>confdefs.h <<\_ACEOF
3419 #define USE_PAM 1
3420 _ACEOF
3421
3422       ;;
3423     no)
3424       :
3425       ;;
3426     *)
3427       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3428 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3429    { (exit 1); exit 1; }; }
3430       ;;
3431   esac
3432
3433 else
3434   with_pam=no
3435
3436 fi;
3437
3438 echo "$as_me:$LINENO: result: $with_pam" >&5
3439 echo "${ECHO_T}$with_pam" >&6
3440
3441
3442
3443 #
3444 # OpenSSL
3445 #
3446
3447
3448
3449 # Check whether --with-openssl or --without-openssl was given.
3450 if test "${with_openssl+set}" = set; then
3451   withval="$with_openssl"
3452
3453   case $withval in
3454     yes)
3455       openssl_prefix=/usr/local/ssl
3456       ;;
3457     no)
3458       :
3459       ;;
3460     *)
3461       with_openssl=yes
3462 openssl_prefix=$withval
3463       ;;
3464   esac
3465
3466 else
3467   with_openssl=no
3468 fi;
3469
3470
3471 if test "$with_openssl" = yes; then
3472
3473   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3474 echo "${ECHO_T}building with OpenSSL support" >&6
3475
3476 cat >>confdefs.h <<\_ACEOF
3477 #define USE_SSL 1
3478 _ACEOF
3479
3480
3481   if test -d "${openssl_prefix}/include" ; then
3482     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3483   fi
3484   if test -d "${openssl_prefix}/lib" ; then
3485     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3486   fi
3487
3488 fi
3489
3490
3491
3492
3493
3494 #
3495 # Readline
3496 #
3497
3498
3499
3500 # Check whether --with-readline or --without-readline was given.
3501 if test "${with_readline+set}" = set; then
3502   withval="$with_readline"
3503
3504   case $withval in
3505     yes)
3506       :
3507       ;;
3508     no)
3509       :
3510       ;;
3511     *)
3512       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3513 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3514    { (exit 1); exit 1; }; }
3515       ;;
3516   esac
3517
3518 else
3519   with_readline=yes
3520
3521 fi;
3522
3523
3524 #
3525 # Zlib
3526 #
3527
3528
3529
3530 # Check whether --with-zlib or --without-zlib was given.
3531 if test "${with_zlib+set}" = set; then
3532   withval="$with_zlib"
3533
3534   case $withval in
3535     yes)
3536       :
3537       ;;
3538     no)
3539       :
3540       ;;
3541     *)
3542       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3543 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3544    { (exit 1); exit 1; }; }
3545       ;;
3546   esac
3547
3548 else
3549   with_zlib=yes
3550
3551 fi;
3552
3553
3554
3555
3556 #
3557 # Optionally enable the building of the ODBC driver
3558 #
3559
3560 # Old option name
3561 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3562   enable_odbc=$with_odbc
3563 fi
3564
3565 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3566 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3567
3568
3569 # Check whether --enable-odbc or --disable-odbc was given.
3570 if test "${enable_odbc+set}" = set; then
3571   enableval="$enable_odbc"
3572
3573   case $enableval in
3574     yes)
3575       :
3576       ;;
3577     no)
3578       :
3579       ;;
3580     *)
3581       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3582 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3583    { (exit 1); exit 1; }; }
3584       ;;
3585   esac
3586
3587 else
3588   enable_odbc=no
3589
3590 fi;
3591
3592
3593
3594
3595 # Check whether --with-unixodbc or --without-unixodbc was given.
3596 if test "${with_unixodbc+set}" = set; then
3597   withval="$with_unixodbc"
3598
3599   case $withval in
3600     yes)
3601       :
3602       ;;
3603     no)
3604       :
3605       ;;
3606     *)
3607       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3608 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3609    { (exit 1); exit 1; }; }
3610       ;;
3611   esac
3612
3613 else
3614   with_unixodbc=no
3615
3616 fi;
3617
3618
3619
3620
3621 # Check whether --with-iodbc or --without-iodbc was given.
3622 if test "${with_iodbc+set}" = set; then
3623   withval="$with_iodbc"
3624
3625   case $withval in
3626     yes)
3627       :
3628       ;;
3629     no)
3630       :
3631       ;;
3632     *)
3633       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3634 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3635    { (exit 1); exit 1; }; }
3636       ;;
3637   esac
3638
3639 else
3640   with_iodbc=no
3641
3642 fi;
3643
3644 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3645   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3646 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3647    { (exit 1); exit 1; }; }
3648 fi
3649 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3650   enable_odbc=yes
3651 fi
3652 case $enable_odbc:$with_unixodbc:$with_iodbc in
3653   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3654 echo "${ECHO_T}yes (stand-alone)" >&6;;
3655   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3656 echo "${ECHO_T}yes (unixODBC)" >&6
3657
3658 cat >>confdefs.h <<\_ACEOF
3659 #define WITH_UNIXODBC 1
3660 _ACEOF
3661
3662                 ;;
3663   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3664 echo "${ECHO_T}yes (iODBC)" >&6
3665
3666 cat >>confdefs.h <<\_ACEOF
3667 #define WITH_IODBC 1
3668 _ACEOF
3669
3670                 ;;
3671   no:*)         echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6;;
3673 esac
3674
3675
3676
3677
3678
3679 # Allow for overriding the default location of the odbcinst.ini
3680 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3681
3682
3683
3684 # Check whether --with-odbcinst or --without-odbcinst was given.
3685 if test "${with_odbcinst+set}" = set; then
3686   withval="$with_odbcinst"
3687
3688   case $withval in
3689     yes)
3690       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3691 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3692    { (exit 1); exit 1; }; }
3693       ;;
3694     no)
3695       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3696 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3697    { (exit 1); exit 1; }; }
3698       ;;
3699     *)
3700       odbcinst_ini_dir=$withval
3701       ;;
3702   esac
3703
3704 else
3705   odbcinst_ini_dir="\${sysconfdir}"
3706 fi;
3707
3708
3709
3710
3711
3712 # Assume system is ELF if it predefines __ELF__ as 1,
3713 # otherwise believe host_os based default.
3714 case $host_os in
3715     freebsd1*|freebsd2*) elf=no;;
3716     freebsd3*|freebsd4*) elf=yes;;
3717 esac
3718
3719
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 #include "confdefs.h"
3723 #if __ELF__
3724   yes
3725 #endif
3726
3727 _ACEOF
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729   egrep "yes" >/dev/null 2>&1; then
3730   ELF_SYS=true
3731 else
3732   if test "X$elf" = "Xyes" ; then
3733   ELF_SYS=true
3734 else
3735   ELF_SYS=
3736 fi
3737 fi
3738 rm -f conftest*
3739
3740
3741
3742
3743
3744 #
3745 # Optionally build C++ code (i.e., libpq++)
3746 #
3747 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3748 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3749
3750
3751
3752 # Check whether --with-CXX or --without-CXX was given.
3753 if test "${with_CXX+set}" = set; then
3754   withval="$with_CXX"
3755
3756   case $withval in
3757     yes)
3758       :
3759       ;;
3760     no)
3761       :
3762       ;;
3763     *)
3764       with_CXX=yes
3765 CXX=$withval
3766       ;;
3767   esac
3768
3769 else
3770   with_CXX=no
3771 fi;
3772
3773
3774 if test "$with_CXX" = yes; then
3775
3776   echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6
3778
3779   # If the user has specified CXXFLAGS in the environment, leave it
3780   # alone, else use a default.
3781
3782   ac_ext=cc
3783 ac_cpp='$CXXCPP $CPPFLAGS'
3784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3789   do
3790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_CXX+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   if test -n "$CXX"; then
3798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813
3814 fi
3815 fi
3816 CXX=$ac_cv_prog_CXX
3817 if test -n "$CXX"; then
3818   echo "$as_me:$LINENO: result: $CXX" >&5
3819 echo "${ECHO_T}$CXX" >&6
3820 else
3821   echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3823 fi
3824
3825     test -n "$CXX" && break
3826   done
3827 fi
3828 if test -z "$CXX"; then
3829   ac_ct_CXX=$CXX
3830   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3831 do
3832   # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if test -n "$ac_ct_CXX"; then
3840   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_prog_ac_ct_CXX="$ac_prog"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856 fi
3857 fi
3858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3859 if test -n "$ac_ct_CXX"; then
3860   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3861 echo "${ECHO_T}$ac_ct_CXX" >&6
3862 else
3863   echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865 fi
3866
3867   test -n "$ac_ct_CXX" && break
3868 done
3869 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3870
3871   CXX=$ac_ct_CXX
3872 fi
3873
3874
3875 # Provide some information about the compiler.
3876 echo "$as_me:$LINENO:" \
3877      "checking for C++ compiler version" >&5
3878 ac_compiler=`set X $ac_compile; echo $2`
3879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3880   (eval $ac_compiler --version </dev/null >&5) 2>&5
3881   ac_status=$?
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); }
3884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3885   (eval $ac_compiler -v </dev/null >&5) 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); }
3889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3890   (eval $ac_compiler -V </dev/null >&5) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }
3894
3895 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3896 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3897 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   cat >conftest.$ac_ext <<_ACEOF
3901 #line $LINENO "configure"
3902 #include "confdefs.h"
3903
3904 #ifdef F77_DUMMY_MAIN
3905 #  ifdef __cplusplus
3906      extern "C"
3907 #  endif
3908    int F77_DUMMY_MAIN() { return 1; }
3909 #endif
3910 int
3911 main ()
3912 {
3913 #ifndef __GNUC__
3914        choke me
3915 #endif
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923   (eval $ac_compile) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_compiler_gnu=yes
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 ac_compiler_gnu=no
3938 fi
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3940 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3941
3942 fi
3943 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3944 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3945 GXX=`test $ac_compiler_gnu = yes && echo yes`
3946 ac_test_CXXFLAGS=${CXXFLAGS+set}
3947 ac_save_CXXFLAGS=$CXXFLAGS
3948 CXXFLAGS="-g"
3949 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3950 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3951 if test "${ac_cv_prog_cxx_g+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3957
3958 #ifdef F77_DUMMY_MAIN
3959 #  ifdef __cplusplus
3960      extern "C"
3961 #  endif
3962    int F77_DUMMY_MAIN() { return 1; }
3963 #endif
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974   (eval $ac_compile) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } &&
3978          { ac_try='test -s conftest.$ac_objext'
3979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980   (eval $ac_try) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984   ac_cv_prog_cxx_g=yes
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 ac_cv_prog_cxx_g=no
3989 fi
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994 if test "$ac_test_CXXFLAGS" = set; then
3995   CXXFLAGS=$ac_save_CXXFLAGS
3996 elif test $ac_cv_prog_cxx_g = yes; then
3997   if test "$GXX" = yes; then
3998     CXXFLAGS="-g -O2"
3999   else
4000     CXXFLAGS="-g"
4001   fi
4002 else
4003   if test "$GXX" = yes; then
4004     CXXFLAGS="-O2"
4005   else
4006     CXXFLAGS=
4007   fi
4008 fi
4009 for ac_declaration in \
4010    ''\
4011    '#include <stdlib.h>' \
4012    'extern "C" void std::exit (int) throw (); using std::exit;' \
4013    'extern "C" void std::exit (int); using std::exit;' \
4014    'extern "C" void exit (int) throw ();' \
4015    'extern "C" void exit (int);' \
4016    'void exit (int);'
4017 do
4018   cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <stdlib.h>
4022 $ac_declaration
4023 #ifdef F77_DUMMY_MAIN
4024 #  ifdef __cplusplus
4025      extern "C"
4026 #  endif
4027    int F77_DUMMY_MAIN() { return 1; }
4028 #endif
4029 int
4030 main ()
4031 {
4032 exit (42);
4033   ;
4034   return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039   (eval $ac_compile) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } &&
4043          { ac_try='test -s conftest.$ac_objext'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   :
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 continue
4054 fi
4055 rm -f conftest.$ac_objext conftest.$ac_ext
4056   cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4058 #include "confdefs.h"
4059 $ac_declaration
4060 #ifdef F77_DUMMY_MAIN
4061 #  ifdef __cplusplus
4062      extern "C"
4063 #  endif
4064    int F77_DUMMY_MAIN() { return 1; }
4065 #endif
4066 int
4067 main ()
4068 {
4069 exit (42);
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076   (eval $ac_compile) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080          { ac_try='test -s conftest.$ac_objext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   break
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 fi
4091 rm -f conftest.$ac_objext conftest.$ac_ext
4092 done
4093 rm -f conftest*
4094 if test -n "$ac_declaration"; then
4095   echo '#ifdef __cplusplus' >>confdefs.h
4096   echo $ac_declaration      >>confdefs.h
4097   echo '#endif'             >>confdefs.h
4098 fi
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106   if test "$ac_env_CXXFLAGS" != set; then
4107     if test "$GXX" = yes; then
4108       CXXFLAGS=-O2
4109     else
4110       case $template in
4111         osf)            CXXFLAGS='-O4 -Olimit 2000' ;;
4112         unixware)       CXXFLAGS='-O' ;;
4113         *)              CXXFLAGS= ;;
4114       esac
4115     fi
4116   fi
4117   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4118     CXXFLAGS="$CXXFLAGS -g"
4119   fi
4120   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4121 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4122
4123   ac_ext=cc
4124 ac_cpp='$CXXCPP $CPPFLAGS'
4125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4128 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4129 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4130 if test -z "$CXXCPP"; then
4131   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134       # Double quotes because CXXCPP needs to be expanded
4135     for CXXCPP in "$CXX -E" "/lib/cpp"
4136     do
4137       ac_preproc_ok=false
4138 for ac_cxx_preproc_warn_flag in '' yes
4139 do
4140   # Use a header file that comes with gcc, so configuring glibc
4141   # with a fresh cross-compiler works.
4142   # On the NeXT, cc -E runs the code through the compiler's parser,
4143   # not just through cpp. "Syntax error" is here to catch this case.
4144   cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 #include <assert.h>
4148                      Syntax error
4149 _ACEOF
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152   ac_status=$?
4153   egrep -v '^ *\+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } >/dev/null; then
4158   if test -s conftest.err; then
4159     ac_cpp_err=$ac_cxx_preproc_warn_flag
4160   else
4161     ac_cpp_err=
4162   fi
4163 else
4164   ac_cpp_err=yes
4165 fi
4166 if test -z "$ac_cpp_err"; then
4167   :
4168 else
4169   echo "$as_me: failed program was:" >&5
4170   cat conftest.$ac_ext >&5
4171   # Broken: fails on valid input.
4172 continue
4173 fi
4174 rm -f conftest.err conftest.$ac_ext
4175
4176   # OK, works on sane cases.  Now check whether non-existent headers
4177   # can be detected and how.
4178   cat >conftest.$ac_ext <<_ACEOF
4179 #line $LINENO "configure"
4180 #include "confdefs.h"
4181 #include <ac_nonexistent.h>
4182 _ACEOF
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4185   ac_status=$?
4186   egrep -v '^ *\+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } >/dev/null; then
4191   if test -s conftest.err; then
4192     ac_cpp_err=$ac_cxx_preproc_warn_flag
4193   else
4194     ac_cpp_err=
4195   fi
4196 else
4197   ac_cpp_err=yes
4198 fi
4199 if test -z "$ac_cpp_err"; then
4200   # Broken: success on invalid input.
4201 continue
4202 else
4203   echo "$as_me: failed program was:" >&5
4204   cat conftest.$ac_ext >&5
4205   # Passes both tests.
4206 ac_preproc_ok=:
4207 break
4208 fi
4209 rm -f conftest.err conftest.$ac_ext
4210
4211 done
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.err conftest.$ac_ext
4214 if $ac_preproc_ok; then
4215   break
4216 fi
4217
4218     done
4219     ac_cv_prog_CXXCPP=$CXXCPP
4220
4221 fi
4222   CXXCPP=$ac_cv_prog_CXXCPP
4223 else
4224   ac_cv_prog_CXXCPP=$CXXCPP
4225 fi
4226 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4227 echo "${ECHO_T}$CXXCPP" >&6
4228 ac_preproc_ok=false
4229 for ac_cxx_preproc_warn_flag in '' yes
4230 do
4231   # Use a header file that comes with gcc, so configuring glibc
4232   # with a fresh cross-compiler works.
4233   # On the NeXT, cc -E runs the code through the compiler's parser,
4234   # not just through cpp. "Syntax error" is here to catch this case.
4235   cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 #include "confdefs.h"
4238 #include <assert.h>
4239                      Syntax error
4240 _ACEOF
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243   ac_status=$?
4244   egrep -v '^ *\+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } >/dev/null; then
4249   if test -s conftest.err; then
4250     ac_cpp_err=$ac_cxx_preproc_warn_flag
4251   else
4252     ac_cpp_err=
4253   fi
4254 else
4255   ac_cpp_err=yes
4256 fi
4257 if test -z "$ac_cpp_err"; then
4258   :
4259 else
4260   echo "$as_me: failed program was:" >&5
4261   cat conftest.$ac_ext >&5
4262   # Broken: fails on valid input.
4263 continue
4264 fi
4265 rm -f conftest.err conftest.$ac_ext
4266
4267   # OK, works on sane cases.  Now check whether non-existent headers
4268   # can be detected and how.
4269   cat >conftest.$ac_ext <<_ACEOF
4270 #line $LINENO "configure"
4271 #include "confdefs.h"
4272 #include <ac_nonexistent.h>
4273 _ACEOF
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276   ac_status=$?
4277   egrep -v '^ *\+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } >/dev/null; then
4282   if test -s conftest.err; then
4283     ac_cpp_err=$ac_cxx_preproc_warn_flag
4284   else
4285     ac_cpp_err=
4286   fi
4287 else
4288   ac_cpp_err=yes
4289 fi
4290 if test -z "$ac_cpp_err"; then
4291   # Broken: success on invalid input.
4292 continue
4293 else
4294   echo "$as_me: failed program was:" >&5
4295   cat conftest.$ac_ext >&5
4296   # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4299 fi
4300 rm -f conftest.err conftest.$ac_ext
4301
4302 done
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then
4306   :
4307 else
4308   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4310    { (exit 1); exit 1; }; }
4311 fi
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325
4326
4327
4328 CPPFLAGS="$CPPFLAGS $INCLUDES"
4329 LDFLAGS="$LDFLAGS $LIBDIRS"
4330
4331 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4332 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4333 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4334 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4335
4336
4337 for ac_prog in gawk mawk nawk awk
4338 do
4339   # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343 if test "${ac_cv_prog_AWK+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   if test -n "$AWK"; then
4347   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354   for ac_exec_ext in '' $ac_executable_extensions; do
4355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356     ac_cv_prog_AWK="$ac_prog"
4357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361 done
4362
4363 fi
4364 fi
4365 AWK=$ac_cv_prog_AWK
4366 if test -n "$AWK"; then
4367   echo "$as_me:$LINENO: result: $AWK" >&5
4368 echo "${ECHO_T}$AWK" >&6
4369 else
4370   echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6
4372 fi
4373
4374   test -n "$AWK" && break
4375 done
4376
4377 echo "$as_me:$LINENO: checking for flex" >&5
4378 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4379 if test "${pgac_cv_path_flex+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   # Let the user override the test
4383 if test -n "$FLEX"; then
4384   pgac_cv_path_flex=$FLEX
4385 else
4386   pgac_save_IFS=$IFS
4387   IFS=:
4388   for pgac_dir in $PATH; do
4389     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4390       pgac_dir=`pwd`
4391     fi
4392     for pgac_prog in flex lex; do
4393       pgac_candidate="$pgac_dir/$pgac_prog"
4394       if test -f "$pgac_candidate" \
4395         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4396       then
4397         echo '%%'  > conftest.l
4398         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4399           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4400             pgac_broken_flex=$pgac_candidate
4401             continue
4402           fi
4403
4404           pgac_cv_path_flex=$pgac_candidate
4405           break 2
4406         fi
4407       fi
4408     done
4409   done
4410   IFS=$pgac_save_IFS
4411   rm -f conftest.l
4412   : ${pgac_cv_path_flex=no}
4413 fi
4414
4415 fi
4416 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4417 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4418 if test x"$pgac_cv_path_flex" = x"no"; then
4419   if test -n "$pgac_broken_flex"; then
4420     { echo "$as_me:$LINENO: WARNING:
4421 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4422 *** should get version 2.5.4 or later." >&5
4423 echo "$as_me: WARNING:
4424 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4425 *** should get version 2.5.4 or later." >&2;}
4426   fi
4427
4428   { echo "$as_me:$LINENO: WARNING:
4429 *** Without Flex you will not be able to build PostgreSQL from CVS or
4430 *** change any of the scanner definition files.  You can obtain Flex from
4431 *** a GNU mirror site.  (If you are using the official distribution of
4432 *** PostgreSQL then you do not need to worry about this because the Flex
4433 *** output is pre-generated.)" >&5
4434 echo "$as_me: WARNING:
4435 *** Without Flex you will not be able to build PostgreSQL from CVS or
4436 *** change any of the scanner definition files.  You can obtain Flex from
4437 *** a GNU mirror site.  (If you are using the official distribution of
4438 *** PostgreSQL then you do not need to worry about this because the Flex
4439 *** output is pre-generated.)" >&2;}
4440 fi
4441
4442 if test x"$pgac_cv_path_flex" = x"no"; then
4443   FLEX=
4444 else
4445   FLEX=$pgac_cv_path_flex
4446 fi
4447
4448
4449
4450
4451 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4453 LN_S=$as_ln_s
4454 if test "$LN_S" = "ln -s"; then
4455   echo "$as_me:$LINENO: result: yes" >&5
4456 echo "${ECHO_T}yes" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4459 echo "${ECHO_T}no, using $LN_S" >&6
4460 fi
4461
4462
4463 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4464 if test "${with_gnu_ld+set}" = set; then
4465   withval="$with_gnu_ld"
4466   test "$withval" = no || with_gnu_ld=yes
4467 else
4468   with_gnu_ld=no
4469 fi;
4470 ac_prog=ld
4471 if test "$GCC" = yes; then
4472   # Check if gcc -print-prog-name=ld gives a path.
4473   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4474 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4475   case $host in
4476   *-*-mingw*)
4477     # gcc leaves a trailing carriage return which upsets mingw
4478     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479   *)
4480     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4481   esac
4482   case "$ac_prog" in
4483     # Accept absolute paths.
4484     [\\/]* | [A-Za-z]:[\\/]*)
4485       re_direlt='/[^/][^/]*/\.\./'
4486       # Canonicalize the path of ld
4487       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4488       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4489         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4490       done
4491       test -z "$LD" && LD="$ac_prog"
4492       ;;
4493   "")
4494     # If it fails, then pretend we aren't using GCC.
4495     ac_prog=ld
4496     ;;
4497   *)
4498     # If it is relative, then search for the first ld in PATH.
4499     with_gnu_ld=unknown
4500     ;;
4501   esac
4502 elif test "$with_gnu_ld" = yes; then
4503   echo "$as_me:$LINENO: checking for GNU ld" >&5
4504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4505 else
4506   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4508 fi
4509 if test "${ac_cv_path_LD+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   if test -z "$LD"; then
4513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4514   for ac_dir in $PATH; do
4515     test -z "$ac_dir" && ac_dir=.
4516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517       ac_cv_path_LD="$ac_dir/$ac_prog"
4518       # Check to see if the program is GNU ld.  I'd rather use --version,
4519       # but apparently some GNU ld's only accept -v.
4520       # Break only if it was the GNU/non-GNU ld that we prefer.
4521       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4522         test "$with_gnu_ld" != no && break
4523       else
4524         test "$with_gnu_ld" != yes && break
4525       fi
4526     fi
4527   done
4528   IFS="$ac_save_ifs"
4529 else
4530   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4531 fi
4532 fi
4533
4534 LD="$ac_cv_path_LD"
4535 if test -n "$LD"; then
4536   echo "$as_me:$LINENO: result: $LD" >&5
4537 echo "${ECHO_T}$LD" >&6
4538 else
4539   echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4544    { (exit 1); exit 1; }; }
4545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4547 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4551 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4552   ac_cv_prog_gnu_ld=yes
4553 else
4554   ac_cv_prog_gnu_ld=no
4555 fi
4556 fi
4557 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4558 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4559 with_gnu_ld=$ac_cv_prog_gnu_ld
4560
4561
4562
4563
4564 case $host_os in sysv5*)
4565   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4566 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4567 if test "${pgac_cv_prog_ld_R+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570
4571     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4572     cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4575
4576 #ifdef F77_DUMMY_MAIN
4577 #  ifdef __cplusplus
4578      extern "C"
4579 #  endif
4580    int F77_DUMMY_MAIN() { return 1; }
4581 #endif
4582 int
4583 main ()
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592   (eval $ac_link) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } &&
4596          { ac_try='test -s conftest$ac_exeext'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   pgac_cv_prog_ld_R=yes
4603 else
4604   echo "$as_me: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 pgac_cv_prog_ld_R=no
4607 fi
4608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609     LDFLAGS=$pgac_save_LDFLAGS
4610
4611 fi
4612 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4613 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4614   ld_R_works=$pgac_cv_prog_ld_R
4615
4616 esac
4617 if test -n "$ac_tool_prefix"; then
4618   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_RANLIB+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$RANLIB"; then
4626   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641
4642 fi
4643 fi
4644 RANLIB=$ac_cv_prog_RANLIB
4645 if test -n "$RANLIB"; then
4646   echo "$as_me:$LINENO: result: $RANLIB" >&5
4647 echo "${ECHO_T}$RANLIB" >&6
4648 else
4649   echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4651 fi
4652
4653 fi
4654 if test -z "$ac_cv_prog_RANLIB"; then
4655   ac_ct_RANLIB=$RANLIB
4656   # Extract the first word of "ranlib", so it can be a program name with args.
4657 set dummy ranlib; ac_word=$2
4658 echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$ac_ct_RANLIB"; then
4664   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_prog_ac_ct_RANLIB="ranlib"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679
4680   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4681 fi
4682 fi
4683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4684 if test -n "$ac_ct_RANLIB"; then
4685   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4686 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4687 else
4688   echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4690 fi
4691
4692   RANLIB=$ac_ct_RANLIB
4693 else
4694   RANLIB="$ac_cv_prog_RANLIB"
4695 fi
4696
4697 for ac_prog in lorder
4698 do
4699   # Extract the first word of "$ac_prog", so it can be a program name with args.
4700 set dummy $ac_prog; ac_word=$2
4701 echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_prog_LORDER+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   if test -n "$LORDER"; then
4707   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_prog_LORDER="$ac_prog"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723 fi
4724 fi
4725 LORDER=$ac_cv_prog_LORDER
4726 if test -n "$LORDER"; then
4727   echo "$as_me:$LINENO: result: $LORDER" >&5
4728 echo "${ECHO_T}$LORDER" >&6
4729 else
4730   echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734   test -n "$LORDER" && break
4735 done
4736
4737 # Extract the first word of "tar", so it can be a program name with args.
4738 set dummy tar; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_TAR+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $TAR in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763   ;;
4764 esac
4765 fi
4766 TAR=$ac_cv_path_TAR
4767
4768 if test -n "$TAR"; then
4769   echo "$as_me:$LINENO: result: $TAR" >&5
4770 echo "${ECHO_T}$TAR" >&6
4771 else
4772   echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4774 fi
4775
4776
4777   if test -n "$ac_tool_prefix"; then
4778   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}strip; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_STRIP+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   if test -n "$STRIP"; then
4786   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801
4802 fi
4803 fi
4804 STRIP=$ac_cv_prog_STRIP
4805 if test -n "$STRIP"; then
4806   echo "$as_me:$LINENO: result: $STRIP" >&5
4807 echo "${ECHO_T}$STRIP" >&6
4808 else
4809   echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813 fi
4814 if test -z "$ac_cv_prog_STRIP"; then
4815   ac_ct_STRIP=$STRIP
4816   # Extract the first word of "strip", so it can be a program name with args.
4817 set dummy strip; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$ac_ct_STRIP"; then
4824   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_prog_ac_ct_STRIP="strip"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839
4840   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4841 fi
4842 fi
4843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4844 if test -n "$ac_ct_STRIP"; then
4845   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4846 echo "${ECHO_T}$ac_ct_STRIP" >&6
4847 else
4848   echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6
4850 fi
4851
4852   STRIP=$ac_ct_STRIP
4853 else
4854   STRIP="$ac_cv_prog_STRIP"
4855 fi
4856
4857
4858   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4859 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4860   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4861     STRIP_STATIC_LIB="$STRIP -x"
4862     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4863     echo "$as_me:$LINENO: result: yes" >&5
4864 echo "${ECHO_T}yes" >&6
4865   else
4866     STRIP_STATIC_LIB=:
4867     STRIP_SHARED_LIB=:
4868     echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4870   fi
4871
4872
4873
4874
4875 for ac_prog in 'bison -y'
4876 do
4877   # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4881 if test "${ac_cv_prog_YACC+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   if test -n "$YACC"; then
4885   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892   for ac_exec_ext in '' $ac_executable_extensions; do
4893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894     ac_cv_prog_YACC="$ac_prog"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899 done
4900
4901 fi
4902 fi
4903 YACC=$ac_cv_prog_YACC
4904 if test -n "$YACC"; then
4905   echo "$as_me:$LINENO: result: $YACC" >&5
4906 echo "${ECHO_T}$YACC" >&6
4907 else
4908   echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4910 fi
4911
4912   test -n "$YACC" && break
4913 done
4914
4915 if test -z "$YACC"; then
4916   { echo "$as_me:$LINENO: WARNING:
4917 *** Without Bison you will not be able to build PostgreSQL from CVS or
4918 *** change any of the parser definition files.  You can obtain Bison from
4919 *** a GNU mirror site.  (If you are using the official distribution of
4920 *** PostgreSQL then you do not need to worry about this because the Bison
4921 *** output is pre-generated.)  To use a different yacc program (possible,
4922 *** but not recommended), set the environment variable YACC before running
4923 *** 'configure'." >&5
4924 echo "$as_me: WARNING:
4925 *** Without Bison you will not be able to build PostgreSQL from CVS or
4926 *** change any of the parser definition files.  You can obtain Bison from
4927 *** a GNU mirror site.  (If you are using the official distribution of
4928 *** PostgreSQL then you do not need to worry about this because the Bison
4929 *** output is pre-generated.)  To use a different yacc program (possible,
4930 *** but not recommended), set the environment variable YACC before running
4931 *** 'configure'." >&2;}
4932 fi
4933
4934
4935 if test "$with_tk" = yes; then
4936     # Extract the first word of "wish", so it can be a program name with args.
4937 set dummy wish; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_WISH+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $WISH in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961
4962   ;;
4963 esac
4964 fi
4965 WISH=$ac_cv_path_WISH
4966
4967 if test -n "$WISH"; then
4968   echo "$as_me:$LINENO: result: $WISH" >&5
4969 echo "${ECHO_T}$WISH" >&6
4970 else
4971   echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4973 fi
4974
4975     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4976 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4977    { (exit 1); exit 1; }; }
4978 fi
4979
4980 # Extract the first word of "perl", so it can be a program name with args.
4981 set dummy perl; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_PERL+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $PERL in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005
5006   ;;
5007 esac
5008 fi
5009 PERL=$ac_cv_path_PERL
5010
5011 if test -n "$PERL"; then
5012   echo "$as_me:$LINENO: result: $PERL" >&5
5013 echo "${ECHO_T}$PERL" >&6
5014 else
5015   echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5017 fi
5018
5019 if test "$with_perl" = yes; then
5020
5021
5022 echo "$as_me:$LINENO: checking Perl installation directories" >&5
5023 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
5024
5025 # These are the ones we currently need.  Others can be added easily.
5026 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
5027 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
5028 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
5029
5030
5031 echo "$as_me:$LINENO: result: done" >&5
5032 echo "${ECHO_T}done" >&6
5033
5034 fi
5035
5036 if test "$with_python" = yes; then
5037   # Extract the first word of "python", so it can be a program name with args.
5038 set dummy python; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_path_PYTHON+set}" = set; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   case $PYTHON in
5045   [\\/]* | ?:[\\/]*)
5046   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5047   ;;
5048   *)
5049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062
5063   ;;
5064 esac
5065 fi
5066 PYTHON=$ac_cv_path_PYTHON
5067
5068 if test -n "$PYTHON"; then
5069   echo "$as_me:$LINENO: result: $PYTHON" >&5
5070 echo "${ECHO_T}$PYTHON" >&6
5071 else
5072   echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5074 fi
5075
5076 if test x"$PYTHON" = x""; then
5077   { { echo "$as_me:$LINENO: error: Python not found" >&5
5078 echo "$as_me: error: Python not found" >&2;}
5079    { (exit 1); exit 1; }; }
5080 fi
5081
5082
5083 echo "$as_me:$LINENO: checking Python installation directories" >&5
5084 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5085 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5086 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5087 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5088 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5089 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5090 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5091 python_includespec="-I${python_prefix}/include/python${python_version}"
5092 if test "$python_prefix" != "$python_execprefix"; then
5093   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5094 fi
5095
5096 # This should be enough of a message.
5097 if test "$python_prefix" != "$python_execprefix"; then
5098   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5099 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5100 else
5101   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5102 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5103 fi
5104
5105
5106
5107
5108
5109 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5110 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5111
5112 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5113 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5114 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5115 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5116 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5117
5118 pgac_tab="      " # tab character
5119 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"`
5120
5121 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5122 echo "${ECHO_T}${python_libspec}" >&6
5123
5124
5125 fi
5126
5127
5128 ##
5129 ## Libraries
5130 ##
5131
5132 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5133 then
5134
5135 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5136 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5137 if test "${ac_cv_lib_bsd_main+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-lbsd  $LIBS"
5142 cat >conftest.$ac_ext <<_ACEOF
5143 #line $LINENO "configure"
5144 #include "confdefs.h"
5145
5146
5147 #ifdef F77_DUMMY_MAIN
5148 #  ifdef __cplusplus
5149      extern "C"
5150 #  endif
5151    int F77_DUMMY_MAIN() { return 1; }
5152 #endif
5153 int
5154 main ()
5155 {
5156 main ();
5157   ;
5158   return 0;
5159 }
5160 _ACEOF
5161 rm -f conftest.$ac_objext conftest$ac_exeext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163   (eval $ac_link) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -s conftest$ac_exeext'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   ac_cv_lib_bsd_main=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 ac_cv_lib_bsd_main=no
5178 fi
5179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 LIBS=$ac_check_lib_save_LIBS
5181 fi
5182 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5183 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5184 if test $ac_cv_lib_bsd_main = yes; then
5185   cat >>confdefs.h <<_ACEOF
5186 #define HAVE_LIBBSD 1
5187 _ACEOF
5188
5189   LIBS="-lbsd $LIBS"
5190
5191 fi
5192
5193 fi
5194
5195 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5196 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5197 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   ac_check_lib_save_LIBS=$LIBS
5201 LIBS="-lutil  $LIBS"
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5204 #include "confdefs.h"
5205
5206 /* Override any gcc2 internal prototype to avoid an error.  */
5207 #ifdef __cplusplus
5208 extern "C"
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211    builtin and then its argument prototype would still apply.  */
5212 char setproctitle ();
5213 #ifdef F77_DUMMY_MAIN
5214 #  ifdef __cplusplus
5215      extern "C"
5216 #  endif
5217    int F77_DUMMY_MAIN() { return 1; }
5218 #endif
5219 int
5220 main ()
5221 {
5222 setproctitle ();
5223   ;
5224   return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229   (eval $ac_link) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } &&
5233          { ac_try='test -s conftest$ac_exeext'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   ac_cv_lib_util_setproctitle=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_lib_util_setproctitle=no
5244 fi
5245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5247 fi
5248 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5249 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5250 if test $ac_cv_lib_util_setproctitle = yes; then
5251   cat >>confdefs.h <<_ACEOF
5252 #define HAVE_LIBUTIL 1
5253 _ACEOF
5254
5255   LIBS="-lutil $LIBS"
5256
5257 fi
5258
5259
5260 echo "$as_me:$LINENO: checking for main in -lm" >&5
5261 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5262 if test "${ac_cv_lib_m_main+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   ac_check_lib_save_LIBS=$LIBS
5266 LIBS="-lm  $LIBS"
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 #include "confdefs.h"
5270
5271
5272 #ifdef F77_DUMMY_MAIN
5273 #  ifdef __cplusplus
5274      extern "C"
5275 #  endif
5276    int F77_DUMMY_MAIN() { return 1; }
5277 #endif
5278 int
5279 main ()
5280 {
5281 main ();
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288   (eval $ac_link) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -s conftest$ac_exeext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_cv_lib_m_main=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_cv_lib_m_main=no
5303 fi
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 LIBS=$ac_check_lib_save_LIBS
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5308 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5309 if test $ac_cv_lib_m_main = yes; then
5310   cat >>confdefs.h <<_ACEOF
5311 #define HAVE_LIBM 1
5312 _ACEOF
5313
5314   LIBS="-lm $LIBS"
5315
5316 fi
5317
5318
5319 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5320 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5321 if test "${ac_cv_lib_dl_main+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-ldl  $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5329
5330
5331 #ifdef F77_DUMMY_MAIN
5332 #  ifdef __cplusplus
5333      extern "C"
5334 #  endif
5335    int F77_DUMMY_MAIN() { return 1; }
5336 #endif
5337 int
5338 main ()
5339 {
5340 main ();
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347   (eval $ac_link) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -s conftest$ac_exeext'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; }; then
5357   ac_cv_lib_dl_main=yes
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 ac_cv_lib_dl_main=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5367 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5368 if test $ac_cv_lib_dl_main = yes; then
5369   cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBDL 1
5371 _ACEOF
5372
5373   LIBS="-ldl $LIBS"
5374
5375 fi
5376
5377
5378 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5379 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5380 if test "${ac_cv_lib_nsl_main+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   ac_check_lib_save_LIBS=$LIBS
5384 LIBS="-lnsl  $LIBS"
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5387 #include "confdefs.h"
5388
5389
5390 #ifdef F77_DUMMY_MAIN
5391 #  ifdef __cplusplus
5392      extern "C"
5393 #  endif
5394    int F77_DUMMY_MAIN() { return 1; }
5395 #endif
5396 int
5397 main ()
5398 {
5399 main ();
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext conftest$ac_exeext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5406   (eval $ac_link) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } &&
5410          { ac_try='test -s conftest$ac_exeext'
5411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412   (eval $ac_try) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); }; }; then
5416   ac_cv_lib_nsl_main=yes
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5420 ac_cv_lib_nsl_main=no
5421 fi
5422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 LIBS=$ac_check_lib_save_LIBS
5424 fi
5425 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5426 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5427 if test $ac_cv_lib_nsl_main = yes; then
5428   cat >>confdefs.h <<_ACEOF
5429 #define HAVE_LIBNSL 1
5430 _ACEOF
5431
5432   LIBS="-lnsl $LIBS"
5433
5434 fi
5435
5436
5437 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5438 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5439 if test "${ac_cv_lib_socket_main+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   ac_check_lib_save_LIBS=$LIBS
5443 LIBS="-lsocket  $LIBS"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5446 #include "confdefs.h"
5447
5448
5449 #ifdef F77_DUMMY_MAIN
5450 #  ifdef __cplusplus
5451      extern "C"
5452 #  endif
5453    int F77_DUMMY_MAIN() { return 1; }
5454 #endif
5455 int
5456 main ()
5457 {
5458 main ();
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465   (eval $ac_link) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -s conftest$ac_exeext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   ac_cv_lib_socket_main=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 ac_cv_lib_socket_main=no
5480 fi
5481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5483 fi
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5485 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5486 if test $ac_cv_lib_socket_main = yes; then
5487   cat >>confdefs.h <<_ACEOF
5488 #define HAVE_LIBSOCKET 1
5489 _ACEOF
5490
5491   LIBS="-lsocket $LIBS"
5492
5493 fi
5494
5495
5496 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5497 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5498 if test "${ac_cv_lib_ipc_main+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   ac_check_lib_save_LIBS=$LIBS
5502 LIBS="-lipc  $LIBS"
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5506
5507
5508 #ifdef F77_DUMMY_MAIN
5509 #  ifdef __cplusplus
5510      extern "C"
5511 #  endif
5512    int F77_DUMMY_MAIN() { return 1; }
5513 #endif
5514 int
5515 main ()
5516 {
5517 main ();
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524   (eval $ac_link) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } &&
5528          { ac_try='test -s conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   ac_cv_lib_ipc_main=yes
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ac_cv_lib_ipc_main=no
5539 fi
5540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5542 fi
5543 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5544 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5545 if test $ac_cv_lib_ipc_main = yes; then
5546   cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LIBIPC 1
5548 _ACEOF
5549
5550   LIBS="-lipc $LIBS"
5551
5552 fi
5553
5554
5555 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5556 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5557 if test "${ac_cv_lib_IPC_main+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lIPC  $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5565
5566
5567 #ifdef F77_DUMMY_MAIN
5568 #  ifdef __cplusplus
5569      extern "C"
5570 #  endif
5571    int F77_DUMMY_MAIN() { return 1; }
5572 #endif
5573 int
5574 main ()
5575 {
5576 main ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -s conftest$ac_exeext'
5588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589   (eval $ac_try) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   ac_cv_lib_IPC_main=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_IPC_main=no
5598 fi
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5601 fi
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5603 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5604 if test $ac_cv_lib_IPC_main = yes; then
5605   cat >>confdefs.h <<_ACEOF
5606 #define HAVE_LIBIPC 1
5607 _ACEOF
5608
5609   LIBS="-lIPC $LIBS"
5610
5611 fi
5612
5613
5614 echo "$as_me:$LINENO: checking for main in -llc" >&5
5615 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5616 if test "${ac_cv_lib_lc_main+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   ac_check_lib_save_LIBS=$LIBS
5620 LIBS="-llc  $LIBS"
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5624
5625
5626 #ifdef F77_DUMMY_MAIN
5627 #  ifdef __cplusplus
5628      extern "C"
5629 #  endif
5630    int F77_DUMMY_MAIN() { return 1; }
5631 #endif
5632 int
5633 main ()
5634 {
5635 main ();
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642   (eval $ac_link) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -s conftest$ac_exeext'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; }; then
5652   ac_cv_lib_lc_main=yes
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_cv_lib_lc_main=no
5657 fi
5658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5660 fi
5661 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5662 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5663 if test $ac_cv_lib_lc_main = yes; then
5664   cat >>confdefs.h <<_ACEOF
5665 #define HAVE_LIBLC 1
5666 _ACEOF
5667
5668   LIBS="-llc $LIBS"
5669
5670 fi
5671
5672
5673 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5674 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5675 if test "${ac_cv_lib_dld_main+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-ldld  $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5682 #include "confdefs.h"
5683
5684
5685 #ifdef F77_DUMMY_MAIN
5686 #  ifdef __cplusplus
5687      extern "C"
5688 #  endif
5689    int F77_DUMMY_MAIN() { return 1; }
5690 #endif
5691 int
5692 main ()
5693 {
5694 main ();
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701   (eval $ac_link) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -s conftest$ac_exeext'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_lib_dld_main=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 ac_cv_lib_dld_main=no
5716 fi
5717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718 LIBS=$ac_check_lib_save_LIBS
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5721 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5722 if test $ac_cv_lib_dld_main = yes; then
5723   cat >>confdefs.h <<_ACEOF
5724 #define HAVE_LIBDLD 1
5725 _ACEOF
5726
5727   LIBS="-ldld $LIBS"
5728
5729 fi
5730
5731
5732 echo "$as_me:$LINENO: checking for main in -lld" >&5
5733 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5734 if test "${ac_cv_lib_ld_main+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   ac_check_lib_save_LIBS=$LIBS
5738 LIBS="-lld  $LIBS"
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line $LINENO "configure"
5741 #include "confdefs.h"
5742
5743
5744 #ifdef F77_DUMMY_MAIN
5745 #  ifdef __cplusplus
5746      extern "C"
5747 #  endif
5748    int F77_DUMMY_MAIN() { return 1; }
5749 #endif
5750 int
5751 main ()
5752 {
5753 main ();
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760   (eval $ac_link) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } &&
5764          { ac_try='test -s conftest$ac_exeext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   ac_cv_lib_ld_main=yes
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5774 ac_cv_lib_ld_main=no
5775 fi
5776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5777 LIBS=$ac_check_lib_save_LIBS
5778 fi
5779 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5780 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5781 if test $ac_cv_lib_ld_main = yes; then
5782   cat >>confdefs.h <<_ACEOF
5783 #define HAVE_LIBLD 1
5784 _ACEOF
5785
5786   LIBS="-lld $LIBS"
5787
5788 fi
5789
5790
5791 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5792 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5793 if test "${ac_cv_lib_compat_main+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   ac_check_lib_save_LIBS=$LIBS
5797 LIBS="-lcompat  $LIBS"
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 #include "confdefs.h"
5801
5802
5803 #ifdef F77_DUMMY_MAIN
5804 #  ifdef __cplusplus
5805      extern "C"
5806 #  endif
5807    int F77_DUMMY_MAIN() { return 1; }
5808 #endif
5809 int
5810 main ()
5811 {
5812 main ();
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819   (eval $ac_link) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -s conftest$ac_exeext'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; }; then
5829   ac_cv_lib_compat_main=yes
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5833 ac_cv_lib_compat_main=no
5834 fi
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5836 LIBS=$ac_check_lib_save_LIBS
5837 fi
5838 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5839 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5840 if test $ac_cv_lib_compat_main = yes; then
5841   cat >>confdefs.h <<_ACEOF
5842 #define HAVE_LIBCOMPAT 1
5843 _ACEOF
5844
5845   LIBS="-lcompat $LIBS"
5846
5847 fi
5848
5849
5850 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5851 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5852 if test "${ac_cv_lib_BSD_main+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-lBSD  $LIBS"
5857 cat >conftest.$ac_ext <<_ACEOF
5858 #line $LINENO "configure"
5859 #include "confdefs.h"
5860
5861
5862 #ifdef F77_DUMMY_MAIN
5863 #  ifdef __cplusplus
5864      extern "C"
5865 #  endif
5866    int F77_DUMMY_MAIN() { return 1; }
5867 #endif
5868 int
5869 main ()
5870 {
5871 main ();
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878   (eval $ac_link) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } &&
5882          { ac_try='test -s conftest$ac_exeext'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   ac_cv_lib_BSD_main=yes
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 ac_cv_lib_BSD_main=no
5893 fi
5894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5896 fi
5897 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5898 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5899 if test $ac_cv_lib_BSD_main = yes; then
5900   cat >>confdefs.h <<_ACEOF
5901 #define HAVE_LIBBSD 1
5902 _ACEOF
5903
5904   LIBS="-lBSD $LIBS"
5905
5906 fi
5907
5908
5909 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5910 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5911 if test "${ac_cv_lib_gen_main+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   ac_check_lib_save_LIBS=$LIBS
5915 LIBS="-lgen  $LIBS"
5916 cat >conftest.$ac_ext <<_ACEOF
5917 #line $LINENO "configure"
5918 #include "confdefs.h"
5919
5920
5921 #ifdef F77_DUMMY_MAIN
5922 #  ifdef __cplusplus
5923      extern "C"
5924 #  endif
5925    int F77_DUMMY_MAIN() { return 1; }
5926 #endif
5927 int
5928 main ()
5929 {
5930 main ();
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937   (eval $ac_link) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -s conftest$ac_exeext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_cv_lib_gen_main=yes
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 ac_cv_lib_gen_main=no
5952 fi
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 LIBS=$ac_check_lib_save_LIBS
5955 fi
5956 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5957 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5958 if test $ac_cv_lib_gen_main = yes; then
5959   cat >>confdefs.h <<_ACEOF
5960 #define HAVE_LIBGEN 1
5961 _ACEOF
5962
5963   LIBS="-lgen $LIBS"
5964
5965 fi
5966
5967
5968 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5969 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5970 if test "${ac_cv_lib_PW_main+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   ac_check_lib_save_LIBS=$LIBS
5974 LIBS="-lPW  $LIBS"
5975 cat >conftest.$ac_ext <<_ACEOF
5976 #line $LINENO "configure"
5977 #include "confdefs.h"
5978
5979
5980 #ifdef F77_DUMMY_MAIN
5981 #  ifdef __cplusplus
5982      extern "C"
5983 #  endif
5984    int F77_DUMMY_MAIN() { return 1; }
5985 #endif
5986 int
5987 main ()
5988 {
5989 main ();
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } &&
6000          { ac_try='test -s conftest$ac_exeext'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; }; then
6006   ac_cv_lib_PW_main=yes
6007 else
6008   echo "$as_me: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 ac_cv_lib_PW_main=no
6011 fi
6012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6013 LIBS=$ac_check_lib_save_LIBS
6014 fi
6015 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
6016 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
6017 if test $ac_cv_lib_PW_main = yes; then
6018   cat >>confdefs.h <<_ACEOF
6019 #define HAVE_LIBPW 1
6020 _ACEOF
6021
6022   LIBS="-lPW $LIBS"
6023
6024 fi
6025
6026
6027 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
6028 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6029 if test "${ac_cv_lib_resolv_main+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   ac_check_lib_save_LIBS=$LIBS
6033 LIBS="-lresolv  $LIBS"
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 #include "confdefs.h"
6037
6038
6039 #ifdef F77_DUMMY_MAIN
6040 #  ifdef __cplusplus
6041      extern "C"
6042 #  endif
6043    int F77_DUMMY_MAIN() { return 1; }
6044 #endif
6045 int
6046 main ()
6047 {
6048 main ();
6049   ;
6050   return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055   (eval $ac_link) 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } &&
6059          { ac_try='test -s conftest$ac_exeext'
6060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061   (eval $ac_try) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); }; }; then
6065   ac_cv_lib_resolv_main=yes
6066 else
6067   echo "$as_me: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6069 ac_cv_lib_resolv_main=no
6070 fi
6071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6073 fi
6074 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6075 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6076 if test $ac_cv_lib_resolv_main = yes; then
6077   cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LIBRESOLV 1
6079 _ACEOF
6080
6081   LIBS="-lresolv $LIBS"
6082
6083 fi
6084
6085 # QNX:
6086
6087 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6088 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6089 if test "${ac_cv_lib_unix_main+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   ac_check_lib_save_LIBS=$LIBS
6093 LIBS="-lunix  $LIBS"
6094 cat >conftest.$ac_ext <<_ACEOF
6095 #line $LINENO "configure"
6096 #include "confdefs.h"
6097
6098
6099 #ifdef F77_DUMMY_MAIN
6100 #  ifdef __cplusplus
6101      extern "C"
6102 #  endif
6103    int F77_DUMMY_MAIN() { return 1; }
6104 #endif
6105 int
6106 main ()
6107 {
6108 main ();
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115   (eval $ac_link) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -s conftest$ac_exeext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_cv_lib_unix_main=yes
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6129 ac_cv_lib_unix_main=no
6130 fi
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6133 fi
6134 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6135 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6136 if test $ac_cv_lib_unix_main = yes; then
6137   cat >>confdefs.h <<_ACEOF
6138 #define HAVE_LIBUNIX 1
6139 _ACEOF
6140
6141   LIBS="-lunix $LIBS"
6142
6143 fi
6144
6145 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6146 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6147 if test "${ac_cv_search_crypt+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   ac_func_search_save_LIBS=$LIBS
6151 ac_cv_search_crypt=no
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 #include "confdefs.h"
6155
6156 /* Override any gcc2 internal prototype to avoid an error.  */
6157 #ifdef __cplusplus
6158 extern "C"
6159 #endif
6160 /* We use char because int might match the return type of a gcc2
6161    builtin and then its argument prototype would still apply.  */
6162 char crypt ();
6163 #ifdef F77_DUMMY_MAIN
6164 #  ifdef __cplusplus
6165      extern "C"
6166 #  endif
6167    int F77_DUMMY_MAIN() { return 1; }
6168 #endif
6169 int
6170 main ()
6171 {
6172 crypt ();
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179   (eval $ac_link) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } &&
6183          { ac_try='test -s conftest$ac_exeext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_cv_search_crypt="none required"
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 fi
6194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6195 if test "$ac_cv_search_crypt" = no; then
6196   for ac_lib in crypt; do
6197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6198     cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 #include "confdefs.h"
6201
6202 /* Override any gcc2 internal prototype to avoid an error.  */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 /* We use char because int might match the return type of a gcc2
6207    builtin and then its argument prototype would still apply.  */
6208 char crypt ();
6209 #ifdef F77_DUMMY_MAIN
6210 #  ifdef __cplusplus
6211      extern "C"
6212 #  endif
6213    int F77_DUMMY_MAIN() { return 1; }
6214 #endif
6215 int
6216 main ()
6217 {
6218 crypt ();
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225   (eval $ac_link) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } &&
6229          { ac_try='test -s conftest$ac_exeext'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; }; then
6235   ac_cv_search_crypt="-l$ac_lib"
6236 break
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 fi
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242   done
6243 fi
6244 LIBS=$ac_func_search_save_LIBS
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6247 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6248 if test "$ac_cv_search_crypt" != no; then
6249   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6250
6251 fi
6252
6253 # BeOS:
6254
6255 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6256 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6257 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   ac_check_lib_save_LIBS=$LIBS
6261 LIBS="-lbind  $LIBS"
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 #include "confdefs.h"
6265
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271    builtin and then its argument prototype would still apply.  */
6272 char __inet_ntoa ();
6273 #ifdef F77_DUMMY_MAIN
6274 #  ifdef __cplusplus
6275      extern "C"
6276 #  endif
6277    int F77_DUMMY_MAIN() { return 1; }
6278 #endif
6279 int
6280 main ()
6281 {
6282 __inet_ntoa ();
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289   (eval $ac_link) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -s conftest$ac_exeext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   ac_cv_lib_bind___inet_ntoa=yes
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 ac_cv_lib_bind___inet_ntoa=no
6304 fi
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6307 fi
6308 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6309 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6310 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6311   cat >>confdefs.h <<_ACEOF
6312 #define HAVE_LIBBIND 1
6313 _ACEOF
6314
6315   LIBS="-lbind $LIBS"
6316
6317 fi
6318
6319 # Solaris:
6320 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6321 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6322 if test "${ac_cv_search_fdatasync+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   ac_func_search_save_LIBS=$LIBS
6326 ac_cv_search_fdatasync=no
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 #include "confdefs.h"
6330
6331 /* Override any gcc2 internal prototype to avoid an error.  */
6332 #ifdef __cplusplus
6333 extern "C"
6334 #endif
6335 /* We use char because int might match the return type of a gcc2
6336    builtin and then its argument prototype would still apply.  */
6337 char fdatasync ();
6338 #ifdef F77_DUMMY_MAIN
6339 #  ifdef __cplusplus
6340      extern "C"
6341 #  endif
6342    int F77_DUMMY_MAIN() { return 1; }
6343 #endif
6344 int
6345 main ()
6346 {
6347 fdatasync ();
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354   (eval $ac_link) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } &&
6358          { ac_try='test -s conftest$ac_exeext'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_cv_search_fdatasync="none required"
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 fi
6369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6370 if test "$ac_cv_search_fdatasync" = no; then
6371   for ac_lib in rt posix4; do
6372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6373     cat >conftest.$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6375 #include "confdefs.h"
6376
6377 /* Override any gcc2 internal prototype to avoid an error.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 /* We use char because int might match the return type of a gcc2
6382    builtin and then its argument prototype would still apply.  */
6383 char fdatasync ();
6384 #ifdef F77_DUMMY_MAIN
6385 #  ifdef __cplusplus
6386      extern "C"
6387 #  endif
6388    int F77_DUMMY_MAIN() { return 1; }
6389 #endif
6390 int
6391 main ()
6392 {
6393 fdatasync ();
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400   (eval $ac_link) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -s conftest$ac_exeext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_search_fdatasync="-l$ac_lib"
6411 break
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 fi
6416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6417   done
6418 fi
6419 LIBS=$ac_func_search_save_LIBS
6420 fi
6421 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6422 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6423 if test "$ac_cv_search_fdatasync" != no; then
6424   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6425
6426 fi
6427
6428
6429 if test "$with_readline" = yes; then
6430
6431 echo "$as_me:$LINENO: checking for readline" >&5
6432 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6433
6434 if test "${pgac_cv_check_readline+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   pgac_cv_check_readline=no
6438 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6439   for pgac_rllib in -lreadline -ledit ; do
6440     pgac_save_LIBS=$LIBS
6441     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6442     cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445
6446 /* Override any gcc2 internal prototype to avoid an error.  */
6447 #ifdef __cplusplus
6448 extern "C"
6449 #endif
6450 /* We use char because int might match the return type of a gcc2
6451    builtin and then its argument prototype would still apply.  */
6452 char readline ();
6453 #ifdef F77_DUMMY_MAIN
6454 #  ifdef __cplusplus
6455      extern "C"
6456 #  endif
6457    int F77_DUMMY_MAIN() { return 1; }
6458 #endif
6459 int
6460 main ()
6461 {
6462 readline ();
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469   (eval $ac_link) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -s conftest$ac_exeext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479
6480       # NetBSD and OpenBSD have a broken linker that does not
6481       # recognize dependent libraries
6482       case $host_os in netbsd* | openbsd* )
6483         case $pgac_lib in
6484           *curses*) ;;
6485           *) pgac_lib=" -lcurses" ;;
6486         esac
6487       esac
6488
6489       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6490       break 2
6491
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 fi
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497     LIBS=$pgac_save_LIBS
6498   done
6499 done
6500 LIBS=$pgac_save_LIBS
6501
6502 fi
6503
6504 if test "$pgac_cv_check_readline" != no ; then
6505
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_LIBREADLINE 1
6508 _ACEOF
6509
6510   LIBS="$pgac_cv_check_readline $LIBS"
6511   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6512 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6513 else
6514   echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517   if test x"$pgac_cv_check_readline" = x"no"; then
6518     { { echo "$as_me:$LINENO: error: readline library not found
6519 Use --without-readline to disable readline support." >&5
6520 echo "$as_me: error: readline library not found
6521 Use --without-readline to disable readline support." >&2;}
6522    { (exit 1); exit 1; }; }
6523   fi
6524 fi
6525
6526 if test "$with_zlib" = yes; then
6527
6528 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6529 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6530 if test "${ac_cv_lib_z_inflate+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   ac_check_lib_save_LIBS=$LIBS
6534 LIBS="-lz  $LIBS"
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6538
6539 /* Override any gcc2 internal prototype to avoid an error.  */
6540 #ifdef __cplusplus
6541 extern "C"
6542 #endif
6543 /* We use char because int might match the return type of a gcc2
6544    builtin and then its argument prototype would still apply.  */
6545 char inflate ();
6546 #ifdef F77_DUMMY_MAIN
6547 #  ifdef __cplusplus
6548      extern "C"
6549 #  endif
6550    int F77_DUMMY_MAIN() { return 1; }
6551 #endif
6552 int
6553 main ()
6554 {
6555 inflate ();
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562   (eval $ac_link) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); } &&
6566          { ac_try='test -s conftest$ac_exeext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_cv_lib_z_inflate=yes
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 ac_cv_lib_z_inflate=no
6577 fi
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6580 fi
6581 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6582 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6583 if test $ac_cv_lib_z_inflate = yes; then
6584   cat >>confdefs.h <<_ACEOF
6585 #define HAVE_LIBZ 1
6586 _ACEOF
6587
6588   LIBS="-lz $LIBS"
6589
6590 else
6591   { { echo "$as_me:$LINENO: error: zlib library not found
6592 Use --without-zlib to disable zlib support." >&5
6593 echo "$as_me: error: zlib library not found
6594 Use --without-zlib to disable zlib support." >&2;}
6595    { (exit 1); exit 1; }; }
6596 fi
6597
6598 fi
6599
6600 if test "$with_krb4" = yes ; then
6601
6602 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6603 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6604 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   ac_check_lib_save_LIBS=$LIBS
6608 LIBS="-ldes  $LIBS"
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6612
6613 /* Override any gcc2 internal prototype to avoid an error.  */
6614 #ifdef __cplusplus
6615 extern "C"
6616 #endif
6617 /* We use char because int might match the return type of a gcc2
6618    builtin and then its argument prototype would still apply.  */
6619 char des_encrypt ();
6620 #ifdef F77_DUMMY_MAIN
6621 #  ifdef __cplusplus
6622      extern "C"
6623 #  endif
6624    int F77_DUMMY_MAIN() { return 1; }
6625 #endif
6626 int
6627 main ()
6628 {
6629 des_encrypt ();
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636   (eval $ac_link) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } &&
6640          { ac_try='test -s conftest$ac_exeext'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   ac_cv_lib_des_des_encrypt=yes
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6650 ac_cv_lib_des_des_encrypt=no
6651 fi
6652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6653 LIBS=$ac_check_lib_save_LIBS
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6656 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6657 if test $ac_cv_lib_des_des_encrypt = yes; then
6658   cat >>confdefs.h <<_ACEOF
6659 #define HAVE_LIBDES 1
6660 _ACEOF
6661
6662   LIBS="-ldes $LIBS"
6663
6664 else
6665   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6666 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6667    { (exit 1); exit 1; }; }
6668 fi
6669
6670
6671 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6672 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6673 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   ac_check_lib_save_LIBS=$LIBS
6677 LIBS="-lkrb  $LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6681
6682 /* Override any gcc2 internal prototype to avoid an error.  */
6683 #ifdef __cplusplus
6684 extern "C"
6685 #endif
6686 /* We use char because int might match the return type of a gcc2
6687    builtin and then its argument prototype would still apply.  */
6688 char krb_sendauth ();
6689 #ifdef F77_DUMMY_MAIN
6690 #  ifdef __cplusplus
6691      extern "C"
6692 #  endif
6693    int F77_DUMMY_MAIN() { return 1; }
6694 #endif
6695 int
6696 main ()
6697 {
6698 krb_sendauth ();
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705   (eval $ac_link) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } &&
6709          { ac_try='test -s conftest$ac_exeext'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   ac_cv_lib_krb_krb_sendauth=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 ac_cv_lib_krb_krb_sendauth=no
6720 fi
6721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 LIBS=$ac_check_lib_save_LIBS
6723 fi
6724 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6725 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6726 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6727   cat >>confdefs.h <<_ACEOF
6728 #define HAVE_LIBKRB 1
6729 _ACEOF
6730
6731   LIBS="-lkrb $LIBS"
6732
6733 else
6734   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6735 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6736    { (exit 1); exit 1; }; }
6737 fi
6738
6739 fi
6740
6741 if test "$with_krb5" = yes ; then
6742   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6743 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6744 if test "${ac_cv_search_com_err+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   ac_func_search_save_LIBS=$LIBS
6748 ac_cv_search_com_err=no
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752
6753 /* Override any gcc2 internal prototype to avoid an error.  */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758    builtin and then its argument prototype would still apply.  */
6759 char com_err ();
6760 #ifdef F77_DUMMY_MAIN
6761 #  ifdef __cplusplus
6762      extern "C"
6763 #  endif
6764    int F77_DUMMY_MAIN() { return 1; }
6765 #endif
6766 int
6767 main ()
6768 {
6769 com_err ();
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776   (eval $ac_link) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_search_com_err="none required"
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 fi
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 if test "$ac_cv_search_com_err" = no; then
6793   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6795     cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6797 #include "confdefs.h"
6798
6799 /* Override any gcc2 internal prototype to avoid an error.  */
6800 #ifdef __cplusplus
6801 extern "C"
6802 #endif
6803 /* We use char because int might match the return type of a gcc2
6804    builtin and then its argument prototype would still apply.  */
6805 char com_err ();
6806 #ifdef F77_DUMMY_MAIN
6807 #  ifdef __cplusplus
6808      extern "C"
6809 #  endif
6810    int F77_DUMMY_MAIN() { return 1; }
6811 #endif
6812 int
6813 main ()
6814 {
6815 com_err ();
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822   (eval $ac_link) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); } &&
6826          { ac_try='test -s conftest$ac_exeext'
6827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828   (eval $ac_try) 2>&5
6829   ac_status=$?
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); }; }; then
6832   ac_cv_search_com_err="-l$ac_lib"
6833 break
6834 else
6835   echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 fi
6838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6839   done
6840 fi
6841 LIBS=$ac_func_search_save_LIBS
6842 fi
6843 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6844 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6845 if test "$ac_cv_search_com_err" != no; then
6846   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6847
6848 else
6849   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6850 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6851    { (exit 1); exit 1; }; }
6852 fi
6853
6854   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6855 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6856 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   ac_func_search_save_LIBS=$LIBS
6860 ac_cv_search_krb5_encrypt=no
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6863 #include "confdefs.h"
6864
6865 /* Override any gcc2 internal prototype to avoid an error.  */
6866 #ifdef __cplusplus
6867 extern "C"
6868 #endif
6869 /* We use char because int might match the return type of a gcc2
6870    builtin and then its argument prototype would still apply.  */
6871 char krb5_encrypt ();
6872 #ifdef F77_DUMMY_MAIN
6873 #  ifdef __cplusplus
6874      extern "C"
6875 #  endif
6876    int F77_DUMMY_MAIN() { return 1; }
6877 #endif
6878 int
6879 main ()
6880 {
6881 krb5_encrypt ();
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888   (eval $ac_link) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } &&
6892          { ac_try='test -s conftest$ac_exeext'
6893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894   (eval $ac_try) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; }; then
6898   ac_cv_search_krb5_encrypt="none required"
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6902 fi
6903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6904 if test "$ac_cv_search_krb5_encrypt" = no; then
6905   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6907     cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 #include "confdefs.h"
6910
6911 /* Override any gcc2 internal prototype to avoid an error.  */
6912 #ifdef __cplusplus
6913 extern "C"
6914 #endif
6915 /* We use char because int might match the return type of a gcc2
6916    builtin and then its argument prototype would still apply.  */
6917 char krb5_encrypt ();
6918 #ifdef F77_DUMMY_MAIN
6919 #  ifdef __cplusplus
6920      extern "C"
6921 #  endif
6922    int F77_DUMMY_MAIN() { return 1; }
6923 #endif
6924 int
6925 main ()
6926 {
6927 krb5_encrypt ();
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934   (eval $ac_link) 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); } &&
6938          { ac_try='test -s conftest$ac_exeext'
6939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940   (eval $ac_try) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); }; }; then
6944   ac_cv_search_krb5_encrypt="-l$ac_lib"
6945 break
6946 else
6947   echo "$as_me: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6949 fi
6950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6951   done
6952 fi
6953 LIBS=$ac_func_search_save_LIBS
6954 fi
6955 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6956 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6957 if test "$ac_cv_search_krb5_encrypt" != no; then
6958   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6959
6960 else
6961   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6962 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6963    { (exit 1); exit 1; }; }
6964 fi
6965
6966   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6967 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6968 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   ac_func_search_save_LIBS=$LIBS
6972 ac_cv_search_krb5_sendauth=no
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976
6977 /* Override any gcc2 internal prototype to avoid an error.  */
6978 #ifdef __cplusplus
6979 extern "C"
6980 #endif
6981 /* We use char because int might match the return type of a gcc2
6982    builtin and then its argument prototype would still apply.  */
6983 char krb5_sendauth ();
6984 #ifdef F77_DUMMY_MAIN
6985 #  ifdef __cplusplus
6986      extern "C"
6987 #  endif
6988    int F77_DUMMY_MAIN() { return 1; }
6989 #endif
6990 int
6991 main ()
6992 {
6993 krb5_sendauth ();
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000   (eval $ac_link) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } &&
7004          { ac_try='test -s conftest$ac_exeext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   ac_cv_search_krb5_sendauth="none required"
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 fi
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 if test "$ac_cv_search_krb5_sendauth" = no; then
7017   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7019     cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022
7023 /* Override any gcc2 internal prototype to avoid an error.  */
7024 #ifdef __cplusplus
7025 extern "C"
7026 #endif
7027 /* We use char because int might match the return type of a gcc2
7028    builtin and then its argument prototype would still apply.  */
7029 char krb5_sendauth ();
7030 #ifdef F77_DUMMY_MAIN
7031 #  ifdef __cplusplus
7032      extern "C"
7033 #  endif
7034    int F77_DUMMY_MAIN() { return 1; }
7035 #endif
7036 int
7037 main ()
7038 {
7039 krb5_sendauth ();
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046   (eval $ac_link) 2>&5
7047   ac_status=$?
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); } &&
7050          { ac_try='test -s conftest$ac_exeext'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; }; then
7056   ac_cv_search_krb5_sendauth="-l$ac_lib"
7057 break
7058 else
7059   echo "$as_me: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7061 fi
7062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7063   done
7064 fi
7065 LIBS=$ac_func_search_save_LIBS
7066 fi
7067 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7068 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7069 if test "$ac_cv_search_krb5_sendauth" != no; then
7070   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7071
7072 else
7073   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7074 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7075    { (exit 1); exit 1; }; }
7076 fi
7077
7078 fi
7079
7080 if test "$with_openssl" = yes ; then
7081
7082 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7083 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7084 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   ac_check_lib_save_LIBS=$LIBS
7088 LIBS="-lcrypto  $LIBS"
7089 cat >conftest.$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7091 #include "confdefs.h"
7092
7093 /* Override any gcc2 internal prototype to avoid an error.  */
7094 #ifdef __cplusplus
7095 extern "C"
7096 #endif
7097 /* We use char because int might match the return type of a gcc2
7098    builtin and then its argument prototype would still apply.  */
7099 char CRYPTO_new_ex_data ();
7100 #ifdef F77_DUMMY_MAIN
7101 #  ifdef __cplusplus
7102      extern "C"
7103 #  endif
7104    int F77_DUMMY_MAIN() { return 1; }
7105 #endif
7106 int
7107 main ()
7108 {
7109 CRYPTO_new_ex_data ();
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116   (eval $ac_link) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); } &&
7120          { ac_try='test -s conftest$ac_exeext'
7121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122   (eval $ac_try) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); }; }; then
7126   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7131 fi
7132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133 LIBS=$ac_check_lib_save_LIBS
7134 fi
7135 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7136 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7137 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7138   cat >>confdefs.h <<_ACEOF
7139 #define HAVE_LIBCRYPTO 1
7140 _ACEOF
7141
7142   LIBS="-lcrypto $LIBS"
7143
7144 else
7145   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7146 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7147    { (exit 1); exit 1; }; }
7148 fi
7149
7150
7151 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7152 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7153 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   ac_check_lib_save_LIBS=$LIBS
7157 LIBS="-lssl  $LIBS"
7158 cat >conftest.$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7160 #include "confdefs.h"
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char SSL_library_init ();
7169 #ifdef F77_DUMMY_MAIN
7170 #  ifdef __cplusplus
7171      extern "C"
7172 #  endif
7173    int F77_DUMMY_MAIN() { return 1; }
7174 #endif
7175 int
7176 main ()
7177 {
7178 SSL_library_init ();
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185   (eval $ac_link) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); } &&
7189          { ac_try='test -s conftest$ac_exeext'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   ac_cv_lib_ssl_SSL_library_init=yes
7196 else
7197   echo "$as_me: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 ac_cv_lib_ssl_SSL_library_init=no
7200 fi
7201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7203 fi
7204 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7205 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7206 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7207   cat >>confdefs.h <<_ACEOF
7208 #define HAVE_LIBSSL 1
7209 _ACEOF
7210
7211   LIBS="-lssl $LIBS"
7212
7213 else
7214   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7215 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7216    { (exit 1); exit 1; }; }
7217 fi
7218
7219 fi
7220
7221 if test "$with_pam" = yes ; then
7222
7223 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7224 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7225 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lpam  $LIBS"
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7233
7234 /* Override any gcc2 internal prototype to avoid an error.  */
7235 #ifdef __cplusplus
7236 extern "C"
7237 #endif
7238 /* We use char because int might match the return type of a gcc2
7239    builtin and then its argument prototype would still apply.  */
7240 char pam_start ();
7241 #ifdef F77_DUMMY_MAIN
7242 #  ifdef __cplusplus
7243      extern "C"
7244 #  endif
7245    int F77_DUMMY_MAIN() { return 1; }
7246 #endif
7247 int
7248 main ()
7249 {
7250 pam_start ();
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257   (eval $ac_link) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -s conftest$ac_exeext'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; }; then
7267   ac_cv_lib_pam_pam_start=yes
7268 else
7269   echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_cv_lib_pam_pam_start=no
7272 fi
7273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7274 LIBS=$ac_check_lib_save_LIBS
7275 fi
7276 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7277 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7278 if test $ac_cv_lib_pam_pam_start = yes; then
7279   cat >>confdefs.h <<_ACEOF
7280 #define HAVE_LIBPAM 1
7281 _ACEOF
7282
7283   LIBS="-lpam $LIBS"
7284
7285 else
7286   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7287 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7288    { (exit 1); exit 1; }; }
7289 fi
7290
7291 fi
7292
7293
7294 ##
7295 ## Header files
7296 ##
7297 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7298 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7299 if test "${ac_cv_header_stdc+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7305 #include <stdlib.h>
7306 #include <stdarg.h>
7307 #include <string.h>
7308 #include <float.h>
7309
7310 _ACEOF
7311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7313   ac_status=$?
7314   egrep -v '^ *\+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } >/dev/null; then
7319   if test -s conftest.err; then
7320     ac_cpp_err=$ac_c_preproc_warn_flag
7321   else
7322     ac_cpp_err=
7323   fi
7324 else
7325   ac_cpp_err=yes
7326 fi
7327 if test -z "$ac_cpp_err"; then
7328   ac_cv_header_stdc=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331   cat conftest.$ac_ext >&5
7332   ac_cv_header_stdc=no
7333 fi
7334 rm -f conftest.err conftest.$ac_ext
7335
7336 if test $ac_cv_header_stdc = yes; then
7337   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7338   cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7341 #include <string.h>
7342
7343 _ACEOF
7344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7345   egrep "memchr" >/dev/null 2>&1; then
7346   :
7347 else
7348   ac_cv_header_stdc=no
7349 fi
7350 rm -f conftest*
7351
7352 fi
7353
7354 if test $ac_cv_header_stdc = yes; then
7355   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7356   cat >conftest.$ac_ext <<_ACEOF
7357 #line $LINENO "configure"
7358 #include "confdefs.h"
7359 #include <stdlib.h>
7360
7361 _ACEOF
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363   egrep "free" >/dev/null 2>&1; then
7364   :
7365 else
7366   ac_cv_header_stdc=no
7367 fi
7368 rm -f conftest*
7369
7370 fi
7371
7372 if test $ac_cv_header_stdc = yes; then
7373   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7374   if test "$cross_compiling" = yes; then
7375   :
7376 else
7377   cat >conftest.$ac_ext <<_ACEOF
7378 #line $LINENO "configure"
7379 #include "confdefs.h"
7380 #include <ctype.h>
7381 #if ((' ' & 0x0FF) == 0x020)
7382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7384 #else
7385 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7386                      || ('j' <= (c) && (c) <= 'r') \
7387                      || ('s' <= (c) && (c) <= 'z'))
7388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7389 #endif
7390
7391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7392 int
7393 main ()
7394 {
7395   int i;
7396   for (i = 0; i < 256; i++)
7397     if (XOR (islower (i), ISLOWER (i))
7398         || toupper (i) != TOUPPER (i))
7399       exit(2);
7400   exit (0);
7401 }
7402 _ACEOF
7403 rm -f conftest$ac_exeext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7405   (eval $ac_link) 2>&5
7406   ac_status=$?
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   :
7415 else
7416   echo "$as_me: program exited with status $ac_status" >&5
7417 echo "$as_me: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 ( exit $ac_status )
7420 ac_cv_header_stdc=no
7421 fi
7422 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7423 fi
7424 fi
7425 fi
7426 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7427 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7428 if test $ac_cv_header_stdc = yes; then
7429
7430 cat >>confdefs.h <<\_ACEOF
7431 #define STDC_HEADERS 1
7432 _ACEOF
7433
7434 fi
7435
7436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7447                   inttypes.h stdint.h unistd.h
7448 do
7449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7457 #include "confdefs.h"
7458 $ac_includes_default
7459
7460 #include <$ac_header>
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   eval "$as_ac_Header=yes"
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 eval "$as_ac_Header=no"
7479 fi
7480 rm -f conftest.$ac_objext conftest.$ac_ext
7481 fi
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 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
7513 do
7514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516   echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 fi
7521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7523 else
7524   # Is the header compilable?
7525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 #include "confdefs.h"
7530 $ac_includes_default
7531 #include <$ac_header>
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535   (eval $ac_compile) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } &&
7539          { ac_try='test -s conftest.$ac_objext'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; }; then
7545   ac_header_compiler=yes
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 ac_header_compiler=no
7550 fi
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6
7554
7555 # Is the header present?
7556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 #include "confdefs.h"
7561 #include <$ac_header>
7562 _ACEOF
7563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7565   ac_status=$?
7566   egrep -v '^ *\+' conftest.er1 >conftest.err
7567   rm -f conftest.er1
7568   cat conftest.err >&5
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); } >/dev/null; then
7571   if test -s conftest.err; then
7572     ac_cpp_err=$ac_c_preproc_warn_flag
7573   else
7574     ac_cpp_err=
7575   fi
7576 else
7577   ac_cpp_err=yes
7578 fi
7579 if test -z "$ac_cpp_err"; then
7580   ac_header_preproc=yes
7581 else
7582   echo "$as_me: failed program was:" >&5
7583   cat conftest.$ac_ext >&5
7584   ac_header_preproc=no
7585 fi
7586 rm -f conftest.err conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588 echo "${ECHO_T}$ac_header_preproc" >&6
7589
7590 # So?  What about this header?
7591 case $ac_header_compiler:$ac_header_preproc in
7592   yes:no )
7593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7597   no:yes )
7598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7600     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7604 esac
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   eval "$as_ac_Header=$ac_header_preproc"
7611 fi
7612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614
7615 fi
7616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617   cat >>confdefs.h <<_ACEOF
7618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619 _ACEOF
7620
7621 fi
7622
7623 done
7624
7625
7626 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7627 # netinet/in.h is included first.
7628
7629 for ac_header in netinet/in.h
7630 do
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633   echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 fi
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640 else
7641   # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7648 #include <$ac_header>
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652   (eval $ac_compile) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -s conftest.$ac_objext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   ac_header_compiler=yes
7663 else
7664   echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_compiler=no
7667 fi
7668 rm -f conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7670 echo "${ECHO_T}$ac_header_compiler" >&6
7671
7672 # Is the header present?
7673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7678 #include <$ac_header>
7679 _ACEOF
7680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7682   ac_status=$?
7683   egrep -v '^ *\+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } >/dev/null; then
7688   if test -s conftest.err; then
7689     ac_cpp_err=$ac_c_preproc_warn_flag
7690   else
7691     ac_cpp_err=
7692   fi
7693 else
7694   ac_cpp_err=yes
7695 fi
7696 if test -z "$ac_cpp_err"; then
7697   ac_header_preproc=yes
7698 else
7699   echo "$as_me: failed program was:" >&5
7700   cat conftest.$ac_ext >&5
7701   ac_header_preproc=no
7702 fi
7703 rm -f conftest.err conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7705 echo "${ECHO_T}$ac_header_preproc" >&6
7706
7707 # So?  What about this header?
7708 case $ac_header_compiler:$ac_header_preproc in
7709   yes:no )
7710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7714   no:yes )
7715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7721 esac
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   eval "$as_ac_Header=$ac_header_preproc"
7728 fi
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7731
7732 fi
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734   cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743 for ac_header in netinet/tcp.h
7744 do
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7754 $ac_includes_default
7755 #ifdef HAVE_NETINET_IN_H
7756 #include <netinet/in.h>
7757 #endif
7758
7759
7760 #include <$ac_header>
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764   (eval $ac_compile) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -s conftest.$ac_objext'
7769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770   (eval $ac_try) 2>&5
7771   ac_status=$?
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); }; }; then
7774   eval "$as_ac_Header=yes"
7775 else
7776   echo "$as_me: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 eval "$as_ac_Header=no"
7779 fi
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7785   cat >>confdefs.h <<_ACEOF
7786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7787 _ACEOF
7788
7789 fi
7790
7791 done
7792
7793
7794 if test "$with_readline" = yes; then
7795
7796 for ac_header in readline/readline.h
7797 do
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800   echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 fi
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807 else
7808   # Is the header compilable?
7809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7812 #line $LINENO "configure"
7813 #include "confdefs.h"
7814 $ac_includes_default
7815 #include <$ac_header>
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819   (eval $ac_compile) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } &&
7823          { ac_try='test -s conftest.$ac_objext'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; }; then
7829   ac_header_compiler=yes
7830 else
7831   echo "$as_me: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7833 ac_header_compiler=no
7834 fi
7835 rm -f conftest.$ac_objext conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7837 echo "${ECHO_T}$ac_header_compiler" >&6
7838
7839 # Is the header present?
7840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7843 #line $LINENO "configure"
7844 #include "confdefs.h"
7845 #include <$ac_header>
7846 _ACEOF
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849   ac_status=$?
7850   egrep -v '^ *\+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } >/dev/null; then
7855   if test -s conftest.err; then
7856     ac_cpp_err=$ac_c_preproc_warn_flag
7857   else
7858     ac_cpp_err=
7859   fi
7860 else
7861   ac_cpp_err=yes
7862 fi
7863 if test -z "$ac_cpp_err"; then
7864   ac_header_preproc=yes
7865 else
7866   echo "$as_me: failed program was:" >&5
7867   cat conftest.$ac_ext >&5
7868   ac_header_preproc=no
7869 fi
7870 rm -f conftest.err conftest.$ac_ext
7871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7872 echo "${ECHO_T}$ac_header_preproc" >&6
7873
7874 # So?  What about this header?
7875 case $ac_header_compiler:$ac_header_preproc in
7876   yes:no )
7877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7881   no:yes )
7882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7888 esac
7889 echo "$as_me:$LINENO: checking for $ac_header" >&5
7890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   eval "$as_ac_Header=$ac_header_preproc"
7895 fi
7896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7898
7899 fi
7900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7901   cat >>confdefs.h <<_ACEOF
7902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7903 _ACEOF
7904
7905 else
7906
7907 for ac_header in readline.h
7908 do
7909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911   echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 fi
7916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7918 else
7919   # Is the header compilable?
7920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7923 #line $LINENO "configure"
7924 #include "confdefs.h"
7925 $ac_includes_default
7926 #include <$ac_header>
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930   (eval $ac_compile) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } &&
7934          { ac_try='test -s conftest.$ac_objext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940   ac_header_compiler=yes
7941 else
7942   echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7944 ac_header_compiler=no
7945 fi
7946 rm -f conftest.$ac_objext conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7948 echo "${ECHO_T}$ac_header_compiler" >&6
7949
7950 # Is the header present?
7951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7955 #include "confdefs.h"
7956 #include <$ac_header>
7957 _ACEOF
7958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7960   ac_status=$?
7961   egrep -v '^ *\+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } >/dev/null; then
7966   if test -s conftest.err; then
7967     ac_cpp_err=$ac_c_preproc_warn_flag
7968   else
7969     ac_cpp_err=
7970   fi
7971 else
7972   ac_cpp_err=yes
7973 fi
7974 if test -z "$ac_cpp_err"; then
7975   ac_header_preproc=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978   cat conftest.$ac_ext >&5
7979   ac_header_preproc=no
7980 fi
7981 rm -f conftest.err conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983 echo "${ECHO_T}$ac_header_preproc" >&6
7984
7985 # So?  What about this header?
7986 case $ac_header_compiler:$ac_header_preproc in
7987   yes:no )
7988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7992   no:yes )
7993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7999 esac
8000 echo "$as_me:$LINENO: checking for $ac_header" >&5
8001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   eval "$as_ac_Header=$ac_header_preproc"
8006 fi
8007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8009
8010 fi
8011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8012   cat >>confdefs.h <<_ACEOF
8013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8014 _ACEOF
8015
8016 else
8017   { { echo "$as_me:$LINENO: error: readline header not found
8018 Use --without-readline to disable readline support." >&5
8019 echo "$as_me: error: readline header not found
8020 Use --without-readline to disable readline support." >&2;}
8021    { (exit 1); exit 1; }; }
8022 fi
8023
8024 done
8025
8026 fi
8027
8028 done
8029
8030
8031 for ac_header in readline/history.h
8032 do
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035   echo "$as_me:$LINENO: checking for $ac_header" >&5
8036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 fi
8040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042 else
8043   # Is the header compilable?
8044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 #include "confdefs.h"
8049 $ac_includes_default
8050 #include <$ac_header>
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054   (eval $ac_compile) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } &&
8058          { ac_try='test -s conftest.$ac_objext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_header_compiler=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 ac_header_compiler=no
8069 fi
8070 rm -f conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072 echo "${ECHO_T}$ac_header_compiler" >&6
8073
8074 # Is the header present?
8075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 #include "confdefs.h"
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084   ac_status=$?
8085   egrep -v '^ *\+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } >/dev/null; then
8090   if test -s conftest.err; then
8091     ac_cpp_err=$ac_c_preproc_warn_flag
8092   else
8093     ac_cpp_err=
8094   fi
8095 else
8096   ac_cpp_err=yes
8097 fi
8098 if test -z "$ac_cpp_err"; then
8099   ac_header_preproc=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102   cat conftest.$ac_ext >&5
8103   ac_header_preproc=no
8104 fi
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8108
8109 # So?  What about this header?
8110 case $ac_header_compiler:$ac_header_preproc in
8111   yes:no )
8112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8116   no:yes )
8117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8123 esac
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   eval "$as_ac_Header=$ac_header_preproc"
8130 fi
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133
8134 fi
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136   cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138 _ACEOF
8139
8140 else
8141
8142 for ac_header in history.h
8143 do
8144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146   echo "$as_me:$LINENO: checking for $ac_header" >&5
8147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 fi
8151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8153 else
8154   # Is the header compilable?
8155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8160 $ac_includes_default
8161 #include <$ac_header>
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165   (eval $ac_compile) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -s conftest.$ac_objext'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; }; then
8175   ac_header_compiler=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 ac_header_compiler=no
8180 fi
8181 rm -f conftest.$ac_objext conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8183 echo "${ECHO_T}$ac_header_compiler" >&6
8184
8185 # Is the header present?
8186 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8190 #include "confdefs.h"
8191 #include <$ac_header>
8192 _ACEOF
8193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8195   ac_status=$?
8196   egrep -v '^ *\+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } >/dev/null; then
8201   if test -s conftest.err; then
8202     ac_cpp_err=$ac_c_preproc_warn_flag
8203   else
8204     ac_cpp_err=
8205   fi
8206 else
8207   ac_cpp_err=yes
8208 fi
8209 if test -z "$ac_cpp_err"; then
8210   ac_header_preproc=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213   cat conftest.$ac_ext >&5
8214   ac_header_preproc=no
8215 fi
8216 rm -f conftest.err conftest.$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8218 echo "${ECHO_T}$ac_header_preproc" >&6
8219
8220 # So?  What about this header?
8221 case $ac_header_compiler:$ac_header_preproc in
8222   yes:no )
8223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8227   no:yes )
8228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8234 esac
8235 echo "$as_me:$LINENO: checking for $ac_header" >&5
8236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   eval "$as_ac_Header=$ac_header_preproc"
8241 fi
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8244
8245 fi
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247   cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8249 _ACEOF
8250
8251 else
8252   { { echo "$as_me:$LINENO: error: history header not found
8253 Use --without-readline to disable readline support." >&5
8254 echo "$as_me: error: history header not found
8255 Use --without-readline to disable readline support." >&2;}
8256    { (exit 1); exit 1; }; }
8257 fi
8258
8259 done
8260
8261 fi
8262
8263 done
8264
8265 fi
8266
8267 if test "$with_zlib" = yes; then
8268   if test "${ac_cv_header_zlib_h+set}" = set; then
8269   echo "$as_me:$LINENO: checking for zlib.h" >&5
8270 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8271 if test "${ac_cv_header_zlib_h+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 fi
8274 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8275 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8276 else
8277   # Is the header compilable?
8278 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8279 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8282 #include "confdefs.h"
8283 $ac_includes_default
8284 #include <zlib.h>
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8288   (eval $ac_compile) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -s conftest.$ac_objext'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; }; then
8298   ac_header_compiler=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 ac_header_compiler=no
8303 fi
8304 rm -f conftest.$ac_objext conftest.$ac_ext
8305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306 echo "${ECHO_T}$ac_header_compiler" >&6
8307
8308 # Is the header present?
8309 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8310 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8312 #line $LINENO "configure"
8313 #include "confdefs.h"
8314 #include <zlib.h>
8315 _ACEOF
8316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8318   ac_status=$?
8319   egrep -v '^ *\+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } >/dev/null; then
8324   if test -s conftest.err; then
8325     ac_cpp_err=$ac_c_preproc_warn_flag
8326   else
8327     ac_cpp_err=
8328   fi
8329 else
8330   ac_cpp_err=yes
8331 fi
8332 if test -z "$ac_cpp_err"; then
8333   ac_header_preproc=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336   cat conftest.$ac_ext >&5
8337   ac_header_preproc=no
8338 fi
8339 rm -f conftest.err conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8341 echo "${ECHO_T}$ac_header_preproc" >&6
8342
8343 # So?  What about this header?
8344 case $ac_header_compiler:$ac_header_preproc in
8345   yes:no )
8346     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8347 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8348     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8349 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8350   no:yes )
8351     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8353     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8355     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8356 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8357 esac
8358 echo "$as_me:$LINENO: checking for zlib.h" >&5
8359 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_zlib_h+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   ac_cv_header_zlib_h=$ac_header_preproc
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8367
8368 fi
8369 if test $ac_cv_header_zlib_h = yes; then
8370   :
8371 else
8372   { { echo "$as_me:$LINENO: error: zlib header not found
8373 Use --without-zlib to disable zlib support." >&5
8374 echo "$as_me: error: zlib header not found
8375 Use --without-zlib to disable zlib support." >&2;}
8376    { (exit 1); exit 1; }; }
8377 fi
8378
8379
8380 fi
8381
8382 if test "$with_krb4" = yes ; then
8383   if test "${ac_cv_header_krb_h+set}" = set; then
8384   echo "$as_me:$LINENO: checking for krb.h" >&5
8385 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8386 if test "${ac_cv_header_krb_h+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 fi
8389 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8390 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8391 else
8392   # Is the header compilable?
8393 echo "$as_me:$LINENO: checking krb.h usability" >&5
8394 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line $LINENO "configure"
8397 #include "confdefs.h"
8398 $ac_includes_default
8399 #include <krb.h>
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403   (eval $ac_compile) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -s conftest.$ac_objext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   ac_header_compiler=yes
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 ac_header_compiler=no
8418 fi
8419 rm -f conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8421 echo "${ECHO_T}$ac_header_compiler" >&6
8422
8423 # Is the header present?
8424 echo "$as_me:$LINENO: checking krb.h presence" >&5
8425 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 #include "confdefs.h"
8429 #include <krb.h>
8430 _ACEOF
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8433   ac_status=$?
8434   egrep -v '^ *\+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } >/dev/null; then
8439   if test -s conftest.err; then
8440     ac_cpp_err=$ac_c_preproc_warn_flag
8441   else
8442     ac_cpp_err=
8443   fi
8444 else
8445   ac_cpp_err=yes
8446 fi
8447 if test -z "$ac_cpp_err"; then
8448   ac_header_preproc=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451   cat conftest.$ac_ext >&5
8452   ac_header_preproc=no
8453 fi
8454 rm -f conftest.err conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456 echo "${ECHO_T}$ac_header_preproc" >&6
8457
8458 # So?  What about this header?
8459 case $ac_header_compiler:$ac_header_preproc in
8460   yes:no )
8461     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8462 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8464 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8465   no:yes )
8466     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8467 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8468     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8469 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8470     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8471 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8472 esac
8473 echo "$as_me:$LINENO: checking for krb.h" >&5
8474 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8475 if test "${ac_cv_header_krb_h+set}" = set; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478   ac_cv_header_krb_h=$ac_header_preproc
8479 fi
8480 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8481 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8482
8483 fi
8484 if test $ac_cv_header_krb_h = yes; then
8485   :
8486 else
8487   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8488 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8489    { (exit 1); exit 1; }; }
8490 fi
8491
8492
8493 fi
8494
8495 if test "$with_krb5" = yes ; then
8496   if test "${ac_cv_header_krb5_h+set}" = set; then
8497   echo "$as_me:$LINENO: checking for krb5.h" >&5
8498 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_krb5_h+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8504 else
8505   # Is the header compilable?
8506 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8507 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8509 #line $LINENO "configure"
8510 #include "confdefs.h"
8511 $ac_includes_default
8512 #include <krb5.h>
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516   (eval $ac_compile) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -s conftest.$ac_objext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_header_compiler=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 ac_header_compiler=no
8531 fi
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6
8535
8536 # Is the header present?
8537 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8538 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 #include "confdefs.h"
8542 #include <krb5.h>
8543 _ACEOF
8544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8546   ac_status=$?
8547   egrep -v '^ *\+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } >/dev/null; then
8552   if test -s conftest.err; then
8553     ac_cpp_err=$ac_c_preproc_warn_flag
8554   else
8555     ac_cpp_err=
8556   fi
8557 else
8558   ac_cpp_err=yes
8559 fi
8560 if test -z "$ac_cpp_err"; then
8561   ac_header_preproc=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564   cat conftest.$ac_ext >&5
8565   ac_header_preproc=no
8566 fi
8567 rm -f conftest.err conftest.$ac_ext
8568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8569 echo "${ECHO_T}$ac_header_preproc" >&6
8570
8571 # So?  What about this header?
8572 case $ac_header_compiler:$ac_header_preproc in
8573   yes:no )
8574     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8575 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8576     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8578   no:yes )
8579     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8585 esac
8586 echo "$as_me:$LINENO: checking for krb5.h" >&5
8587 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8588 if test "${ac_cv_header_krb5_h+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   ac_cv_header_krb5_h=$ac_header_preproc
8592 fi
8593 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8594 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8595
8596 fi
8597 if test $ac_cv_header_krb5_h = yes; then
8598   :
8599 else
8600   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8601 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8602    { (exit 1); exit 1; }; }
8603 fi
8604
8605
8606   if test "${ac_cv_header_com_err_h+set}" = set; then
8607   echo "$as_me:$LINENO: checking for com_err.h" >&5
8608 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8609 if test "${ac_cv_header_com_err_h+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8613 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8614 else
8615   # Is the header compilable?
8616 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8617 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8619 #line $LINENO "configure"
8620 #include "confdefs.h"
8621 $ac_includes_default
8622 #include <com_err.h>
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626   (eval $ac_compile) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -s conftest.$ac_objext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   ac_header_compiler=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8640 ac_header_compiler=no
8641 fi
8642 rm -f conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8644 echo "${ECHO_T}$ac_header_compiler" >&6
8645
8646 # Is the header present?
8647 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8648 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 #include "confdefs.h"
8652 #include <com_err.h>
8653 _ACEOF
8654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8656   ac_status=$?
8657   egrep -v '^ *\+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } >/dev/null; then
8662   if test -s conftest.err; then
8663     ac_cpp_err=$ac_c_preproc_warn_flag
8664   else
8665     ac_cpp_err=
8666   fi
8667 else
8668   ac_cpp_err=yes
8669 fi
8670 if test -z "$ac_cpp_err"; then
8671   ac_header_preproc=yes
8672 else
8673   echo "$as_me: failed program was:" >&5
8674   cat conftest.$ac_ext >&5
8675   ac_header_preproc=no
8676 fi
8677 rm -f conftest.err conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8679 echo "${ECHO_T}$ac_header_preproc" >&6
8680
8681 # So?  What about this header?
8682 case $ac_header_compiler:$ac_header_preproc in
8683   yes:no )
8684     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8685 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8686     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8687 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8688   no:yes )
8689     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8690 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8691     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8692 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8693     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8695 esac
8696 echo "$as_me:$LINENO: checking for com_err.h" >&5
8697 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8698 if test "${ac_cv_header_com_err_h+set}" = set; then
8699   echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701   ac_cv_header_com_err_h=$ac_header_preproc
8702 fi
8703 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8704 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8705
8706 fi
8707 if test $ac_cv_header_com_err_h = yes; then
8708   :
8709 else
8710   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8711 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8712    { (exit 1); exit 1; }; }
8713 fi
8714
8715
8716 fi
8717
8718 if test "$with_openssl" = yes ; then
8719   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8720   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8721 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8722 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8727 else
8728   # Is the header compilable?
8729 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8730 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8731 cat >conftest.$ac_ext <<_ACEOF
8732 #line $LINENO "configure"
8733 #include "confdefs.h"
8734 $ac_includes_default
8735 #include <openssl/ssl.h>
8736 _ACEOF
8737 rm -f conftest.$ac_objext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739   (eval $ac_compile) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); } &&
8743          { ac_try='test -s conftest.$ac_objext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_header_compiler=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8753 ac_header_compiler=no
8754 fi
8755 rm -f conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757 echo "${ECHO_T}$ac_header_compiler" >&6
8758
8759 # Is the header present?
8760 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8761 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8763 #line $LINENO "configure"
8764 #include "confdefs.h"
8765 #include <openssl/ssl.h>
8766 _ACEOF
8767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8769   ac_status=$?
8770   egrep -v '^ *\+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } >/dev/null; then
8775   if test -s conftest.err; then
8776     ac_cpp_err=$ac_c_preproc_warn_flag
8777   else
8778     ac_cpp_err=
8779   fi
8780 else
8781   ac_cpp_err=yes
8782 fi
8783 if test -z "$ac_cpp_err"; then
8784   ac_header_preproc=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787   cat conftest.$ac_ext >&5
8788   ac_header_preproc=no
8789 fi
8790 rm -f conftest.err conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6
8793
8794 # So?  What about this header?
8795 case $ac_header_compiler:$ac_header_preproc in
8796   yes:no )
8797     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8800 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8801   no:yes )
8802     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8804     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8806     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8807 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8808 esac
8809 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8810 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8811 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8815 fi
8816 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8817 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8818
8819 fi
8820 if test $ac_cv_header_openssl_ssl_h = yes; then
8821   :
8822 else
8823   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8824 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8825    { (exit 1); exit 1; }; }
8826 fi
8827
8828
8829   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8830   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8831 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8832 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 fi
8835 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8836 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8837 else
8838   # Is the header compilable?
8839 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8840 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 $ac_includes_default
8845 #include <openssl/err.h>
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849   (eval $ac_compile) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -s conftest.$ac_objext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_header_compiler=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8863 ac_header_compiler=no
8864 fi
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8867 echo "${ECHO_T}$ac_header_compiler" >&6
8868
8869 # Is the header present?
8870 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8871 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8872 cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 #include "confdefs.h"
8875 #include <openssl/err.h>
8876 _ACEOF
8877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8879   ac_status=$?
8880   egrep -v '^ *\+' conftest.er1 >conftest.err
8881   rm -f conftest.er1
8882   cat conftest.err >&5
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); } >/dev/null; then
8885   if test -s conftest.err; then
8886     ac_cpp_err=$ac_c_preproc_warn_flag
8887   else
8888     ac_cpp_err=
8889   fi
8890 else
8891   ac_cpp_err=yes
8892 fi
8893 if test -z "$ac_cpp_err"; then
8894   ac_header_preproc=yes
8895 else
8896   echo "$as_me: failed program was:" >&5
8897   cat conftest.$ac_ext >&5
8898   ac_header_preproc=no
8899 fi
8900 rm -f conftest.err conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902 echo "${ECHO_T}$ac_header_preproc" >&6
8903
8904 # So?  What about this header?
8905 case $ac_header_compiler:$ac_header_preproc in
8906   yes:no )
8907     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8908 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8910 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8911   no:yes )
8912     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8913 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8914     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8915 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8916     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8917 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8918 esac
8919 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8920 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8921 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8922   echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924   ac_cv_header_openssl_err_h=$ac_header_preproc
8925 fi
8926 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8927 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8928
8929 fi
8930 if test $ac_cv_header_openssl_err_h = yes; then
8931   :
8932 else
8933   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8934 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8935    { (exit 1); exit 1; }; }
8936 fi
8937
8938
8939 fi
8940
8941 if test "$with_pam" = yes ; then
8942   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8943   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8944 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8945 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 fi
8948 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8949 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8950 else
8951   # Is the header compilable?
8952 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8953 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8956 #include "confdefs.h"
8957 $ac_includes_default
8958 #include <security/pam_appl.h>
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -s conftest.$ac_objext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_header_compiler=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 ac_header_compiler=no
8977 fi
8978 rm -f conftest.$ac_objext conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6
8981
8982 # Is the header present?
8983 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8984 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
8986 #line $LINENO "configure"
8987 #include "confdefs.h"
8988 #include <security/pam_appl.h>
8989 _ACEOF
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992   ac_status=$?
8993   egrep -v '^ *\+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } >/dev/null; then
8998   if test -s conftest.err; then
8999     ac_cpp_err=$ac_c_preproc_warn_flag
9000   else
9001     ac_cpp_err=
9002   fi
9003 else
9004   ac_cpp_err=yes
9005 fi
9006 if test -z "$ac_cpp_err"; then
9007   ac_header_preproc=yes
9008 else
9009   echo "$as_me: failed program was:" >&5
9010   cat conftest.$ac_ext >&5
9011   ac_header_preproc=no
9012 fi
9013 rm -f conftest.err conftest.$ac_ext
9014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9015 echo "${ECHO_T}$ac_header_preproc" >&6
9016
9017 # So?  What about this header?
9018 case $ac_header_compiler:$ac_header_preproc in
9019   yes:no )
9020     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9021 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9022     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9023 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9024   no:yes )
9025     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9027     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9029     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9030 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9031 esac
9032 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9033 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9034 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9035   echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9038 fi
9039 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9040 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9041
9042 fi
9043 if test $ac_cv_header_security_pam_appl_h = yes; then
9044   :
9045 else
9046   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9047 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9048    { (exit 1); exit 1; }; }
9049 fi
9050
9051
9052 fi
9053
9054
9055 ##
9056 ## Types, structures, compiler characteristics
9057 ##
9058
9059 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9060 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9061 if test "${ac_cv_c_const+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067
9068 #ifdef F77_DUMMY_MAIN
9069 #  ifdef __cplusplus
9070      extern "C"
9071 #  endif
9072    int F77_DUMMY_MAIN() { return 1; }
9073 #endif
9074 int
9075 main ()
9076 {
9077 /* FIXME: Include the comments suggested by Paul. */
9078 #ifndef __cplusplus
9079   /* Ultrix mips cc rejects this.  */
9080   typedef int charset[2];
9081   const charset x;
9082   /* SunOS 4.1.1 cc rejects this.  */
9083   char const *const *ccp;
9084   char **p;
9085   /* NEC SVR4.0.2 mips cc rejects this.  */
9086   struct point {int x, y;};
9087   static struct point const zero = {0,0};
9088   /* AIX XL C 1.02.0.0 rejects this.
9089      It does not let you subtract one const X* pointer from another in
9090      an arm of an if-expression whose if-part is not a constant
9091      expression */
9092   const char *g = "string";
9093   ccp = &g + (g ? g-g : 0);
9094   /* HPUX 7.0 cc rejects these. */
9095   ++ccp;
9096   p = (char**) ccp;
9097   ccp = (char const *const *) p;
9098   { /* SCO 3.2v4 cc rejects this.  */
9099     char *t;
9100     char const *s = 0 ? (char *) 0 : (char const *) 0;
9101
9102     *t++ = 0;
9103   }
9104   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9105     int x[] = {25, 17};
9106     const int *foo = &x[0];
9107     ++foo;
9108   }
9109   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9110     typedef const int *iptr;
9111     iptr p = 0;
9112     ++p;
9113   }
9114   { /* AIX XL C 1.02.0.0 rejects this saying
9115        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9116     struct s { int j; const int *ap[3]; };
9117     struct s *b; b->j = 5;
9118   }
9119   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9120     const int foo = 10;
9121   }
9122 #endif
9123
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130   (eval $ac_compile) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -s conftest.$ac_objext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_cv_c_const=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_cv_c_const=no
9145 fi
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9149 echo "${ECHO_T}$ac_cv_c_const" >&6
9150 if test $ac_cv_c_const = no; then
9151
9152 cat >>confdefs.h <<\_ACEOF
9153 #define const
9154 _ACEOF
9155
9156 fi
9157
9158 echo "$as_me:$LINENO: checking for inline" >&5
9159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9160 if test "${ac_cv_c_inline+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   ac_cv_c_inline=no
9164 for ac_kw in inline __inline__ __inline; do
9165   cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9168 #ifndef __cplusplus
9169 static $ac_kw int static_foo () {return 0; }
9170 $ac_kw int foo () {return 0; }
9171 #endif
9172
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176   (eval $ac_compile) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } &&
9180          { ac_try='test -s conftest.$ac_objext'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; }; then
9186   ac_cv_c_inline=$ac_kw; break
9187 else
9188   echo "$as_me: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9190 fi
9191 rm -f conftest.$ac_objext conftest.$ac_ext
9192 done
9193
9194 fi
9195 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9196 echo "${ECHO_T}$ac_cv_c_inline" >&6
9197 case $ac_cv_c_inline in
9198   inline | yes) ;;
9199   no)
9200 cat >>confdefs.h <<\_ACEOF
9201 #define inline
9202 _ACEOF
9203  ;;
9204   *)  cat >>confdefs.h <<_ACEOF
9205 #define inline $ac_cv_c_inline
9206 _ACEOF
9207  ;;
9208 esac
9209
9210 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9211 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9212 if test "${ac_cv_c_stringize+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9218 #define x(y) #y
9219
9220 char *s = x(teststring);
9221 _ACEOF
9222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9223   egrep "#teststring" >/dev/null 2>&1; then
9224   ac_cv_c_stringize=no
9225 else
9226   ac_cv_c_stringize=yes
9227 fi
9228 rm -f conftest*
9229
9230 fi
9231 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9232 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9233 if test $ac_cv_c_stringize = yes; then
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_STRINGIZE 1
9237 _ACEOF
9238
9239 fi
9240
9241 echo "$as_me:$LINENO: checking for signed types" >&5
9242 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9243 if test "${pgac_cv_c_signed+set}" = set; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   cat >conftest.$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9248 #include "confdefs.h"
9249
9250 #ifdef F77_DUMMY_MAIN
9251 #  ifdef __cplusplus
9252      extern "C"
9253 #  endif
9254    int F77_DUMMY_MAIN() { return 1; }
9255 #endif
9256 int
9257 main ()
9258 {
9259 signed char c; signed short s; signed int i;
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266   (eval $ac_compile) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -s conftest.$ac_objext'
9271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272   (eval $ac_try) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); }; }; then
9276   pgac_cv_c_signed=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 pgac_cv_c_signed=no
9281 fi
9282 rm -f conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9285 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9286 if test x"$pgac_cv_c_signed" = xno ; then
9287
9288 cat >>confdefs.h <<\_ACEOF
9289 #define signed
9290 _ACEOF
9291
9292 fi
9293 echo "$as_me:$LINENO: checking for working volatile" >&5
9294 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9295 if test "${ac_cv_c_volatile+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9301
9302 #ifdef F77_DUMMY_MAIN
9303 #  ifdef __cplusplus
9304      extern "C"
9305 #  endif
9306    int F77_DUMMY_MAIN() { return 1; }
9307 #endif
9308 int
9309 main ()
9310 {
9311
9312 volatile int x;
9313 int * volatile y;
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320   (eval $ac_compile) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -s conftest.$ac_objext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   ac_cv_c_volatile=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 ac_cv_c_volatile=no
9335 fi
9336 rm -f conftest.$ac_objext conftest.$ac_ext
9337 fi
9338 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9339 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9340 if test $ac_cv_c_volatile = no; then
9341
9342 cat >>confdefs.h <<\_ACEOF
9343 #define volatile
9344 _ACEOF
9345
9346 fi
9347
9348 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9349 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9350 if test "${ac_cv_struct_tm+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9357 #include <time.h>
9358
9359 #ifdef F77_DUMMY_MAIN
9360 #  ifdef __cplusplus
9361      extern "C"
9362 #  endif
9363    int F77_DUMMY_MAIN() { return 1; }
9364 #endif
9365 int
9366 main ()
9367 {
9368 struct tm *tp; tp->tm_sec;
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -s conftest.$ac_objext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_struct_tm=time.h
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 ac_cv_struct_tm=sys/time.h
9390 fi
9391 rm -f conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9394 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9395 if test $ac_cv_struct_tm = sys/time.h; then
9396
9397 cat >>confdefs.h <<\_ACEOF
9398 #define TM_IN_SYS_TIME 1
9399 _ACEOF
9400
9401 fi
9402
9403 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9404 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9405 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 #include "confdefs.h"
9411 #include <sys/types.h>
9412 #include <$ac_cv_struct_tm>
9413
9414
9415 #ifdef F77_DUMMY_MAIN
9416 #  ifdef __cplusplus
9417      extern "C"
9418 #  endif
9419    int F77_DUMMY_MAIN() { return 1; }
9420 #endif
9421 int
9422 main ()
9423 {
9424 static struct tm ac_aggr;
9425 if (ac_aggr.tm_zone)
9426 return 0;
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 rm -f conftest.$ac_objext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9433   (eval $ac_compile) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } &&
9437          { ac_try='test -s conftest.$ac_objext'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; }; then
9443   ac_cv_member_struct_tm_tm_zone=yes
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9447 ac_cv_member_struct_tm_tm_zone=no
9448 fi
9449 rm -f conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9452 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9453 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_STRUCT_TM_TM_ZONE 1
9457 _ACEOF
9458
9459
9460 fi
9461
9462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9463
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_TM_ZONE 1
9466 _ACEOF
9467
9468 else
9469   echo "$as_me:$LINENO: checking for tzname" >&5
9470 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9471 if test "${ac_cv_var_tzname+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9477 #include <time.h>
9478 #ifndef tzname /* For SGI.  */
9479 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9480 #endif
9481
9482 #ifdef F77_DUMMY_MAIN
9483 #  ifdef __cplusplus
9484      extern "C"
9485 #  endif
9486    int F77_DUMMY_MAIN() { return 1; }
9487 #endif
9488 int
9489 main ()
9490 {
9491 atoi(*tzname);
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498   (eval $ac_link) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } &&
9502          { ac_try='test -s conftest$ac_exeext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   ac_cv_var_tzname=yes
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 ac_cv_var_tzname=no
9513 fi
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9517 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9518   if test $ac_cv_var_tzname = yes; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_TZNAME 1
9522 _ACEOF
9523
9524   fi
9525 fi
9526
9527 echo "$as_me:$LINENO: checking for union semun" >&5
9528 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9529 if test "${ac_cv_type_union_semun+set}" = set; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   cat >conftest.$ac_ext <<_ACEOF
9533 #line $LINENO "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #include <sys/ipc.h>
9537 #include <sys/sem.h>
9538
9539 #ifdef F77_DUMMY_MAIN
9540 #  ifdef __cplusplus
9541      extern "C"
9542 #  endif
9543    int F77_DUMMY_MAIN() { return 1; }
9544 #endif
9545 int
9546 main ()
9547 {
9548 if ((union semun *) 0)
9549   return 0;
9550 if (sizeof (union semun))
9551   return 0;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_type_union_semun=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_type_union_semun=no
9573 fi
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9577 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9578 if test $ac_cv_type_union_semun = yes; then
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_UNION_SEMUN 1
9582 _ACEOF
9583
9584
9585 fi
9586
9587 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9588 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9589 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 #include "confdefs.h"
9595 #include <sys/types.h>
9596 #ifdef HAVE_SYS_UN_H
9597 #include <sys/un.h>
9598 #endif
9599
9600
9601 #ifdef F77_DUMMY_MAIN
9602 #  ifdef __cplusplus
9603      extern "C"
9604 #  endif
9605    int F77_DUMMY_MAIN() { return 1; }
9606 #endif
9607 int
9608 main ()
9609 {
9610 if ((struct sockaddr_un *) 0)
9611   return 0;
9612 if (sizeof (struct sockaddr_un))
9613   return 0;
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620   (eval $ac_compile) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } &&
9624          { ac_try='test -s conftest.$ac_objext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   ac_cv_type_struct_sockaddr_un=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 ac_cv_type_struct_sockaddr_un=no
9635 fi
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9639 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9640 if test $ac_cv_type_struct_sockaddr_un = yes; then
9641
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_STRUCT_SOCKADDR_UN 1
9644 _ACEOF
9645
9646
9647 fi
9648
9649
9650 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9651 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9652 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9658 #include <sys/param.h>
9659 #include <sys/socket.h>
9660 #include <sys/ucred.h>
9661
9662 #ifdef F77_DUMMY_MAIN
9663 #  ifdef __cplusplus
9664      extern "C"
9665 #  endif
9666    int F77_DUMMY_MAIN() { return 1; }
9667 #endif
9668 int
9669 main ()
9670 {
9671 if ((struct cmsgcred *) 0)
9672   return 0;
9673 if (sizeof (struct cmsgcred))
9674   return 0;
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681   (eval $ac_compile) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_type_struct_cmsgcred=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_type_struct_cmsgcred=no
9696 fi
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9700 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9701 if test $ac_cv_type_struct_cmsgcred = yes; then
9702
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_STRUCT_CMSGCRED 1
9705 _ACEOF
9706
9707
9708 fi
9709 echo "$as_me:$LINENO: checking for struct fcred" >&5
9710 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9711 if test "${ac_cv_type_struct_fcred+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/param.h>
9718 #include <sys/socket.h>
9719 #include <sys/ucred.h>
9720
9721 #ifdef F77_DUMMY_MAIN
9722 #  ifdef __cplusplus
9723      extern "C"
9724 #  endif
9725    int F77_DUMMY_MAIN() { return 1; }
9726 #endif
9727 int
9728 main ()
9729 {
9730 if ((struct fcred *) 0)
9731   return 0;
9732 if (sizeof (struct fcred))
9733   return 0;
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740   (eval $ac_compile) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest.$ac_objext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_type_struct_fcred=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 ac_cv_type_struct_fcred=no
9755 fi
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9759 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9760 if test $ac_cv_type_struct_fcred = yes; then
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define HAVE_STRUCT_FCRED 1
9764 _ACEOF
9765
9766
9767 fi
9768 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9769 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9770 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9775 #include "confdefs.h"
9776 #include <sys/param.h>
9777 #include <sys/socket.h>
9778 #include <sys/ucred.h>
9779
9780 #ifdef F77_DUMMY_MAIN
9781 #  ifdef __cplusplus
9782      extern "C"
9783 #  endif
9784    int F77_DUMMY_MAIN() { return 1; }
9785 #endif
9786 int
9787 main ()
9788 {
9789 if ((struct sockcred *) 0)
9790   return 0;
9791 if (sizeof (struct sockcred))
9792   return 0;
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799   (eval $ac_compile) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } &&
9803          { ac_try='test -s conftest.$ac_objext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   ac_cv_type_struct_sockcred=yes
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 ac_cv_type_struct_sockcred=no
9814 fi
9815 rm -f conftest.$ac_objext conftest.$ac_ext
9816 fi
9817 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9818 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9819 if test $ac_cv_type_struct_sockcred = yes; then
9820
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_STRUCT_SOCKCRED 1
9823 _ACEOF
9824
9825
9826 fi
9827
9828
9829 if test "$with_zlib" = yes; then
9830   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9831   # did not).  While we could work around the lack of z_streamp, it
9832   # seems unwise to encourage people to use such old zlib versions...
9833   echo "$as_me:$LINENO: checking for z_streamp" >&5
9834 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9835 if test "${ac_cv_type_z_streamp+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9840 #include "confdefs.h"
9841 #include <zlib.h>
9842
9843 #ifdef F77_DUMMY_MAIN
9844 #  ifdef __cplusplus
9845      extern "C"
9846 #  endif
9847    int F77_DUMMY_MAIN() { return 1; }
9848 #endif
9849 int
9850 main ()
9851 {
9852 if ((z_streamp *) 0)
9853   return 0;
9854 if (sizeof (z_streamp))
9855   return 0;
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862   (eval $ac_compile) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } &&
9866          { ac_try='test -s conftest.$ac_objext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_type_z_streamp=yes
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 ac_cv_type_z_streamp=no
9877 fi
9878 rm -f conftest.$ac_objext conftest.$ac_ext
9879 fi
9880 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9881 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9882 if test $ac_cv_type_z_streamp = yes; then
9883   :
9884 else
9885   { { echo "$as_me:$LINENO: error: zlib version is too old
9886 Use --without-zlib to disable zlib support." >&5
9887 echo "$as_me: error: zlib version is too old
9888 Use --without-zlib to disable zlib support." >&2;}
9889    { (exit 1); exit 1; }; }
9890 fi
9891
9892 fi
9893
9894 if test "$with_krb5" = yes; then
9895 # Check for differences between MIT and Heimdal (KTH) releases
9896   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9897 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9898 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9904 #include <krb5.h>
9905
9906 #ifdef F77_DUMMY_MAIN
9907 #  ifdef __cplusplus
9908      extern "C"
9909 #  endif
9910    int F77_DUMMY_MAIN() { return 1; }
9911 #endif
9912 int
9913 main ()
9914 {
9915 static krb5_ticket ac_aggr;
9916 if (ac_aggr.enc_part2)
9917 return 0;
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924   (eval $ac_compile) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -s conftest.$ac_objext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_cv_member_krb5_ticket_enc_part2=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 ac_cv_member_krb5_ticket_enc_part2=no
9939 fi
9940 rm -f conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9943 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9944 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9945
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_KRB5_TICKET_ENC_PART2 1
9948 _ACEOF
9949
9950
9951 else
9952   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9953 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9954 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9960 #include <krb5.h>
9961
9962 #ifdef F77_DUMMY_MAIN
9963 #  ifdef __cplusplus
9964      extern "C"
9965 #  endif
9966    int F77_DUMMY_MAIN() { return 1; }
9967 #endif
9968 int
9969 main ()
9970 {
9971 static krb5_ticket ac_aggr;
9972 if (ac_aggr.client)
9973 return 0;
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980   (eval $ac_compile) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -s conftest.$ac_objext'
9985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   ac_cv_member_krb5_ticket_client=yes
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 ac_cv_member_krb5_ticket_client=no
9995 fi
9996 rm -f conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9999 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10000 if test $ac_cv_member_krb5_ticket_client = yes; then
10001
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_KRB5_TICKET_CLIENT 1
10004 _ACEOF
10005
10006
10007 else
10008   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10009 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10010    { (exit 1); exit 1; }; }
10011 fi
10012
10013 fi
10014
10015   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10016 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10017 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 #include "confdefs.h"
10023 #include <krb5.h>
10024
10025 #ifdef F77_DUMMY_MAIN
10026 #  ifdef __cplusplus
10027      extern "C"
10028 #  endif
10029    int F77_DUMMY_MAIN() { return 1; }
10030 #endif
10031 int
10032 main ()
10033 {
10034 static krb5_error ac_aggr;
10035 if (ac_aggr.text.data)
10036 return 0;
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043   (eval $ac_compile) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); } &&
10047          { ac_try='test -s conftest.$ac_objext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ac_cv_member_krb5_error_text_data=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 ac_cv_member_krb5_error_text_data=no
10058 fi
10059 rm -f conftest.$ac_objext conftest.$ac_ext
10060 fi
10061 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10062 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10063 if test $ac_cv_member_krb5_error_text_data = yes; then
10064
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10067 _ACEOF
10068
10069
10070 else
10071   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10072 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10073 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   cat >conftest.$ac_ext <<_ACEOF
10077 #line $LINENO "configure"
10078 #include "confdefs.h"
10079 #include <krb5.h>
10080
10081 #ifdef F77_DUMMY_MAIN
10082 #  ifdef __cplusplus
10083      extern "C"
10084 #  endif
10085    int F77_DUMMY_MAIN() { return 1; }
10086 #endif
10087 int
10088 main ()
10089 {
10090 static krb5_error ac_aggr;
10091 if (ac_aggr.e_data)
10092 return 0;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -s conftest.$ac_objext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_member_krb5_error_e_data=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_member_krb5_error_e_data=no
10114 fi
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10118 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10119 if test $ac_cv_member_krb5_error_e_data = yes; then
10120   :
10121 else
10122   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10123 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10124    { (exit 1); exit 1; }; }
10125 fi
10126
10127 fi
10128
10129 fi
10130
10131
10132 ##
10133 ## Functions, global variables
10134 ##
10135 echo "$as_me:$LINENO: checking for int timezone" >&5
10136 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10137 if test "${pgac_cv_var_int_timezone+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   cat >conftest.$ac_ext <<_ACEOF
10141 #line $LINENO "configure"
10142 #include "confdefs.h"
10143 #include <time.h>
10144 int res;
10145 #ifdef F77_DUMMY_MAIN
10146 #  ifdef __cplusplus
10147      extern "C"
10148 #  endif
10149    int F77_DUMMY_MAIN() { return 1; }
10150 #endif
10151 int
10152 main ()
10153 {
10154 res = timezone / 60;
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161   (eval $ac_link) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } &&
10165          { ac_try='test -s conftest$ac_exeext'
10166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167   (eval $ac_try) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); }; }; then
10171   pgac_cv_var_int_timezone=yes
10172 else
10173   echo "$as_me: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 pgac_cv_var_int_timezone=no
10176 fi
10177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10178 fi
10179 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10180 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10181 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_INT_TIMEZONE
10185 _ACEOF
10186
10187 fi
10188 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10189 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10190  if test "${ac_cv_func_accept_arg1+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193    if test "${ac_cv_func_accept_arg2+set}" = set; then
10194   echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196     if test "${ac_cv_func_accept_arg3+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10200      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10201       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10202        cat >conftest.$ac_ext <<_ACEOF
10203 #line $LINENO "configure"
10204 #include "confdefs.h"
10205 #ifdef HAVE_SYS_TYPES_H
10206 #include <sys/types.h>
10207 #endif
10208 #ifdef HAVE_SYS_SOCKET_H
10209 #include <sys/socket.h>
10210 #endif
10211 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10212 #ifdef F77_DUMMY_MAIN
10213 #  ifdef __cplusplus
10214      extern "C"
10215 #  endif
10216    int F77_DUMMY_MAIN() { return 1; }
10217 #endif
10218 int
10219 main ()
10220 {
10221
10222   ;
10223   return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228   (eval $ac_compile) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -s conftest.$ac_objext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_not_found=no; break 3
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10242 ac_not_found=yes
10243 fi
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10245       done
10246      done
10247     done
10248     if test "$ac_not_found" = yes; then
10249       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10250 echo "$as_me: error: could not determine argument types" >&2;}
10251    { (exit 1); exit 1; }; }
10252     fi
10253     if test "$ac_cv_func_accept_arg3" = "void"; then
10254       ac_cv_func_accept_arg3=int
10255     fi
10256
10257 fi
10258
10259 fi
10260
10261 fi
10262  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10263 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10264
10265 cat >>confdefs.h <<_ACEOF
10266 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10267 _ACEOF
10268
10269
10270 cat >>confdefs.h <<_ACEOF
10271 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10272 _ACEOF
10273
10274
10275 cat >>confdefs.h <<_ACEOF
10276 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10277 _ACEOF
10278
10279
10280 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10281 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10282 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10283   echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285   cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 #include "confdefs.h"
10288 #include <sys/time.h>
10289 #ifdef F77_DUMMY_MAIN
10290 #  ifdef __cplusplus
10291      extern "C"
10292 #  endif
10293    int F77_DUMMY_MAIN() { return 1; }
10294 #endif
10295 int
10296 main ()
10297 {
10298 struct timeval *tp;
10299 struct timezone *tzp;
10300 gettimeofday(tp,tzp);
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307   (eval $ac_compile) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   pgac_cv_func_gettimeofday_1arg=no
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 pgac_cv_func_gettimeofday_1arg=yes
10322 fi
10323 rm -f conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10326 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10327 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10328
10329 cat >>confdefs.h <<\_ACEOF
10330 #define GETTIMEOFDAY_1ARG
10331 _ACEOF
10332
10333 fi
10334
10335 # SunOS doesn't handle negative byte comparisons properly with +/- return
10336 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10337 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10338 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   if test "$cross_compiling" = yes; then
10342   pgac_cv_func_memcmp_clean=no
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 #include "confdefs.h"
10347
10348 main()
10349 {
10350   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10351   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10352 }
10353
10354 _ACEOF
10355 rm -f conftest$ac_exeext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357   (eval $ac_link) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362   (eval $ac_try) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; }; then
10366   pgac_cv_func_memcmp_clean=yes
10367 else
10368   echo "$as_me: program exited with status $ac_status" >&5
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ( exit $ac_status )
10372 pgac_cv_func_memcmp_clean=no
10373 fi
10374 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 fi
10377 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10378 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10379 if test $pgac_cv_func_memcmp_clean = no ; then
10380   MEMCMP=memcmp.o
10381 else
10382   MEMCMP=
10383 fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10399 do
10400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401 echo "$as_me:$LINENO: checking for $ac_func" >&5
10402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10403 if eval "test \"\${$as_ac_var+set}\" = set"; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10409 /* System header to define __stub macros and hopefully few prototypes,
10410     which can conflict with char $ac_func (); below.  */
10411 #include <assert.h>
10412 /* Override any gcc2 internal prototype to avoid an error.  */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 /* We use char because int might match the return type of a gcc2
10417    builtin and then its argument prototype would still apply.  */
10418 char $ac_func ();
10419 char (*f) ();
10420
10421 #ifdef F77_DUMMY_MAIN
10422 #  ifdef __cplusplus
10423      extern "C"
10424 #  endif
10425    int F77_DUMMY_MAIN() { return 1; }
10426 #endif
10427 int
10428 main ()
10429 {
10430 /* The GNU C library defines this for functions which it implements
10431     to always fail with ENOSYS.  Some functions are actually named
10432     something starting with __ and the normal name is an alias.  */
10433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10434 choke me
10435 #else
10436 f = $ac_func;
10437 #endif
10438
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445   (eval $ac_link) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -s conftest$ac_exeext'
10450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451   (eval $ac_try) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; }; then
10455   eval "$as_ac_var=yes"
10456 else
10457   echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 eval "$as_ac_var=no"
10460 fi
10461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466   cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 _ACEOF
10469
10470 fi
10471 done
10472
10473
10474 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10475 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10476 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10482 #include <unistd.h>
10483
10484 #ifdef F77_DUMMY_MAIN
10485 #  ifdef __cplusplus
10486      extern "C"
10487 #  endif
10488    int F77_DUMMY_MAIN() { return 1; }
10489 #endif
10490 int
10491 main ()
10492 {
10493 #ifndef fdatasync
10494   char *p = (char *) fdatasync;
10495 #endif
10496
10497   ;
10498   return 0;
10499 }
10500 _ACEOF
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503   (eval $ac_compile) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_have_decl_fdatasync=yes
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 ac_cv_have_decl_fdatasync=no
10518 fi
10519 rm -f conftest.$ac_objext conftest.$ac_ext
10520 fi
10521 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10522 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10523 if test $ac_cv_have_decl_fdatasync = yes; then
10524
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_DECL_FDATASYNC 1
10527 _ACEOF
10528
10529
10530 else
10531   cat >>confdefs.h <<_ACEOF
10532 #define HAVE_DECL_FDATASYNC 0
10533 _ACEOF
10534
10535
10536 fi
10537
10538
10539
10540 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10541 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10542 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10543   echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545   cat >conftest.$ac_ext <<_ACEOF
10546 #line $LINENO "configure"
10547 #include "confdefs.h"
10548 #include <machine/vmparam.h>
10549 #include <sys/exec.h>
10550
10551 #ifdef F77_DUMMY_MAIN
10552 #  ifdef __cplusplus
10553      extern "C"
10554 #  endif
10555    int F77_DUMMY_MAIN() { return 1; }
10556 #endif
10557 int
10558 main ()
10559 {
10560 PS_STRINGS->ps_nargvstr = 1;
10561 PS_STRINGS->ps_argvstr = "foo";
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568   (eval $ac_link) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } &&
10572          { ac_try='test -s conftest$ac_exeext'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; }; then
10578   pgac_cv_var_PS_STRINGS=yes
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 pgac_cv_var_PS_STRINGS=no
10583 fi
10584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10585 fi
10586 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10587 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10588 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_PS_STRINGS
10592 _ACEOF
10593
10594 fi
10595
10596
10597 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10598 # is missing.  Yes, there are machines that have only one.  We may
10599 # also decide to use snprintf.c if snprintf() is present but does not
10600 # have working "long long int" support -- see below.
10601
10602 SNPRINTF=''
10603
10604 for ac_func in snprintf
10605 do
10606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10607 echo "$as_me:$LINENO: checking for $ac_func" >&5
10608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10609 if eval "test \"\${$as_ac_var+set}\" = set"; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612   cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 #include "confdefs.h"
10615 /* System header to define __stub macros and hopefully few prototypes,
10616     which can conflict with char $ac_func (); below.  */
10617 #include <assert.h>
10618 /* Override any gcc2 internal prototype to avoid an error.  */
10619 #ifdef __cplusplus
10620 extern "C"
10621 #endif
10622 /* We use char because int might match the return type of a gcc2
10623    builtin and then its argument prototype would still apply.  */
10624 char $ac_func ();
10625 char (*f) ();
10626
10627 #ifdef F77_DUMMY_MAIN
10628 #  ifdef __cplusplus
10629      extern "C"
10630 #  endif
10631    int F77_DUMMY_MAIN() { return 1; }
10632 #endif
10633 int
10634 main ()
10635 {
10636 /* The GNU C library defines this for functions which it implements
10637     to always fail with ENOSYS.  Some functions are actually named
10638     something starting with __ and the normal name is an alias.  */
10639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10640 choke me
10641 #else
10642 f = $ac_func;
10643 #endif
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651   (eval $ac_link) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -s conftest$ac_exeext'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661   eval "$as_ac_var=yes"
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 eval "$as_ac_var=no"
10666 fi
10667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 fi
10669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10671 if test `eval echo '${'$as_ac_var'}'` = yes; then
10672   cat >>confdefs.h <<_ACEOF
10673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10674 _ACEOF
10675
10676 else
10677   SNPRINTF='snprintf.o'
10678 fi
10679 done
10680
10681
10682 for ac_func in vsnprintf
10683 do
10684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 echo "$as_me:$LINENO: checking for $ac_func" >&5
10686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10687 if eval "test \"\${$as_ac_var+set}\" = set"; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   cat >conftest.$ac_ext <<_ACEOF
10691 #line $LINENO "configure"
10692 #include "confdefs.h"
10693 /* System header to define __stub macros and hopefully few prototypes,
10694     which can conflict with char $ac_func (); below.  */
10695 #include <assert.h>
10696 /* Override any gcc2 internal prototype to avoid an error.  */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 /* We use char because int might match the return type of a gcc2
10701    builtin and then its argument prototype would still apply.  */
10702 char $ac_func ();
10703 char (*f) ();
10704
10705 #ifdef F77_DUMMY_MAIN
10706 #  ifdef __cplusplus
10707      extern "C"
10708 #  endif
10709    int F77_DUMMY_MAIN() { return 1; }
10710 #endif
10711 int
10712 main ()
10713 {
10714 /* The GNU C library defines this for functions which it implements
10715     to always fail with ENOSYS.  Some functions are actually named
10716     something starting with __ and the normal name is an alias.  */
10717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10718 choke me
10719 #else
10720 f = $ac_func;
10721 #endif
10722
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729   (eval $ac_link) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); } &&
10733          { ac_try='test -s conftest$ac_exeext'
10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735   (eval $ac_try) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; }; then
10739   eval "$as_ac_var=yes"
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 eval "$as_ac_var=no"
10744 fi
10745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10746 fi
10747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750   cat >>confdefs.h <<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752 _ACEOF
10753
10754 else
10755   SNPRINTF='snprintf.o'
10756 fi
10757 done
10758
10759
10760
10761
10762 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10763 # include/c.h will provide declarations.  Note this is a separate test
10764 # from whether the functions exist in the C library --- there are
10765 # systems that have the functions but don't bother to declare them :-(
10766
10767 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10768 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10769 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 $ac_includes_default
10776 #ifdef F77_DUMMY_MAIN
10777 #  ifdef __cplusplus
10778      extern "C"
10779 #  endif
10780    int F77_DUMMY_MAIN() { return 1; }
10781 #endif
10782 int
10783 main ()
10784 {
10785 #ifndef snprintf
10786   char *p = (char *) snprintf;
10787 #endif
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795   (eval $ac_compile) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_cv_have_decl_snprintf=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_cv_have_decl_snprintf=no
10810 fi
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10812 fi
10813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10814 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10815 if test $ac_cv_have_decl_snprintf = yes; then
10816
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_DECL_SNPRINTF 1
10819 _ACEOF
10820
10821
10822 else
10823   cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_SNPRINTF 0
10825 _ACEOF
10826
10827
10828 fi
10829 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10830 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10831 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 #include "confdefs.h"
10837 $ac_includes_default
10838 #ifdef F77_DUMMY_MAIN
10839 #  ifdef __cplusplus
10840      extern "C"
10841 #  endif
10842    int F77_DUMMY_MAIN() { return 1; }
10843 #endif
10844 int
10845 main ()
10846 {
10847 #ifndef vsnprintf
10848   char *p = (char *) vsnprintf;
10849 #endif
10850
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857   (eval $ac_compile) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } &&
10861          { ac_try='test -s conftest.$ac_objext'
10862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863   (eval $ac_try) 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; }; then
10867   ac_cv_have_decl_vsnprintf=yes
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 ac_cv_have_decl_vsnprintf=no
10872 fi
10873 rm -f conftest.$ac_objext conftest.$ac_ext
10874 fi
10875 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10876 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10877 if test $ac_cv_have_decl_vsnprintf = yes; then
10878
10879 cat >>confdefs.h <<_ACEOF
10880 #define HAVE_DECL_VSNPRINTF 1
10881 _ACEOF
10882
10883
10884 else
10885   cat >>confdefs.h <<_ACEOF
10886 #define HAVE_DECL_VSNPRINTF 0
10887 _ACEOF
10888
10889
10890 fi
10891
10892
10893
10894
10895 # do this one the hard way in case isinf() is a macro
10896 echo "$as_me:$LINENO: checking for isinf" >&5
10897 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10898 if test "${ac_cv_func_isinf+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   cat >conftest.$ac_ext <<_ACEOF
10902 #line $LINENO "configure"
10903 #include "confdefs.h"
10904 #include <math.h>
10905
10906 #ifdef F77_DUMMY_MAIN
10907 #  ifdef __cplusplus
10908      extern "C"
10909 #  endif
10910    int F77_DUMMY_MAIN() { return 1; }
10911 #endif
10912 int
10913 main ()
10914 {
10915 double x = 0.0; int res = isinf(x);
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922   (eval $ac_link) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); } &&
10926          { ac_try='test -s conftest$ac_exeext'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; }; then
10932   ac_cv_func_isinf=yes
10933 else
10934   echo "$as_me: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 ac_cv_func_isinf=no
10937 fi
10938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10939 fi
10940 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10941 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10942
10943 if test $ac_cv_func_isinf = yes ; then
10944
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_ISINF 1
10947 _ACEOF
10948
10949   ISINF=
10950 else
10951   ISINF='isinf.o'
10952   # Look for a way to implement a substitute for isinf()
10953
10954
10955
10956
10957 for ac_func in fpclass fp_class fp_class_d class
10958 do
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10962 if eval "test \"\${$as_ac_var+set}\" = set"; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 #line $LINENO "configure"
10967 #include "confdefs.h"
10968 /* System header to define __stub macros and hopefully few prototypes,
10969     which can conflict with char $ac_func (); below.  */
10970 #include <assert.h>
10971 /* Override any gcc2 internal prototype to avoid an error.  */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 /* We use char because int might match the return type of a gcc2
10976    builtin and then its argument prototype would still apply.  */
10977 char $ac_func ();
10978 char (*f) ();
10979
10980 #ifdef F77_DUMMY_MAIN
10981 #  ifdef __cplusplus
10982      extern "C"
10983 #  endif
10984    int F77_DUMMY_MAIN() { return 1; }
10985 #endif
10986 int
10987 main ()
10988 {
10989 /* The GNU C library defines this for functions which it implements
10990     to always fail with ENOSYS.  Some functions are actually named
10991     something starting with __ and the normal name is an alias.  */
10992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10993 choke me
10994 #else
10995 f = $ac_func;
10996 #endif
10997
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004   (eval $ac_link) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -s conftest$ac_exeext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   eval "$as_ac_var=yes"
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 eval "$as_ac_var=no"
11019 fi
11020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11021 fi
11022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11024 if test `eval echo '${'$as_ac_var'}'` = yes; then
11025   cat >>confdefs.h <<_ACEOF
11026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11027 _ACEOF
11028  break
11029 fi
11030 done
11031
11032 fi
11033
11034
11035
11036
11037 for ac_func in getrusage
11038 do
11039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11040 echo "$as_me:$LINENO: checking for $ac_func" >&5
11041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_var+set}\" = set"; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   cat >conftest.$ac_ext <<_ACEOF
11046 #line $LINENO "configure"
11047 #include "confdefs.h"
11048 /* System header to define __stub macros and hopefully few prototypes,
11049     which can conflict with char $ac_func (); below.  */
11050 #include <assert.h>
11051 /* Override any gcc2 internal prototype to avoid an error.  */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 /* We use char because int might match the return type of a gcc2
11056    builtin and then its argument prototype would still apply.  */
11057 char $ac_func ();
11058 char (*f) ();
11059
11060 #ifdef F77_DUMMY_MAIN
11061 #  ifdef __cplusplus
11062      extern "C"
11063 #  endif
11064    int F77_DUMMY_MAIN() { return 1; }
11065 #endif
11066 int
11067 main ()
11068 {
11069 /* The GNU C library defines this for functions which it implements
11070     to always fail with ENOSYS.  Some functions are actually named
11071     something starting with __ and the normal name is an alias.  */
11072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11073 choke me
11074 #else
11075 f = $ac_func;
11076 #endif
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084   (eval $ac_link) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -s conftest$ac_exeext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   eval "$as_ac_var=yes"
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 eval "$as_ac_var=no"
11099 fi
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11101 fi
11102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11104 if test `eval echo '${'$as_ac_var'}'` = yes; then
11105   cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11107 _ACEOF
11108
11109 else
11110   GETRUSAGE='getrusage.o'
11111 fi
11112 done
11113
11114
11115
11116 for ac_func in srandom
11117 do
11118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11119 echo "$as_me:$LINENO: checking for $ac_func" >&5
11120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11121 if eval "test \"\${$as_ac_var+set}\" = set"; then
11122   echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124   cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 #include "confdefs.h"
11127 /* System header to define __stub macros and hopefully few prototypes,
11128     which can conflict with char $ac_func (); below.  */
11129 #include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error.  */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 /* We use char because int might match the return type of a gcc2
11135    builtin and then its argument prototype would still apply.  */
11136 char $ac_func ();
11137 char (*f) ();
11138
11139 #ifdef F77_DUMMY_MAIN
11140 #  ifdef __cplusplus
11141      extern "C"
11142 #  endif
11143    int F77_DUMMY_MAIN() { return 1; }
11144 #endif
11145 int
11146 main ()
11147 {
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 choke me
11153 #else
11154 f = $ac_func;
11155 #endif
11156
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163   (eval $ac_link) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } &&
11167          { ac_try='test -s conftest$ac_exeext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   eval "$as_ac_var=yes"
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11177 eval "$as_ac_var=no"
11178 fi
11179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184   cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11186 _ACEOF
11187
11188 else
11189   SRANDOM='srandom.o'
11190 fi
11191 done
11192
11193
11194
11195 for ac_func in gethostname
11196 do
11197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11198 echo "$as_me:$LINENO: checking for $ac_func" >&5
11199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11200 if eval "test \"\${$as_ac_var+set}\" = set"; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 #include "confdefs.h"
11206 /* System header to define __stub macros and hopefully few prototypes,
11207     which can conflict with char $ac_func (); below.  */
11208 #include <assert.h>
11209 /* Override any gcc2 internal prototype to avoid an error.  */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 /* We use char because int might match the return type of a gcc2
11214    builtin and then its argument prototype would still apply.  */
11215 char $ac_func ();
11216 char (*f) ();
11217
11218 #ifdef F77_DUMMY_MAIN
11219 #  ifdef __cplusplus
11220      extern "C"
11221 #  endif
11222    int F77_DUMMY_MAIN() { return 1; }
11223 #endif
11224 int
11225 main ()
11226 {
11227 /* The GNU C library defines this for functions which it implements
11228     to always fail with ENOSYS.  Some functions are actually named
11229     something starting with __ and the normal name is an alias.  */
11230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11231 choke me
11232 #else
11233 f = $ac_func;
11234 #endif
11235
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242   (eval $ac_link) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); } &&
11246          { ac_try='test -s conftest$ac_exeext'
11247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248   (eval $ac_try) 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; }; then
11252   eval "$as_ac_var=yes"
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 eval "$as_ac_var=no"
11257 fi
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 fi
11260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11262 if test `eval echo '${'$as_ac_var'}'` = yes; then
11263   cat >>confdefs.h <<_ACEOF
11264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11265 _ACEOF
11266
11267 else
11268   GETHOSTNAME='gethostname.o'
11269 fi
11270 done
11271
11272
11273
11274 for ac_func in random
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_var+set}\" = set"; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   cat >conftest.$ac_ext <<_ACEOF
11283 #line $LINENO "configure"
11284 #include "confdefs.h"
11285 /* System header to define __stub macros and hopefully few prototypes,
11286     which can conflict with char $ac_func (); below.  */
11287 #include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error.  */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293    builtin and then its argument prototype would still apply.  */
11294 char $ac_func ();
11295 char (*f) ();
11296
11297 #ifdef F77_DUMMY_MAIN
11298 #  ifdef __cplusplus
11299      extern "C"
11300 #  endif
11301    int F77_DUMMY_MAIN() { return 1; }
11302 #endif
11303 int
11304 main ()
11305 {
11306 /* The GNU C library defines this for functions which it implements
11307     to always fail with ENOSYS.  Some functions are actually named
11308     something starting with __ and the normal name is an alias.  */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310 choke me
11311 #else
11312 f = $ac_func;
11313 #endif
11314
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -s conftest$ac_exeext'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   eval "$as_ac_var=yes"
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342   cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 else
11347   MISSING_RANDOM='random.o'
11348 fi
11349 done
11350
11351
11352
11353 for ac_func in inet_aton
11354 do
11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 #include "confdefs.h"
11364 /* System header to define __stub macros and hopefully few prototypes,
11365     which can conflict with char $ac_func (); below.  */
11366 #include <assert.h>
11367 /* Override any gcc2 internal prototype to avoid an error.  */
11368 #ifdef __cplusplus
11369 extern "C"
11370 #endif
11371 /* We use char because int might match the return type of a gcc2
11372    builtin and then its argument prototype would still apply.  */
11373 char $ac_func ();
11374 char (*f) ();
11375
11376 #ifdef F77_DUMMY_MAIN
11377 #  ifdef __cplusplus
11378      extern "C"
11379 #  endif
11380    int F77_DUMMY_MAIN() { return 1; }
11381 #endif
11382 int
11383 main ()
11384 {
11385 /* The GNU C library defines this for functions which it implements
11386     to always fail with ENOSYS.  Some functions are actually named
11387     something starting with __ and the normal name is an alias.  */
11388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11389 choke me
11390 #else
11391 f = $ac_func;
11392 #endif
11393
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext conftest$ac_exeext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11400   (eval $ac_link) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); } &&
11404          { ac_try='test -s conftest$ac_exeext'
11405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406   (eval $ac_try) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }; then
11410   eval "$as_ac_var=yes"
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 eval "$as_ac_var=no"
11415 fi
11416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11417 fi
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421   cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423 _ACEOF
11424
11425 else
11426   INET_ATON='inet_aton.o'
11427 fi
11428 done
11429
11430
11431
11432 for ac_func in strerror
11433 do
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444     which can conflict with char $ac_func (); below.  */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 /* We use char because int might match the return type of a gcc2
11451    builtin and then its argument prototype would still apply.  */
11452 char $ac_func ();
11453 char (*f) ();
11454
11455 #ifdef F77_DUMMY_MAIN
11456 #  ifdef __cplusplus
11457      extern "C"
11458 #  endif
11459    int F77_DUMMY_MAIN() { return 1; }
11460 #endif
11461 int
11462 main ()
11463 {
11464 /* The GNU C library defines this for functions which it implements
11465     to always fail with ENOSYS.  Some functions are actually named
11466     something starting with __ and the normal name is an alias.  */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11468 choke me
11469 #else
11470 f = $ac_func;
11471 #endif
11472
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479   (eval $ac_link) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } &&
11483          { ac_try='test -s conftest$ac_exeext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   eval "$as_ac_var=yes"
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11494 fi
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11496 fi
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500   cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11502 _ACEOF
11503
11504 else
11505   STRERROR='strerror.o'
11506 fi
11507 done
11508
11509
11510
11511 for ac_func in strdup
11512 do
11513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11514 echo "$as_me:$LINENO: checking for $ac_func" >&5
11515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11516 if eval "test \"\${$as_ac_var+set}\" = set"; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   cat >conftest.$ac_ext <<_ACEOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522 /* System header to define __stub macros and hopefully few prototypes,
11523     which can conflict with char $ac_func (); below.  */
11524 #include <assert.h>
11525 /* Override any gcc2 internal prototype to avoid an error.  */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 /* We use char because int might match the return type of a gcc2
11530    builtin and then its argument prototype would still apply.  */
11531 char $ac_func ();
11532 char (*f) ();
11533
11534 #ifdef F77_DUMMY_MAIN
11535 #  ifdef __cplusplus
11536      extern "C"
11537 #  endif
11538    int F77_DUMMY_MAIN() { return 1; }
11539 #endif
11540 int
11541 main ()
11542 {
11543 /* The GNU C library defines this for functions which it implements
11544     to always fail with ENOSYS.  Some functions are actually named
11545     something starting with __ and the normal name is an alias.  */
11546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11547 choke me
11548 #else
11549 f = $ac_func;
11550 #endif
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558   (eval $ac_link) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -s conftest$ac_exeext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   eval "$as_ac_var=yes"
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 eval "$as_ac_var=no"
11573 fi
11574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11578 if test `eval echo '${'$as_ac_var'}'` = yes; then
11579   cat >>confdefs.h <<_ACEOF
11580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11581 _ACEOF
11582
11583 else
11584   STRDUP='../../utils/strdup.o'
11585 fi
11586 done
11587
11588
11589
11590 for ac_func in strtol
11591 do
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11595 if eval "test \"\${$as_ac_var+set}\" = set"; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601 /* System header to define __stub macros and hopefully few prototypes,
11602     which can conflict with char $ac_func (); below.  */
11603 #include <assert.h>
11604 /* Override any gcc2 internal prototype to avoid an error.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 /* We use char because int might match the return type of a gcc2
11609    builtin and then its argument prototype would still apply.  */
11610 char $ac_func ();
11611 char (*f) ();
11612
11613 #ifdef F77_DUMMY_MAIN
11614 #  ifdef __cplusplus
11615      extern "C"
11616 #  endif
11617    int F77_DUMMY_MAIN() { return 1; }
11618 #endif
11619 int
11620 main ()
11621 {
11622 /* The GNU C library defines this for functions which it implements
11623     to always fail with ENOSYS.  Some functions are actually named
11624     something starting with __ and the normal name is an alias.  */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11626 choke me
11627 #else
11628 f = $ac_func;
11629 #endif
11630
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637   (eval $ac_link) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); } &&
11641          { ac_try='test -s conftest$ac_exeext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   eval "$as_ac_var=yes"
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 eval "$as_ac_var=no"
11652 fi
11653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11654 fi
11655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11657 if test `eval echo '${'$as_ac_var'}'` = yes; then
11658   cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11660 _ACEOF
11661
11662 else
11663   STRTOL='strtol.o'
11664 fi
11665 done
11666
11667
11668
11669 for ac_func in strtoul
11670 do
11671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 echo "$as_me:$LINENO: checking for $ac_func" >&5
11673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11674 if eval "test \"\${$as_ac_var+set}\" = set"; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11679 #include "confdefs.h"
11680 /* System header to define __stub macros and hopefully few prototypes,
11681     which can conflict with char $ac_func (); below.  */
11682 #include <assert.h>
11683 /* Override any gcc2 internal prototype to avoid an error.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688    builtin and then its argument prototype would still apply.  */
11689 char $ac_func ();
11690 char (*f) ();
11691
11692 #ifdef F77_DUMMY_MAIN
11693 #  ifdef __cplusplus
11694      extern "C"
11695 #  endif
11696    int F77_DUMMY_MAIN() { return 1; }
11697 #endif
11698 int
11699 main ()
11700 {
11701 /* The GNU C library defines this for functions which it implements
11702     to always fail with ENOSYS.  Some functions are actually named
11703     something starting with __ and the normal name is an alias.  */
11704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11705 choke me
11706 #else
11707 f = $ac_func;
11708 #endif
11709
11710   ;
11711   return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716   (eval $ac_link) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } &&
11720          { ac_try='test -s conftest$ac_exeext'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; }; then
11726   eval "$as_ac_var=yes"
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11731 fi
11732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733 fi
11734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737   cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 _ACEOF
11740
11741 else
11742   STRTOUL='strtoul.o'
11743 fi
11744 done
11745
11746
11747
11748 for ac_func in strcasecmp
11749 do
11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11753 if eval "test \"\${$as_ac_var+set}\" = set"; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 #include "confdefs.h"
11759 /* System header to define __stub macros and hopefully few prototypes,
11760     which can conflict with char $ac_func (); below.  */
11761 #include <assert.h>
11762 /* Override any gcc2 internal prototype to avoid an error.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 /* We use char because int might match the return type of a gcc2
11767    builtin and then its argument prototype would still apply.  */
11768 char $ac_func ();
11769 char (*f) ();
11770
11771 #ifdef F77_DUMMY_MAIN
11772 #  ifdef __cplusplus
11773      extern "C"
11774 #  endif
11775    int F77_DUMMY_MAIN() { return 1; }
11776 #endif
11777 int
11778 main ()
11779 {
11780 /* The GNU C library defines this for functions which it implements
11781     to always fail with ENOSYS.  Some functions are actually named
11782     something starting with __ and the normal name is an alias.  */
11783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11784 choke me
11785 #else
11786 f = $ac_func;
11787 #endif
11788
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795   (eval $ac_link) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -s conftest$ac_exeext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   eval "$as_ac_var=yes"
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 eval "$as_ac_var=no"
11810 fi
11811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11812 fi
11813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11815 if test `eval echo '${'$as_ac_var'}'` = yes; then
11816   cat >>confdefs.h <<_ACEOF
11817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 _ACEOF
11819
11820 else
11821   STRCASECMP='strcasecmp.o'
11822 fi
11823 done
11824
11825
11826
11827 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11828 # this hackery with HPUXMATHLIB allows us to cope.
11829 HPUXMATHLIB=""
11830 case $host_cpu in
11831   hppa1.1)
11832         if [ -r /lib/pa1.1/libm.a ] ; then
11833             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11834         fi ;;
11835 esac
11836
11837
11838
11839 for ac_func in rint
11840 do
11841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11842 echo "$as_me:$LINENO: checking for $ac_func" >&5
11843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11844 if eval "test \"\${$as_ac_var+set}\" = set"; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 #include "confdefs.h"
11850 /* System header to define __stub macros and hopefully few prototypes,
11851     which can conflict with char $ac_func (); below.  */
11852 #include <assert.h>
11853 /* Override any gcc2 internal prototype to avoid an error.  */
11854 #ifdef __cplusplus
11855 extern "C"
11856 #endif
11857 /* We use char because int might match the return type of a gcc2
11858    builtin and then its argument prototype would still apply.  */
11859 char $ac_func ();
11860 char (*f) ();
11861
11862 #ifdef F77_DUMMY_MAIN
11863 #  ifdef __cplusplus
11864      extern "C"
11865 #  endif
11866    int F77_DUMMY_MAIN() { return 1; }
11867 #endif
11868 int
11869 main ()
11870 {
11871 /* The GNU C library defines this for functions which it implements
11872     to always fail with ENOSYS.  Some functions are actually named
11873     something starting with __ and the normal name is an alias.  */
11874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11875 choke me
11876 #else
11877 f = $ac_func;
11878 #endif
11879
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886   (eval $ac_link) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   eval "$as_ac_var=yes"
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 eval "$as_ac_var=no"
11901 fi
11902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907   cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 else
11912   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11913 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11914 if test "${ac_cv_lib_m_rint+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-lm $HPUXMATHLIB $LIBS"
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 #include "confdefs.h"
11922
11923 /* Override any gcc2 internal prototype to avoid an error.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 /* We use char because int might match the return type of a gcc2
11928    builtin and then its argument prototype would still apply.  */
11929 char rint ();
11930 #ifdef F77_DUMMY_MAIN
11931 #  ifdef __cplusplus
11932      extern "C"
11933 #  endif
11934    int F77_DUMMY_MAIN() { return 1; }
11935 #endif
11936 int
11937 main ()
11938 {
11939 rint ();
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946   (eval $ac_link) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -s conftest$ac_exeext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_cv_lib_m_rint=yes
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 ac_cv_lib_m_rint=no
11961 fi
11962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11966 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11967 if test $ac_cv_lib_m_rint = yes; then
11968   cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_RINT 1
11970 _ACEOF
11971
11972 fi
11973
11974 fi
11975 done
11976
11977
11978
11979 if test "$with_readline" = yes; then
11980   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11981 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11985 #include <stdio.h>
11986 #ifdef HAVE_READLINE_READLINE_H
11987 # include <readline/readline.h>
11988 #elif defined(HAVE_READLINE_H)
11989 # include <readline.h>
11990 #endif
11991
11992 #ifdef F77_DUMMY_MAIN
11993 #  ifdef __cplusplus
11994      extern "C"
11995 #  endif
11996    int F77_DUMMY_MAIN() { return 1; }
11997 #endif
11998 int
11999 main ()
12000 {
12001 rl_completion_append_character = 'x';
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   echo "$as_me:$LINENO: result: yes" >&5
12019 echo "${ECHO_T}yes" >&6
12020
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12023 _ACEOF
12024
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12028 echo "$as_me:$LINENO: result: no" >&5
12029 echo "${ECHO_T}no" >&6
12030 fi
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12032
12033
12034 for ac_func in rl_completion_matches rl_filename_completion_function
12035 do
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12039 if eval "test \"\${$as_ac_var+set}\" = set"; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12045 /* System header to define __stub macros and hopefully few prototypes,
12046     which can conflict with char $ac_func (); below.  */
12047 #include <assert.h>
12048 /* Override any gcc2 internal prototype to avoid an error.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 /* We use char because int might match the return type of a gcc2
12053    builtin and then its argument prototype would still apply.  */
12054 char $ac_func ();
12055 char (*f) ();
12056
12057 #ifdef F77_DUMMY_MAIN
12058 #  ifdef __cplusplus
12059      extern "C"
12060 #  endif
12061    int F77_DUMMY_MAIN() { return 1; }
12062 #endif
12063 int
12064 main ()
12065 {
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070 choke me
12071 #else
12072 f = $ac_func;
12073 #endif
12074
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081   (eval $ac_link) 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } &&
12085          { ac_try='test -s conftest$ac_exeext'
12086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087   (eval $ac_try) 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; }; then
12091   eval "$as_ac_var=yes"
12092 else
12093   echo "$as_me: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 eval "$as_ac_var=no"
12096 fi
12097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12098 fi
12099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 fi
12107 done
12108
12109 fi
12110
12111
12112 echo "$as_me:$LINENO: checking for finite" >&5
12113 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12116 #include "confdefs.h"
12117 #include <math.h>
12118 #ifdef F77_DUMMY_MAIN
12119 #  ifdef __cplusplus
12120      extern "C"
12121 #  endif
12122    int F77_DUMMY_MAIN() { return 1; }
12123 #endif
12124 int
12125 main ()
12126 {
12127 int dummy=finite(1.0);
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134   (eval $ac_link) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -s conftest$ac_exeext'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_FINITE 1
12147 _ACEOF
12148
12149 echo "$as_me:$LINENO: result: yes" >&5
12150 echo "${ECHO_T}yes" >&6
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12156 fi
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158
12159 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12160 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164 #include <setjmp.h>
12165 #ifdef F77_DUMMY_MAIN
12166 #  ifdef __cplusplus
12167      extern "C"
12168 #  endif
12169    int F77_DUMMY_MAIN() { return 1; }
12170 #endif
12171 int
12172 main ()
12173 {
12174 sigjmp_buf x; sigsetjmp(x, 1);
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187   (eval $ac_try) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); }; }; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_SIGSETJMP 1
12194 _ACEOF
12195
12196 echo "$as_me:$LINENO: result: yes" >&5
12197 echo "${ECHO_T}yes" >&6
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6
12203 fi
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205
12206
12207 for ac_func in syslog
12208 do
12209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219     which can conflict with char $ac_func (); below.  */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 /* We use char because int might match the return type of a gcc2
12226    builtin and then its argument prototype would still apply.  */
12227 char $ac_func ();
12228 char (*f) ();
12229
12230 #ifdef F77_DUMMY_MAIN
12231 #  ifdef __cplusplus
12232      extern "C"
12233 #  endif
12234    int F77_DUMMY_MAIN() { return 1; }
12235 #endif
12236 int
12237 main ()
12238 {
12239 /* The GNU C library defines this for functions which it implements
12240     to always fail with ENOSYS.  Some functions are actually named
12241     something starting with __ and the normal name is an alias.  */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 choke me
12244 #else
12245 f = $ac_func;
12246 #endif
12247
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254   (eval $ac_link) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 eval "$as_ac_var=no"
12269 fi
12270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12274 if test `eval echo '${'$as_ac_var'}'` = yes; then
12275   cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 fi
12280 done
12281
12282
12283 echo "$as_me:$LINENO: checking for optreset" >&5
12284 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12285 if test "${pgac_cv_var_int_optreset+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   cat >conftest.$ac_ext <<_ACEOF
12289 #line $LINENO "configure"
12290 #include "confdefs.h"
12291 #include <unistd.h>
12292 #ifdef F77_DUMMY_MAIN
12293 #  ifdef __cplusplus
12294      extern "C"
12295 #  endif
12296    int F77_DUMMY_MAIN() { return 1; }
12297 #endif
12298 int
12299 main ()
12300 {
12301 extern int optreset; optreset = 1;
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308   (eval $ac_link) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -s conftest$ac_exeext'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318   pgac_cv_var_int_optreset=yes
12319 else
12320   echo "$as_me: failed program was:" >&5
12321 cat conftest.$ac_ext >&5
12322 pgac_cv_var_int_optreset=no
12323 fi
12324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12325 fi
12326 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12327 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12328 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12329
12330 cat >>confdefs.h <<\_ACEOF
12331 #define HAVE_INT_OPTRESET 1
12332 _ACEOF
12333
12334 fi
12335
12336
12337 # This test makes sure that run tests work at all.  Sometimes a shared
12338 # library is found by the linker, but the runtime linker can't find it.
12339 # This check should come after all modifications of compiler or linker
12340 # variables, and before any other run tests.
12341 echo "$as_me:$LINENO: checking test program" >&5
12342 echo $ECHO_N "checking test program... $ECHO_C" >&6
12343 if test "$cross_compiling" = yes; then
12344   echo "$as_me:$LINENO: result: cross-compiling" >&5
12345 echo "${ECHO_T}cross-compiling" >&6
12346 else
12347   cat >conftest.$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12349 #include "confdefs.h"
12350 int main() { return 0; }
12351 _ACEOF
12352 rm -f conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354   (eval $ac_link) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   echo "$as_me:$LINENO: result: ok" >&5
12364 echo "${ECHO_T}ok" >&6
12365 else
12366   echo "$as_me: program exited with status $ac_status" >&5
12367 echo "$as_me: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 ( exit $ac_status )
12370 echo "$as_me:$LINENO: result: failed" >&5
12371 echo "${ECHO_T}failed" >&6
12372 { { echo "$as_me:$LINENO: error:
12373 *** Could not execute a simple test program.  This may be a problem
12374 *** related to locating shared libraries.  Check the file 'config.log'
12375 *** for the exact reason." >&5
12376 echo "$as_me: error:
12377 *** Could not execute a simple test program.  This may be a problem
12378 *** related to locating shared libraries.  Check the file 'config.log'
12379 *** for the exact reason." >&2;}
12380    { (exit 1); exit 1; }; }
12381 fi
12382 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12383 fi
12384
12385
12386
12387 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12388 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12389 if test "${pgac_cv_type_long_int_64+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   if test "$cross_compiling" = yes; then
12393   pgac_cv_type_long_int_64=no
12394 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12395 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12396 else
12397   cat >conftest.$ac_ext <<_ACEOF
12398 #line $LINENO "configure"
12399 #include "confdefs.h"
12400 typedef long int int64;
12401
12402 /*
12403  * These are globals to discourage the compiler from folding all the
12404  * arithmetic tests down to compile-time constants.
12405  */
12406 int64 a = 20000001;
12407 int64 b = 40000005;
12408
12409 int does_int64_work()
12410 {
12411   int64 c,d;
12412
12413   if (sizeof(int64) != 8)
12414     return 0;                   /* definitely not the right size */
12415
12416   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12417   c = a * b;
12418   d = (c + b) / b;
12419   if (d != a+1)
12420     return 0;
12421   return 1;
12422 }
12423 main() {
12424   exit(! does_int64_work());
12425 }
12426 _ACEOF
12427 rm -f conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429   (eval $ac_link) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   pgac_cv_type_long_int_64=yes
12439 else
12440   echo "$as_me: program exited with status $ac_status" >&5
12441 echo "$as_me: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 pgac_cv_type_long_int_64=no
12445 fi
12446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 fi
12449 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12450 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12451
12452 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12453 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_LONG_INT_64
12457 _ACEOF
12458
12459 fi
12460
12461
12462 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12463   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12464 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12465 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   if test "$cross_compiling" = yes; then
12469   pgac_cv_type_long_long_int_64=no
12470 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12471 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12472 else
12473   cat >conftest.$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12475 #include "confdefs.h"
12476 typedef long long int int64;
12477
12478 /*
12479  * These are globals to discourage the compiler from folding all the
12480  * arithmetic tests down to compile-time constants.
12481  */
12482 int64 a = 20000001;
12483 int64 b = 40000005;
12484
12485 int does_int64_work()
12486 {
12487   int64 c,d;
12488
12489   if (sizeof(int64) != 8)
12490     return 0;                   /* definitely not the right size */
12491
12492   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12493   c = a * b;
12494   d = (c + b) / b;
12495   if (d != a+1)
12496     return 0;
12497   return 1;
12498 }
12499 main() {
12500   exit(! does_int64_work());
12501 }
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505   (eval $ac_link) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   pgac_cv_type_long_long_int_64=yes
12515 else
12516   echo "$as_me: program exited with status $ac_status" >&5
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ( exit $ac_status )
12520 pgac_cv_type_long_long_int_64=no
12521 fi
12522 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12523 fi
12524 fi
12525 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12526 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12527
12528 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12529 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12530
12531 cat >>confdefs.h <<\_ACEOF
12532 #define HAVE_LONG_LONG_INT_64
12533 _ACEOF
12534
12535 fi
12536
12537 fi
12538
12539
12540
12541 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12542   cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 #include "confdefs.h"
12545
12546 #define INT64CONST(x)  x##LL
12547 long long int foo = INT64CONST(0x1234567890123456);
12548
12549 #ifdef F77_DUMMY_MAIN
12550 #  ifdef __cplusplus
12551      extern "C"
12552 #  endif
12553    int F77_DUMMY_MAIN() { return 1; }
12554 #endif
12555 int
12556 main ()
12557 {
12558
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565   (eval $ac_compile) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -s conftest.$ac_objext'
12570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571   (eval $ac_try) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_LL_CONSTANTS 1
12578 _ACEOF
12579
12580 else
12581   echo "$as_me: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12583 fi
12584 rm -f conftest.$ac_objext conftest.$ac_ext
12585 fi
12586
12587
12588
12589 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12590   if [ x$SNPRINTF = x ] ; then
12591     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12592 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12593     if test "$cross_compiling" = yes; then
12594    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12595 echo "${ECHO_T}assuming not on target machine" >&6
12596         # Force usage of our own snprintf, since we cannot test foreign snprintf
12597         SNPRINTF='snprintf.o'
12598         INT64_FORMAT='"%lld"'
12599
12600 else
12601   cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12604 #include <stdio.h>
12605 typedef long long int int64;
12606 #define INT64_FORMAT "%lld"
12607
12608 int64 a = 20000001;
12609 int64 b = 40000005;
12610
12611 int does_int64_snprintf_work()
12612 {
12613   int64 c;
12614   char buf[100];
12615
12616   if (sizeof(int64) != 8)
12617     return 0;                   /* doesn't look like the right size */
12618
12619   c = a * b;
12620   snprintf(buf, 100, INT64_FORMAT, c);
12621   if (strcmp(buf, "800000140000005") != 0)
12622     return 0;                   /* either multiply or snprintf is busted */
12623   return 1;
12624 }
12625 main() {
12626   exit(! does_int64_snprintf_work());
12627 }
12628 _ACEOF
12629 rm -f conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631   (eval $ac_link) 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; }; then
12640    echo "$as_me:$LINENO: result: yes" >&5
12641 echo "${ECHO_T}yes" >&6
12642           INT64_FORMAT='"%lld"'
12643
12644 else
12645   echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 ( exit $ac_status )
12649  echo "$as_me:$LINENO: result: no" >&5
12650 echo "${ECHO_T}no" >&6
12651     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12652 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12653     if test "$cross_compiling" = yes; then
12654    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12655 echo "${ECHO_T}assuming not on target machine" >&6
12656         # Force usage of our own snprintf, since we cannot test foreign snprintf
12657         SNPRINTF='snprintf.o'
12658         INT64_FORMAT='"%lld"'
12659
12660 else
12661   cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12664 #include <stdio.h>
12665 typedef long long int int64;
12666 #define INT64_FORMAT "%qd"
12667
12668 int64 a = 20000001;
12669 int64 b = 40000005;
12670
12671 int does_int64_snprintf_work()
12672 {
12673   int64 c;
12674   char buf[100];
12675
12676   if (sizeof(int64) != 8)
12677     return 0;     /* doesn't look like the right size */
12678
12679   c = a * b;
12680   snprintf(buf, 100, INT64_FORMAT, c);
12681   if (strcmp(buf, "800000140000005") != 0)
12682     return 0;     /* either multiply or snprintf is busted */
12683   return 1;
12684 }
12685 main() {
12686   exit(! does_int64_snprintf_work());
12687 }
12688 _ACEOF
12689 rm -f conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; }; then
12700    echo "$as_me:$LINENO: result: yes" >&5
12701 echo "${ECHO_T}yes" >&6
12702     INT64_FORMAT='"%qd"'
12703
12704 else
12705   echo "$as_me: program exited with status $ac_status" >&5
12706 echo "$as_me: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 ( exit $ac_status )
12709  echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6
12711         # Force usage of our own snprintf, since system snprintf is broken
12712         SNPRINTF='snprintf.o'
12713         INT64_FORMAT='"%lld"'
12714
12715 fi
12716 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12717 fi
12718 fi
12719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12720 fi
12721   else
12722     # here if we previously decided we needed to use our own snprintf
12723     INT64_FORMAT='"%lld"'
12724   fi
12725 else
12726   # Here if we are not using 'long long int' at all
12727   INT64_FORMAT='"%ld"'
12728 fi
12729
12730
12731 cat >>confdefs.h <<_ACEOF
12732 #define INT64_FORMAT $INT64_FORMAT
12733 _ACEOF
12734
12735
12736
12737
12738
12739 for ac_func in strtoll strtoq
12740 do
12741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12742 echo "$as_me:$LINENO: checking for $ac_func" >&5
12743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12744 if eval "test \"\${$as_ac_var+set}\" = set"; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751     which can conflict with char $ac_func (); below.  */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error.  */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 /* We use char because int might match the return type of a gcc2
12758    builtin and then its argument prototype would still apply.  */
12759 char $ac_func ();
12760 char (*f) ();
12761
12762 #ifdef F77_DUMMY_MAIN
12763 #  ifdef __cplusplus
12764      extern "C"
12765 #  endif
12766    int F77_DUMMY_MAIN() { return 1; }
12767 #endif
12768 int
12769 main ()
12770 {
12771 /* The GNU C library defines this for functions which it implements
12772     to always fail with ENOSYS.  Some functions are actually named
12773     something starting with __ and the normal name is an alias.  */
12774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12775 choke me
12776 #else
12777 f = $ac_func;
12778 #endif
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786   (eval $ac_link) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -s conftest$ac_exeext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   eval "$as_ac_var=yes"
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 eval "$as_ac_var=no"
12801 fi
12802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12803 fi
12804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12806 if test `eval echo '${'$as_ac_var'}'` = yes; then
12807   cat >>confdefs.h <<_ACEOF
12808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12809 _ACEOF
12810  break
12811 fi
12812 done
12813
12814
12815
12816 for ac_func in strtoull strtouq
12817 do
12818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12819 echo "$as_me:$LINENO: checking for $ac_func" >&5
12820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12821 if eval "test \"\${$as_ac_var+set}\" = set"; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   cat >conftest.$ac_ext <<_ACEOF
12825 #line $LINENO "configure"
12826 #include "confdefs.h"
12827 /* System header to define __stub macros and hopefully few prototypes,
12828     which can conflict with char $ac_func (); below.  */
12829 #include <assert.h>
12830 /* Override any gcc2 internal prototype to avoid an error.  */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 /* We use char because int might match the return type of a gcc2
12835    builtin and then its argument prototype would still apply.  */
12836 char $ac_func ();
12837 char (*f) ();
12838
12839 #ifdef F77_DUMMY_MAIN
12840 #  ifdef __cplusplus
12841      extern "C"
12842 #  endif
12843    int F77_DUMMY_MAIN() { return 1; }
12844 #endif
12845 int
12846 main ()
12847 {
12848 /* The GNU C library defines this for functions which it implements
12849     to always fail with ENOSYS.  Some functions are actually named
12850     something starting with __ and the normal name is an alias.  */
12851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12852 choke me
12853 #else
12854 f = $ac_func;
12855 #endif
12856
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863   (eval $ac_link) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -s conftest$ac_exeext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   eval "$as_ac_var=yes"
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 eval "$as_ac_var=no"
12878 fi
12879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12880 fi
12881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12883 if test `eval echo '${'$as_ac_var'}'` = yes; then
12884   cat >>confdefs.h <<_ACEOF
12885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12886 _ACEOF
12887  break
12888 fi
12889 done
12890
12891
12892 # Check for one of atexit() or on_exit()
12893
12894 for ac_func in atexit
12895 do
12896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12897 echo "$as_me:$LINENO: checking for $ac_func" >&5
12898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12899 if eval "test \"\${$as_ac_var+set}\" = set"; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12904 #include "confdefs.h"
12905 /* System header to define __stub macros and hopefully few prototypes,
12906     which can conflict with char $ac_func (); below.  */
12907 #include <assert.h>
12908 /* Override any gcc2 internal prototype to avoid an error.  */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 /* We use char because int might match the return type of a gcc2
12913    builtin and then its argument prototype would still apply.  */
12914 char $ac_func ();
12915 char (*f) ();
12916
12917 #ifdef F77_DUMMY_MAIN
12918 #  ifdef __cplusplus
12919      extern "C"
12920 #  endif
12921    int F77_DUMMY_MAIN() { return 1; }
12922 #endif
12923 int
12924 main ()
12925 {
12926 /* The GNU C library defines this for functions which it implements
12927     to always fail with ENOSYS.  Some functions are actually named
12928     something starting with __ and the normal name is an alias.  */
12929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12930 choke me
12931 #else
12932 f = $ac_func;
12933 #endif
12934
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941   (eval $ac_link) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } &&
12945          { ac_try='test -s conftest$ac_exeext'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951   eval "$as_ac_var=yes"
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 eval "$as_ac_var=no"
12956 fi
12957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12958 fi
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12961 if test `eval echo '${'$as_ac_var'}'` = yes; then
12962   cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 else
12967
12968 for ac_func in on_exit
12969 do
12970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971 echo "$as_me:$LINENO: checking for $ac_func" >&5
12972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12973 if eval "test \"\${$as_ac_var+set}\" = set"; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976   cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12978 #include "confdefs.h"
12979 /* System header to define __stub macros and hopefully few prototypes,
12980     which can conflict with char $ac_func (); below.  */
12981 #include <assert.h>
12982 /* Override any gcc2 internal prototype to avoid an error.  */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 /* We use char because int might match the return type of a gcc2
12987    builtin and then its argument prototype would still apply.  */
12988 char $ac_func ();
12989 char (*f) ();
12990
12991 #ifdef F77_DUMMY_MAIN
12992 #  ifdef __cplusplus
12993      extern "C"
12994 #  endif
12995    int F77_DUMMY_MAIN() { return 1; }
12996 #endif
12997 int
12998 main ()
12999 {
13000 /* The GNU C library defines this for functions which it implements
13001     to always fail with ENOSYS.  Some functions are actually named
13002     something starting with __ and the normal name is an alias.  */
13003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13004 choke me
13005 #else
13006 f = $ac_func;
13007 #endif
13008
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015   (eval $ac_link) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); } &&
13019          { ac_try='test -s conftest$ac_exeext'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   eval "$as_ac_var=yes"
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 eval "$as_ac_var=no"
13030 fi
13031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13032 fi
13033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13035 if test `eval echo '${'$as_ac_var'}'` = yes; then
13036   cat >>confdefs.h <<_ACEOF
13037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13038 _ACEOF
13039
13040 else
13041   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13042 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13043    { (exit 1); exit 1; }; }
13044 fi
13045 done
13046
13047 fi
13048 done
13049
13050
13051
13052 echo "$as_me:$LINENO: checking for unsigned long" >&5
13053 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13054 if test "${ac_cv_type_unsigned_long+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 #include "confdefs.h"
13060 $ac_includes_default
13061 #ifdef F77_DUMMY_MAIN
13062 #  ifdef __cplusplus
13063      extern "C"
13064 #  endif
13065    int F77_DUMMY_MAIN() { return 1; }
13066 #endif
13067 int
13068 main ()
13069 {
13070 if ((unsigned long *) 0)
13071   return 0;
13072 if (sizeof (unsigned long))
13073   return 0;
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 rm -f conftest.$ac_objext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080   (eval $ac_compile) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } &&
13084          { ac_try='test -s conftest.$ac_objext'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   ac_cv_type_unsigned_long=yes
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 ac_cv_type_unsigned_long=no
13095 fi
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13097 fi
13098 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13099 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13100
13101 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13102 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13103 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13104   echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106   if test "$ac_cv_type_unsigned_long" = yes; then
13107   # The cast to unsigned long works around a bug in the HP C Compiler
13108   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13109   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13110   # This bug is HP SR number 8606223364.
13111   if test "$cross_compiling" = yes; then
13112   # Depending upon the size, compute the lo and hi bounds.
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13115 #include "confdefs.h"
13116 $ac_includes_default
13117 #ifdef F77_DUMMY_MAIN
13118 #  ifdef __cplusplus
13119      extern "C"
13120 #  endif
13121    int F77_DUMMY_MAIN() { return 1; }
13122 #endif
13123 int
13124 main ()
13125 {
13126 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13127 test_array [0] = 0
13128
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135   (eval $ac_compile) 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -s conftest.$ac_objext'
13140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; }; then
13145   ac_lo=0 ac_mid=0
13146   while :; do
13147     cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13149 #include "confdefs.h"
13150 $ac_includes_default
13151 #ifdef F77_DUMMY_MAIN
13152 #  ifdef __cplusplus
13153      extern "C"
13154 #  endif
13155    int F77_DUMMY_MAIN() { return 1; }
13156 #endif
13157 int
13158 main ()
13159 {
13160 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13161 test_array [0] = 0
13162
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169   (eval $ac_compile) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } &&
13173          { ac_try='test -s conftest.$ac_objext'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   ac_hi=$ac_mid; break
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 cat conftest.$ac_ext >&5
13183 ac_lo=`expr $ac_mid + 1`
13184                     if test $ac_lo -le $ac_mid; then
13185                       ac_lo= ac_hi=
13186                       break
13187                     fi
13188                     ac_mid=`expr 2 '*' $ac_mid + 1`
13189 fi
13190 rm -f conftest.$ac_objext conftest.$ac_ext
13191   done
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 #include "confdefs.h"
13198 $ac_includes_default
13199 #ifdef F77_DUMMY_MAIN
13200 #  ifdef __cplusplus
13201      extern "C"
13202 #  endif
13203    int F77_DUMMY_MAIN() { return 1; }
13204 #endif
13205 int
13206 main ()
13207 {
13208 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13209 test_array [0] = 0
13210
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217   (eval $ac_compile) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } &&
13221          { ac_try='test -s conftest.$ac_objext'
13222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223   (eval $ac_try) 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   ac_hi=-1 ac_mid=-1
13228   while :; do
13229     cat >conftest.$ac_ext <<_ACEOF
13230 #line $LINENO "configure"
13231 #include "confdefs.h"
13232 $ac_includes_default
13233 #ifdef F77_DUMMY_MAIN
13234 #  ifdef __cplusplus
13235      extern "C"
13236 #  endif
13237    int F77_DUMMY_MAIN() { return 1; }
13238 #endif
13239 int
13240 main ()
13241 {
13242 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13243 test_array [0] = 0
13244
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 rm -f conftest.$ac_objext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251   (eval $ac_compile) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } &&
13255          { ac_try='test -s conftest.$ac_objext'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261   ac_lo=$ac_mid; break
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13265 ac_hi=`expr '(' $ac_mid ')' - 1`
13266                        if test $ac_mid -le $ac_hi; then
13267                          ac_lo= ac_hi=
13268                          break
13269                        fi
13270                        ac_mid=`expr 2 '*' $ac_mid`
13271 fi
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273   done
13274 else
13275   echo "$as_me: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13277 ac_lo= ac_hi=
13278 fi
13279 rm -f conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282 # Binary search between lo and hi bounds.
13283 while test "x$ac_lo" != "x$ac_hi"; do
13284   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13285   cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 #include "confdefs.h"
13288 $ac_includes_default
13289 #ifdef F77_DUMMY_MAIN
13290 #  ifdef __cplusplus
13291      extern "C"
13292 #  endif
13293    int F77_DUMMY_MAIN() { return 1; }
13294 #endif
13295 int
13296 main ()
13297 {
13298 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13299 test_array [0] = 0
13300
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307   (eval $ac_compile) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } &&
13311          { ac_try='test -s conftest.$ac_objext'
13312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313   (eval $ac_try) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; }; then
13317   ac_hi=$ac_mid
13318 else
13319   echo "$as_me: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 ac_lo=`expr '(' $ac_mid ')' + 1`
13322 fi
13323 rm -f conftest.$ac_objext conftest.$ac_ext
13324 done
13325 case $ac_lo in
13326 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13328 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13329    { (exit 1); exit 1; }; } ;;
13330 esac
13331 else
13332   if test "$cross_compiling" = yes; then
13333   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13334 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13335    { (exit 1); exit 1; }; }
13336 else
13337   cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 #include "confdefs.h"
13340 $ac_includes_default
13341 long longval () { return (long) (sizeof (unsigned long)); }
13342 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13343 #include <stdio.h>
13344 #include <stdlib.h>
13345 #ifdef F77_DUMMY_MAIN
13346 #  ifdef __cplusplus
13347      extern "C"
13348 #  endif
13349    int F77_DUMMY_MAIN() { return 1; }
13350 #endif
13351 int
13352 main ()
13353 {
13354
13355   FILE *f = fopen ("conftest.val", "w");
13356   if (! f)
13357     exit (1);
13358   if (((long) (sizeof (unsigned long))) < 0)
13359     {
13360       long i = longval ();
13361       if (i != ((long) (sizeof (unsigned long))))
13362         exit (1);
13363       fprintf (f, "%ld\n", i);
13364     }
13365   else
13366     {
13367       unsigned long i = ulongval ();
13368       if (i != ((long) (sizeof (unsigned long))))
13369         exit (1);
13370       fprintf (f, "%lu\n", i);
13371     }
13372   exit (ferror (f) || fclose (f) != 0);
13373
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380   (eval $ac_link) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13390 else
13391   echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13396 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13397    { (exit 1); exit 1; }; }
13398 fi
13399 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 fi
13402 rm -f conftest.val
13403 else
13404   ac_cv_sizeof_unsigned_long=0
13405 fi
13406 fi
13407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13408 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13409 cat >>confdefs.h <<_ACEOF
13410 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13411 _ACEOF
13412
13413
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13417 _ACEOF
13418
13419
13420 # Determine memory alignment requirements for the basic C data types.
13421
13422 echo "$as_me:$LINENO: checking for short" >&5
13423 echo $ECHO_N "checking for short... $ECHO_C" >&6
13424 if test "${ac_cv_type_short+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   cat >conftest.$ac_ext <<_ACEOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13430 $ac_includes_default
13431 #ifdef F77_DUMMY_MAIN
13432 #  ifdef __cplusplus
13433      extern "C"
13434 #  endif
13435    int F77_DUMMY_MAIN() { return 1; }
13436 #endif
13437 int
13438 main ()
13439 {
13440 if ((short *) 0)
13441   return 0;
13442 if (sizeof (short))
13443   return 0;
13444   ;
13445   return 0;
13446 }
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450   (eval $ac_compile) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } &&
13454          { ac_try='test -s conftest.$ac_objext'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   ac_cv_type_short=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13464 ac_cv_type_short=no
13465 fi
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13469 echo "${ECHO_T}$ac_cv_type_short" >&6
13470
13471 echo "$as_me:$LINENO: checking alignment of short" >&5
13472 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13473 if test "${pgac_cv_alignof_short+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   if test "$ac_cv_type_short" = yes; then
13477   if test "$cross_compiling" = yes; then
13478   # Depending upon the size, compute the lo and hi bounds.
13479 cat >conftest.$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 #include "confdefs.h"
13482 $ac_includes_default
13483 struct { char filler; short field; } pgac_struct;
13484 #ifdef F77_DUMMY_MAIN
13485 #  ifdef __cplusplus
13486      extern "C"
13487 #  endif
13488    int F77_DUMMY_MAIN() { return 1; }
13489 #endif
13490 int
13491 main ()
13492 {
13493 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13494 test_array [0] = 0
13495
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502   (eval $ac_compile) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -s conftest.$ac_objext'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   ac_lo=0 ac_mid=0
13513   while :; do
13514     cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13517 $ac_includes_default
13518 struct { char filler; short field; } pgac_struct;
13519 #ifdef F77_DUMMY_MAIN
13520 #  ifdef __cplusplus
13521      extern "C"
13522 #  endif
13523    int F77_DUMMY_MAIN() { return 1; }
13524 #endif
13525 int
13526 main ()
13527 {
13528 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13529 test_array [0] = 0
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -s conftest.$ac_objext'
13542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543   (eval $ac_try) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_hi=$ac_mid; break
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 ac_lo=`expr $ac_mid + 1`
13552                     if test $ac_lo -le $ac_mid; then
13553                       ac_lo= ac_hi=
13554                       break
13555                     fi
13556                     ac_mid=`expr 2 '*' $ac_mid + 1`
13557 fi
13558 rm -f conftest.$ac_objext conftest.$ac_ext
13559   done
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 #include "confdefs.h"
13566 $ac_includes_default
13567 struct { char filler; short field; } pgac_struct;
13568 #ifdef F77_DUMMY_MAIN
13569 #  ifdef __cplusplus
13570      extern "C"
13571 #  endif
13572    int F77_DUMMY_MAIN() { return 1; }
13573 #endif
13574 int
13575 main ()
13576 {
13577 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13578 test_array [0] = 0
13579
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586   (eval $ac_compile) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } &&
13590          { ac_try='test -s conftest.$ac_objext'
13591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592   (eval $ac_try) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); }; }; then
13596   ac_hi=-1 ac_mid=-1
13597   while :; do
13598     cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 $ac_includes_default
13602 struct { char filler; short field; } pgac_struct;
13603 #ifdef F77_DUMMY_MAIN
13604 #  ifdef __cplusplus
13605      extern "C"
13606 #  endif
13607    int F77_DUMMY_MAIN() { return 1; }
13608 #endif
13609 int
13610 main ()
13611 {
13612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13613 test_array [0] = 0
13614
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621   (eval $ac_compile) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } &&
13625          { ac_try='test -s conftest.$ac_objext'
13626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627   (eval $ac_try) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; }; then
13631   ac_lo=$ac_mid; break
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636                        if test $ac_mid -le $ac_hi; then
13637                          ac_lo= ac_hi=
13638                          break
13639                        fi
13640                        ac_mid=`expr 2 '*' $ac_mid`
13641 fi
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13643   done
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 ac_lo= ac_hi=
13648 fi
13649 rm -f conftest.$ac_objext conftest.$ac_ext
13650 fi
13651 rm -f conftest.$ac_objext conftest.$ac_ext
13652 # Binary search between lo and hi bounds.
13653 while test "x$ac_lo" != "x$ac_hi"; do
13654   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13655   cat >conftest.$ac_ext <<_ACEOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658 $ac_includes_default
13659 struct { char filler; short field; } pgac_struct;
13660 #ifdef F77_DUMMY_MAIN
13661 #  ifdef __cplusplus
13662      extern "C"
13663 #  endif
13664    int F77_DUMMY_MAIN() { return 1; }
13665 #endif
13666 int
13667 main ()
13668 {
13669 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13670 test_array [0] = 0
13671
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678   (eval $ac_compile) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -s conftest.$ac_objext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_hi=$ac_mid
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 cat conftest.$ac_ext >&5
13692 ac_lo=`expr '(' $ac_mid ')' + 1`
13693 fi
13694 rm -f conftest.$ac_objext conftest.$ac_ext
13695 done
13696 case $ac_lo in
13697 ?*) pgac_cv_alignof_short=$ac_lo;;
13698 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13699 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13700    { (exit 1); exit 1; }; } ;;
13701 esac
13702 else
13703   if test "$cross_compiling" = yes; then
13704   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13705 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13706    { (exit 1); exit 1; }; }
13707 else
13708   cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
13710 #include "confdefs.h"
13711 $ac_includes_default
13712 struct { char filler; short field; } pgac_struct;
13713 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13714 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13715 #include <stdio.h>
13716 #include <stdlib.h>
13717 #ifdef F77_DUMMY_MAIN
13718 #  ifdef __cplusplus
13719      extern "C"
13720 #  endif
13721    int F77_DUMMY_MAIN() { return 1; }
13722 #endif
13723 int
13724 main ()
13725 {
13726
13727   FILE *f = fopen ("conftest.val", "w");
13728   if (! f)
13729     exit (1);
13730   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13731     {
13732       long i = longval ();
13733       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13734         exit (1);
13735       fprintf (f, "%ld\n", i);
13736     }
13737   else
13738     {
13739       unsigned long i = ulongval ();
13740       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13741         exit (1);
13742       fprintf (f, "%lu\n", i);
13743     }
13744   exit (ferror (f) || fclose (f) != 0);
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752   (eval $ac_link) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   pgac_cv_alignof_short=`cat conftest.val`
13762 else
13763   echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 cat conftest.$ac_ext >&5
13766 ( exit $ac_status )
13767 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13768 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13769    { (exit 1); exit 1; }; }
13770 fi
13771 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13772 fi
13773 fi
13774 rm -f conftest.val
13775 else
13776   pgac_cv_alignof_short=0
13777 fi
13778 fi
13779 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13780 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13781 cat >>confdefs.h <<_ACEOF
13782 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13783 _ACEOF
13784
13785
13786 echo "$as_me:$LINENO: checking for int" >&5
13787 echo $ECHO_N "checking for int... $ECHO_C" >&6
13788 if test "${ac_cv_type_int+set}" = set; then
13789   echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791   cat >conftest.$ac_ext <<_ACEOF
13792 #line $LINENO "configure"
13793 #include "confdefs.h"
13794 $ac_includes_default
13795 #ifdef F77_DUMMY_MAIN
13796 #  ifdef __cplusplus
13797      extern "C"
13798 #  endif
13799    int F77_DUMMY_MAIN() { return 1; }
13800 #endif
13801 int
13802 main ()
13803 {
13804 if ((int *) 0)
13805   return 0;
13806 if (sizeof (int))
13807   return 0;
13808   ;
13809   return 0;
13810 }
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814   (eval $ac_compile) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_type_int=yes
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 cat conftest.$ac_ext >&5
13828 ac_cv_type_int=no
13829 fi
13830 rm -f conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13833 echo "${ECHO_T}$ac_cv_type_int" >&6
13834
13835 echo "$as_me:$LINENO: checking alignment of int" >&5
13836 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13837 if test "${pgac_cv_alignof_int+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   if test "$ac_cv_type_int" = yes; then
13841   if test "$cross_compiling" = yes; then
13842   # Depending upon the size, compute the lo and hi bounds.
13843 cat >conftest.$ac_ext <<_ACEOF
13844 #line $LINENO "configure"
13845 #include "confdefs.h"
13846 $ac_includes_default
13847 struct { char filler; int field; } pgac_struct;
13848 #ifdef F77_DUMMY_MAIN
13849 #  ifdef __cplusplus
13850      extern "C"
13851 #  endif
13852    int F77_DUMMY_MAIN() { return 1; }
13853 #endif
13854 int
13855 main ()
13856 {
13857 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13858 test_array [0] = 0
13859
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866   (eval $ac_compile) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } &&
13870          { ac_try='test -s conftest.$ac_objext'
13871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872   (eval $ac_try) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; }; then
13876   ac_lo=0 ac_mid=0
13877   while :; do
13878     cat >conftest.$ac_ext <<_ACEOF
13879 #line $LINENO "configure"
13880 #include "confdefs.h"
13881 $ac_includes_default
13882 struct { char filler; int field; } pgac_struct;
13883 #ifdef F77_DUMMY_MAIN
13884 #  ifdef __cplusplus
13885      extern "C"
13886 #  endif
13887    int F77_DUMMY_MAIN() { return 1; }
13888 #endif
13889 int
13890 main ()
13891 {
13892 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13893 test_array [0] = 0
13894
13895   ;
13896   return 0;
13897 }
13898 _ACEOF
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901   (eval $ac_compile) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -s conftest.$ac_objext'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_hi=$ac_mid; break
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 ac_lo=`expr $ac_mid + 1`
13916                     if test $ac_lo -le $ac_mid; then
13917                       ac_lo= ac_hi=
13918                       break
13919                     fi
13920                     ac_mid=`expr 2 '*' $ac_mid + 1`
13921 fi
13922 rm -f conftest.$ac_objext conftest.$ac_ext
13923   done
13924 else
13925   echo "$as_me: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 #include "confdefs.h"
13930 $ac_includes_default
13931 struct { char filler; int field; } pgac_struct;
13932 #ifdef F77_DUMMY_MAIN
13933 #  ifdef __cplusplus
13934      extern "C"
13935 #  endif
13936    int F77_DUMMY_MAIN() { return 1; }
13937 #endif
13938 int
13939 main ()
13940 {
13941 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13942 test_array [0] = 0
13943
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   ac_hi=-1 ac_mid=-1
13961   while :; do
13962     cat >conftest.$ac_ext <<_ACEOF
13963 #line $LINENO "configure"
13964 #include "confdefs.h"
13965 $ac_includes_default
13966 struct { char filler; int field; } pgac_struct;
13967 #ifdef F77_DUMMY_MAIN
13968 #  ifdef __cplusplus
13969      extern "C"
13970 #  endif
13971    int F77_DUMMY_MAIN() { return 1; }
13972 #endif
13973 int
13974 main ()
13975 {
13976 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13977 test_array [0] = 0
13978
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -s conftest.$ac_objext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_lo=$ac_mid; break
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 ac_hi=`expr '(' $ac_mid ')' - 1`
14000                        if test $ac_mid -le $ac_hi; then
14001                          ac_lo= ac_hi=
14002                          break
14003                        fi
14004                        ac_mid=`expr 2 '*' $ac_mid`
14005 fi
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007   done
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 cat conftest.$ac_ext >&5
14011 ac_lo= ac_hi=
14012 fi
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 fi
14015 rm -f conftest.$ac_objext conftest.$ac_ext
14016 # Binary search between lo and hi bounds.
14017 while test "x$ac_lo" != "x$ac_hi"; do
14018   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14019   cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 #include "confdefs.h"
14022 $ac_includes_default
14023 struct { char filler; int field; } pgac_struct;
14024 #ifdef F77_DUMMY_MAIN
14025 #  ifdef __cplusplus
14026      extern "C"
14027 #  endif
14028    int F77_DUMMY_MAIN() { return 1; }
14029 #endif
14030 int
14031 main ()
14032 {
14033 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14034 test_array [0] = 0
14035
14036   ;
14037   return 0;
14038 }
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042   (eval $ac_compile) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -s conftest.$ac_objext'
14047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048   (eval $ac_try) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; }; then
14052   ac_hi=$ac_mid
14053 else
14054   echo "$as_me: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14056 ac_lo=`expr '(' $ac_mid ')' + 1`
14057 fi
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059 done
14060 case $ac_lo in
14061 ?*) pgac_cv_alignof_int=$ac_lo;;
14062 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14063 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14064    { (exit 1); exit 1; }; } ;;
14065 esac
14066 else
14067   if test "$cross_compiling" = yes; then
14068   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14069 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14070    { (exit 1); exit 1; }; }
14071 else
14072   cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14074 #include "confdefs.h"
14075 $ac_includes_default
14076 struct { char filler; int field; } pgac_struct;
14077 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14078 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14079 #include <stdio.h>
14080 #include <stdlib.h>
14081 #ifdef F77_DUMMY_MAIN
14082 #  ifdef __cplusplus
14083      extern "C"
14084 #  endif
14085    int F77_DUMMY_MAIN() { return 1; }
14086 #endif
14087 int
14088 main ()
14089 {
14090
14091   FILE *f = fopen ("conftest.val", "w");
14092   if (! f)
14093     exit (1);
14094   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14095     {
14096       long i = longval ();
14097       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14098         exit (1);
14099       fprintf (f, "%ld\n", i);
14100     }
14101   else
14102     {
14103       unsigned long i = ulongval ();
14104       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14105         exit (1);
14106       fprintf (f, "%lu\n", i);
14107     }
14108   exit (ferror (f) || fclose (f) != 0);
14109
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 rm -f conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116   (eval $ac_link) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }; then
14125   pgac_cv_alignof_int=`cat conftest.val`
14126 else
14127   echo "$as_me: program exited with status $ac_status" >&5
14128 echo "$as_me: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 ( exit $ac_status )
14131 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14132 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14133    { (exit 1); exit 1; }; }
14134 fi
14135 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 fi
14138 rm -f conftest.val
14139 else
14140   pgac_cv_alignof_int=0
14141 fi
14142 fi
14143 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14144 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define ALIGNOF_INT $pgac_cv_alignof_int
14147 _ACEOF
14148
14149
14150 echo "$as_me:$LINENO: checking for long" >&5
14151 echo $ECHO_N "checking for long... $ECHO_C" >&6
14152 if test "${ac_cv_type_long+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155   cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14157 #include "confdefs.h"
14158 $ac_includes_default
14159 #ifdef F77_DUMMY_MAIN
14160 #  ifdef __cplusplus
14161      extern "C"
14162 #  endif
14163    int F77_DUMMY_MAIN() { return 1; }
14164 #endif
14165 int
14166 main ()
14167 {
14168 if ((long *) 0)
14169   return 0;
14170 if (sizeof (long))
14171   return 0;
14172   ;
14173   return 0;
14174 }
14175 _ACEOF
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178   (eval $ac_compile) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_type_long=yes
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 ac_cv_type_long=no
14193 fi
14194 rm -f conftest.$ac_objext conftest.$ac_ext
14195 fi
14196 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14197 echo "${ECHO_T}$ac_cv_type_long" >&6
14198
14199 echo "$as_me:$LINENO: checking alignment of long" >&5
14200 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14201 if test "${pgac_cv_alignof_long+set}" = set; then
14202   echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204   if test "$ac_cv_type_long" = yes; then
14205   if test "$cross_compiling" = yes; then
14206   # Depending upon the size, compute the lo and hi bounds.
14207 cat >conftest.$ac_ext <<_ACEOF
14208 #line $LINENO "configure"
14209 #include "confdefs.h"
14210 $ac_includes_default
14211 struct { char filler; long field; } pgac_struct;
14212 #ifdef F77_DUMMY_MAIN
14213 #  ifdef __cplusplus
14214      extern "C"
14215 #  endif
14216    int F77_DUMMY_MAIN() { return 1; }
14217 #endif
14218 int
14219 main ()
14220 {
14221 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14222 test_array [0] = 0
14223
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230   (eval $ac_compile) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); } &&
14234          { ac_try='test -s conftest.$ac_objext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_lo=0 ac_mid=0
14241   while :; do
14242     cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14244 #include "confdefs.h"
14245 $ac_includes_default
14246 struct { char filler; long field; } pgac_struct;
14247 #ifdef F77_DUMMY_MAIN
14248 #  ifdef __cplusplus
14249      extern "C"
14250 #  endif
14251    int F77_DUMMY_MAIN() { return 1; }
14252 #endif
14253 int
14254 main ()
14255 {
14256 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14257 test_array [0] = 0
14258
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265   (eval $ac_compile) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } &&
14269          { ac_try='test -s conftest.$ac_objext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_hi=$ac_mid; break
14276 else
14277   echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 ac_lo=`expr $ac_mid + 1`
14280                     if test $ac_lo -le $ac_mid; then
14281                       ac_lo= ac_hi=
14282                       break
14283                     fi
14284                     ac_mid=`expr 2 '*' $ac_mid + 1`
14285 fi
14286 rm -f conftest.$ac_objext conftest.$ac_ext
14287   done
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 #include "confdefs.h"
14294 $ac_includes_default
14295 struct { char filler; long field; } pgac_struct;
14296 #ifdef F77_DUMMY_MAIN
14297 #  ifdef __cplusplus
14298      extern "C"
14299 #  endif
14300    int F77_DUMMY_MAIN() { return 1; }
14301 #endif
14302 int
14303 main ()
14304 {
14305 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14306 test_array [0] = 0
14307
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_hi=-1 ac_mid=-1
14325   while :; do
14326     cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 #include "confdefs.h"
14329 $ac_includes_default
14330 struct { char filler; long field; } pgac_struct;
14331 #ifdef F77_DUMMY_MAIN
14332 #  ifdef __cplusplus
14333      extern "C"
14334 #  endif
14335    int F77_DUMMY_MAIN() { return 1; }
14336 #endif
14337 int
14338 main ()
14339 {
14340 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14341 test_array [0] = 0
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349   (eval $ac_compile) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -s conftest.$ac_objext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   ac_lo=$ac_mid; break
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 ac_hi=`expr '(' $ac_mid ')' - 1`
14364                        if test $ac_mid -le $ac_hi; then
14365                          ac_lo= ac_hi=
14366                          break
14367                        fi
14368                        ac_mid=`expr 2 '*' $ac_mid`
14369 fi
14370 rm -f conftest.$ac_objext conftest.$ac_ext
14371   done
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 ac_lo= ac_hi=
14376 fi
14377 rm -f conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 rm -f conftest.$ac_objext conftest.$ac_ext
14380 # Binary search between lo and hi bounds.
14381 while test "x$ac_lo" != "x$ac_hi"; do
14382   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14383   cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14386 $ac_includes_default
14387 struct { char filler; long field; } pgac_struct;
14388 #ifdef F77_DUMMY_MAIN
14389 #  ifdef __cplusplus
14390      extern "C"
14391 #  endif
14392    int F77_DUMMY_MAIN() { return 1; }
14393 #endif
14394 int
14395 main ()
14396 {
14397 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14398 test_array [0] = 0
14399
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406   (eval $ac_compile) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); } &&
14410          { ac_try='test -s conftest.$ac_objext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   ac_hi=$ac_mid
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14420 ac_lo=`expr '(' $ac_mid ')' + 1`
14421 fi
14422 rm -f conftest.$ac_objext conftest.$ac_ext
14423 done
14424 case $ac_lo in
14425 ?*) pgac_cv_alignof_long=$ac_lo;;
14426 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14427 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14428    { (exit 1); exit 1; }; } ;;
14429 esac
14430 else
14431   if test "$cross_compiling" = yes; then
14432   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14433 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14434    { (exit 1); exit 1; }; }
14435 else
14436   cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14438 #include "confdefs.h"
14439 $ac_includes_default
14440 struct { char filler; long field; } pgac_struct;
14441 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14442 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14443 #include <stdio.h>
14444 #include <stdlib.h>
14445 #ifdef F77_DUMMY_MAIN
14446 #  ifdef __cplusplus
14447      extern "C"
14448 #  endif
14449    int F77_DUMMY_MAIN() { return 1; }
14450 #endif
14451 int
14452 main ()
14453 {
14454
14455   FILE *f = fopen ("conftest.val", "w");
14456   if (! f)
14457     exit (1);
14458   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14459     {
14460       long i = longval ();
14461       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14462         exit (1);
14463       fprintf (f, "%ld\n", i);
14464     }
14465   else
14466     {
14467       unsigned long i = ulongval ();
14468       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14469         exit (1);
14470       fprintf (f, "%lu\n", i);
14471     }
14472   exit (ferror (f) || fclose (f) != 0);
14473
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480   (eval $ac_link) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   pgac_cv_alignof_long=`cat conftest.val`
14490 else
14491   echo "$as_me: program exited with status $ac_status" >&5
14492 echo "$as_me: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14494 ( exit $ac_status )
14495 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14496 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14497    { (exit 1); exit 1; }; }
14498 fi
14499 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14500 fi
14501 fi
14502 rm -f conftest.val
14503 else
14504   pgac_cv_alignof_long=0
14505 fi
14506 fi
14507 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14508 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14509 cat >>confdefs.h <<_ACEOF
14510 #define ALIGNOF_LONG $pgac_cv_alignof_long
14511 _ACEOF
14512
14513
14514 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14515   echo "$as_me:$LINENO: checking for long long int" >&5
14516 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14517 if test "${ac_cv_type_long_long_int+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14522 #include "confdefs.h"
14523 $ac_includes_default
14524 #ifdef F77_DUMMY_MAIN
14525 #  ifdef __cplusplus
14526      extern "C"
14527 #  endif
14528    int F77_DUMMY_MAIN() { return 1; }
14529 #endif
14530 int
14531 main ()
14532 {
14533 if ((long long int *) 0)
14534   return 0;
14535 if (sizeof (long long int))
14536   return 0;
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest.$ac_objext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14543   (eval $ac_compile) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } &&
14547          { ac_try='test -s conftest.$ac_objext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_type_long_long_int=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 ac_cv_type_long_long_int=no
14558 fi
14559 rm -f conftest.$ac_objext conftest.$ac_ext
14560 fi
14561 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14562 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14563
14564 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14565 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14566 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   if test "$ac_cv_type_long_long_int" = yes; then
14570   if test "$cross_compiling" = yes; then
14571   # Depending upon the size, compute the lo and hi bounds.
14572 cat >conftest.$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 #include "confdefs.h"
14575 $ac_includes_default
14576 struct { char filler; long long int field; } pgac_struct;
14577 #ifdef F77_DUMMY_MAIN
14578 #  ifdef __cplusplus
14579      extern "C"
14580 #  endif
14581    int F77_DUMMY_MAIN() { return 1; }
14582 #endif
14583 int
14584 main ()
14585 {
14586 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14587 test_array [0] = 0
14588
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595   (eval $ac_compile) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } &&
14599          { ac_try='test -s conftest.$ac_objext'
14600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601   (eval $ac_try) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); }; }; then
14605   ac_lo=0 ac_mid=0
14606   while :; do
14607     cat >conftest.$ac_ext <<_ACEOF
14608 #line $LINENO "configure"
14609 #include "confdefs.h"
14610 $ac_includes_default
14611 struct { char filler; long long int field; } pgac_struct;
14612 #ifdef F77_DUMMY_MAIN
14613 #  ifdef __cplusplus
14614      extern "C"
14615 #  endif
14616    int F77_DUMMY_MAIN() { return 1; }
14617 #endif
14618 int
14619 main ()
14620 {
14621 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14622 test_array [0] = 0
14623
14624   ;
14625   return 0;
14626 }
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630   (eval $ac_compile) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } &&
14634          { ac_try='test -s conftest.$ac_objext'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   ac_hi=$ac_mid; break
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 ac_lo=`expr $ac_mid + 1`
14645                     if test $ac_lo -le $ac_mid; then
14646                       ac_lo= ac_hi=
14647                       break
14648                     fi
14649                     ac_mid=`expr 2 '*' $ac_mid + 1`
14650 fi
14651 rm -f conftest.$ac_objext conftest.$ac_ext
14652   done
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14658 #include "confdefs.h"
14659 $ac_includes_default
14660 struct { char filler; long long int field; } pgac_struct;
14661 #ifdef F77_DUMMY_MAIN
14662 #  ifdef __cplusplus
14663      extern "C"
14664 #  endif
14665    int F77_DUMMY_MAIN() { return 1; }
14666 #endif
14667 int
14668 main ()
14669 {
14670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14671 test_array [0] = 0
14672
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679   (eval $ac_compile) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -s conftest.$ac_objext'
14684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685   (eval $ac_try) 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   ac_hi=-1 ac_mid=-1
14690   while :; do
14691     cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 #include "confdefs.h"
14694 $ac_includes_default
14695 struct { char filler; long long int field; } pgac_struct;
14696 #ifdef F77_DUMMY_MAIN
14697 #  ifdef __cplusplus
14698      extern "C"
14699 #  endif
14700    int F77_DUMMY_MAIN() { return 1; }
14701 #endif
14702 int
14703 main ()
14704 {
14705 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14706 test_array [0] = 0
14707
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714   (eval $ac_compile) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -s conftest.$ac_objext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724   ac_lo=$ac_mid; break
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 ac_hi=`expr '(' $ac_mid ')' - 1`
14729                        if test $ac_mid -le $ac_hi; then
14730                          ac_lo= ac_hi=
14731                          break
14732                        fi
14733                        ac_mid=`expr 2 '*' $ac_mid`
14734 fi
14735 rm -f conftest.$ac_objext conftest.$ac_ext
14736   done
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14740 ac_lo= ac_hi=
14741 fi
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14743 fi
14744 rm -f conftest.$ac_objext conftest.$ac_ext
14745 # Binary search between lo and hi bounds.
14746 while test "x$ac_lo" != "x$ac_hi"; do
14747   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14748   cat >conftest.$ac_ext <<_ACEOF
14749 #line $LINENO "configure"
14750 #include "confdefs.h"
14751 $ac_includes_default
14752 struct { char filler; long long int field; } pgac_struct;
14753 #ifdef F77_DUMMY_MAIN
14754 #  ifdef __cplusplus
14755      extern "C"
14756 #  endif
14757    int F77_DUMMY_MAIN() { return 1; }
14758 #endif
14759 int
14760 main ()
14761 {
14762 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14763 test_array [0] = 0
14764
14765   ;
14766   return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14771   (eval $ac_compile) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -s conftest.$ac_objext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_hi=$ac_mid
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14785 ac_lo=`expr '(' $ac_mid ')' + 1`
14786 fi
14787 rm -f conftest.$ac_objext conftest.$ac_ext
14788 done
14789 case $ac_lo in
14790 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14791 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14792 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14793    { (exit 1); exit 1; }; } ;;
14794 esac
14795 else
14796   if test "$cross_compiling" = yes; then
14797   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14798 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14799    { (exit 1); exit 1; }; }
14800 else
14801   cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 #include "confdefs.h"
14804 $ac_includes_default
14805 struct { char filler; long long int field; } pgac_struct;
14806 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14807 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14808 #include <stdio.h>
14809 #include <stdlib.h>
14810 #ifdef F77_DUMMY_MAIN
14811 #  ifdef __cplusplus
14812      extern "C"
14813 #  endif
14814    int F77_DUMMY_MAIN() { return 1; }
14815 #endif
14816 int
14817 main ()
14818 {
14819
14820   FILE *f = fopen ("conftest.val", "w");
14821   if (! f)
14822     exit (1);
14823   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14824     {
14825       long i = longval ();
14826       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14827         exit (1);
14828       fprintf (f, "%ld\n", i);
14829     }
14830   else
14831     {
14832       unsigned long i = ulongval ();
14833       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14834         exit (1);
14835       fprintf (f, "%lu\n", i);
14836     }
14837   exit (ferror (f) || fclose (f) != 0);
14838
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845   (eval $ac_link) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   pgac_cv_alignof_long_long_int=`cat conftest.val`
14855 else
14856   echo "$as_me: program exited with status $ac_status" >&5
14857 echo "$as_me: failed program was:" >&5
14858 cat conftest.$ac_ext >&5
14859 ( exit $ac_status )
14860 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14861 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14862    { (exit 1); exit 1; }; }
14863 fi
14864 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 fi
14867 rm -f conftest.val
14868 else
14869   pgac_cv_alignof_long_long_int=0
14870 fi
14871 fi
14872 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14873 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14874 cat >>confdefs.h <<_ACEOF
14875 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14876 _ACEOF
14877
14878
14879 fi
14880 echo "$as_me:$LINENO: checking for double" >&5
14881 echo $ECHO_N "checking for double... $ECHO_C" >&6
14882 if test "${ac_cv_type_double+set}" = set; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885   cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 #include "confdefs.h"
14888 $ac_includes_default
14889 #ifdef F77_DUMMY_MAIN
14890 #  ifdef __cplusplus
14891      extern "C"
14892 #  endif
14893    int F77_DUMMY_MAIN() { return 1; }
14894 #endif
14895 int
14896 main ()
14897 {
14898 if ((double *) 0)
14899   return 0;
14900 if (sizeof (double))
14901   return 0;
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908   (eval $ac_compile) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } &&
14912          { ac_try='test -s conftest.$ac_objext'
14913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914   (eval $ac_try) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; }; then
14918   ac_cv_type_double=yes
14919 else
14920   echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ac_cv_type_double=no
14923 fi
14924 rm -f conftest.$ac_objext conftest.$ac_ext
14925 fi
14926 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14927 echo "${ECHO_T}$ac_cv_type_double" >&6
14928
14929 echo "$as_me:$LINENO: checking alignment of double" >&5
14930 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14931 if test "${pgac_cv_alignof_double+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   if test "$ac_cv_type_double" = yes; then
14935   if test "$cross_compiling" = yes; then
14936   # Depending upon the size, compute the lo and hi bounds.
14937 cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14939 #include "confdefs.h"
14940 $ac_includes_default
14941 struct { char filler; double field; } pgac_struct;
14942 #ifdef F77_DUMMY_MAIN
14943 #  ifdef __cplusplus
14944      extern "C"
14945 #  endif
14946    int F77_DUMMY_MAIN() { return 1; }
14947 #endif
14948 int
14949 main ()
14950 {
14951 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14952 test_array [0] = 0
14953
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 rm -f conftest.$ac_objext
14959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14960   (eval $ac_compile) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -s conftest.$ac_objext'
14965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966   (eval $ac_try) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); }; }; then
14970   ac_lo=0 ac_mid=0
14971   while :; do
14972     cat >conftest.$ac_ext <<_ACEOF
14973 #line $LINENO "configure"
14974 #include "confdefs.h"
14975 $ac_includes_default
14976 struct { char filler; double field; } pgac_struct;
14977 #ifdef F77_DUMMY_MAIN
14978 #  ifdef __cplusplus
14979      extern "C"
14980 #  endif
14981    int F77_DUMMY_MAIN() { return 1; }
14982 #endif
14983 int
14984 main ()
14985 {
14986 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14987 test_array [0] = 0
14988
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 rm -f conftest.$ac_objext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995   (eval $ac_compile) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -s conftest.$ac_objext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_hi=$ac_mid; break
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 ac_lo=`expr $ac_mid + 1`
15010                     if test $ac_lo -le $ac_mid; then
15011                       ac_lo= ac_hi=
15012                       break
15013                     fi
15014                     ac_mid=`expr 2 '*' $ac_mid + 1`
15015 fi
15016 rm -f conftest.$ac_objext conftest.$ac_ext
15017   done
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 cat >conftest.$ac_ext <<_ACEOF
15022 #line $LINENO "configure"
15023 #include "confdefs.h"
15024 $ac_includes_default
15025 struct { char filler; double field; } pgac_struct;
15026 #ifdef F77_DUMMY_MAIN
15027 #  ifdef __cplusplus
15028      extern "C"
15029 #  endif
15030    int F77_DUMMY_MAIN() { return 1; }
15031 #endif
15032 int
15033 main ()
15034 {
15035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15036 test_array [0] = 0
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044   (eval $ac_compile) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_hi=-1 ac_mid=-1
15055   while :; do
15056     cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 $ac_includes_default
15060 struct { char filler; double field; } pgac_struct;
15061 #ifdef F77_DUMMY_MAIN
15062 #  ifdef __cplusplus
15063      extern "C"
15064 #  endif
15065    int F77_DUMMY_MAIN() { return 1; }
15066 #endif
15067 int
15068 main ()
15069 {
15070 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15071 test_array [0] = 0
15072
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079   (eval $ac_compile) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -s conftest.$ac_objext'
15084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085   (eval $ac_try) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; }; then
15089   ac_lo=$ac_mid; break
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15093 ac_hi=`expr '(' $ac_mid ')' - 1`
15094                        if test $ac_mid -le $ac_hi; then
15095                          ac_lo= ac_hi=
15096                          break
15097                        fi
15098                        ac_mid=`expr 2 '*' $ac_mid`
15099 fi
15100 rm -f conftest.$ac_objext conftest.$ac_ext
15101   done
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15105 ac_lo= ac_hi=
15106 fi
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15108 fi
15109 rm -f conftest.$ac_objext conftest.$ac_ext
15110 # Binary search between lo and hi bounds.
15111 while test "x$ac_lo" != "x$ac_hi"; do
15112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15113   cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 #include "confdefs.h"
15116 $ac_includes_default
15117 struct { char filler; double field; } pgac_struct;
15118 #ifdef F77_DUMMY_MAIN
15119 #  ifdef __cplusplus
15120      extern "C"
15121 #  endif
15122    int F77_DUMMY_MAIN() { return 1; }
15123 #endif
15124 int
15125 main ()
15126 {
15127 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15128 test_array [0] = 0
15129
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136   (eval $ac_compile) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -s conftest.$ac_objext'
15141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142   (eval $ac_try) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; }; then
15146   ac_hi=$ac_mid
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 ac_lo=`expr '(' $ac_mid ')' + 1`
15151 fi
15152 rm -f conftest.$ac_objext conftest.$ac_ext
15153 done
15154 case $ac_lo in
15155 ?*) pgac_cv_alignof_double=$ac_lo;;
15156 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15157 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15158    { (exit 1); exit 1; }; } ;;
15159 esac
15160 else
15161   if test "$cross_compiling" = yes; then
15162   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15163 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15164    { (exit 1); exit 1; }; }
15165 else
15166   cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 $ac_includes_default
15170 struct { char filler; double field; } pgac_struct;
15171 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15172 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15173 #include <stdio.h>
15174 #include <stdlib.h>
15175 #ifdef F77_DUMMY_MAIN
15176 #  ifdef __cplusplus
15177      extern "C"
15178 #  endif
15179    int F77_DUMMY_MAIN() { return 1; }
15180 #endif
15181 int
15182 main ()
15183 {
15184
15185   FILE *f = fopen ("conftest.val", "w");
15186   if (! f)
15187     exit (1);
15188   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15189     {
15190       long i = longval ();
15191       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15192         exit (1);
15193       fprintf (f, "%ld\n", i);
15194     }
15195   else
15196     {
15197       unsigned long i = ulongval ();
15198       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15199         exit (1);
15200       fprintf (f, "%lu\n", i);
15201     }
15202   exit (ferror (f) || fclose (f) != 0);
15203
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210   (eval $ac_link) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219   pgac_cv_alignof_double=`cat conftest.val`
15220 else
15221   echo "$as_me: program exited with status $ac_status" >&5
15222 echo "$as_me: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15224 ( exit $ac_status )
15225 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15226 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15227    { (exit 1); exit 1; }; }
15228 fi
15229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15230 fi
15231 fi
15232 rm -f conftest.val
15233 else
15234   pgac_cv_alignof_double=0
15235 fi
15236 fi
15237 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15238 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15239 cat >>confdefs.h <<_ACEOF
15240 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15241 _ACEOF
15242
15243
15244
15245 # Compute maximum alignment of any basic type.
15246 # We assume long's alignment is at least as strong as char, short, or int;
15247 # but we must check long long (if it exists) and double.
15248
15249 MAX_ALIGNOF=$pgac_cv_alignof_long
15250 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15251   MAX_ALIGNOF=$pgac_cv_alignof_double
15252 fi
15253 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15254   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15255 fi
15256
15257 cat >>confdefs.h <<_ACEOF
15258 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15259 _ACEOF
15260
15261
15262
15263 # Some platforms predefine the types int8, int16, etc.  Only check
15264 # a (hopefully) representative subset.
15265 echo "$as_me:$LINENO: checking for int8" >&5
15266 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15267 if test "${ac_cv_type_int8+set}" = set; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   cat >conftest.$ac_ext <<_ACEOF
15271 #line $LINENO "configure"
15272 #include "confdefs.h"
15273 #include <stdio.h>
15274 #ifdef HAVE_SUPPORTDEFS_H
15275 #include <SupportDefs.h>
15276 #endif
15277
15278 #ifdef F77_DUMMY_MAIN
15279 #  ifdef __cplusplus
15280      extern "C"
15281 #  endif
15282    int F77_DUMMY_MAIN() { return 1; }
15283 #endif
15284 int
15285 main ()
15286 {
15287 if ((int8 *) 0)
15288   return 0;
15289 if (sizeof (int8))
15290   return 0;
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297   (eval $ac_compile) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -s conftest.$ac_objext'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307   ac_cv_type_int8=yes
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 ac_cv_type_int8=no
15312 fi
15313 rm -f conftest.$ac_objext conftest.$ac_ext
15314 fi
15315 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15316 echo "${ECHO_T}$ac_cv_type_int8" >&6
15317 if test $ac_cv_type_int8 = yes; then
15318
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_INT8 1
15321 _ACEOF
15322
15323
15324 fi
15325 echo "$as_me:$LINENO: checking for uint8" >&5
15326 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15327 if test "${ac_cv_type_uint8+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 #include "confdefs.h"
15333 #include <stdio.h>
15334 #ifdef HAVE_SUPPORTDEFS_H
15335 #include <SupportDefs.h>
15336 #endif
15337
15338 #ifdef F77_DUMMY_MAIN
15339 #  ifdef __cplusplus
15340      extern "C"
15341 #  endif
15342    int F77_DUMMY_MAIN() { return 1; }
15343 #endif
15344 int
15345 main ()
15346 {
15347 if ((uint8 *) 0)
15348   return 0;
15349 if (sizeof (uint8))
15350   return 0;
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.$ac_objext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357   (eval $ac_compile) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); } &&
15361          { ac_try='test -s conftest.$ac_objext'
15362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363   (eval $ac_try) 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; }; then
15367   ac_cv_type_uint8=yes
15368 else
15369   echo "$as_me: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15371 ac_cv_type_uint8=no
15372 fi
15373 rm -f conftest.$ac_objext conftest.$ac_ext
15374 fi
15375 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15376 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15377 if test $ac_cv_type_uint8 = yes; then
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_UINT8 1
15381 _ACEOF
15382
15383
15384 fi
15385 echo "$as_me:$LINENO: checking for int64" >&5
15386 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15387 if test "${ac_cv_type_int64+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390   cat >conftest.$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15392 #include "confdefs.h"
15393 #include <stdio.h>
15394 #ifdef HAVE_SUPPORTDEFS_H
15395 #include <SupportDefs.h>
15396 #endif
15397
15398 #ifdef F77_DUMMY_MAIN
15399 #  ifdef __cplusplus
15400      extern "C"
15401 #  endif
15402    int F77_DUMMY_MAIN() { return 1; }
15403 #endif
15404 int
15405 main ()
15406 {
15407 if ((int64 *) 0)
15408   return 0;
15409 if (sizeof (int64))
15410   return 0;
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417   (eval $ac_compile) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } &&
15421          { ac_try='test -s conftest.$ac_objext'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; }; then
15427   ac_cv_type_int64=yes
15428 else
15429   echo "$as_me: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 ac_cv_type_int64=no
15432 fi
15433 rm -f conftest.$ac_objext conftest.$ac_ext
15434 fi
15435 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15436 echo "${ECHO_T}$ac_cv_type_int64" >&6
15437 if test $ac_cv_type_int64 = yes; then
15438
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_INT64 1
15441 _ACEOF
15442
15443
15444 fi
15445 echo "$as_me:$LINENO: checking for uint64" >&5
15446 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15447 if test "${ac_cv_type_uint64+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   cat >conftest.$ac_ext <<_ACEOF
15451 #line $LINENO "configure"
15452 #include "confdefs.h"
15453 #include <stdio.h>
15454 #ifdef HAVE_SUPPORTDEFS_H
15455 #include <SupportDefs.h>
15456 #endif
15457
15458 #ifdef F77_DUMMY_MAIN
15459 #  ifdef __cplusplus
15460      extern "C"
15461 #  endif
15462    int F77_DUMMY_MAIN() { return 1; }
15463 #endif
15464 int
15465 main ()
15466 {
15467 if ((uint64 *) 0)
15468   return 0;
15469 if (sizeof (uint64))
15470   return 0;
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477   (eval $ac_compile) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); } &&
15481          { ac_try='test -s conftest.$ac_objext'
15482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483   (eval $ac_try) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }; }; then
15487   ac_cv_type_uint64=yes
15488 else
15489   echo "$as_me: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 ac_cv_type_uint64=no
15492 fi
15493 rm -f conftest.$ac_objext conftest.$ac_ext
15494 fi
15495 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15496 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15497 if test $ac_cv_type_uint64 = yes; then
15498
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_UINT64 1
15501 _ACEOF
15502
15503
15504 fi
15505
15506
15507 # We also check for sig_atomic_t, which *should* be defined per ANSI
15508 # C, but is missing on some old platforms.
15509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15511 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   cat >conftest.$ac_ext <<_ACEOF
15515 #line $LINENO "configure"
15516 #include "confdefs.h"
15517 #include <signal.h>
15518
15519 #ifdef F77_DUMMY_MAIN
15520 #  ifdef __cplusplus
15521      extern "C"
15522 #  endif
15523    int F77_DUMMY_MAIN() { return 1; }
15524 #endif
15525 int
15526 main ()
15527 {
15528 if ((sig_atomic_t *) 0)
15529   return 0;
15530 if (sizeof (sig_atomic_t))
15531   return 0;
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538   (eval $ac_compile) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } &&
15542          { ac_try='test -s conftest.$ac_objext'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548   ac_cv_type_sig_atomic_t=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 ac_cv_type_sig_atomic_t=no
15553 fi
15554 rm -f conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15558 if test $ac_cv_type_sig_atomic_t = yes; then
15559
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_SIG_ATOMIC_T 1
15562 _ACEOF
15563
15564
15565 fi
15566
15567
15568
15569 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15570 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15571 if test "${pgac_cv_func_posix_signals+set}" = set; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 #line $LINENO "configure"
15576 #include "confdefs.h"
15577 #include <signal.h>
15578
15579 #ifdef F77_DUMMY_MAIN
15580 #  ifdef __cplusplus
15581      extern "C"
15582 #  endif
15583    int F77_DUMMY_MAIN() { return 1; }
15584 #endif
15585 int
15586 main ()
15587 {
15588 struct sigaction act, oact;
15589 sigemptyset(&act.sa_mask);
15590 act.sa_flags = SA_RESTART;
15591 sigaction(0, &act, &oact);
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598   (eval $ac_link) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -s conftest$ac_exeext'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   pgac_cv_func_posix_signals=yes
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 pgac_cv_func_posix_signals=no
15613 fi
15614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15615 fi
15616 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15617 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15618 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15619
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE_POSIX_SIGNALS
15622 _ACEOF
15623
15624 fi
15625 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15626
15627
15628
15629 if test "$enable_nls" = yes ; then
15630
15631   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15632 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15633 if test "${ac_cv_search_gettext+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   ac_func_search_save_LIBS=$LIBS
15637 ac_cv_search_gettext=no
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15641
15642 /* Override any gcc2 internal prototype to avoid an error.  */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 /* We use char because int might match the return type of a gcc2
15647    builtin and then its argument prototype would still apply.  */
15648 char gettext ();
15649 #ifdef F77_DUMMY_MAIN
15650 #  ifdef __cplusplus
15651      extern "C"
15652 #  endif
15653    int F77_DUMMY_MAIN() { return 1; }
15654 #endif
15655 int
15656 main ()
15657 {
15658 gettext ();
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15665   (eval $ac_link) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -s conftest$ac_exeext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_search_gettext="none required"
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 fi
15680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15681 if test "$ac_cv_search_gettext" = no; then
15682   for ac_lib in intl; do
15683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15684     cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15687
15688 /* Override any gcc2 internal prototype to avoid an error.  */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 /* We use char because int might match the return type of a gcc2
15693    builtin and then its argument prototype would still apply.  */
15694 char gettext ();
15695 #ifdef F77_DUMMY_MAIN
15696 #  ifdef __cplusplus
15697      extern "C"
15698 #  endif
15699    int F77_DUMMY_MAIN() { return 1; }
15700 #endif
15701 int
15702 main ()
15703 {
15704 gettext ();
15705   ;
15706   return 0;
15707 }
15708 _ACEOF
15709 rm -f conftest.$ac_objext conftest$ac_exeext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15711   (eval $ac_link) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } &&
15715          { ac_try='test -s conftest$ac_exeext'
15716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717   (eval $ac_try) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; }; then
15721   ac_cv_search_gettext="-l$ac_lib"
15722 break
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 fi
15727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15728   done
15729 fi
15730 LIBS=$ac_func_search_save_LIBS
15731 fi
15732 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15733 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15734 if test "$ac_cv_search_gettext" != no; then
15735   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15736
15737 else
15738   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15739 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15740    { (exit 1); exit 1; }; }
15741 fi
15742
15743   if test "${ac_cv_header_libintl_h+set}" = set; then
15744   echo "$as_me:$LINENO: checking for libintl.h" >&5
15745 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15746 if test "${ac_cv_header_libintl_h+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 fi
15749 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15750 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15751 else
15752   # Is the header compilable?
15753 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15754 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15757 #include "confdefs.h"
15758 $ac_includes_default
15759 #include <libintl.h>
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763   (eval $ac_compile) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); } &&
15767          { ac_try='test -s conftest.$ac_objext'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; }; then
15773   ac_header_compiler=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 ac_header_compiler=no
15778 fi
15779 rm -f conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15781 echo "${ECHO_T}$ac_header_compiler" >&6
15782
15783 # Is the header present?
15784 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15785 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 #include "confdefs.h"
15789 #include <libintl.h>
15790 _ACEOF
15791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15793   ac_status=$?
15794   egrep -v '^ *\+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } >/dev/null; then
15799   if test -s conftest.err; then
15800     ac_cpp_err=$ac_c_preproc_warn_flag
15801   else
15802     ac_cpp_err=
15803   fi
15804 else
15805   ac_cpp_err=yes
15806 fi
15807 if test -z "$ac_cpp_err"; then
15808   ac_header_preproc=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811   cat conftest.$ac_ext >&5
15812   ac_header_preproc=no
15813 fi
15814 rm -f conftest.err conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816 echo "${ECHO_T}$ac_header_preproc" >&6
15817
15818 # So?  What about this header?
15819 case $ac_header_compiler:$ac_header_preproc in
15820   yes:no )
15821     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15822 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15824 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15825   no:yes )
15826     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15827 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15829 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15832 esac
15833 echo "$as_me:$LINENO: checking for libintl.h" >&5
15834 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15835 if test "${ac_cv_header_libintl_h+set}" = set; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   ac_cv_header_libintl_h=$ac_header_preproc
15839 fi
15840 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15841 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15842
15843 fi
15844 if test $ac_cv_header_libintl_h = yes; then
15845   :
15846 else
15847   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15848 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15849    { (exit 1); exit 1; }; }
15850 fi
15851
15852
15853   for ac_prog in msgfmt
15854 do
15855   # Extract the first word of "$ac_prog", so it can be a program name with args.
15856 set dummy $ac_prog; ac_word=$2
15857 echo "$as_me:$LINENO: checking for $ac_word" >&5
15858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15859 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   if test -n "$MSGFMT"; then
15863   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15864 else
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 for as_dir in $PATH
15867 do
15868   IFS=$as_save_IFS
15869   test -z "$as_dir" && as_dir=.
15870   for ac_exec_ext in '' $ac_executable_extensions; do
15871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15872     ac_cv_prog_MSGFMT="$ac_prog"
15873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15874     break 2
15875   fi
15876 done
15877 done
15878
15879 fi
15880 fi
15881 MSGFMT=$ac_cv_prog_MSGFMT
15882 if test -n "$MSGFMT"; then
15883   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15884 echo "${ECHO_T}$MSGFMT" >&6
15885 else
15886   echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6
15888 fi
15889
15890   test -n "$MSGFMT" && break
15891 done
15892
15893   if test -z "$MSGFMT"; then
15894     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15895 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15896    { (exit 1); exit 1; }; }
15897   fi
15898   for ac_prog in msgmerge
15899 do
15900   # Extract the first word of "$ac_prog", so it can be a program name with args.
15901 set dummy $ac_prog; ac_word=$2
15902 echo "$as_me:$LINENO: checking for $ac_word" >&5
15903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15904 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   if test -n "$MSGMERGE"; then
15908   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15909 else
15910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911 for as_dir in $PATH
15912 do
15913   IFS=$as_save_IFS
15914   test -z "$as_dir" && as_dir=.
15915   for ac_exec_ext in '' $ac_executable_extensions; do
15916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15917     ac_cv_prog_MSGMERGE="$ac_prog"
15918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15919     break 2
15920   fi
15921 done
15922 done
15923
15924 fi
15925 fi
15926 MSGMERGE=$ac_cv_prog_MSGMERGE
15927 if test -n "$MSGMERGE"; then
15928   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15929 echo "${ECHO_T}$MSGMERGE" >&6
15930 else
15931   echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6
15933 fi
15934
15935   test -n "$MSGMERGE" && break
15936 done
15937
15938   for ac_prog in xgettext
15939 do
15940   # Extract the first word of "$ac_prog", so it can be a program name with args.
15941 set dummy $ac_prog; ac_word=$2
15942 echo "$as_me:$LINENO: checking for $ac_word" >&5
15943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15944 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15945   echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947   if test -n "$XGETTEXT"; then
15948   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15949 else
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15952 do
15953   IFS=$as_save_IFS
15954   test -z "$as_dir" && as_dir=.
15955   for ac_exec_ext in '' $ac_executable_extensions; do
15956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957     ac_cv_prog_XGETTEXT="$ac_prog"
15958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15959     break 2
15960   fi
15961 done
15962 done
15963
15964 fi
15965 fi
15966 XGETTEXT=$ac_cv_prog_XGETTEXT
15967 if test -n "$XGETTEXT"; then
15968   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15969 echo "${ECHO_T}$XGETTEXT" >&6
15970 else
15971   echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6
15973 fi
15974
15975   test -n "$XGETTEXT" && break
15976 done
15977
15978
15979   # Note: share/locale is always the default, independent of $datadir
15980   localedir='${prefix}/share/locale'
15981   if test x"$prefix" = x"NONE"; then
15982     exp_localedir="$ac_default_prefix/share/locale"
15983   else
15984     exp_localedir="$prefix/share/locale"
15985   fi
15986
15987
15988
15989 cat >>confdefs.h <<_ACEOF
15990 #define LOCALEDIR "$exp_localedir"
15991 _ACEOF
15992
15993
15994 fi
15995
15996 if test "$with_CXX" = yes; then
15997
15998
15999 ac_ext=cc
16000 ac_cpp='$CXXCPP $CPPFLAGS'
16001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16004
16005 if test "${ac_cv_header_string+set}" = set; then
16006   echo "$as_me:$LINENO: checking for string" >&5
16007 echo $ECHO_N "checking for string... $ECHO_C" >&6
16008 if test "${ac_cv_header_string+set}" = set; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 fi
16011 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16012 echo "${ECHO_T}$ac_cv_header_string" >&6
16013 else
16014   # Is the header compilable?
16015 echo "$as_me:$LINENO: checking string usability" >&5
16016 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16019 #include "confdefs.h"
16020 $ac_includes_default
16021 #include <string>
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025   (eval $ac_compile) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -s conftest.$ac_objext'
16030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031   (eval $ac_try) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16039 ac_header_compiler=no
16040 fi
16041 rm -f conftest.$ac_objext conftest.$ac_ext
16042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6
16044
16045 # Is the header present?
16046 echo "$as_me:$LINENO: checking string presence" >&5
16047 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 #include "confdefs.h"
16051 #include <string>
16052 _ACEOF
16053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16055   ac_status=$?
16056   egrep -v '^ *\+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } >/dev/null; then
16061   if test -s conftest.err; then
16062     ac_cpp_err=$ac_cxx_preproc_warn_flag
16063   else
16064     ac_cpp_err=
16065   fi
16066 else
16067   ac_cpp_err=yes
16068 fi
16069 if test -z "$ac_cpp_err"; then
16070   ac_header_preproc=yes
16071 else
16072   echo "$as_me: failed program was:" >&5
16073   cat conftest.$ac_ext >&5
16074   ac_header_preproc=no
16075 fi
16076 rm -f conftest.err conftest.$ac_ext
16077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16078 echo "${ECHO_T}$ac_header_preproc" >&6
16079
16080 # So?  What about this header?
16081 case $ac_header_compiler:$ac_header_preproc in
16082   yes:no )
16083     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16084 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16086 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16087   no:yes )
16088     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16089 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16091 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16093 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16094 esac
16095 echo "$as_me:$LINENO: checking for string" >&5
16096 echo $ECHO_N "checking for string... $ECHO_C" >&6
16097 if test "${ac_cv_header_string+set}" = set; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   ac_cv_header_string=$ac_header_preproc
16101 fi
16102 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16103 echo "${ECHO_T}$ac_cv_header_string" >&6
16104
16105 fi
16106 if test $ac_cv_header_string = yes; then
16107
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_CXX_STRING_HEADER 1
16110 _ACEOF
16111
16112 else
16113   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16114 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16115 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118   cat >conftest.$ac_ext <<_ACEOF
16119 #line $LINENO "configure"
16120 #include "confdefs.h"
16121 #include <stdio.h>
16122 #include <stdlib.h>
16123 #include <string.h>
16124
16125 #ifdef F77_DUMMY_MAIN
16126 #  ifdef __cplusplus
16127      extern "C"
16128 #  endif
16129    int F77_DUMMY_MAIN() { return 1; }
16130 #endif
16131 int
16132 main ()
16133 {
16134 string foo = "test"
16135   ;
16136   return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141   (eval $ac_compile) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); } &&
16145          { ac_try='test -s conftest.$ac_objext'
16146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147   (eval $ac_try) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151   pgac_cv_class_string_in_string_h=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16155 pgac_cv_class_string_in_string_h=no
16156 fi
16157 rm -f conftest.$ac_objext conftest.$ac_ext
16158 fi
16159 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16160 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16161
16162   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16163     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16164 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16165    { (exit 1); exit 1; }; }
16166   fi
16167
16168 fi
16169
16170
16171 ac_ext=c
16172 ac_cpp='$CPP $CPPFLAGS'
16173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16176
16177
16178 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16179 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16180 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183
16184 ac_ext=cc
16185 ac_cpp='$CXXCPP $CPPFLAGS'
16186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16189
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line $LINENO "configure"
16192 #include "confdefs.h"
16193 #include <stdio.h>
16194 #include <stdlib.h>
16195 #ifdef HAVE_CXX_STRING_HEADER
16196 #include <string>
16197 #endif
16198 using namespace std;
16199
16200 #ifdef F77_DUMMY_MAIN
16201 #  ifdef __cplusplus
16202      extern "C"
16203 #  endif
16204    int F77_DUMMY_MAIN() { return 1; }
16205 #endif
16206 int
16207 main ()
16208 {
16209
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216   (eval $ac_compile) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -s conftest.$ac_objext'
16221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222   (eval $ac_try) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   pgac_cv_cxx_namespace_std=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16230 pgac_cv_cxx_namespace_std=no
16231 fi
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16233 ac_ext=c
16234 ac_cpp='$CPP $CPPFLAGS'
16235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16238
16239 fi
16240 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16241 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16242
16243 if test $pgac_cv_cxx_namespace_std = yes ; then
16244
16245 cat >>confdefs.h <<\_ACEOF
16246 #define HAVE_NAMESPACE_STD 1
16247 _ACEOF
16248
16249 fi
16250 fi
16251
16252
16253 # Check for Tcl configuration script tclConfig.sh
16254 if test "$with_tcl" = yes; then
16255     for ac_prog in tclsh tcl
16256 do
16257   # Extract the first word of "$ac_prog", so it can be a program name with args.
16258 set dummy $ac_prog; ac_word=$2
16259 echo "$as_me:$LINENO: checking for $ac_word" >&5
16260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16261 if test "${ac_cv_path_TCLSH+set}" = set; then
16262   echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264   case $TCLSH in
16265   [\\/]* | ?:[\\/]*)
16266   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16267   ;;
16268   *)
16269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16271 do
16272   IFS=$as_save_IFS
16273   test -z "$as_dir" && as_dir=.
16274   for ac_exec_ext in '' $ac_executable_extensions; do
16275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16276     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16278     break 2
16279   fi
16280 done
16281 done
16282
16283   ;;
16284 esac
16285 fi
16286 TCLSH=$ac_cv_path_TCLSH
16287
16288 if test -n "$TCLSH"; then
16289   echo "$as_me:$LINENO: result: $TCLSH" >&5
16290 echo "${ECHO_T}$TCLSH" >&6
16291 else
16292   echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6
16294 fi
16295
16296   test -n "$TCLSH" && break
16297 done
16298
16299 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16300 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16301 # Let user override test
16302 if test -z "$TCL_CONFIG_SH"; then
16303     pgac_test_dirs="$with_tclconfig"
16304
16305     set X $pgac_test_dirs; shift
16306     if test $# -eq 0; then
16307         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16308 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16309    { (exit 1); exit 1; }; }
16310         set X `echo 'puts $auto_path' | $TCLSH`; shift
16311     fi
16312
16313     for pgac_dir do
16314         if test -r "$pgac_dir/tclConfig.sh"; then
16315             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16316             break
16317         fi
16318     done
16319 fi
16320
16321 if test -z "$TCL_CONFIG_SH"; then
16322     echo "$as_me:$LINENO: result: no" >&5
16323 echo "${ECHO_T}no" >&6
16324     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16325 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16326    { (exit 1); exit 1; }; }
16327 else
16328     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16329 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16330 fi
16331
16332
16333
16334 fi
16335
16336 # Check for Tk configuration script tkConfig.sh
16337 if test "$with_tk" = yes; then
16338     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16339 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16340 # Let user override test
16341 if test -z "$TK_CONFIG_SH"; then
16342     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16343
16344     set X $pgac_test_dirs; shift
16345     if test $# -eq 0; then
16346         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16347 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16348    { (exit 1); exit 1; }; }
16349         set X `echo 'puts $auto_path' | $TCLSH`; shift
16350     fi
16351
16352     for pgac_dir do
16353         if test -r "$pgac_dir/tkConfig.sh"; then
16354             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16355             break
16356         fi
16357     done
16358 fi
16359
16360 if test -z "$TK_CONFIG_SH"; then
16361     echo "$as_me:$LINENO: result: no" >&5
16362 echo "${ECHO_T}no" >&6
16363     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16364 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16365    { (exit 1); exit 1; }; }
16366 else
16367     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16368 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16369 fi
16370
16371
16372
16373 fi
16374
16375
16376 #
16377 # Check for DocBook and tools
16378 #
16379 for ac_prog in onsgmls nsgmls
16380 do
16381   # Extract the first word of "$ac_prog", so it can be a program name with args.
16382 set dummy $ac_prog; ac_word=$2
16383 echo "$as_me:$LINENO: checking for $ac_word" >&5
16384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16385 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   if test -n "$NSGMLS"; then
16389   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16390 else
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16393 do
16394   IFS=$as_save_IFS
16395   test -z "$as_dir" && as_dir=.
16396   for ac_exec_ext in '' $ac_executable_extensions; do
16397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398     ac_cv_prog_NSGMLS="$ac_prog"
16399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16400     break 2
16401   fi
16402 done
16403 done
16404
16405 fi
16406 fi
16407 NSGMLS=$ac_cv_prog_NSGMLS
16408 if test -n "$NSGMLS"; then
16409   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16410 echo "${ECHO_T}$NSGMLS" >&6
16411 else
16412   echo "$as_me:$LINENO: result: no" >&5
16413 echo "${ECHO_T}no" >&6
16414 fi
16415
16416   test -n "$NSGMLS" && break
16417 done
16418
16419 for ac_prog in openjade jade
16420 do
16421   # Extract the first word of "$ac_prog", so it can be a program name with args.
16422 set dummy $ac_prog; ac_word=$2
16423 echo "$as_me:$LINENO: checking for $ac_word" >&5
16424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16425 if test "${ac_cv_prog_JADE+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   if test -n "$JADE"; then
16429   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16430 else
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16433 do
16434   IFS=$as_save_IFS
16435   test -z "$as_dir" && as_dir=.
16436   for ac_exec_ext in '' $ac_executable_extensions; do
16437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438     ac_cv_prog_JADE="$ac_prog"
16439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16440     break 2
16441   fi
16442 done
16443 done
16444
16445 fi
16446 fi
16447 JADE=$ac_cv_prog_JADE
16448 if test -n "$JADE"; then
16449   echo "$as_me:$LINENO: result: $JADE" >&5
16450 echo "${ECHO_T}$JADE" >&6
16451 else
16452   echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6
16454 fi
16455
16456   test -n "$JADE" && break
16457 done
16458
16459
16460 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16461 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16462 if test "${pgac_cv_check_docbook+set}" = set; then
16463   echo $ECHO_N "(cached) $ECHO_C" >&6
16464 else
16465   cat >conftest.sgml <<EOF
16466 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16467 <book>
16468  <title>test</title>
16469  <chapter>
16470   <title>random</title>
16471    <sect1>
16472     <title>testsect</title>
16473     <para>text</para>
16474   </sect1>
16475  </chapter>
16476 </book>
16477 EOF
16478
16479 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16480 if test $? -eq 0; then
16481   pgac_cv_check_docbook=yes
16482 else
16483   pgac_cv_check_docbook=no
16484 fi
16485 rm -f conftest.sgml
16486 fi
16487 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16488 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16489
16490 have_docbook=$pgac_cv_check_docbook
16491
16492
16493 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16494 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16495 if test "${pgac_cv_path_stylesheets+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   if test -n "$DOCBOOKSTYLE"; then
16499   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16500 else
16501   for pgac_prefix in /usr /usr/local /opt; do
16502     for pgac_infix in share lib; do
16503       for pgac_postfix in \
16504         sgml/stylesheets/nwalsh-modular \
16505         sgml/stylesheets/docbook \
16506         sgml/docbook/dsssl/modular \
16507         sgml/docbook/dsssl-stylesheets
16508       do
16509         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16510         if test -r "$pgac_candidate/html/docbook.dsl" \
16511            && test -r "$pgac_candidate/print/docbook.dsl"
16512         then
16513           pgac_cv_path_stylesheets=$pgac_candidate
16514           break 3
16515         fi
16516       done
16517     done
16518   done
16519 fi
16520 fi
16521
16522 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16523
16524 if test -n "$DOCBOOKSTYLE"; then
16525   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16526 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16527 else
16528   echo "$as_me:$LINENO: result: no" >&5
16529 echo "${ECHO_T}no" >&6
16530 fi
16531 if test -n "$DOCBOOKSTYLE"; then
16532   for ac_prog in collateindex.pl
16533 do
16534   # Extract the first word of "$ac_prog", so it can be a program name with args.
16535 set dummy $ac_prog; ac_word=$2
16536 echo "$as_me:$LINENO: checking for $ac_word" >&5
16537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16538 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16539   echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541   case $COLLATEINDEX in
16542   [\\/]* | ?:[\\/]*)
16543   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16544   ;;
16545   *)
16546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $DOCBOOKSTYLE/bin $PATH
16548 do
16549   IFS=$as_save_IFS
16550   test -z "$as_dir" && as_dir=.
16551   for ac_exec_ext in '' $ac_executable_extensions; do
16552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16553     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16555     break 2
16556   fi
16557 done
16558 done
16559
16560   ;;
16561 esac
16562 fi
16563 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16564
16565 if test -n "$COLLATEINDEX"; then
16566   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16567 echo "${ECHO_T}$COLLATEINDEX" >&6
16568 else
16569   echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6
16571 fi
16572
16573   test -n "$COLLATEINDEX" && break
16574 done
16575
16576 else
16577   for ac_prog in collateindex.pl
16578 do
16579   # Extract the first word of "$ac_prog", so it can be a program name with args.
16580 set dummy $ac_prog; ac_word=$2
16581 echo "$as_me:$LINENO: checking for $ac_word" >&5
16582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16583 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   case $COLLATEINDEX in
16587   [\\/]* | ?:[\\/]*)
16588   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16589   ;;
16590   *)
16591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16593 do
16594   IFS=$as_save_IFS
16595   test -z "$as_dir" && as_dir=.
16596   for ac_exec_ext in '' $ac_executable_extensions; do
16597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16600     break 2
16601   fi
16602 done
16603 done
16604
16605   ;;
16606 esac
16607 fi
16608 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16609
16610 if test -n "$COLLATEINDEX"; then
16611   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16612 echo "${ECHO_T}$COLLATEINDEX" >&6
16613 else
16614   echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6
16616 fi
16617
16618   test -n "$COLLATEINDEX" && break
16619 done
16620
16621 fi
16622 for ac_prog in sgmlspl
16623 do
16624   # Extract the first word of "$ac_prog", so it can be a program name with args.
16625 set dummy $ac_prog; ac_word=$2
16626 echo "$as_me:$LINENO: checking for $ac_word" >&5
16627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16628 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   if test -n "$SGMLSPL"; then
16632   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16633 else
16634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16635 for as_dir in $PATH
16636 do
16637   IFS=$as_save_IFS
16638   test -z "$as_dir" && as_dir=.
16639   for ac_exec_ext in '' $ac_executable_extensions; do
16640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16641     ac_cv_prog_SGMLSPL="$ac_prog"
16642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16643     break 2
16644   fi
16645 done
16646 done
16647
16648 fi
16649 fi
16650 SGMLSPL=$ac_cv_prog_SGMLSPL
16651 if test -n "$SGMLSPL"; then
16652   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16653 echo "${ECHO_T}$SGMLSPL" >&6
16654 else
16655   echo "$as_me:$LINENO: result: no" >&5
16656 echo "${ECHO_T}no" >&6
16657 fi
16658
16659   test -n "$SGMLSPL" && break
16660 done
16661
16662
16663
16664 # prepare build tree if outside source tree
16665 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16666 # Note 2: /bin/pwd might be better than shell's built-in at getting
16667 #         a symlink-free name.
16668 if test "$no_create" != yes; then
16669   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16670     :
16671   else
16672     vpath_build=yes
16673
16674     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16675     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16676     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16677       || { { echo "$as_me:$LINENO: error: failed" >&5
16678 echo "$as_me: error: failed" >&2;}
16679    { (exit 1); exit 1; }; }
16680     echo "$as_me:$LINENO: result: done" >&5
16681 echo "${ECHO_T}done" >&6
16682   fi
16683 fi
16684
16685
16686 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16687
16688
16689 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c 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}"
16690
16691
16692 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16693
16694
16695 cat >confcache <<\_ACEOF
16696 # This file is a shell script that caches the results of configure
16697 # tests run on this system so they can be shared between configure
16698 # scripts and configure runs, see configure's option --config-cache.
16699 # It is not useful on other systems.  If it contains results you don't
16700 # want to keep, you may remove or edit it.
16701 #
16702 # config.status only pays attention to the cache file if you give it
16703 # the --recheck option to rerun configure.
16704 #
16705 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16707 # following values.
16708
16709 _ACEOF
16710
16711 # The following way of writing the cache mishandles newlines in values,
16712 # but we know of no workaround that is simple, portable, and efficient.
16713 # So, don't put newlines in cache variables' values.
16714 # Ultrix sh set writes to stderr and can't be redirected directly,
16715 # and sets the high bit in the cache file unless we assign to the vars.
16716 {
16717   (set) 2>&1 |
16718     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16719     *ac_space=\ *)
16720       # `set' does not quote correctly, so add quotes (double-quote
16721       # substitution turns \\\\ into \\, and sed turns \\ into \).
16722       sed -n \
16723         "s/'/'\\\\''/g;
16724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16725       ;;
16726     *)
16727       # `set' quotes correctly as required by POSIX, so do not add quotes.
16728       sed -n \
16729         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16730       ;;
16731     esac;
16732 } |
16733   sed '
16734      t clear
16735      : clear
16736      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16737      t end
16738      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16739      : end' >>confcache
16740 if cmp -s $cache_file confcache; then :; else
16741   if test -w $cache_file; then
16742     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16743     cat confcache >$cache_file
16744   else
16745     echo "not updating unwritable cache $cache_file"
16746   fi
16747 fi
16748 rm -f confcache
16749
16750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16751 # Let make expand exec_prefix.
16752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16753
16754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16756 # trailing colons and then remove the whole line if VPATH becomes empty
16757 # (actually we leave an empty line to preserve line numbers).
16758 if test "x$srcdir" = x.; then
16759   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16760 s/:*\$(srcdir):*/:/;
16761 s/:*\${srcdir}:*/:/;
16762 s/:*@srcdir@:*/:/;
16763 s/^\([^=]*=[    ]*\):*/\1/;
16764 s/:*$//;
16765 s/^[^=]*=[      ]*$//;
16766 }'
16767 fi
16768
16769 DEFS=-DHAVE_CONFIG_H
16770
16771
16772 : ${CONFIG_STATUS=./config.status}
16773 ac_clean_files_save=$ac_clean_files
16774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16777 cat >$CONFIG_STATUS <<_ACEOF
16778 #! $SHELL
16779 # Generated by $as_me.
16780 # Run this file to recreate the current configuration.
16781 # Compiler output produced by configure, useful for debugging
16782 # configure, is in config.log if it exists.
16783
16784 debug=false
16785 SHELL=\${CONFIG_SHELL-$SHELL}
16786 _ACEOF
16787
16788 cat >>$CONFIG_STATUS <<\_ACEOF
16789
16790 ## --------------------- ##
16791 ## M4sh Initialization.  ##
16792 ## --------------------- ##
16793
16794 # Be Bourne compatible
16795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16796   emulate sh
16797   NULLCMD=:
16798 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16799   set -o posix
16800 fi
16801
16802 # NLS nuisances.
16803 # Support unset when possible.
16804 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16805   as_unset=unset
16806 else
16807   as_unset=false
16808 fi
16809
16810 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16811     { $as_unset LANG || test "${LANG+set}" != set; } ||
16812       { LANG=C; export LANG; }
16813 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16814     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16815       { LC_ALL=C; export LC_ALL; }
16816 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16817     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16818       { LC_TIME=C; export LC_TIME; }
16819 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16820     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16821       { LC_CTYPE=C; export LC_CTYPE; }
16822 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16823     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16824       { LANGUAGE=C; export LANGUAGE; }
16825 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16826     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16827       { LC_COLLATE=C; export LC_COLLATE; }
16828 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16829     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16830       { LC_NUMERIC=C; export LC_NUMERIC; }
16831 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16832     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16833       { LC_MESSAGES=C; export LC_MESSAGES; }
16834
16835
16836 # Name of the executable.
16837 as_me=`(basename "$0") 2>/dev/null ||
16838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16839          X"$0" : 'X\(//\)$' \| \
16840          X"$0" : 'X\(/\)$' \| \
16841          .     : '\(.\)' 2>/dev/null ||
16842 echo X/"$0" |
16843     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16844           /^X\/\(\/\/\)$/{ s//\1/; q; }
16845           /^X\/\(\/\).*/{ s//\1/; q; }
16846           s/.*/./; q'`
16847
16848 # PATH needs CR, and LINENO needs CR and PATH.
16849 # Avoid depending upon Character Ranges.
16850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16853 as_cr_digits='0123456789'
16854 as_cr_alnum=$as_cr_Letters$as_cr_digits
16855
16856 # The user is always right.
16857 if test "${PATH_SEPARATOR+set}" != set; then
16858   echo "#! /bin/sh" >conftest.sh
16859   echo  "exit 0"   >>conftest.sh
16860   chmod +x conftest.sh
16861   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16862     PATH_SEPARATOR=';'
16863   else
16864     PATH_SEPARATOR=:
16865   fi
16866   rm -f conftest.sh
16867 fi
16868
16869
16870   as_lineno_1=$LINENO
16871   as_lineno_2=$LINENO
16872   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16873   test "x$as_lineno_1" != "x$as_lineno_2" &&
16874   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16875   # Find who we are.  Look in the path if we contain no path at all
16876   # relative or not.
16877   case $0 in
16878     *[\\/]* ) as_myself=$0 ;;
16879     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16880 for as_dir in $PATH
16881 do
16882   IFS=$as_save_IFS
16883   test -z "$as_dir" && as_dir=.
16884   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16885 done
16886
16887        ;;
16888   esac
16889   # We did not find ourselves, most probably we were run as `sh COMMAND'
16890   # in which case we are not to be found in the path.
16891   if test "x$as_myself" = x; then
16892     as_myself=$0
16893   fi
16894   if test ! -f "$as_myself"; then
16895     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16896 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16897    { (exit 1); exit 1; }; }
16898   fi
16899   case $CONFIG_SHELL in
16900   '')
16901     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16903 do
16904   IFS=$as_save_IFS
16905   test -z "$as_dir" && as_dir=.
16906   for as_base in sh bash ksh sh5; do
16907          case $as_dir in
16908          /*)
16909            if ("$as_dir/$as_base" -c '
16910   as_lineno_1=$LINENO
16911   as_lineno_2=$LINENO
16912   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16913   test "x$as_lineno_1" != "x$as_lineno_2" &&
16914   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16915              CONFIG_SHELL=$as_dir/$as_base
16916              export CONFIG_SHELL
16917              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16918            fi;;
16919          esac
16920        done
16921 done
16922 ;;
16923   esac
16924
16925   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16926   # uniformly replaced by the line number.  The first 'sed' inserts a
16927   # line-number line before each line; the second 'sed' does the real
16928   # work.  The second script uses 'N' to pair each line-number line
16929   # with the numbered line, and appends trailing '-' during
16930   # substitution so that $LINENO is not a special case at line end.
16931   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16932   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16933   sed '=' <$as_myself |
16934     sed '
16935       N
16936       s,$,-,
16937       : loop
16938       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16939       t loop
16940       s,-$,,
16941       s,^['$as_cr_digits']*\n,,
16942     ' >$as_me.lineno &&
16943   chmod +x $as_me.lineno ||
16944     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16945 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16946    { (exit 1); exit 1; }; }
16947
16948   # Don't try to exec as it changes $[0], causing all sort of problems
16949   # (the dirname of $[0] is not the place where we might find the
16950   # original and so on.  Autoconf is especially sensible to this).
16951   . ./$as_me.lineno
16952   # Exit status is that of the last command.
16953   exit
16954 }
16955
16956
16957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16958   *c*,-n*) ECHO_N= ECHO_C='
16959 ' ECHO_T='      ' ;;
16960   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16961   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16962 esac
16963
16964 if expr a : '\(a\)' >/dev/null 2>&1; then
16965   as_expr=expr
16966 else
16967   as_expr=false
16968 fi
16969
16970 rm -f conf$$ conf$$.exe conf$$.file
16971 echo >conf$$.file
16972 if ln -s conf$$.file conf$$ 2>/dev/null; then
16973   # We could just check for DJGPP; but this test a) works b) is more generic
16974   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16975   if test -f conf$$.exe; then
16976     # Don't use ln at all; we don't have any links
16977     as_ln_s='cp -p'
16978   else
16979     as_ln_s='ln -s'
16980   fi
16981 elif ln conf$$.file conf$$ 2>/dev/null; then
16982   as_ln_s=ln
16983 else
16984   as_ln_s='cp -p'
16985 fi
16986 rm -f conf$$ conf$$.exe conf$$.file
16987
16988 as_executable_p="test -f"
16989
16990 # Sed expression to map a string onto a valid CPP name.
16991 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16992
16993 # Sed expression to map a string onto a valid variable name.
16994 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16995
16996
16997 # IFS
16998 # We need space, tab and new line, in precisely that order.
16999 as_nl='
17000 '
17001 IFS="   $as_nl"
17002
17003 # CDPATH.
17004 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17005
17006 exec 6>&1
17007
17008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17009 # report actual input values of CONFIG_FILES etc. instead of their
17010 # values after options handling.  Logging --version etc. is OK.
17011 exec 5>>config.log
17012 {
17013   echo
17014   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17015 ## Running $as_me. ##
17016 _ASBOX
17017 } >&5
17018 cat >&5 <<_CSEOF
17019
17020 This file was extended by PostgreSQL $as_me 7.3devel, which was
17021 generated by GNU Autoconf 2.53.  Invocation command line was
17022
17023   CONFIG_FILES    = $CONFIG_FILES
17024   CONFIG_HEADERS  = $CONFIG_HEADERS
17025   CONFIG_LINKS    = $CONFIG_LINKS
17026   CONFIG_COMMANDS = $CONFIG_COMMANDS
17027   $ $0 $@
17028
17029 _CSEOF
17030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17031 echo >&5
17032 _ACEOF
17033
17034 # Files that config.status was made for.
17035 if test -n "$ac_config_files"; then
17036   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17037 fi
17038
17039 if test -n "$ac_config_headers"; then
17040   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17041 fi
17042
17043 if test -n "$ac_config_links"; then
17044   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17045 fi
17046
17047 if test -n "$ac_config_commands"; then
17048   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17049 fi
17050
17051 cat >>$CONFIG_STATUS <<\_ACEOF
17052
17053 ac_cs_usage="\
17054 \`$as_me' instantiates files from templates according to the
17055 current configuration.
17056
17057 Usage: $0 [OPTIONS] [FILE]...
17058
17059   -h, --help       print this help, then exit
17060   -V, --version    print version number, then exit
17061   -d, --debug      don't remove temporary files
17062       --recheck    update $as_me by reconfiguring in the same conditions
17063   --file=FILE[:TEMPLATE]
17064                    instantiate the configuration file FILE
17065   --header=FILE[:TEMPLATE]
17066                    instantiate the configuration header FILE
17067
17068 Configuration files:
17069 $config_files
17070
17071 Configuration headers:
17072 $config_headers
17073
17074 Configuration links:
17075 $config_links
17076
17077 Report bugs to <bug-autoconf@gnu.org>."
17078 _ACEOF
17079
17080 cat >>$CONFIG_STATUS <<_ACEOF
17081 ac_cs_version="\\
17082 PostgreSQL config.status 7.3devel
17083 configured by $0, generated by GNU Autoconf 2.53,
17084   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17085
17086 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17087 Free Software Foundation, Inc.
17088 This config.status script is free software; the Free Software Foundation
17089 gives unlimited permission to copy, distribute and modify it."
17090 srcdir=$srcdir
17091 _ACEOF
17092
17093 cat >>$CONFIG_STATUS <<\_ACEOF
17094 # If no file are specified by the user, then we need to provide default
17095 # value.  By we need to know if files were specified by the user.
17096 ac_need_defaults=:
17097 while test $# != 0
17098 do
17099   case $1 in
17100   --*=*)
17101     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17102     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17103     shift
17104     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17105     shift
17106     ;;
17107   -*);;
17108   *) # This is not an option, so the user has probably given explicit
17109      # arguments.
17110      ac_need_defaults=false;;
17111   esac
17112
17113   case $1 in
17114   # Handling of the options.
17115 _ACEOF
17116 cat >>$CONFIG_STATUS <<_ACEOF
17117   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17118     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17119     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17120 _ACEOF
17121 cat >>$CONFIG_STATUS <<\_ACEOF
17122   --version | --vers* | -V )
17123     echo "$ac_cs_version"; exit 0 ;;
17124   --he | --h)
17125     # Conflict between --help and --header
17126     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17127 Try \`$0 --help' for more information." >&5
17128 echo "$as_me: error: ambiguous option: $1
17129 Try \`$0 --help' for more information." >&2;}
17130    { (exit 1); exit 1; }; };;
17131   --help | --hel | -h )
17132     echo "$ac_cs_usage"; exit 0 ;;
17133   --debug | --d* | -d )
17134     debug=: ;;
17135   --file | --fil | --fi | --f )
17136     shift
17137     CONFIG_FILES="$CONFIG_FILES $1"
17138     ac_need_defaults=false;;
17139   --header | --heade | --head | --hea )
17140     shift
17141     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17142     ac_need_defaults=false;;
17143
17144   # This is an error.
17145   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17146 Try \`$0 --help' for more information." >&5
17147 echo "$as_me: error: unrecognized option: $1
17148 Try \`$0 --help' for more information." >&2;}
17149    { (exit 1); exit 1; }; } ;;
17150
17151   *) ac_config_targets="$ac_config_targets $1" ;;
17152
17153   esac
17154   shift
17155 done
17156
17157 _ACEOF
17158
17159
17160
17161
17162
17163 cat >>$CONFIG_STATUS <<\_ACEOF
17164 for ac_config_target in $ac_config_targets
17165 do
17166   case "$ac_config_target" in
17167   # Handling of arguments.
17168   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17169   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17170   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17171   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17172   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17173   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17174   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17175   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17176   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17177 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17178    { (exit 1); exit 1; }; };;
17179   esac
17180 done
17181
17182 # If the user did not use the arguments to specify the items to instantiate,
17183 # then the envvar interface is used.  Set only those that are not.
17184 # We use the long form for the default assignment because of an extremely
17185 # bizarre bug on SunOS 4.1.3.
17186 if $ac_need_defaults; then
17187   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17188   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17189   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17190 fi
17191
17192 # Create a temporary directory, and hook for its removal unless debugging.
17193 $debug ||
17194 {
17195   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17196   trap '{ (exit 1); exit 1; }' 1 2 13 15
17197 }
17198
17199 # Create a (secure) tmp directory for tmp files.
17200 : ${TMPDIR=/tmp}
17201 {
17202   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17203   test -n "$tmp" && test -d "$tmp"
17204 }  ||
17205 {
17206   tmp=$TMPDIR/cs$$-$RANDOM
17207   (umask 077 && mkdir $tmp)
17208 } ||
17209 {
17210    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17211    { (exit 1); exit 1; }
17212 }
17213
17214 _ACEOF
17215
17216 cat >>$CONFIG_STATUS <<_ACEOF
17217
17218 #
17219 # CONFIG_FILES section.
17220 #
17221
17222 # No need to generate the scripts if there are no CONFIG_FILES.
17223 # This happens for instance when ./config.status config.h
17224 if test -n "\$CONFIG_FILES"; then
17225   # Protect against being on the right side of a sed subst in config.status.
17226   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17227    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17228 s,@SHELL@,$SHELL,;t t
17229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17230 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17231 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17232 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17233 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17234 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17235 s,@exec_prefix@,$exec_prefix,;t t
17236 s,@prefix@,$prefix,;t t
17237 s,@program_transform_name@,$program_transform_name,;t t
17238 s,@bindir@,$bindir,;t t
17239 s,@sbindir@,$sbindir,;t t
17240 s,@libexecdir@,$libexecdir,;t t
17241 s,@datadir@,$datadir,;t t
17242 s,@sysconfdir@,$sysconfdir,;t t
17243 s,@sharedstatedir@,$sharedstatedir,;t t
17244 s,@localstatedir@,$localstatedir,;t t
17245 s,@libdir@,$libdir,;t t
17246 s,@includedir@,$includedir,;t t
17247 s,@oldincludedir@,$oldincludedir,;t t
17248 s,@infodir@,$infodir,;t t
17249 s,@mandir@,$mandir,;t t
17250 s,@build_alias@,$build_alias,;t t
17251 s,@host_alias@,$host_alias,;t t
17252 s,@target_alias@,$target_alias,;t t
17253 s,@DEFS@,$DEFS,;t t
17254 s,@ECHO_C@,$ECHO_C,;t t
17255 s,@ECHO_N@,$ECHO_N,;t t
17256 s,@ECHO_T@,$ECHO_T,;t t
17257 s,@LIBS@,$LIBS,;t t
17258 s,@docdir@,$docdir,;t t
17259 s,@configure_args@,$configure_args,;t t
17260 s,@build@,$build,;t t
17261 s,@build_cpu@,$build_cpu,;t t
17262 s,@build_vendor@,$build_vendor,;t t
17263 s,@build_os@,$build_os,;t t
17264 s,@host@,$host,;t t
17265 s,@host_cpu@,$host_cpu,;t t
17266 s,@host_vendor@,$host_vendor,;t t
17267 s,@host_os@,$host_os,;t t
17268 s,@PORTNAME@,$PORTNAME,;t t
17269 s,@TAS@,$TAS,;t t
17270 s,@MULTIBYTE@,$MULTIBYTE,;t t
17271 s,@enable_nls@,$enable_nls,;t t
17272 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17273 s,@default_port@,$default_port,;t t
17274 s,@enable_shared@,$enable_shared,;t t
17275 s,@enable_rpath@,$enable_rpath,;t t
17276 s,@enable_debug@,$enable_debug,;t t
17277 s,@CC@,$CC,;t t
17278 s,@CFLAGS@,$CFLAGS,;t t
17279 s,@LDFLAGS@,$LDFLAGS,;t t
17280 s,@CPPFLAGS@,$CPPFLAGS,;t t
17281 s,@ac_ct_CC@,$ac_ct_CC,;t t
17282 s,@EXEEXT@,$EXEEXT,;t t
17283 s,@OBJEXT@,$OBJEXT,;t t
17284 s,@CPP@,$CPP,;t t
17285 s,@GCC@,$GCC,;t t
17286 s,@autodepend@,$autodepend,;t t
17287 s,@INCLUDES@,$INCLUDES,;t t
17288 s,@with_tcl@,$with_tcl,;t t
17289 s,@with_tk@,$with_tk,;t t
17290 s,@with_perl@,$with_perl,;t t
17291 s,@with_python@,$with_python,;t t
17292 s,@ANT@,$ANT,;t t
17293 s,@with_java@,$with_java,;t t
17294 s,@with_krb4@,$with_krb4,;t t
17295 s,@with_krb5@,$with_krb5,;t t
17296 s,@krb_srvtab@,$krb_srvtab,;t t
17297 s,@with_pam@,$with_pam,;t t
17298 s,@with_openssl@,$with_openssl,;t t
17299 s,@enable_odbc@,$enable_odbc,;t t
17300 s,@with_unixodbc@,$with_unixodbc,;t t
17301 s,@with_iodbc@,$with_iodbc,;t t
17302 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17303 s,@ELF_SYS@,$ELF_SYS,;t t
17304 s,@CXX@,$CXX,;t t
17305 s,@CXXFLAGS@,$CXXFLAGS,;t t
17306 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17307 s,@CXXCPP@,$CXXCPP,;t t
17308 s,@with_CXX@,$with_CXX,;t t
17309 s,@GXX@,$GXX,;t t
17310 s,@AWK@,$AWK,;t t
17311 s,@FLEX@,$FLEX,;t t
17312 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17313 s,@LN_S@,$LN_S,;t t
17314 s,@LD@,$LD,;t t
17315 s,@with_gnu_ld@,$with_gnu_ld,;t t
17316 s,@ld_R_works@,$ld_R_works,;t t
17317 s,@RANLIB@,$RANLIB,;t t
17318 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17319 s,@LORDER@,$LORDER,;t t
17320 s,@TAR@,$TAR,;t t
17321 s,@STRIP@,$STRIP,;t t
17322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17323 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17324 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17325 s,@YACC@,$YACC,;t t
17326 s,@YFLAGS@,$YFLAGS,;t t
17327 s,@WISH@,$WISH,;t t
17328 s,@PERL@,$PERL,;t t
17329 s,@perl_installsitearch@,$perl_installsitearch,;t t
17330 s,@perl_installsitelib@,$perl_installsitelib,;t t
17331 s,@perl_installman3dir@,$perl_installman3dir,;t t
17332 s,@PYTHON@,$PYTHON,;t t
17333 s,@python_version@,$python_version,;t t
17334 s,@python_prefix@,$python_prefix,;t t
17335 s,@python_execprefix@,$python_execprefix,;t t
17336 s,@python_configdir@,$python_configdir,;t t
17337 s,@python_moduledir@,$python_moduledir,;t t
17338 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17339 s,@python_includespec@,$python_includespec,;t t
17340 s,@python_libspec@,$python_libspec,;t t
17341 s,@MEMCMP@,$MEMCMP,;t t
17342 s,@SNPRINTF@,$SNPRINTF,;t t
17343 s,@ISINF@,$ISINF,;t t
17344 s,@GETRUSAGE@,$GETRUSAGE,;t t
17345 s,@SRANDOM@,$SRANDOM,;t t
17346 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17347 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17348 s,@INET_ATON@,$INET_ATON,;t t
17349 s,@STRERROR@,$STRERROR,;t t
17350 s,@STRDUP@,$STRDUP,;t t
17351 s,@STRTOL@,$STRTOL,;t t
17352 s,@STRTOUL@,$STRTOUL,;t t
17353 s,@STRCASECMP@,$STRCASECMP,;t t
17354 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17355 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17356 s,@MSGFMT@,$MSGFMT,;t t
17357 s,@MSGMERGE@,$MSGMERGE,;t t
17358 s,@XGETTEXT@,$XGETTEXT,;t t
17359 s,@localedir@,$localedir,;t t
17360 s,@TCLSH@,$TCLSH,;t t
17361 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17362 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17363 s,@NSGMLS@,$NSGMLS,;t t
17364 s,@JADE@,$JADE,;t t
17365 s,@have_docbook@,$have_docbook,;t t
17366 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17367 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17368 s,@SGMLSPL@,$SGMLSPL,;t t
17369 s,@vpath_build@,$vpath_build,;t t
17370 CEOF
17371
17372 _ACEOF
17373
17374   cat >>$CONFIG_STATUS <<\_ACEOF
17375   # Split the substitutions into bite-sized pieces for seds with
17376   # small command number limits, like on Digital OSF/1 and HP-UX.
17377   ac_max_sed_lines=48
17378   ac_sed_frag=1 # Number of current file.
17379   ac_beg=1 # First line for current file.
17380   ac_end=$ac_max_sed_lines # Line after last line for current file.
17381   ac_more_lines=:
17382   ac_sed_cmds=
17383   while $ac_more_lines; do
17384     if test $ac_beg -gt 1; then
17385       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17386     else
17387       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17388     fi
17389     if test ! -s $tmp/subs.frag; then
17390       ac_more_lines=false
17391     else
17392       # The purpose of the label and of the branching condition is to
17393       # speed up the sed processing (if there are no `@' at all, there
17394       # is no need to browse any of the substitutions).
17395       # These are the two extra sed commands mentioned above.
17396       (echo ':t
17397   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17398       if test -z "$ac_sed_cmds"; then
17399         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17400       else
17401         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17402       fi
17403       ac_sed_frag=`expr $ac_sed_frag + 1`
17404       ac_beg=$ac_end
17405       ac_end=`expr $ac_end + $ac_max_sed_lines`
17406     fi
17407   done
17408   if test -z "$ac_sed_cmds"; then
17409     ac_sed_cmds=cat
17410   fi
17411 fi # test -n "$CONFIG_FILES"
17412
17413 _ACEOF
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17417   case $ac_file in
17418   - | *:- | *:-:* ) # input from stdin
17419         cat >$tmp/stdin
17420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17424   * )   ac_file_in=$ac_file.in ;;
17425   esac
17426
17427   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17428   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17430          X"$ac_file" : 'X\(//\)[^/]' \| \
17431          X"$ac_file" : 'X\(//\)$' \| \
17432          X"$ac_file" : 'X\(/\)' \| \
17433          .     : '\(.\)' 2>/dev/null ||
17434 echo X"$ac_file" |
17435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17437           /^X\(\/\/\)$/{ s//\1/; q; }
17438           /^X\(\/\).*/{ s//\1/; q; }
17439           s/.*/./; q'`
17440   { case "$ac_dir" in
17441   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17442   *)                      as_incr_dir=.;;
17443 esac
17444 as_dummy="$ac_dir"
17445 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17446   case $as_mkdir_dir in
17447     # Skip DOS drivespec
17448     ?:) as_incr_dir=$as_mkdir_dir ;;
17449     *)
17450       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17451       test -d "$as_incr_dir" ||
17452         mkdir "$as_incr_dir" ||
17453         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17454 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17455    { (exit 1); exit 1; }; }
17456     ;;
17457   esac
17458 done; }
17459
17460   ac_builddir=.
17461
17462 if test "$ac_dir" != .; then
17463   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17464   # A "../" for each directory in $ac_dir_suffix.
17465   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17466 else
17467   ac_dir_suffix= ac_top_builddir=
17468 fi
17469
17470 case $srcdir in
17471   .)  # No --srcdir option.  We are building in place.
17472     ac_srcdir=.
17473     if test -z "$ac_top_builddir"; then
17474        ac_top_srcdir=.
17475     else
17476        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17477     fi ;;
17478   [\\/]* | ?:[\\/]* )  # Absolute path.
17479     ac_srcdir=$srcdir$ac_dir_suffix;
17480     ac_top_srcdir=$srcdir ;;
17481   *) # Relative path.
17482     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17483     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17484 esac
17485 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17486 # absolute.
17487 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17488 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17489 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17490 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17491
17492
17493
17494   if test x"$ac_file" != x-; then
17495     { echo "$as_me:$LINENO: creating $ac_file" >&5
17496 echo "$as_me: creating $ac_file" >&6;}
17497     rm -f "$ac_file"
17498   fi
17499   # Let's still pretend it is `configure' which instantiates (i.e., don't
17500   # use $as_me), people would be surprised to read:
17501   #    /* config.h.  Generated by config.status.  */
17502   if test x"$ac_file" = x-; then
17503     configure_input=
17504   else
17505     configure_input="$ac_file.  "
17506   fi
17507   configure_input=$configure_input"Generated from `echo $ac_file_in |
17508                                      sed 's,.*/,,'` by configure."
17509
17510   # First look for the input files in the build tree, otherwise in the
17511   # src tree.
17512   ac_file_inputs=`IFS=:
17513     for f in $ac_file_in; do
17514       case $f in
17515       -) echo $tmp/stdin ;;
17516       [\\/$]*)
17517          # Absolute (can't be DOS-style, as IFS=:)
17518          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17519 echo "$as_me: error: cannot find input file: $f" >&2;}
17520    { (exit 1); exit 1; }; }
17521          echo $f;;
17522       *) # Relative
17523          if test -f "$f"; then
17524            # Build tree
17525            echo $f
17526          elif test -f "$srcdir/$f"; then
17527            # Source tree
17528            echo $srcdir/$f
17529          else
17530            # /dev/null tree
17531            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17532 echo "$as_me: error: cannot find input file: $f" >&2;}
17533    { (exit 1); exit 1; }; }
17534          fi;;
17535       esac
17536     done` || { (exit 1); exit 1; }
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<_ACEOF
17539   sed "$ac_vpsub
17540 $extrasub
17541 _ACEOF
17542 cat >>$CONFIG_STATUS <<\_ACEOF
17543 :t
17544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17545 s,@configure_input@,$configure_input,;t t
17546 s,@srcdir@,$ac_srcdir,;t t
17547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17548 s,@top_srcdir@,$ac_top_srcdir,;t t
17549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17550 s,@builddir@,$ac_builddir,;t t
17551 s,@abs_builddir@,$ac_abs_builddir,;t t
17552 s,@top_builddir@,$ac_top_builddir,;t t
17553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17555   rm -f $tmp/stdin
17556   if test x"$ac_file" != x-; then
17557     mv $tmp/out $ac_file
17558   else
17559     cat $tmp/out
17560     rm -f $tmp/out
17561   fi
17562
17563 done
17564 _ACEOF
17565 cat >>$CONFIG_STATUS <<\_ACEOF
17566
17567 #
17568 # CONFIG_HEADER section.
17569 #
17570
17571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17573 #
17574 # ac_d sets the value in "#define NAME VALUE" lines.
17575 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17576 ac_dB='[        ].*$,\1#\2'
17577 ac_dC=' '
17578 ac_dD=',;t'
17579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17580 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17581 ac_uB='$,\1#\2define\3'
17582 ac_uC=' '
17583 ac_uD=',;t'
17584
17585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17586   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17587   case $ac_file in
17588   - | *:- | *:-:* ) # input from stdin
17589         cat >$tmp/stdin
17590         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17591         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17592   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17594   * )   ac_file_in=$ac_file.in ;;
17595   esac
17596
17597   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17598 echo "$as_me: creating $ac_file" >&6;}
17599
17600   # First look for the input files in the build tree, otherwise in the
17601   # src tree.
17602   ac_file_inputs=`IFS=:
17603     for f in $ac_file_in; do
17604       case $f in
17605       -) echo $tmp/stdin ;;
17606       [\\/$]*)
17607          # Absolute (can't be DOS-style, as IFS=:)
17608          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17609 echo "$as_me: error: cannot find input file: $f" >&2;}
17610    { (exit 1); exit 1; }; }
17611          echo $f;;
17612       *) # Relative
17613          if test -f "$f"; then
17614            # Build tree
17615            echo $f
17616          elif test -f "$srcdir/$f"; then
17617            # Source tree
17618            echo $srcdir/$f
17619          else
17620            # /dev/null tree
17621            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17622 echo "$as_me: error: cannot find input file: $f" >&2;}
17623    { (exit 1); exit 1; }; }
17624          fi;;
17625       esac
17626     done` || { (exit 1); exit 1; }
17627   # Remove the trailing spaces.
17628   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17629
17630 _ACEOF
17631
17632 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17633 # `conftest.undefs', that substitutes the proper values into
17634 # config.h.in to produce config.h.  The first handles `#define'
17635 # templates, and the second `#undef' templates.
17636 # And first: Protect against being on the right side of a sed subst in
17637 # config.status.  Protect against being in an unquoted here document
17638 # in config.status.
17639 rm -f conftest.defines conftest.undefs
17640 # Using a here document instead of a string reduces the quoting nightmare.
17641 # Putting comments in sed scripts is not portable.
17642 #
17643 # `end' is used to avoid that the second main sed command (meant for
17644 # 0-ary CPP macros) applies to n-ary macro definitions.
17645 # See the Autoconf documentation for `clear'.
17646 cat >confdef2sed.sed <<\_ACEOF
17647 s/[\\&,]/\\&/g
17648 s,[\\$`],\\&,g
17649 t clear
17650 : clear
17651 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17652 t end
17653 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17654 : end
17655 _ACEOF
17656 # If some macros were called several times there might be several times
17657 # the same #defines, which is useless.  Nevertheless, we may not want to
17658 # sort them, since we want the *last* AC-DEFINE to be honored.
17659 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17660 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17661 rm -f confdef2sed.sed
17662
17663 # This sed command replaces #undef with comments.  This is necessary, for
17664 # example, in the case of _POSIX_SOURCE, which is predefined and required
17665 # on some systems where configure will not decide to define it.
17666 cat >>conftest.undefs <<\_ACEOF
17667 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17668 _ACEOF
17669
17670 # Break up conftest.defines because some shells have a limit on the size
17671 # of here documents, and old seds have small limits too (100 cmds).
17672 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17673 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17674 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17675 echo '  :' >>$CONFIG_STATUS
17676 rm -f conftest.tail
17677 while grep . conftest.defines >/dev/null
17678 do
17679   # Write a limited-size here document to $tmp/defines.sed.
17680   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17681   # Speed up: don't consider the non `#define' lines.
17682   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17683   # Work around the forget-to-reset-the-flag bug.
17684   echo 't clr' >>$CONFIG_STATUS
17685   echo ': clr' >>$CONFIG_STATUS
17686   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17687   echo 'CEOF
17688   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17689   rm -f $tmp/in
17690   mv $tmp/out $tmp/in
17691 ' >>$CONFIG_STATUS
17692   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17693   rm -f conftest.defines
17694   mv conftest.tail conftest.defines
17695 done
17696 rm -f conftest.defines
17697 echo '  fi # egrep' >>$CONFIG_STATUS
17698 echo >>$CONFIG_STATUS
17699
17700 # Break up conftest.undefs because some shells have a limit on the size
17701 # of here documents, and old seds have small limits too (100 cmds).
17702 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17703 rm -f conftest.tail
17704 while grep . conftest.undefs >/dev/null
17705 do
17706   # Write a limited-size here document to $tmp/undefs.sed.
17707   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17708   # Speed up: don't consider the non `#undef'
17709   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17710   # Work around the forget-to-reset-the-flag bug.
17711   echo 't clr' >>$CONFIG_STATUS
17712   echo ': clr' >>$CONFIG_STATUS
17713   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17714   echo 'CEOF
17715   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17716   rm -f $tmp/in
17717   mv $tmp/out $tmp/in
17718 ' >>$CONFIG_STATUS
17719   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17720   rm -f conftest.undefs
17721   mv conftest.tail conftest.undefs
17722 done
17723 rm -f conftest.undefs
17724
17725 cat >>$CONFIG_STATUS <<\_ACEOF
17726   # Let's still pretend it is `configure' which instantiates (i.e., don't
17727   # use $as_me), people would be surprised to read:
17728   #    /* config.h.  Generated by config.status.  */
17729   if test x"$ac_file" = x-; then
17730     echo "/* Generated by configure.  */" >$tmp/config.h
17731   else
17732     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17733   fi
17734   cat $tmp/in >>$tmp/config.h
17735   rm -f $tmp/in
17736   if test x"$ac_file" != x-; then
17737     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17738       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17739 echo "$as_me: $ac_file is unchanged" >&6;}
17740     else
17741       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17743          X"$ac_file" : 'X\(//\)[^/]' \| \
17744          X"$ac_file" : 'X\(//\)$' \| \
17745          X"$ac_file" : 'X\(/\)' \| \
17746          .     : '\(.\)' 2>/dev/null ||
17747 echo X"$ac_file" |
17748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17749           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17750           /^X\(\/\/\)$/{ s//\1/; q; }
17751           /^X\(\/\).*/{ s//\1/; q; }
17752           s/.*/./; q'`
17753       { case "$ac_dir" in
17754   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17755   *)                      as_incr_dir=.;;
17756 esac
17757 as_dummy="$ac_dir"
17758 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17759   case $as_mkdir_dir in
17760     # Skip DOS drivespec
17761     ?:) as_incr_dir=$as_mkdir_dir ;;
17762     *)
17763       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17764       test -d "$as_incr_dir" ||
17765         mkdir "$as_incr_dir" ||
17766         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17767 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17768    { (exit 1); exit 1; }; }
17769     ;;
17770   esac
17771 done; }
17772
17773       rm -f $ac_file
17774       mv $tmp/config.h $ac_file
17775     fi
17776   else
17777     cat $tmp/config.h
17778     rm -f $tmp/config.h
17779   fi
17780   # Run the commands associated with the file.
17781   case $ac_file in
17782     src/include/pg_config.h )
17783 # Update timestamp for pg_config.h (see Makefile.global)
17784 echo >src/include/stamp-h
17785  ;;
17786   esac
17787 done
17788 _ACEOF
17789 cat >>$CONFIG_STATUS <<\_ACEOF
17790
17791 #
17792 # CONFIG_LINKS section.
17793 #
17794
17795 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17796   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17797   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17798
17799   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17800 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17801
17802   if test ! -r $srcdir/$ac_source; then
17803     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17804 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17805    { (exit 1); exit 1; }; }
17806   fi
17807   rm -f $ac_dest
17808
17809   # Make relative symlinks.
17810   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17811 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812          X"$ac_dest" : 'X\(//\)[^/]' \| \
17813          X"$ac_dest" : 'X\(//\)$' \| \
17814          X"$ac_dest" : 'X\(/\)' \| \
17815          .     : '\(.\)' 2>/dev/null ||
17816 echo X"$ac_dest" |
17817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17818           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17819           /^X\(\/\/\)$/{ s//\1/; q; }
17820           /^X\(\/\).*/{ s//\1/; q; }
17821           s/.*/./; q'`
17822   { case "$ac_dest_dir" in
17823   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17824   *)                      as_incr_dir=.;;
17825 esac
17826 as_dummy="$ac_dest_dir"
17827 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17828   case $as_mkdir_dir in
17829     # Skip DOS drivespec
17830     ?:) as_incr_dir=$as_mkdir_dir ;;
17831     *)
17832       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17833       test -d "$as_incr_dir" ||
17834         mkdir "$as_incr_dir" ||
17835         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17836 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17837    { (exit 1); exit 1; }; }
17838     ;;
17839   esac
17840 done; }
17841
17842   ac_builddir=.
17843
17844 if test "$ac_dest_dir" != .; then
17845   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17846   # A "../" for each directory in $ac_dir_suffix.
17847   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17848 else
17849   ac_dir_suffix= ac_top_builddir=
17850 fi
17851
17852 case $srcdir in
17853   .)  # No --srcdir option.  We are building in place.
17854     ac_srcdir=.
17855     if test -z "$ac_top_builddir"; then
17856        ac_top_srcdir=.
17857     else
17858        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17859     fi ;;
17860   [\\/]* | ?:[\\/]* )  # Absolute path.
17861     ac_srcdir=$srcdir$ac_dir_suffix;
17862     ac_top_srcdir=$srcdir ;;
17863   *) # Relative path.
17864     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17865     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17866 esac
17867 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17868 # absolute.
17869 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17870 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17871 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17872 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17873
17874
17875   case $srcdir in
17876   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17877       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17878   esac
17879
17880   # Make a symlink if possible; otherwise try a hard link.
17881   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17882     ln $srcdir/$ac_source $ac_dest ||
17883     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17884 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17885    { (exit 1); exit 1; }; }
17886 done
17887 _ACEOF
17888
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17890
17891 { (exit 0); exit 0; }
17892 _ACEOF
17893 chmod +x $CONFIG_STATUS
17894 ac_clean_files=$ac_clean_files_save
17895
17896
17897 # configure is writing to config.log, and then calls config.status.
17898 # config.status does its own redirection, appending to config.log.
17899 # Unfortunately, on DOS this fails, as config.log is still kept open
17900 # by configure, so config.status won't be able to write to it; its
17901 # output is simply discarded.  So we exec the FD to /dev/null,
17902 # effectively closing config.log, so it can be properly (re)opened and
17903 # appended to by config.status.  When coming back to configure, we
17904 # need to make the FD available again.
17905 if test "$no_create" != yes; then
17906   ac_cs_success=:
17907   exec 5>/dev/null
17908   $SHELL $CONFIG_STATUS || ac_cs_success=false
17909   exec 5>>config.log
17910   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17911   # would make configure fail if this is the last instruction.
17912   $ac_cs_success || { (exit 1); exit 1; }
17913 fi
17914