OSDN Git Service

Readline and Zlib now required by default. Add options --without-readline
[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
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 System types:
834   --build=BUILD     configure for building on BUILD [guessed]
835   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
836 _ACEOF
837 fi
838
839 if test -n "$ac_init_help"; then
840   case $ac_init_help in
841      short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
842    esac
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-recode         enable character set recode support
849   --enable-multibyte      enable multibyte character support
850   --enable-nls[=LANGUAGES]  enable Native Language Support
851   --disable-shared        do not build shared libraries
852   --disable-rpath         do not embed shared library search path in executables
853   --enable-debug          build with debugging symbols (-g)
854   --enable-depend         turn on automatic dependency tracking
855   --enable-cassert        enable assertion checks (for debugging)
856   --enable-odbc           build the ODBC driver package
857   --enable-syslog         enable logging to syslog
858
859 Optional Packages:
860   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
861   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
862
863   --with-includes=DIRS    look for additional header files in DIRS
864   --with-libraries=DIRS   look for additional libraries in DIRS
865   --with-libs=DIRS        alternative spelling of --with-libraries
866   --with-pgport=PORTNUM   change default port number 5432
867   --with-maxbackends=N    set default maximum number of connections 32
868   --with-tcl              build Tcl and Tk interfaces
869   --without-tk            do not build Tk interfaces if Tcl is enabled
870   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
871   --with-tkconfig=DIR     tkConfig.sh is in DIR
872   --with-perl             build Perl interface and PL/Perl
873   --with-python           build Python interface module
874   --with-java             build JDBC interface and Java tools
875   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
876   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
877   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
878   --with-pam              build with PAM support
879   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
880   --without-readline      do not use Readline
881   --without-zlib          do not use Zlib
882   --with-unixodbc         build ODBC driver for unixODBC
883   --with-iodbc            build ODBC driver for iODBC
884   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
885   --with-CXX              build C++ modules (libpq++)
886   --with-gnu-ld           assume the C compiler uses GNU ld default=no
887
888 Some influential environment variables:
889   CC          C compiler command
890   CFLAGS      C compiler flags
891   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892               nonstandard directory <lib dir>
893   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894               headers in a nonstandard directory <include dir>
895   CPP         C preprocessor
896   CXX         C++ compiler command
897   CXXFLAGS    C++ compiler flags
898   CXXCPP      C++ preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 Report bugs to <pgsql-bugs@postgresql.org>.
904 _ACEOF
905 fi
906
907 if test "$ac_init_help" = "recursive"; then
908   # If there are subdirs, report their specific --help.
909   ac_popdir=`pwd`
910   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911     test -d $ac_dir || continue
912     ac_builddir=.
913
914 if test "$ac_dir" != .; then
915   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916   # A "../" for each directory in $ac_dir_suffix.
917   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919   ac_dir_suffix= ac_top_builddir=
920 fi
921
922 case $srcdir in
923   .)  # No --srcdir option.  We are building in place.
924     ac_srcdir=.
925     if test -z "$ac_top_builddir"; then
926        ac_top_srcdir=.
927     else
928        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929     fi ;;
930   [\\/]* | ?:[\\/]* )  # Absolute path.
931     ac_srcdir=$srcdir$ac_dir_suffix;
932     ac_top_srcdir=$srcdir ;;
933   *) # Relative path.
934     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935     ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
937 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
938 # absolute.
939 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
940 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
941 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
942 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
943
944     cd $ac_dir
945     # Check for guested configure; otherwise get Cygnus style configure.
946     if test -f $ac_srcdir/configure.gnu; then
947       echo
948       $SHELL $ac_srcdir/configure.gnu  --help=recursive
949     elif test -f $ac_srcdir/configure; then
950       echo
951       $SHELL $ac_srcdir/configure  --help=recursive
952     elif test -f $ac_srcdir/configure.ac ||
953            test -f $ac_srcdir/configure.in; then
954       echo
955       $ac_configure --help
956     else
957       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958     fi
959     cd $ac_popdir
960   done
961 fi
962
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
965   cat <<\_ACEOF
966 PostgreSQL configure 7.3devel
967 generated by GNU Autoconf 2.53
968
969 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973
974 Copyright 2002 PostgreSQL Global Development Group
975 _ACEOF
976   exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by PostgreSQL $as_me 7.3devel, which was
984 generated by GNU Autoconf 2.53.  Invocation command line was
985
986   $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017   IFS=$as_save_IFS
1018   test -z "$as_dir" && as_dir=.
1019   echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1037 ac_configure_args=
1038 ac_sep=
1039 for ac_arg
1040 do
1041   case $ac_arg in
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n ) continue ;;
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     continue ;;
1047   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049   esac
1050   case " $ac_configure_args " in
1051     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1052     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053        ac_sep=" " ;;
1054   esac
1055   # Get rid of the leading space.
1056 done
1057
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log.  We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064   # Save into config.log some information that might help in debugging.
1065   {
1066     echo
1067     cat <<\_ASBOX
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1071 _ASBOX
1072     echo
1073     # The following way of writing the cache mishandles newlines in values,
1074 {
1075   (set) 2>&1 |
1076     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077     *ac_space=\ *)
1078       sed -n \
1079         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081       ;;
1082     *)
1083       sed -n \
1084         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085       ;;
1086     esac;
1087 }
1088     echo
1089     if test -s confdefs.h; then
1090       cat <<\_ASBOX
1091 ## ----------- ##
1092 ## confdefs.h. ##
1093 ## ----------- ##
1094 _ASBOX
1095       echo
1096       sed "/^$/d" confdefs.h
1097       echo
1098     fi
1099     test "$ac_signal" != 0 &&
1100       echo "$as_me: caught signal $ac_signal"
1101     echo "$as_me: exit $exit_status"
1102   } >&5
1103   rm -f core core.* *.core &&
1104   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1105     exit $exit_status
1106      ' 0
1107 for ac_signal in 1 2 13 15; do
1108   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1109 done
1110 ac_signal=0
1111
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1115 echo >confdefs.h
1116
1117 # Predefined preprocessor variables.
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1141 _ACEOF
1142
1143
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147   if test "x$prefix" != xNONE; then
1148     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1149   else
1150     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1151   fi
1152 fi
1153 for ac_site_file in $CONFIG_SITE; do
1154   if test -r "$ac_site_file"; then
1155     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157     sed 's/^/| /' "$ac_site_file" >&5
1158     . "$ac_site_file"
1159   fi
1160 done
1161
1162 if test -r "$cache_file"; then
1163   # Some versions of bash will fail to source /dev/null (special
1164   # files actually), so we avoid doing that.
1165   if test -f "$cache_file"; then
1166     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1168     case $cache_file in
1169       [\\/]* | ?:[\\/]* ) . $cache_file;;
1170       *)                      . ./$cache_file;;
1171     esac
1172   fi
1173 else
1174   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1176   >$cache_file
1177 fi
1178
1179 # Check that the precious variables saved in the cache have kept the same
1180 # value.
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185   eval ac_new_set=\$ac_env_${ac_var}_set
1186   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187   eval ac_new_val="\$ac_env_${ac_var}_value"
1188   case $ac_old_set,$ac_new_set in
1189     set,)
1190       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192       ac_cache_corrupted=: ;;
1193     ,set)
1194       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196       ac_cache_corrupted=: ;;
1197     ,);;
1198     *)
1199       if test "x$ac_old_val" != "x$ac_new_val"; then
1200         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1203 echo "$as_me:   former value:  $ac_old_val" >&2;}
1204         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1205 echo "$as_me:   current value: $ac_new_val" >&2;}
1206         ac_cache_corrupted=:
1207       fi;;
1208   esac
1209   # Pass precious variables to config.status.
1210   if test "$ac_new_set" = set; then
1211     case $ac_new_val in
1212     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214     *) ac_arg=$ac_var=$ac_new_val ;;
1215     esac
1216     case " $ac_configure_args " in
1217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1218       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1219     esac
1220   fi
1221 done
1222 if $ac_cache_corrupted; then
1223   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227    { (exit 1); exit 1; }; }
1228 fi
1229
1230 ac_ext=c
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268 ac_aux_dir=
1269 for ac_dir in config $srcdir/config; do
1270   if test -f $ac_dir/install-sh; then
1271     ac_aux_dir=$ac_dir
1272     ac_install_sh="$ac_aux_dir/install-sh -c"
1273     break
1274   elif test -f $ac_dir/install.sh; then
1275     ac_aux_dir=$ac_dir
1276     ac_install_sh="$ac_aux_dir/install.sh -c"
1277     break
1278   elif test -f $ac_dir/shtool; then
1279     ac_aux_dir=$ac_dir
1280     ac_install_sh="$ac_aux_dir/shtool install -c"
1281     break
1282   fi
1283 done
1284 if test -z "$ac_aux_dir"; then
1285   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1286 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1290 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1291 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1292
1293
1294 configure_args=$ac_configure_args
1295
1296
1297
1298 cat >>confdefs.h <<_ACEOF
1299 #define PG_VERSION "$PACKAGE_VERSION"
1300 _ACEOF
1301
1302
1303 # Make sure we can run config.sub.
1304 $ac_config_sub sun4 >/dev/null 2>&1 ||
1305   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1306 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1307    { (exit 1); exit 1; }; }
1308
1309 echo "$as_me:$LINENO: checking build system type" >&5
1310 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1311 if test "${ac_cv_build+set}" = set; then
1312   echo $ECHO_N "(cached) $ECHO_C" >&6
1313 else
1314   ac_cv_build_alias=$build_alias
1315 test -z "$ac_cv_build_alias" &&
1316   ac_cv_build_alias=`$ac_config_guess`
1317 test -z "$ac_cv_build_alias" &&
1318   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1320    { (exit 1); exit 1; }; }
1321 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1322   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1323 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1324    { (exit 1); exit 1; }; }
1325
1326 fi
1327 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1328 echo "${ECHO_T}$ac_cv_build" >&6
1329 build=$ac_cv_build
1330 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333
1334
1335 echo "$as_me:$LINENO: checking host system type" >&5
1336 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1337 if test "${ac_cv_host+set}" = set; then
1338   echo $ECHO_N "(cached) $ECHO_C" >&6
1339 else
1340   ac_cv_host_alias=$host_alias
1341 test -z "$ac_cv_host_alias" &&
1342   ac_cv_host_alias=$ac_cv_build_alias
1343 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1344   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1345 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1346    { (exit 1); exit 1; }; }
1347
1348 fi
1349 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1350 echo "${ECHO_T}$ac_cv_host" >&6
1351 host=$ac_cv_host
1352 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355
1356
1357
1358 template=
1359 echo "$as_me:$LINENO: checking which template to use" >&5
1360 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1361
1362
1363
1364
1365 # Check whether --with-template or --without-template was given.
1366 if test "${with_template+set}" = set; then
1367   withval="$with_template"
1368
1369   case $withval in
1370     yes)
1371       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1372 echo "$as_me: error: argument required for --with-template option" >&2;}
1373    { (exit 1); exit 1; }; }
1374       ;;
1375     no)
1376       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378    { (exit 1); exit 1; }; }
1379       ;;
1380     *)
1381
1382   case $withval in
1383     list)   echo; ls "$srcdir/src/template"; exit;;
1384     *)      if test -f "$srcdir/src/template/$with_template" ; then
1385               template=$withval
1386             else
1387               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1388 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1389    { (exit 1); exit 1; }; }
1390             fi;;
1391   esac
1392
1393       ;;
1394   esac
1395
1396 else
1397
1398   # --with-template not given
1399
1400 case $host_os in
1401      aix*) template=aix ;;
1402     beos*) template=beos ;;
1403     bsdi*) template=bsdi ;;
1404   cygwin*) template=win ;;
1405   darwin*) template=darwin ;;
1406     dgux*) template=dgux ;;
1407  freebsd*) template=freebsd ;;
1408     hpux*) template=hpux ;;
1409     irix*) template=irix5 ;;
1410    linux*) template=linux ;;
1411   netbsd*) template=netbsd ;;
1412 nextstep*) template=nextstep ;;
1413  openbsd*) template=openbsd ;;
1414      osf*) template=osf ;;
1415      qnx*) template=qnx4 ;;
1416      sco*) template=sco ;;
1417  solaris*) template=solaris ;;
1418    sunos*) template=sunos4 ;;
1419  sysv4.2*)
1420         case $host_vendor in
1421           univel) template=univel ;;
1422         esac ;;
1423    sysv4*) template=svr4 ;;
1424    sysv5*) template=unixware ;;
1425   ultrix*) template=ultrix4 ;;
1426 esac
1427
1428   if test x"$template" = x"" ; then
1429     { { echo "$as_me:$LINENO: error:
1430 *******************************************************************
1431 PostgreSQL has apparently not been ported to your platform yet.
1432 To try a manual configuration, look into the src/template directory
1433 for a similar platform and use the '--with-template=' option.
1434
1435 Please also contact <pgsql-ports@postgresql.org> to see about
1436 rectifying this.  Include the above 'checking host system type...'
1437 line.
1438 *******************************************************************
1439 " >&5
1440 echo "$as_me: error:
1441 *******************************************************************
1442 PostgreSQL has apparently not been ported to your platform yet.
1443 To try a manual configuration, look into the src/template directory
1444 for a similar platform and use the '--with-template=' option.
1445
1446 Please also contact <pgsql-ports@postgresql.org> to see about
1447 rectifying this.  Include the above 'checking host system type...'
1448 line.
1449 *******************************************************************
1450 " >&2;}
1451    { (exit 1); exit 1; }; }
1452   fi
1453
1454
1455 fi;
1456
1457
1458 echo "$as_me:$LINENO: result: $template" >&5
1459 echo "${ECHO_T}$template" >&6
1460
1461 PORTNAME=$template
1462
1463
1464 # Pick right test-and-set (TAS) code.  Most platforms have inline
1465 # assembler code in src/include/storage/s_lock.h, so we just use
1466 # a dummy file here.
1467 case $host in
1468   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1469   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1470   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1471   *)                need_tas=no;  tas_file=dummy.s ;;
1472 esac
1473 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1474
1475
1476 if test "$need_tas" = yes ; then
1477   TAS=tas.o
1478 fi
1479
1480
1481
1482
1483 ##
1484 ## Command line options
1485 ##
1486
1487
1488 #
1489 # Add non-standard directories to the include path
1490 #
1491
1492
1493
1494 # Check whether --with-includes or --without-includes was given.
1495 if test "${with_includes+set}" = set; then
1496   withval="$with_includes"
1497
1498   case $withval in
1499     yes)
1500       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1501 echo "$as_me: error: argument required for --with-includes option" >&2;}
1502    { (exit 1); exit 1; }; }
1503       ;;
1504     no)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     *)
1510
1511       ;;
1512   esac
1513
1514 fi;
1515
1516
1517
1518 #
1519 # Add non-standard directories to the library search path
1520 #
1521
1522
1523
1524 # Check whether --with-libraries or --without-libraries was given.
1525 if test "${with_libraries+set}" = set; then
1526   withval="$with_libraries"
1527
1528   case $withval in
1529     yes)
1530       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1531 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1532    { (exit 1); exit 1; }; }
1533       ;;
1534     no)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     *)
1540       LIBRARY_DIRS=$withval
1541       ;;
1542   esac
1543
1544 fi;
1545
1546
1547
1548
1549
1550 # Check whether --with-libs or --without-libs was given.
1551 if test "${with_libs+set}" = set; then
1552   withval="$with_libs"
1553
1554   case $withval in
1555     yes)
1556       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1557 echo "$as_me: error: argument required for --with-libs option" >&2;}
1558    { (exit 1); exit 1; }; }
1559       ;;
1560     no)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     *)
1566       LIBRARY_DIRS=$withval
1567       ;;
1568   esac
1569
1570 fi;
1571
1572
1573
1574 #
1575 # Character set recode (--enable-recode)
1576 #
1577 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1578 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1579
1580
1581 # Check whether --enable-recode or --disable-recode was given.
1582 if test "${enable_recode+set}" = set; then
1583   enableval="$enable_recode"
1584
1585   case $enableval in
1586     yes)
1587
1588 cat >>confdefs.h <<\_ACEOF
1589 #define CYR_RECODE 1
1590 _ACEOF
1591
1592       ;;
1593     no)
1594       :
1595       ;;
1596     *)
1597       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1598 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1599    { (exit 1); exit 1; }; }
1600       ;;
1601   esac
1602
1603 else
1604   enable_recode=no
1605
1606 fi;
1607
1608 echo "$as_me:$LINENO: result: $enable_recode" >&5
1609 echo "${ECHO_T}$enable_recode" >&6
1610
1611
1612 #
1613 # Multibyte support
1614 #
1615 MULTIBYTE=
1616 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1617 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1618
1619
1620
1621 # Check whether --enable-multibyte or --disable-multibyte was given.
1622 if test "${enable_multibyte+set}" = set; then
1623   enableval="$enable_multibyte"
1624
1625   case $enableval in
1626     yes)
1627       MULTIBYTE=SQL_ASCII
1628       ;;
1629     no)
1630       :
1631       ;;
1632     *)
1633       enable_multibyte=yes
1634
1635   case $enableval in
1636     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)
1637       MULTIBYTE=$enableval;;
1638     *)
1639       { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1640   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1641   UNICODE, MULE_INTERNAL,
1642   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1643   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1644   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1645   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1646 Or do not specify an argument to the option to use the default." >&5
1647 echo "$as_me: error: argument to --enable-multibyte must be one of:
1648   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1649   UNICODE, MULE_INTERNAL,
1650   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1651   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1652   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1653   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1654 Or do not specify an argument to the option to use the default." >&2;}
1655    { (exit 1); exit 1; }; };;
1656   esac
1657
1658       ;;
1659   esac
1660
1661 else
1662   enable_multibyte=no
1663 fi;
1664
1665
1666 if test "$enable_multibyte" = yes; then
1667
1668
1669 cat >>confdefs.h <<\_ACEOF
1670 #define MULTIBYTE 1
1671 _ACEOF
1672
1673   echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1674 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1675
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681
1682
1683
1684 #
1685 # NLS
1686 #
1687 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1688 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1689
1690
1691 # Check whether --enable-nls or --disable-nls was given.
1692 if test "${enable_nls+set}" = set; then
1693   enableval="$enable_nls"
1694
1695   case $enableval in
1696     yes)
1697       :
1698       ;;
1699     no)
1700       :
1701       ;;
1702     *)
1703       enable_nls=yes
1704 WANTED_LANGUAGES=$enableval
1705       ;;
1706   esac
1707
1708 else
1709   enable_nls=no
1710 fi;
1711
1712
1713 if test "$enable_nls" = yes; then
1714
1715 cat >>confdefs.h <<\_ACEOF
1716 #define ENABLE_NLS 1
1717 _ACEOF
1718
1719 fi
1720
1721 echo "$as_me:$LINENO: result: $enable_nls" >&5
1722 echo "${ECHO_T}$enable_nls" >&6
1723
1724
1725
1726 #
1727 # Default port number (--with-pgport), default 5432
1728 #
1729 echo "$as_me:$LINENO: checking for default port number" >&5
1730 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1731
1732
1733
1734 # Check whether --with-pgport or --without-pgport was given.
1735 if test "${with_pgport+set}" = set; then
1736   withval="$with_pgport"
1737
1738   case $withval in
1739     yes)
1740       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1741 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1742    { (exit 1); exit 1; }; }
1743       ;;
1744     no)
1745       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1746 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1747    { (exit 1); exit 1; }; }
1748       ;;
1749     *)
1750       default_port=$withval
1751       ;;
1752   esac
1753
1754 else
1755   default_port=5432
1756 fi;
1757
1758 echo "$as_me:$LINENO: result: $default_port" >&5
1759 echo "${ECHO_T}$default_port" >&6
1760 # Need both of these because some places want an integer and some a string
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define DEF_PGPORT ${default_port}
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEF_PGPORT_STR "${default_port}"
1769 _ACEOF
1770
1771
1772
1773 #
1774 # Maximum number of allowed connections (--with-maxbackends), default 32
1775 #
1776 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1777 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1778
1779
1780
1781 # Check whether --with-maxbackends or --without-maxbackends was given.
1782 if test "${with_maxbackends+set}" = set; then
1783   withval="$with_maxbackends"
1784
1785   case $withval in
1786     yes)
1787       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1788 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1789    { (exit 1); exit 1; }; }
1790       ;;
1791     no)
1792       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1793 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1794    { (exit 1); exit 1; }; }
1795       ;;
1796     *)
1797
1798       ;;
1799   esac
1800
1801 else
1802   with_maxbackends=32
1803 fi;
1804
1805 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1806 echo "${ECHO_T}$with_maxbackends" >&6
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define DEF_MAXBACKENDS $with_maxbackends
1810 _ACEOF
1811
1812
1813
1814 #
1815 # Option to disable shared libraries
1816 #
1817
1818
1819 # Check whether --enable-shared or --disable-shared was given.
1820 if test "${enable_shared+set}" = set; then
1821   enableval="$enable_shared"
1822
1823   case $enableval in
1824     yes)
1825       :
1826       ;;
1827     no)
1828       :
1829       ;;
1830     *)
1831       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1832 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1833    { (exit 1); exit 1; }; }
1834       ;;
1835   esac
1836
1837 else
1838   enable_shared=yes
1839
1840 fi;
1841
1842
1843
1844 #
1845 # '-rpath'-like feature can be disabled
1846 #
1847
1848
1849 # Check whether --enable-rpath or --disable-rpath was given.
1850 if test "${enable_rpath+set}" = set; then
1851   enableval="$enable_rpath"
1852
1853   case $enableval in
1854     yes)
1855       :
1856       ;;
1857     no)
1858       :
1859       ;;
1860     *)
1861       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1862 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1863    { (exit 1); exit 1; }; }
1864       ;;
1865   esac
1866
1867 else
1868   enable_rpath=yes
1869
1870 fi;
1871
1872
1873
1874
1875 #
1876 # --enable-debug adds -g to compiler flags
1877 #
1878
1879
1880 # Check whether --enable-debug or --disable-debug was given.
1881 if test "${enable_debug+set}" = set; then
1882   enableval="$enable_debug"
1883
1884   case $enableval in
1885     yes)
1886       :
1887       ;;
1888     no)
1889       :
1890       ;;
1891     *)
1892       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1893 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1894    { (exit 1); exit 1; }; }
1895       ;;
1896   esac
1897
1898 else
1899   enable_debug=no
1900
1901 fi;
1902
1903
1904
1905 #
1906 # C compiler
1907 #
1908
1909 # For historical reasons you can also use --with-CC to specify the C compiler
1910 # to use, although the standard way to do this is to set the CC environment
1911 # variable.
1912
1913
1914
1915 # Check whether --with-CC or --without-CC was given.
1916 if test "${with_CC+set}" = set; then
1917   withval="$with_CC"
1918
1919   case $withval in
1920     yes)
1921       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1922 echo "$as_me: error: argument required for --with-CC option" >&2;}
1923    { (exit 1); exit 1; }; }
1924       ;;
1925     no)
1926       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1927 echo "$as_me: error: argument required for --with-CC option" >&2;}
1928    { (exit 1); exit 1; }; }
1929       ;;
1930     *)
1931       CC=$with_CC
1932       ;;
1933   esac
1934
1935 fi;
1936
1937
1938 case $template in
1939   aix) pgac_cc_list="gcc xlc";;
1940  irix) pgac_cc_list="cc";; # no gcc
1941     *) pgac_cc_list="gcc cc";;
1942 esac
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950   for ac_prog in $pgac_cc_list
1951   do
1952     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980   echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1982 else
1983   echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987     test -n "$CC" && break
1988   done
1989 fi
1990 if test -z "$CC"; then
1991   ac_ct_CC=$CC
1992   for ac_prog in $pgac_cc_list
1993 do
1994   # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_CC"; then
2002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_ac_ct_CC="$ac_prog"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029   test -n "$ac_ct_CC" && break
2030 done
2031
2032   CC=$ac_ct_CC
2033 fi
2034
2035
2036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2037 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 # Provide some information about the compiler.
2041 echo "$as_me:$LINENO:" \
2042      "checking for C compiler version" >&5
2043 ac_compiler=`set X $ac_compile; echo $2`
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2045   (eval $ac_compiler --version </dev/null >&5) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2050   (eval $ac_compiler -v </dev/null >&5) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2055   (eval $ac_compiler -V </dev/null >&5) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }
2059
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 #include "confdefs.h"
2063
2064 #ifdef F77_DUMMY_MAIN
2065 #  ifdef __cplusplus
2066      extern "C"
2067 #  endif
2068    int F77_DUMMY_MAIN() { return 1; }
2069 #endif
2070 int
2071 main ()
2072 {
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 ac_clean_files_save=$ac_clean_files
2079 ac_clean_files="$ac_clean_files a.out a.exe"
2080 # Try to create an executable without -o first, disregard a.out.
2081 # It will help us diagnose broken compilers, and finding out an intuition
2082 # of exeext.
2083 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2084 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2085 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2087   (eval $ac_link_default) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; then
2091   # Find the output, starting from the most likely.  This scheme is
2092 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2093 # resort.
2094
2095 # Be careful to initialize this variable, since it used to be cached.
2096 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2097 ac_cv_exeext=
2098 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2099                 ls a.out conftest 2>/dev/null;
2100                 ls a.* conftest.* 2>/dev/null`; do
2101   case $ac_file in
2102     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2103     a.out ) # We found the default executable, but exeext='' is most
2104             # certainly right.
2105             break;;
2106     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2108           export ac_cv_exeext
2109           break;;
2110     * ) break;;
2111   esac
2112 done
2113 else
2114   echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2117 echo "$as_me: error: C compiler cannot create executables" >&2;}
2118    { (exit 77); exit 77; }; }
2119 fi
2120
2121 ac_exeext=$ac_cv_exeext
2122 echo "$as_me:$LINENO: result: $ac_file" >&5
2123 echo "${ECHO_T}$ac_file" >&6
2124
2125 # Check the compiler produces executables we can run.  If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2128 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2129 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2130 # If not cross compiling, check that we can run a simple program.
2131 if test "$cross_compiling" != yes; then
2132   if { ac_try='./$ac_file'
2133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134   (eval $ac_try) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }; }; then
2138     cross_compiling=no
2139   else
2140     if test "$cross_compiling" = maybe; then
2141         cross_compiling=yes
2142     else
2143         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'." >&5
2145 echo "$as_me: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'." >&2;}
2147    { (exit 1); exit 1; }; }
2148     fi
2149   fi
2150 fi
2151 echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6
2153
2154 rm -f a.out a.exe conftest$ac_cv_exeext
2155 ac_clean_files=$ac_clean_files_save
2156 # Check the compiler produces executables we can run.  If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2161 echo "${ECHO_T}$cross_compiling" >&6
2162
2163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2166   (eval $ac_link) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; then
2170   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2171 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2172 # work properly (i.e., refer to `conftest.exe'), while it won't with
2173 # `rm'.
2174 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2175   case $ac_file in
2176     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2177     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178           export ac_cv_exeext
2179           break;;
2180     * ) break;;
2181   esac
2182 done
2183 else
2184   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2185 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2188
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2192
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2195 ac_exeext=$EXEEXT
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 #include "confdefs.h"
2204
2205 #ifdef F77_DUMMY_MAIN
2206 #  ifdef __cplusplus
2207      extern "C"
2208 #  endif
2209    int F77_DUMMY_MAIN() { return 1; }
2210 #endif
2211 int
2212 main ()
2213 {
2214
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221   (eval $ac_compile) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; then
2225   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2228     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2229        break;;
2230   esac
2231 done
2232 else
2233   echo "$as_me: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2236 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2245 ac_objext=$OBJEXT
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2254
2255 #ifdef F77_DUMMY_MAIN
2256 #  ifdef __cplusplus
2257      extern "C"
2258 #  endif
2259    int F77_DUMMY_MAIN() { return 1; }
2260 #endif
2261 int
2262 main ()
2263 {
2264 #ifndef __GNUC__
2265        choke me
2266 #endif
2267
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274   (eval $ac_compile) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -s conftest.$ac_objext'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; }; then
2284   ac_compiler_gnu=yes
2285 else
2286   echo "$as_me: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 ac_compiler_gnu=no
2289 fi
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2292
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2296 GCC=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CFLAGS=${CFLAGS+set}
2298 ac_save_CFLAGS=$CFLAGS
2299 CFLAGS="-g"
2300 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2301 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_g+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 #line $LINENO "configure"
2307 #include "confdefs.h"
2308
2309 #ifdef F77_DUMMY_MAIN
2310 #  ifdef __cplusplus
2311      extern "C"
2312 #  endif
2313    int F77_DUMMY_MAIN() { return 1; }
2314 #endif
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -s conftest.$ac_objext'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; }; then
2335   ac_cv_prog_cc_g=yes
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 ac_cv_prog_cc_g=no
2340 fi
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2345 if test "$ac_test_CFLAGS" = set; then
2346   CFLAGS=$ac_save_CFLAGS
2347 elif test $ac_cv_prog_cc_g = yes; then
2348   if test "$GCC" = yes; then
2349     CFLAGS="-g -O2"
2350   else
2351     CFLAGS="-g"
2352   fi
2353 else
2354   if test "$GCC" = yes; then
2355     CFLAGS="-O2"
2356   else
2357     CFLAGS=
2358   fi
2359 fi
2360 # Some people use a C++ compiler to compile C.  Since we use `exit',
2361 # in C++ we need to declare it.  In case someone uses the same compiler
2362 # for both compiling C and C++ we need to have the C++ compiler decide
2363 # the declaration of exit, since it's the most demanding environment.
2364 cat >conftest.$ac_ext <<_ACEOF
2365 #ifndef __cplusplus
2366   choke me
2367 #endif
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -s conftest.$ac_objext'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; }; then
2381   for ac_declaration in \
2382    ''\
2383    '#include <stdlib.h>' \
2384    'extern "C" void std::exit (int) throw (); using std::exit;' \
2385    'extern "C" void std::exit (int); using std::exit;' \
2386    'extern "C" void exit (int) throw ();' \
2387    'extern "C" void exit (int);' \
2388    'void exit (int);'
2389 do
2390   cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393 #include <stdlib.h>
2394 $ac_declaration
2395 #ifdef F77_DUMMY_MAIN
2396 #  ifdef __cplusplus
2397      extern "C"
2398 #  endif
2399    int F77_DUMMY_MAIN() { return 1; }
2400 #endif
2401 int
2402 main ()
2403 {
2404 exit (42);
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   :
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 continue
2426 fi
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428   cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2431 $ac_declaration
2432 #ifdef F77_DUMMY_MAIN
2433 #  ifdef __cplusplus
2434      extern "C"
2435 #  endif
2436    int F77_DUMMY_MAIN() { return 1; }
2437 #endif
2438 int
2439 main ()
2440 {
2441 exit (42);
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448   (eval $ac_compile) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -s conftest.$ac_objext'
2453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454   (eval $ac_try) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; }; then
2458   break
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 fi
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464 done
2465 rm -f conftest*
2466 if test -n "$ac_declaration"; then
2467   echo '#ifdef __cplusplus' >>confdefs.h
2468   echo $ac_declaration      >>confdefs.h
2469   echo '#endif'             >>confdefs.h
2470 fi
2471
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 fi
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483 # Read the template
2484 . "$srcdir/src/template/$template" || exit
2485
2486 if test "$ac_env_CFLAGS_set" = set; then
2487   CFLAGS=$ac_env_CFLAGS_value
2488 fi
2489 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2490   CFLAGS="$CFLAGS -g"
2491 fi
2492 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2493 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2494 # Check if the compiler still works with the template settings
2495 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2496 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2497
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501
2502 #ifdef F77_DUMMY_MAIN
2503 #  ifdef __cplusplus
2504      extern "C"
2505 #  endif
2506    int F77_DUMMY_MAIN() { return 1; }
2507 #endif
2508 int
2509 main ()
2510 {
2511 return 0;
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518   (eval $ac_link) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest$ac_exeext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   echo "$as_me:$LINENO: result: yes" >&5
2529 echo "${ECHO_T}yes" >&6
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6
2535    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2536 echo "$as_me: error: cannot proceed" >&2;}
2537    { (exit 1); exit 1; }; }
2538 fi
2539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2540 ac_ext=c
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2546 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2547 # On Suns, sometimes $CPP names a directory.
2548 if test -n "$CPP" && test -d "$CPP"; then
2549   CPP=
2550 fi
2551 if test -z "$CPP"; then
2552   if test "${ac_cv_prog_CPP+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555       # Double quotes because CPP needs to be expanded
2556     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2557     do
2558       ac_preproc_ok=false
2559 for ac_c_preproc_warn_flag in '' yes
2560 do
2561   # Use a header file that comes with gcc, so configuring glibc
2562   # with a fresh cross-compiler works.
2563   # On the NeXT, cc -E runs the code through the compiler's parser,
2564   # not just through cpp. "Syntax error" is here to catch this case.
2565   cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 #include "confdefs.h"
2568 #include <assert.h>
2569                      Syntax error
2570 _ACEOF
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573   ac_status=$?
2574   egrep -v '^ *\+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } >/dev/null; then
2579   if test -s conftest.err; then
2580     ac_cpp_err=$ac_c_preproc_warn_flag
2581   else
2582     ac_cpp_err=
2583   fi
2584 else
2585   ac_cpp_err=yes
2586 fi
2587 if test -z "$ac_cpp_err"; then
2588   :
2589 else
2590   echo "$as_me: failed program was:" >&5
2591   cat conftest.$ac_ext >&5
2592   # Broken: fails on valid input.
2593 continue
2594 fi
2595 rm -f conftest.err conftest.$ac_ext
2596
2597   # OK, works on sane cases.  Now check whether non-existent headers
2598   # can be detected and how.
2599   cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 #include "confdefs.h"
2602 #include <ac_nonexistent.h>
2603 _ACEOF
2604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2606   ac_status=$?
2607   egrep -v '^ *\+' conftest.er1 >conftest.err
2608   rm -f conftest.er1
2609   cat conftest.err >&5
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); } >/dev/null; then
2612   if test -s conftest.err; then
2613     ac_cpp_err=$ac_c_preproc_warn_flag
2614   else
2615     ac_cpp_err=
2616   fi
2617 else
2618   ac_cpp_err=yes
2619 fi
2620 if test -z "$ac_cpp_err"; then
2621   # Broken: success on invalid input.
2622 continue
2623 else
2624   echo "$as_me: failed program was:" >&5
2625   cat conftest.$ac_ext >&5
2626   # Passes both tests.
2627 ac_preproc_ok=:
2628 break
2629 fi
2630 rm -f conftest.err conftest.$ac_ext
2631
2632 done
2633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634 rm -f conftest.err conftest.$ac_ext
2635 if $ac_preproc_ok; then
2636   break
2637 fi
2638
2639     done
2640     ac_cv_prog_CPP=$CPP
2641
2642 fi
2643   CPP=$ac_cv_prog_CPP
2644 else
2645   ac_cv_prog_CPP=$CPP
2646 fi
2647 echo "$as_me:$LINENO: result: $CPP" >&5
2648 echo "${ECHO_T}$CPP" >&6
2649 ac_preproc_ok=false
2650 for ac_c_preproc_warn_flag in '' yes
2651 do
2652   # Use a header file that comes with gcc, so configuring glibc
2653   # with a fresh cross-compiler works.
2654   # On the NeXT, cc -E runs the code through the compiler's parser,
2655   # not just through cpp. "Syntax error" is here to catch this case.
2656   cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 #include "confdefs.h"
2659 #include <assert.h>
2660                      Syntax error
2661 _ACEOF
2662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664   ac_status=$?
2665   egrep -v '^ *\+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } >/dev/null; then
2670   if test -s conftest.err; then
2671     ac_cpp_err=$ac_c_preproc_warn_flag
2672   else
2673     ac_cpp_err=
2674   fi
2675 else
2676   ac_cpp_err=yes
2677 fi
2678 if test -z "$ac_cpp_err"; then
2679   :
2680 else
2681   echo "$as_me: failed program was:" >&5
2682   cat conftest.$ac_ext >&5
2683   # Broken: fails on valid input.
2684 continue
2685 fi
2686 rm -f conftest.err conftest.$ac_ext
2687
2688   # OK, works on sane cases.  Now check whether non-existent headers
2689   # can be detected and how.
2690   cat >conftest.$ac_ext <<_ACEOF
2691 #line $LINENO "configure"
2692 #include "confdefs.h"
2693 #include <ac_nonexistent.h>
2694 _ACEOF
2695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697   ac_status=$?
2698   egrep -v '^ *\+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } >/dev/null; then
2703   if test -s conftest.err; then
2704     ac_cpp_err=$ac_c_preproc_warn_flag
2705   else
2706     ac_cpp_err=
2707   fi
2708 else
2709   ac_cpp_err=yes
2710 fi
2711 if test -z "$ac_cpp_err"; then
2712   # Broken: success on invalid input.
2713 continue
2714 else
2715   echo "$as_me: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   # Passes both tests.
2718 ac_preproc_ok=:
2719 break
2720 fi
2721 rm -f conftest.err conftest.$ac_ext
2722
2723 done
2724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2725 rm -f conftest.err conftest.$ac_ext
2726 if $ac_preproc_ok; then
2727   :
2728 else
2729   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2730 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2731    { (exit 1); exit 1; }; }
2732 fi
2733
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741
2742 # Create compiler version string
2743 if test x"$GCC" = x"yes" ; then
2744   cc_string="GCC `${CC} --version | sed q`"
2745 else
2746   cc_string=$CC
2747 fi
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2751 _ACEOF
2752
2753
2754
2755 #
2756 # Automatic dependency tracking
2757 #
2758
2759
2760 # Check whether --enable-depend or --disable-depend was given.
2761 if test "${enable_depend+set}" = set; then
2762   enableval="$enable_depend"
2763
2764   case $enableval in
2765     yes)
2766       autodepend=yes
2767       ;;
2768     no)
2769       :
2770       ;;
2771     *)
2772       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2773 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2774    { (exit 1); exit 1; }; }
2775       ;;
2776   esac
2777
2778 else
2779   enable_depend=no
2780
2781 fi;
2782
2783
2784
2785
2786 #
2787 # Enable assert checks
2788 #
2789
2790
2791 # Check whether --enable-cassert or --disable-cassert was given.
2792 if test "${enable_cassert+set}" = set; then
2793   enableval="$enable_cassert"
2794
2795   case $enableval in
2796     yes)
2797
2798 cat >>confdefs.h <<\_ACEOF
2799 #define USE_ASSERT_CHECKING 1
2800 _ACEOF
2801
2802       ;;
2803     no)
2804       :
2805       ;;
2806     *)
2807       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2808 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2809    { (exit 1); exit 1; }; }
2810       ;;
2811   esac
2812
2813 else
2814   enable_cassert=no
2815
2816 fi;
2817
2818
2819
2820 #
2821 # Include directories
2822 #
2823 ac_save_IFS=$IFS
2824 IFS="${IFS}:"
2825 # SRCH_INC comes from the template file
2826 for dir in $with_includes $SRCH_INC; do
2827   if test -d "$dir"; then
2828     INCLUDES="$INCLUDES -I$dir"
2829   else
2830     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2831 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2832   fi
2833 done
2834 IFS=$ac_save_IFS
2835
2836
2837
2838 #
2839 # Library directories
2840 #
2841 ac_save_IFS=$IFS
2842 IFS="${IFS}:"
2843 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2844 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2845   if test -d "$dir"; then
2846     LIBDIRS="$LIBDIRS -L$dir"
2847   else
2848     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2849 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2850   fi
2851 done
2852 IFS=$ac_save_IFS
2853
2854
2855 #
2856 # Tcl/Tk
2857 #
2858 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2859 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2860
2861
2862
2863 # Check whether --with-tcl or --without-tcl was given.
2864 if test "${with_tcl+set}" = set; then
2865   withval="$with_tcl"
2866
2867   case $withval in
2868     yes)
2869       :
2870       ;;
2871     no)
2872       :
2873       ;;
2874     *)
2875       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2876 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2877    { (exit 1); exit 1; }; }
2878       ;;
2879   esac
2880
2881 else
2882   with_tcl=no
2883
2884 fi;
2885
2886 echo "$as_me:$LINENO: result: $with_tcl" >&5
2887 echo "${ECHO_T}$with_tcl" >&6
2888
2889
2890 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2891 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2892 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2893 if test "$with_tcl" = yes; then
2894
2895
2896
2897 # Check whether --with-tk or --without-tk was given.
2898 if test "${with_tk+set}" = set; then
2899   withval="$with_tk"
2900
2901   case $withval in
2902     yes)
2903       :
2904       ;;
2905     no)
2906       :
2907       ;;
2908     *)
2909       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2910 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2911    { (exit 1); exit 1; }; }
2912       ;;
2913   esac
2914
2915 else
2916   with_tk=yes
2917
2918 fi;
2919
2920 else
2921   with_tk=no
2922 fi
2923 echo "$as_me:$LINENO: result: $with_tk" >&5
2924 echo "${ECHO_T}$with_tk" >&6
2925
2926
2927
2928 # We see if the path to the Tcl/Tk configuration scripts is specified.
2929 # This will override the use of tclsh to find the paths to search.
2930
2931
2932
2933
2934 # Check whether --with-tclconfig or --without-tclconfig was given.
2935 if test "${with_tclconfig+set}" = set; then
2936   withval="$with_tclconfig"
2937
2938   case $withval in
2939     yes)
2940       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2941 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2942    { (exit 1); exit 1; }; }
2943       ;;
2944     no)
2945       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2946 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2947    { (exit 1); exit 1; }; }
2948       ;;
2949     *)
2950
2951       ;;
2952   esac
2953
2954 fi;
2955
2956
2957 # We see if the path to the Tk configuration scripts is specified.
2958 # This will override the use of tclsh to find the paths to search.
2959
2960
2961
2962
2963 # Check whether --with-tkconfig or --without-tkconfig was given.
2964 if test "${with_tkconfig+set}" = set; then
2965   withval="$with_tkconfig"
2966
2967   case $withval in
2968     yes)
2969       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2970 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2971    { (exit 1); exit 1; }; }
2972       ;;
2973     no)
2974       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2975 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2976    { (exit 1); exit 1; }; }
2977       ;;
2978     *)
2979
2980       ;;
2981   esac
2982
2983 fi;
2984
2985
2986 #
2987 # Optionally build Perl modules (Pg.pm and PL/Perl)
2988 #
2989 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2990 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2991
2992
2993
2994 # Check whether --with-perl or --without-perl was given.
2995 if test "${with_perl+set}" = set; then
2996   withval="$with_perl"
2997
2998   case $withval in
2999     yes)
3000       :
3001       ;;
3002     no)
3003       :
3004       ;;
3005     *)
3006       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3007 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3008    { (exit 1); exit 1; }; }
3009       ;;
3010   esac
3011
3012 else
3013   with_perl=no
3014
3015 fi;
3016
3017 echo "$as_me:$LINENO: result: $with_perl" >&5
3018 echo "${ECHO_T}$with_perl" >&6
3019
3020
3021 #
3022 # Optionally build Python interface module
3023 #
3024 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3025 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3026
3027
3028
3029 # Check whether --with-python or --without-python was given.
3030 if test "${with_python+set}" = set; then
3031   withval="$with_python"
3032
3033   case $withval in
3034     yes)
3035       :
3036       ;;
3037     no)
3038       :
3039       ;;
3040     *)
3041       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3042 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3043    { (exit 1); exit 1; }; }
3044       ;;
3045   esac
3046
3047 else
3048   with_python=no
3049
3050 fi;
3051
3052 echo "$as_me:$LINENO: result: $with_python" >&5
3053 echo "${ECHO_T}$with_python" >&6
3054
3055
3056 #
3057 # Optionally build the Java/JDBC tools
3058 #
3059 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3060 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3061
3062
3063
3064 # Check whether --with-java or --without-java was given.
3065 if test "${with_java+set}" = set; then
3066   withval="$with_java"
3067
3068   case $withval in
3069     yes)
3070       echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3072
3073   for ac_prog in jakarta-ant ant ant.sh ant.bat
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079 if test "${ac_cv_path_ANT+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   case $ANT in
3083   [\\/]* | ?:[\\/]*)
3084   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3085   ;;
3086   *)
3087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092   for ac_exec_ext in '' $ac_executable_extensions; do
3093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099 done
3100
3101   ;;
3102 esac
3103 fi
3104 ANT=$ac_cv_path_ANT
3105
3106 if test -n "$ANT"; then
3107   echo "$as_me:$LINENO: result: $ANT" >&5
3108 echo "${ECHO_T}$ANT" >&6
3109 else
3110   echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3112 fi
3113
3114   test -n "$ANT" && break
3115 done
3116
3117
3118   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3119 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3120 if test "${pgac_cv_prog_ant_works+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123
3124     cat > conftest.java << EOF
3125 public class conftest {
3126     int testmethod(int a, int b) {
3127         return a + b;
3128     }
3129 }
3130 EOF
3131
3132     cat > conftest.xml << EOF
3133 <project name="conftest" default="conftest">
3134  <target name="conftest">
3135   <javac srcdir="." includes="conftest.java">
3136   </javac>
3137  </target>
3138 </project>
3139 EOF
3140
3141     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3142     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3143   (eval $pgac_cmd) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }
3147     pgac_save_status=$?
3148     if test $? = 0 && test -f ./conftest.class ; then
3149       pgac_cv_prog_ant_works=yes
3150     else
3151       echo "configure: failed java program was:" >&5
3152       cat conftest.java >&5
3153       echo "configure: failed build file was:" >&5
3154       cat conftest.xml >&5
3155       pgac_cv_prog_ant_works=no
3156     fi
3157
3158     rm -f conftest* core core.* *.core
3159
3160 fi
3161 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3162 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3163
3164   if test "$pgac_cv_prog_ant_works" != yes; then
3165     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3166 echo "$as_me: error: ant does not work" >&2;}
3167    { (exit 1); exit 1; }; }
3168   fi
3169
3170
3171 if test -z "$ANT"; then
3172   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3173 echo "$as_me: error: Ant is required to build Java components" >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176       ;;
3177     no)
3178       echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180       ;;
3181     *)
3182       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3183 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3184    { (exit 1); exit 1; }; }
3185       ;;
3186   esac
3187
3188 else
3189   with_java=no
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi;
3193
3194
3195
3196
3197 #
3198 # Kerberos 4
3199 #
3200 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3201 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3202
3203
3204
3205 # Check whether --with-krb4 or --without-krb4 was given.
3206 if test "${with_krb4+set}" = set; then
3207   withval="$with_krb4"
3208
3209   case $withval in
3210     yes)
3211       krb4_prefix=/usr/athena
3212       ;;
3213     no)
3214       :
3215       ;;
3216     *)
3217       with_krb4=yes
3218 krb4_prefix=$withval
3219       ;;
3220   esac
3221
3222 else
3223   with_krb4=no
3224 fi;
3225
3226
3227 if test "$with_krb4" = yes; then
3228
3229   echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define KRB4 1
3234 _ACEOF
3235
3236
3237   if test -d "$krb4_prefix/include"; then
3238     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3239   fi
3240   if test -d "$krb4_prefix/lib"; then
3241     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3242   fi
3243
3244   krb_srvtab="/etc/srvtab"
3245
3246 else
3247   echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3249 fi
3250
3251
3252
3253
3254
3255 #
3256 # Kerberos 5
3257 #
3258 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3259 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3260
3261
3262
3263 # Check whether --with-krb5 or --without-krb5 was given.
3264 if test "${with_krb5+set}" = set; then
3265   withval="$with_krb5"
3266
3267   case $withval in
3268     yes)
3269       krb5_prefix=/usr/athena
3270       ;;
3271     no)
3272       :
3273       ;;
3274     *)
3275       with_krb5=yes
3276 krb5_prefix=$withval
3277       ;;
3278   esac
3279
3280 else
3281   with_krb5=no
3282 fi;
3283
3284
3285 if test "$with_krb5" = yes; then
3286
3287   echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define KRB5 1
3292 _ACEOF
3293
3294
3295   if test -d "$krb5_prefix/include"; then
3296     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3297   fi
3298   if test -d "$krb5_prefix/lib"; then
3299     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3300   fi
3301
3302   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3303
3304 else
3305   echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309
3310
3311
3312
3313 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3314 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3315   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3316 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320
3321
3322
3323 #
3324 # Kerberos configuration parameters
3325 #
3326
3327
3328
3329 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3330 if test "${with_krb_srvnam+set}" = set; then
3331   withval="$with_krb_srvnam"
3332
3333   case $withval in
3334     yes)
3335       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3336 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3337    { (exit 1); exit 1; }; }
3338       ;;
3339     no)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     *)
3345
3346       ;;
3347   esac
3348
3349 else
3350   with_krb_srvnam="postgres"
3351 fi;
3352
3353
3354 cat >>confdefs.h <<_ACEOF
3355 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3356 _ACEOF
3357
3358
3359
3360 #
3361 # PAM
3362 #
3363 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3364 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3365
3366
3367
3368 # Check whether --with-pam or --without-pam was given.
3369 if test "${with_pam+set}" = set; then
3370   withval="$with_pam"
3371
3372   case $withval in
3373     yes)
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define USE_PAM 1
3377 _ACEOF
3378
3379       ;;
3380     no)
3381       :
3382       ;;
3383     *)
3384       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3385 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3386    { (exit 1); exit 1; }; }
3387       ;;
3388   esac
3389
3390 else
3391   with_pam=no
3392
3393 fi;
3394
3395 echo "$as_me:$LINENO: result: $with_pam" >&5
3396 echo "${ECHO_T}$with_pam" >&6
3397
3398
3399
3400 #
3401 # OpenSSL
3402 #
3403
3404
3405
3406 # Check whether --with-openssl or --without-openssl was given.
3407 if test "${with_openssl+set}" = set; then
3408   withval="$with_openssl"
3409
3410   case $withval in
3411     yes)
3412       openssl_prefix=/usr/local/ssl
3413       ;;
3414     no)
3415       :
3416       ;;
3417     *)
3418       with_openssl=yes
3419 openssl_prefix=$withval
3420       ;;
3421   esac
3422
3423 else
3424   with_openssl=no
3425 fi;
3426
3427
3428 if test "$with_openssl" = yes; then
3429
3430   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3431 echo "${ECHO_T}building with OpenSSL support" >&6
3432
3433 cat >>confdefs.h <<\_ACEOF
3434 #define USE_SSL 1
3435 _ACEOF
3436
3437
3438   if test -d "${openssl_prefix}/include" ; then
3439     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3440   fi
3441   if test -d "${openssl_prefix}/lib" ; then
3442     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3443   fi
3444
3445 fi
3446
3447
3448
3449
3450
3451 #
3452 # Readline
3453 #
3454
3455
3456
3457 # Check whether --with-readline or --without-readline was given.
3458 if test "${with_readline+set}" = set; then
3459   withval="$with_readline"
3460
3461   case $withval in
3462     yes)
3463       :
3464       ;;
3465     no)
3466       :
3467       ;;
3468     *)
3469       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3470 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3471    { (exit 1); exit 1; }; }
3472       ;;
3473   esac
3474
3475 else
3476   with_readline=yes
3477
3478 fi;
3479
3480
3481 #
3482 # Zlib
3483 #
3484
3485
3486
3487 # Check whether --with-zlib or --without-zlib was given.
3488 if test "${with_zlib+set}" = set; then
3489   withval="$with_zlib"
3490
3491   case $withval in
3492     yes)
3493       :
3494       ;;
3495     no)
3496       :
3497       ;;
3498     *)
3499       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3500 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3501    { (exit 1); exit 1; }; }
3502       ;;
3503   esac
3504
3505 else
3506   with_zlib=yes
3507
3508 fi;
3509
3510
3511
3512
3513 #
3514 # Optionally enable the building of the ODBC driver
3515 #
3516
3517 # Old option name
3518 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3519   enable_odbc=$with_odbc
3520 fi
3521
3522 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3523 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3524
3525
3526 # Check whether --enable-odbc or --disable-odbc was given.
3527 if test "${enable_odbc+set}" = set; then
3528   enableval="$enable_odbc"
3529
3530   case $enableval in
3531     yes)
3532       :
3533       ;;
3534     no)
3535       :
3536       ;;
3537     *)
3538       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3539 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3540    { (exit 1); exit 1; }; }
3541       ;;
3542   esac
3543
3544 else
3545   enable_odbc=no
3546
3547 fi;
3548
3549
3550
3551
3552 # Check whether --with-unixodbc or --without-unixodbc was given.
3553 if test "${with_unixodbc+set}" = set; then
3554   withval="$with_unixodbc"
3555
3556   case $withval in
3557     yes)
3558       :
3559       ;;
3560     no)
3561       :
3562       ;;
3563     *)
3564       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3565 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3566    { (exit 1); exit 1; }; }
3567       ;;
3568   esac
3569
3570 else
3571   with_unixodbc=no
3572
3573 fi;
3574
3575
3576
3577
3578 # Check whether --with-iodbc or --without-iodbc was given.
3579 if test "${with_iodbc+set}" = set; then
3580   withval="$with_iodbc"
3581
3582   case $withval in
3583     yes)
3584       :
3585       ;;
3586     no)
3587       :
3588       ;;
3589     *)
3590       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3591 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3592    { (exit 1); exit 1; }; }
3593       ;;
3594   esac
3595
3596 else
3597   with_iodbc=no
3598
3599 fi;
3600
3601 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3602   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3603 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3604    { (exit 1); exit 1; }; }
3605 fi
3606 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3607   enable_odbc=yes
3608 fi
3609 case $enable_odbc:$with_unixodbc:$with_iodbc in
3610   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3611 echo "${ECHO_T}yes (stand-alone)" >&6;;
3612   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3613 echo "${ECHO_T}yes (unixODBC)" >&6
3614
3615 cat >>confdefs.h <<\_ACEOF
3616 #define WITH_UNIXODBC 1
3617 _ACEOF
3618
3619                 ;;
3620   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3621 echo "${ECHO_T}yes (iODBC)" >&6
3622
3623 cat >>confdefs.h <<\_ACEOF
3624 #define WITH_IODBC 1
3625 _ACEOF
3626
3627                 ;;
3628   no:*)         echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6;;
3630 esac
3631
3632
3633
3634
3635
3636 # Allow for overriding the default location of the odbcinst.ini
3637 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3638
3639
3640
3641 # Check whether --with-odbcinst or --without-odbcinst was given.
3642 if test "${with_odbcinst+set}" = set; then
3643   withval="$with_odbcinst"
3644
3645   case $withval in
3646     yes)
3647       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3648 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3649    { (exit 1); exit 1; }; }
3650       ;;
3651     no)
3652       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3653 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3654    { (exit 1); exit 1; }; }
3655       ;;
3656     *)
3657       odbcinst_ini_dir=$withval
3658       ;;
3659   esac
3660
3661 else
3662   odbcinst_ini_dir="\${sysconfdir}"
3663 fi;
3664
3665
3666
3667
3668
3669 # Assume system is ELF if it predefines __ELF__ as 1,
3670 # otherwise believe host_os based default.
3671 case $host_os in
3672     freebsd1*|freebsd2*) elf=no;;
3673     freebsd3*|freebsd4*) elf=yes;;
3674 esac
3675
3676
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3680 #if __ELF__
3681   yes
3682 #endif
3683
3684 _ACEOF
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686   egrep "yes" >/dev/null 2>&1; then
3687   ELF_SYS=true
3688 else
3689   if test "X$elf" = "Xyes" ; then
3690   ELF_SYS=true
3691 else
3692   ELF_SYS=
3693 fi
3694 fi
3695 rm -f conftest*
3696
3697
3698
3699
3700
3701 #
3702 # Optionally build C++ code (i.e., libpq++)
3703 #
3704 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3705 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3706
3707
3708
3709 # Check whether --with-CXX or --without-CXX was given.
3710 if test "${with_CXX+set}" = set; then
3711   withval="$with_CXX"
3712
3713   case $withval in
3714     yes)
3715       :
3716       ;;
3717     no)
3718       :
3719       ;;
3720     *)
3721       with_CXX=yes
3722 CXX=$withval
3723       ;;
3724   esac
3725
3726 else
3727   with_CXX=no
3728 fi;
3729
3730
3731 if test "$with_CXX" = yes; then
3732
3733   echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735
3736   # If the user has specified CXXFLAGS in the environment, leave it
3737   # alone, else use a default.
3738
3739   ac_ext=cc
3740 ac_cpp='$CXXCPP $CPPFLAGS'
3741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3746   do
3747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_CXX+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test -n "$CXX"; then
3755   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771 fi
3772 fi
3773 CXX=$ac_cv_prog_CXX
3774 if test -n "$CXX"; then
3775   echo "$as_me:$LINENO: result: $CXX" >&5
3776 echo "${ECHO_T}$CXX" >&6
3777 else
3778   echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3780 fi
3781
3782     test -n "$CXX" && break
3783   done
3784 fi
3785 if test -z "$CXX"; then
3786   ac_ct_CXX=$CXX
3787   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3788 do
3789   # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test -n "$ac_ct_CXX"; then
3797   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804   for ac_exec_ext in '' $ac_executable_extensions; do
3805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806     ac_cv_prog_ac_ct_CXX="$ac_prog"
3807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811 done
3812
3813 fi
3814 fi
3815 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3816 if test -n "$ac_ct_CXX"; then
3817   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3818 echo "${ECHO_T}$ac_ct_CXX" >&6
3819 else
3820   echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823
3824   test -n "$ac_ct_CXX" && break
3825 done
3826 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3827
3828   CXX=$ac_ct_CXX
3829 fi
3830
3831
3832 # Provide some information about the compiler.
3833 echo "$as_me:$LINENO:" \
3834      "checking for C++ compiler version" >&5
3835 ac_compiler=`set X $ac_compile; echo $2`
3836 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3837   (eval $ac_compiler --version </dev/null >&5) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }
3841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3842   (eval $ac_compiler -v </dev/null >&5) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }
3846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3847   (eval $ac_compiler -V </dev/null >&5) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }
3851
3852 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3853 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3854 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 #line $LINENO "configure"
3859 #include "confdefs.h"
3860
3861 #ifdef F77_DUMMY_MAIN
3862 #  ifdef __cplusplus
3863      extern "C"
3864 #  endif
3865    int F77_DUMMY_MAIN() { return 1; }
3866 #endif
3867 int
3868 main ()
3869 {
3870 #ifndef __GNUC__
3871        choke me
3872 #endif
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880   (eval $ac_compile) 2>&5
3881   ac_status=$?
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } &&
3884          { ac_try='test -s conftest.$ac_objext'
3885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886   (eval $ac_try) 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }; }; then
3890   ac_compiler_gnu=yes
3891 else
3892   echo "$as_me: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3894 ac_compiler_gnu=no
3895 fi
3896 rm -f conftest.$ac_objext conftest.$ac_ext
3897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3898
3899 fi
3900 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3902 GXX=`test $ac_compiler_gnu = yes && echo yes`
3903 ac_test_CXXFLAGS=${CXXFLAGS+set}
3904 ac_save_CXXFLAGS=$CXXFLAGS
3905 CXXFLAGS="-g"
3906 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3907 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3908 if test "${ac_cv_prog_cxx_g+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3914
3915 #ifdef F77_DUMMY_MAIN
3916 #  ifdef __cplusplus
3917      extern "C"
3918 #  endif
3919    int F77_DUMMY_MAIN() { return 1; }
3920 #endif
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931   (eval $ac_compile) 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } &&
3935          { ac_try='test -s conftest.$ac_objext'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; }; then
3941   ac_cv_prog_cxx_g=yes
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 ac_cv_prog_cxx_g=no
3946 fi
3947 rm -f conftest.$ac_objext conftest.$ac_ext
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3950 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3951 if test "$ac_test_CXXFLAGS" = set; then
3952   CXXFLAGS=$ac_save_CXXFLAGS
3953 elif test $ac_cv_prog_cxx_g = yes; then
3954   if test "$GXX" = yes; then
3955     CXXFLAGS="-g -O2"
3956   else
3957     CXXFLAGS="-g"
3958   fi
3959 else
3960   if test "$GXX" = yes; then
3961     CXXFLAGS="-O2"
3962   else
3963     CXXFLAGS=
3964   fi
3965 fi
3966 for ac_declaration in \
3967    ''\
3968    '#include <stdlib.h>' \
3969    'extern "C" void std::exit (int) throw (); using std::exit;' \
3970    'extern "C" void std::exit (int); using std::exit;' \
3971    'extern "C" void exit (int) throw ();' \
3972    'extern "C" void exit (int);' \
3973    'void exit (int);'
3974 do
3975   cat >conftest.$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 #include "confdefs.h"
3978 #include <stdlib.h>
3979 $ac_declaration
3980 #ifdef F77_DUMMY_MAIN
3981 #  ifdef __cplusplus
3982      extern "C"
3983 #  endif
3984    int F77_DUMMY_MAIN() { return 1; }
3985 #endif
3986 int
3987 main ()
3988 {
3989 exit (42);
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996   (eval $ac_compile) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -s conftest.$ac_objext'
4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   :
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 continue
4011 fi
4012 rm -f conftest.$ac_objext conftest.$ac_ext
4013   cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 #include "confdefs.h"
4016 $ac_declaration
4017 #ifdef F77_DUMMY_MAIN
4018 #  ifdef __cplusplus
4019      extern "C"
4020 #  endif
4021    int F77_DUMMY_MAIN() { return 1; }
4022 #endif
4023 int
4024 main ()
4025 {
4026 exit (42);
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033   (eval $ac_compile) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -s conftest.$ac_objext'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   break
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 fi
4048 rm -f conftest.$ac_objext conftest.$ac_ext
4049 done
4050 rm -f conftest*
4051 if test -n "$ac_declaration"; then
4052   echo '#ifdef __cplusplus' >>confdefs.h
4053   echo $ac_declaration      >>confdefs.h
4054   echo '#endif'             >>confdefs.h
4055 fi
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063   if test "$ac_env_CXXFLAGS" != set; then
4064     if test "$GXX" = yes; then
4065       CXXFLAGS=-O2
4066     else
4067       case $template in
4068         osf)            CXXFLAGS='-O4 -Olimit 2000' ;;
4069         unixware)       CXXFLAGS='-O' ;;
4070         *)              CXXFLAGS= ;;
4071       esac
4072     fi
4073   fi
4074   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4075     CXXFLAGS="$CXXFLAGS -g"
4076   fi
4077   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4078 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4079
4080   ac_ext=cc
4081 ac_cpp='$CXXCPP $CPPFLAGS'
4082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4086 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4087 if test -z "$CXXCPP"; then
4088   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091       # Double quotes because CXXCPP needs to be expanded
4092     for CXXCPP in "$CXX -E" "/lib/cpp"
4093     do
4094       ac_preproc_ok=false
4095 for ac_cxx_preproc_warn_flag in '' yes
4096 do
4097   # Use a header file that comes with gcc, so configuring glibc
4098   # with a fresh cross-compiler works.
4099   # On the NeXT, cc -E runs the code through the compiler's parser,
4100   # not just through cpp. "Syntax error" is here to catch this case.
4101   cat >conftest.$ac_ext <<_ACEOF
4102 #line $LINENO "configure"
4103 #include "confdefs.h"
4104 #include <assert.h>
4105                      Syntax error
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109   ac_status=$?
4110   egrep -v '^ *\+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } >/dev/null; then
4115   if test -s conftest.err; then
4116     ac_cpp_err=$ac_cxx_preproc_warn_flag
4117   else
4118     ac_cpp_err=
4119   fi
4120 else
4121   ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124   :
4125 else
4126   echo "$as_me: failed program was:" >&5
4127   cat conftest.$ac_ext >&5
4128   # Broken: fails on valid input.
4129 continue
4130 fi
4131 rm -f conftest.err conftest.$ac_ext
4132
4133   # OK, works on sane cases.  Now check whether non-existent headers
4134   # can be detected and how.
4135   cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4137 #include "confdefs.h"
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4142   ac_status=$?
4143   egrep -v '^ *\+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } >/dev/null; then
4148   if test -s conftest.err; then
4149     ac_cpp_err=$ac_cxx_preproc_warn_flag
4150   else
4151     ac_cpp_err=
4152   fi
4153 else
4154   ac_cpp_err=yes
4155 fi
4156 if test -z "$ac_cpp_err"; then
4157   # Broken: success on invalid input.
4158 continue
4159 else
4160   echo "$as_me: failed program was:" >&5
4161   cat conftest.$ac_ext >&5
4162   # Passes both tests.
4163 ac_preproc_ok=:
4164 break
4165 fi
4166 rm -f conftest.err conftest.$ac_ext
4167
4168 done
4169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170 rm -f conftest.err conftest.$ac_ext
4171 if $ac_preproc_ok; then
4172   break
4173 fi
4174
4175     done
4176     ac_cv_prog_CXXCPP=$CXXCPP
4177
4178 fi
4179   CXXCPP=$ac_cv_prog_CXXCPP
4180 else
4181   ac_cv_prog_CXXCPP=$CXXCPP
4182 fi
4183 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4184 echo "${ECHO_T}$CXXCPP" >&6
4185 ac_preproc_ok=false
4186 for ac_cxx_preproc_warn_flag in '' yes
4187 do
4188   # Use a header file that comes with gcc, so configuring glibc
4189   # with a fresh cross-compiler works.
4190   # On the NeXT, cc -E runs the code through the compiler's parser,
4191   # not just through cpp. "Syntax error" is here to catch this case.
4192   cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195 #include <assert.h>
4196                      Syntax error
4197 _ACEOF
4198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4200   ac_status=$?
4201   egrep -v '^ *\+' conftest.er1 >conftest.err
4202   rm -f conftest.er1
4203   cat conftest.err >&5
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } >/dev/null; then
4206   if test -s conftest.err; then
4207     ac_cpp_err=$ac_cxx_preproc_warn_flag
4208   else
4209     ac_cpp_err=
4210   fi
4211 else
4212   ac_cpp_err=yes
4213 fi
4214 if test -z "$ac_cpp_err"; then
4215   :
4216 else
4217   echo "$as_me: failed program was:" >&5
4218   cat conftest.$ac_ext >&5
4219   # Broken: fails on valid input.
4220 continue
4221 fi
4222 rm -f conftest.err conftest.$ac_ext
4223
4224   # OK, works on sane cases.  Now check whether non-existent headers
4225   # can be detected and how.
4226   cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 #include "confdefs.h"
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233   ac_status=$?
4234   egrep -v '^ *\+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null; then
4239   if test -s conftest.err; then
4240     ac_cpp_err=$ac_cxx_preproc_warn_flag
4241   else
4242     ac_cpp_err=
4243   fi
4244 else
4245   ac_cpp_err=yes
4246 fi
4247 if test -z "$ac_cpp_err"; then
4248   # Broken: success on invalid input.
4249 continue
4250 else
4251   echo "$as_me: failed program was:" >&5
4252   cat conftest.$ac_ext >&5
4253   # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4263   :
4264 else
4265   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4266 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4267    { (exit 1); exit 1; }; }
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277 else
4278   echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284
4285 CPPFLAGS="$CPPFLAGS $INCLUDES"
4286 LDFLAGS="$LDFLAGS $LIBDIRS"
4287
4288 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4289 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4290 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4291 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4292
4293
4294 for ac_prog in gawk mawk nawk awk
4295 do
4296   # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_AWK+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test -n "$AWK"; then
4304   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313     ac_cv_prog_AWK="$ac_prog"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319
4320 fi
4321 fi
4322 AWK=$ac_cv_prog_AWK
4323 if test -n "$AWK"; then
4324   echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4326 else
4327   echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330
4331   test -n "$AWK" && break
4332 done
4333
4334 echo "$as_me:$LINENO: checking for flex" >&5
4335 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4336 if test "${pgac_cv_path_flex+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   # Let the user override the test
4340 if test -n "$FLEX"; then
4341   pgac_cv_path_flex=$FLEX
4342 else
4343   pgac_save_IFS=$IFS
4344   IFS=:
4345   for pgac_dir in $PATH; do
4346     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4347       pgac_dir=`pwd`
4348     fi
4349     for pgac_prog in flex lex; do
4350       pgac_candidate="$pgac_dir/$pgac_prog"
4351       if test -f "$pgac_candidate" \
4352         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4353       then
4354         echo '%%'  > conftest.l
4355         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4356           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4357             pgac_broken_flex=$pgac_candidate
4358             continue
4359           fi
4360
4361           pgac_cv_path_flex=$pgac_candidate
4362           break 2
4363         fi
4364       fi
4365     done
4366   done
4367   IFS=$pgac_save_IFS
4368   rm -f conftest.l
4369   : ${pgac_cv_path_flex=no}
4370 fi
4371
4372 fi
4373 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4374 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4375 if test x"$pgac_cv_path_flex" = x"no"; then
4376   if test -n "$pgac_broken_flex"; then
4377     { echo "$as_me:$LINENO: WARNING:
4378 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4379 *** should get version 2.5.4 or later." >&5
4380 echo "$as_me: WARNING:
4381 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4382 *** should get version 2.5.4 or later." >&2;}
4383   fi
4384
4385   { echo "$as_me:$LINENO: WARNING:
4386 *** Without Flex you will not be able to build PostgreSQL from CVS or
4387 *** change any of the scanner definition files.  You can obtain Flex from
4388 *** a GNU mirror site.  (If you are using the official distribution of
4389 *** PostgreSQL then you do not need to worry about this because the Flex
4390 *** output is pre-generated.)" >&5
4391 echo "$as_me: WARNING:
4392 *** Without Flex you will not be able to build PostgreSQL from CVS or
4393 *** change any of the scanner definition files.  You can obtain Flex from
4394 *** a GNU mirror site.  (If you are using the official distribution of
4395 *** PostgreSQL then you do not need to worry about this because the Flex
4396 *** output is pre-generated.)" >&2;}
4397 fi
4398
4399 if test x"$pgac_cv_path_flex" = x"no"; then
4400   FLEX=
4401 else
4402   FLEX=$pgac_cv_path_flex
4403 fi
4404
4405
4406
4407
4408 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4409 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4410 LN_S=$as_ln_s
4411 if test "$LN_S" = "ln -s"; then
4412   echo "$as_me:$LINENO: result: yes" >&5
4413 echo "${ECHO_T}yes" >&6
4414 else
4415   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4416 echo "${ECHO_T}no, using $LN_S" >&6
4417 fi
4418
4419
4420 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4421 if test "${with_gnu_ld+set}" = set; then
4422   withval="$with_gnu_ld"
4423   test "$withval" = no || with_gnu_ld=yes
4424 else
4425   with_gnu_ld=no
4426 fi;
4427 ac_prog=ld
4428 if test "$GCC" = yes; then
4429   # Check if gcc -print-prog-name=ld gives a path.
4430   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4431 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4432   case $host in
4433   *-*-mingw*)
4434     # gcc leaves a trailing carriage return which upsets mingw
4435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4436   *)
4437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4438   esac
4439   case "$ac_prog" in
4440     # Accept absolute paths.
4441     [\\/]* | [A-Za-z]:[\\/]*)
4442       re_direlt='/[^/][^/]*/\.\./'
4443       # Canonicalize the path of ld
4444       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4445       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4446         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4447       done
4448       test -z "$LD" && LD="$ac_prog"
4449       ;;
4450   "")
4451     # If it fails, then pretend we aren't using GCC.
4452     ac_prog=ld
4453     ;;
4454   *)
4455     # If it is relative, then search for the first ld in PATH.
4456     with_gnu_ld=unknown
4457     ;;
4458   esac
4459 elif test "$with_gnu_ld" = yes; then
4460   echo "$as_me:$LINENO: checking for GNU ld" >&5
4461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4462 else
4463   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4465 fi
4466 if test "${ac_cv_path_LD+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -z "$LD"; then
4470   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4471   for ac_dir in $PATH; do
4472     test -z "$ac_dir" && ac_dir=.
4473     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4474       ac_cv_path_LD="$ac_dir/$ac_prog"
4475       # Check to see if the program is GNU ld.  I'd rather use --version,
4476       # but apparently some GNU ld's only accept -v.
4477       # Break only if it was the GNU/non-GNU ld that we prefer.
4478       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4479         test "$with_gnu_ld" != no && break
4480       else
4481         test "$with_gnu_ld" != yes && break
4482       fi
4483     fi
4484   done
4485   IFS="$ac_save_ifs"
4486 else
4487   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4488 fi
4489 fi
4490
4491 LD="$ac_cv_path_LD"
4492 if test -n "$LD"; then
4493   echo "$as_me:$LINENO: result: $LD" >&5
4494 echo "${ECHO_T}$LD" >&6
4495 else
4496   echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4498 fi
4499 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4500 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4501    { (exit 1); exit 1; }; }
4502 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4503 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4504 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4508 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4509   ac_cv_prog_gnu_ld=yes
4510 else
4511   ac_cv_prog_gnu_ld=no
4512 fi
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4515 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4516 with_gnu_ld=$ac_cv_prog_gnu_ld
4517
4518
4519
4520
4521 case $host_os in sysv5*)
4522   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4523 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4524 if test "${pgac_cv_prog_ld_R+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527
4528     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4529     cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4532
4533 #ifdef F77_DUMMY_MAIN
4534 #  ifdef __cplusplus
4535      extern "C"
4536 #  endif
4537    int F77_DUMMY_MAIN() { return 1; }
4538 #endif
4539 int
4540 main ()
4541 {
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549   (eval $ac_link) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -s conftest$ac_exeext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   pgac_cv_prog_ld_R=yes
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4563 pgac_cv_prog_ld_R=no
4564 fi
4565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4566     LDFLAGS=$pgac_save_LDFLAGS
4567
4568 fi
4569 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4570 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4571   ld_R_works=$pgac_cv_prog_ld_R
4572
4573 esac
4574 if test -n "$ac_tool_prefix"; then
4575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_prog_RANLIB+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test -n "$RANLIB"; then
4583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598
4599 fi
4600 fi
4601 RANLIB=$ac_cv_prog_RANLIB
4602 if test -n "$RANLIB"; then
4603   echo "$as_me:$LINENO: result: $RANLIB" >&5
4604 echo "${ECHO_T}$RANLIB" >&6
4605 else
4606   echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4608 fi
4609
4610 fi
4611 if test -z "$ac_cv_prog_RANLIB"; then
4612   ac_ct_RANLIB=$RANLIB
4613   # Extract the first word of "ranlib", so it can be a program name with args.
4614 set dummy ranlib; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   if test -n "$ac_ct_RANLIB"; then
4621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630     ac_cv_prog_ac_ct_RANLIB="ranlib"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636
4637   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4638 fi
4639 fi
4640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4641 if test -n "$ac_ct_RANLIB"; then
4642   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4643 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647 fi
4648
4649   RANLIB=$ac_ct_RANLIB
4650 else
4651   RANLIB="$ac_cv_prog_RANLIB"
4652 fi
4653
4654 for ac_prog in lorder
4655 do
4656   # Extract the first word of "$ac_prog", so it can be a program name with args.
4657 set dummy $ac_prog; 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_LORDER+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$LORDER"; then
4664   ac_cv_prog_LORDER="$LORDER" # 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_LORDER="$ac_prog"
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 fi
4681 fi
4682 LORDER=$ac_cv_prog_LORDER
4683 if test -n "$LORDER"; then
4684   echo "$as_me:$LINENO: result: $LORDER" >&5
4685 echo "${ECHO_T}$LORDER" >&6
4686 else
4687   echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4689 fi
4690
4691   test -n "$LORDER" && break
4692 done
4693
4694 # Extract the first word of "tar", so it can be a program name with args.
4695 set dummy tar; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_TAR+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $TAR in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720   ;;
4721 esac
4722 fi
4723 TAR=$ac_cv_path_TAR
4724
4725 if test -n "$TAR"; then
4726   echo "$as_me:$LINENO: result: $TAR" >&5
4727 echo "${ECHO_T}$TAR" >&6
4728 else
4729   echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734   if test -n "$ac_tool_prefix"; then
4735   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}strip; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_prog_STRIP+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test -n "$STRIP"; then
4743   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   for ac_exec_ext in '' $ac_executable_extensions; do
4751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757 done
4758
4759 fi
4760 fi
4761 STRIP=$ac_cv_prog_STRIP
4762 if test -n "$STRIP"; then
4763   echo "$as_me:$LINENO: result: $STRIP" >&5
4764 echo "${ECHO_T}$STRIP" >&6
4765 else
4766   echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4768 fi
4769
4770 fi
4771 if test -z "$ac_cv_prog_STRIP"; then
4772   ac_ct_STRIP=$STRIP
4773   # Extract the first word of "strip", so it can be a program name with args.
4774 set dummy strip; ac_word=$2
4775 echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test -n "$ac_ct_STRIP"; then
4781   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790     ac_cv_prog_ac_ct_STRIP="strip"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796
4797   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4798 fi
4799 fi
4800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4801 if test -n "$ac_ct_STRIP"; then
4802   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4803 echo "${ECHO_T}$ac_ct_STRIP" >&6
4804 else
4805   echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809   STRIP=$ac_ct_STRIP
4810 else
4811   STRIP="$ac_cv_prog_STRIP"
4812 fi
4813
4814
4815   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4816 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4817   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4818     STRIP_STATIC_LIB="$STRIP -x"
4819     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4820     echo "$as_me:$LINENO: result: yes" >&5
4821 echo "${ECHO_T}yes" >&6
4822   else
4823     STRIP_STATIC_LIB=:
4824     STRIP_SHARED_LIB=:
4825     echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827   fi
4828
4829
4830
4831
4832 for ac_prog in 'bison -y'
4833 do
4834   # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_YACC+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -n "$YACC"; then
4842   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851     ac_cv_prog_YACC="$ac_prog"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857
4858 fi
4859 fi
4860 YACC=$ac_cv_prog_YACC
4861 if test -n "$YACC"; then
4862   echo "$as_me:$LINENO: result: $YACC" >&5
4863 echo "${ECHO_T}$YACC" >&6
4864 else
4865   echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6
4867 fi
4868
4869   test -n "$YACC" && break
4870 done
4871
4872 if test -z "$YACC"; then
4873   { echo "$as_me:$LINENO: WARNING:
4874 *** Without Bison you will not be able to build PostgreSQL from CVS or
4875 *** change any of the parser definition files.  You can obtain Bison from
4876 *** a GNU mirror site.  (If you are using the official distribution of
4877 *** PostgreSQL then you do not need to worry about this because the Bison
4878 *** output is pre-generated.)  To use a different yacc program (possible,
4879 *** but not recommended), set the environment variable YACC before running
4880 *** 'configure'." >&5
4881 echo "$as_me: WARNING:
4882 *** Without Bison you will not be able to build PostgreSQL from CVS or
4883 *** change any of the parser definition files.  You can obtain Bison from
4884 *** a GNU mirror site.  (If you are using the official distribution of
4885 *** PostgreSQL then you do not need to worry about this because the Bison
4886 *** output is pre-generated.)  To use a different yacc program (possible,
4887 *** but not recommended), set the environment variable YACC before running
4888 *** 'configure'." >&2;}
4889 fi
4890
4891
4892 if test "$with_tk" = yes; then
4893     # Extract the first word of "wish", so it can be a program name with args.
4894 set dummy wish; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_WISH+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   case $WISH in
4901   [\\/]* | ?:[\\/]*)
4902   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4903   ;;
4904   *)
4905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918
4919   ;;
4920 esac
4921 fi
4922 WISH=$ac_cv_path_WISH
4923
4924 if test -n "$WISH"; then
4925   echo "$as_me:$LINENO: result: $WISH" >&5
4926 echo "${ECHO_T}$WISH" >&6
4927 else
4928   echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4933 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4934    { (exit 1); exit 1; }; }
4935 fi
4936
4937 # Extract the first word of "perl", so it can be a program name with args.
4938 set dummy perl; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_PERL+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $PERL in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962
4963   ;;
4964 esac
4965 fi
4966 PERL=$ac_cv_path_PERL
4967
4968 if test -n "$PERL"; then
4969   echo "$as_me:$LINENO: result: $PERL" >&5
4970 echo "${ECHO_T}$PERL" >&6
4971 else
4972   echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976 if test "$with_perl" = yes; then
4977
4978
4979 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4980 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4981
4982 # These are the ones we currently need.  Others can be added easily.
4983 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4984 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4985 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4986
4987
4988 echo "$as_me:$LINENO: result: done" >&5
4989 echo "${ECHO_T}done" >&6
4990
4991 fi
4992
4993 if test "$with_python" = yes; then
4994   # Extract the first word of "python", so it can be a program name with args.
4995 set dummy python; ac_word=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_path_PYTHON+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   case $PYTHON in
5002   [\\/]* | ?:[\\/]*)
5003   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5004   ;;
5005   *)
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019
5020   ;;
5021 esac
5022 fi
5023 PYTHON=$ac_cv_path_PYTHON
5024
5025 if test -n "$PYTHON"; then
5026   echo "$as_me:$LINENO: result: $PYTHON" >&5
5027 echo "${ECHO_T}$PYTHON" >&6
5028 else
5029   echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5031 fi
5032
5033 if test x"$PYTHON" = x""; then
5034   { { echo "$as_me:$LINENO: error: Python not found" >&5
5035 echo "$as_me: error: Python not found" >&2;}
5036    { (exit 1); exit 1; }; }
5037 fi
5038
5039
5040 echo "$as_me:$LINENO: checking Python installation directories" >&5
5041 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5042 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5043 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5044 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5045 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5046 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5047 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5048 python_includespec="-I${python_prefix}/include/python${python_version}"
5049 if test "$python_prefix" != "$python_execprefix"; then
5050   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5051 fi
5052
5053 # This should be enough of a message.
5054 if test "$python_prefix" != "$python_execprefix"; then
5055   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5056 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5057 else
5058   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5059 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5060 fi
5061
5062
5063
5064
5065
5066 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5067 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5068
5069 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5070 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5071 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5072 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5073 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5074
5075 pgac_tab="      " # tab character
5076 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"`
5077
5078 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5079 echo "${ECHO_T}${python_libspec}" >&6
5080
5081
5082 fi
5083
5084
5085 ##
5086 ## Libraries
5087 ##
5088
5089 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5090 then
5091
5092 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5093 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5094 if test "${ac_cv_lib_bsd_main+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   ac_check_lib_save_LIBS=$LIBS
5098 LIBS="-lbsd  $LIBS"
5099 cat >conftest.$ac_ext <<_ACEOF
5100 #line $LINENO "configure"
5101 #include "confdefs.h"
5102
5103
5104 #ifdef F77_DUMMY_MAIN
5105 #  ifdef __cplusplus
5106      extern "C"
5107 #  endif
5108    int F77_DUMMY_MAIN() { return 1; }
5109 #endif
5110 int
5111 main ()
5112 {
5113 main ();
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120   (eval $ac_link) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); } &&
5124          { ac_try='test -s conftest$ac_exeext'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   ac_cv_lib_bsd_main=yes
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 ac_cv_lib_bsd_main=no
5135 fi
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5138 fi
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5140 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5141 if test $ac_cv_lib_bsd_main = yes; then
5142   cat >>confdefs.h <<_ACEOF
5143 #define HAVE_LIBBSD 1
5144 _ACEOF
5145
5146   LIBS="-lbsd $LIBS"
5147
5148 fi
5149
5150 fi
5151
5152 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5153 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5154 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   ac_check_lib_save_LIBS=$LIBS
5158 LIBS="-lutil  $LIBS"
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 #include "confdefs.h"
5162
5163 /* Override any gcc2 internal prototype to avoid an error.  */
5164 #ifdef __cplusplus
5165 extern "C"
5166 #endif
5167 /* We use char because int might match the return type of a gcc2
5168    builtin and then its argument prototype would still apply.  */
5169 char setproctitle ();
5170 #ifdef F77_DUMMY_MAIN
5171 #  ifdef __cplusplus
5172      extern "C"
5173 #  endif
5174    int F77_DUMMY_MAIN() { return 1; }
5175 #endif
5176 int
5177 main ()
5178 {
5179 setproctitle ();
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186   (eval $ac_link) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } &&
5190          { ac_try='test -s conftest$ac_exeext'
5191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192   (eval $ac_try) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }; }; then
5196   ac_cv_lib_util_setproctitle=yes
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 ac_cv_lib_util_setproctitle=no
5201 fi
5202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5206 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5207 if test $ac_cv_lib_util_setproctitle = yes; then
5208   cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LIBUTIL 1
5210 _ACEOF
5211
5212   LIBS="-lutil $LIBS"
5213
5214 fi
5215
5216
5217 echo "$as_me:$LINENO: checking for main in -lm" >&5
5218 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5219 if test "${ac_cv_lib_m_main+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   ac_check_lib_save_LIBS=$LIBS
5223 LIBS="-lm  $LIBS"
5224 cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 #include "confdefs.h"
5227
5228
5229 #ifdef F77_DUMMY_MAIN
5230 #  ifdef __cplusplus
5231      extern "C"
5232 #  endif
5233    int F77_DUMMY_MAIN() { return 1; }
5234 #endif
5235 int
5236 main ()
5237 {
5238 main ();
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245   (eval $ac_link) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -s conftest$ac_exeext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   ac_cv_lib_m_main=yes
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5259 ac_cv_lib_m_main=no
5260 fi
5261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5265 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5266 if test $ac_cv_lib_m_main = yes; then
5267   cat >>confdefs.h <<_ACEOF
5268 #define HAVE_LIBM 1
5269 _ACEOF
5270
5271   LIBS="-lm $LIBS"
5272
5273 fi
5274
5275
5276 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5277 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5278 if test "${ac_cv_lib_dl_main+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   ac_check_lib_save_LIBS=$LIBS
5282 LIBS="-ldl  $LIBS"
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 #include "confdefs.h"
5286
5287
5288 #ifdef F77_DUMMY_MAIN
5289 #  ifdef __cplusplus
5290      extern "C"
5291 #  endif
5292    int F77_DUMMY_MAIN() { return 1; }
5293 #endif
5294 int
5295 main ()
5296 {
5297 main ();
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext conftest$ac_exeext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304   (eval $ac_link) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -s conftest$ac_exeext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_cv_lib_dl_main=yes
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 ac_cv_lib_dl_main=no
5319 fi
5320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5321 LIBS=$ac_check_lib_save_LIBS
5322 fi
5323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5324 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5325 if test $ac_cv_lib_dl_main = yes; then
5326   cat >>confdefs.h <<_ACEOF
5327 #define HAVE_LIBDL 1
5328 _ACEOF
5329
5330   LIBS="-ldl $LIBS"
5331
5332 fi
5333
5334
5335 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5336 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5337 if test "${ac_cv_lib_socket_main+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   ac_check_lib_save_LIBS=$LIBS
5341 LIBS="-lsocket  $LIBS"
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line $LINENO "configure"
5344 #include "confdefs.h"
5345
5346
5347 #ifdef F77_DUMMY_MAIN
5348 #  ifdef __cplusplus
5349      extern "C"
5350 #  endif
5351    int F77_DUMMY_MAIN() { return 1; }
5352 #endif
5353 int
5354 main ()
5355 {
5356 main ();
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363   (eval $ac_link) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -s conftest$ac_exeext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_lib_socket_main=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 ac_cv_lib_socket_main=no
5378 fi
5379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5381 fi
5382 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5383 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5384 if test $ac_cv_lib_socket_main = yes; then
5385   cat >>confdefs.h <<_ACEOF
5386 #define HAVE_LIBSOCKET 1
5387 _ACEOF
5388
5389   LIBS="-lsocket $LIBS"
5390
5391 fi
5392
5393
5394 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5395 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5396 if test "${ac_cv_lib_nsl_main+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   ac_check_lib_save_LIBS=$LIBS
5400 LIBS="-lnsl  $LIBS"
5401 cat >conftest.$ac_ext <<_ACEOF
5402 #line $LINENO "configure"
5403 #include "confdefs.h"
5404
5405
5406 #ifdef F77_DUMMY_MAIN
5407 #  ifdef __cplusplus
5408      extern "C"
5409 #  endif
5410    int F77_DUMMY_MAIN() { return 1; }
5411 #endif
5412 int
5413 main ()
5414 {
5415 main ();
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422   (eval $ac_link) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } &&
5426          { ac_try='test -s conftest$ac_exeext'
5427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428   (eval $ac_try) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; }; then
5432   ac_cv_lib_nsl_main=yes
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 ac_cv_lib_nsl_main=no
5437 fi
5438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5439 LIBS=$ac_check_lib_save_LIBS
5440 fi
5441 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5442 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5443 if test $ac_cv_lib_nsl_main = yes; then
5444   cat >>confdefs.h <<_ACEOF
5445 #define HAVE_LIBNSL 1
5446 _ACEOF
5447
5448   LIBS="-lnsl $LIBS"
5449
5450 fi
5451
5452
5453 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5454 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5455 if test "${ac_cv_lib_ipc_main+set}" = set; then
5456   echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458   ac_check_lib_save_LIBS=$LIBS
5459 LIBS="-lipc  $LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 #include "confdefs.h"
5463
5464
5465 #ifdef F77_DUMMY_MAIN
5466 #  ifdef __cplusplus
5467      extern "C"
5468 #  endif
5469    int F77_DUMMY_MAIN() { return 1; }
5470 #endif
5471 int
5472 main ()
5473 {
5474 main ();
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481   (eval $ac_link) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -s conftest$ac_exeext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_lib_ipc_main=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 ac_cv_lib_ipc_main=no
5496 fi
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_check_lib_save_LIBS
5499 fi
5500 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5501 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5502 if test $ac_cv_lib_ipc_main = yes; then
5503   cat >>confdefs.h <<_ACEOF
5504 #define HAVE_LIBIPC 1
5505 _ACEOF
5506
5507   LIBS="-lipc $LIBS"
5508
5509 fi
5510
5511
5512 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5513 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5514 if test "${ac_cv_lib_IPC_main+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_check_lib_save_LIBS=$LIBS
5518 LIBS="-lIPC  $LIBS"
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 #include "confdefs.h"
5522
5523
5524 #ifdef F77_DUMMY_MAIN
5525 #  ifdef __cplusplus
5526      extern "C"
5527 #  endif
5528    int F77_DUMMY_MAIN() { return 1; }
5529 #endif
5530 int
5531 main ()
5532 {
5533 main ();
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540   (eval $ac_link) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); } &&
5544          { ac_try='test -s conftest$ac_exeext'
5545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546   (eval $ac_try) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); }; }; then
5550   ac_cv_lib_IPC_main=yes
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 ac_cv_lib_IPC_main=no
5555 fi
5556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5557 LIBS=$ac_check_lib_save_LIBS
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5560 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5561 if test $ac_cv_lib_IPC_main = yes; then
5562   cat >>confdefs.h <<_ACEOF
5563 #define HAVE_LIBIPC 1
5564 _ACEOF
5565
5566   LIBS="-lIPC $LIBS"
5567
5568 fi
5569
5570
5571 echo "$as_me:$LINENO: checking for main in -llc" >&5
5572 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5573 if test "${ac_cv_lib_lc_main+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   ac_check_lib_save_LIBS=$LIBS
5577 LIBS="-llc  $LIBS"
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line $LINENO "configure"
5580 #include "confdefs.h"
5581
5582
5583 #ifdef F77_DUMMY_MAIN
5584 #  ifdef __cplusplus
5585      extern "C"
5586 #  endif
5587    int F77_DUMMY_MAIN() { return 1; }
5588 #endif
5589 int
5590 main ()
5591 {
5592 main ();
5593   ;
5594   return 0;
5595 }
5596 _ACEOF
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599   (eval $ac_link) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -s conftest$ac_exeext'
5604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605   (eval $ac_try) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_cv_lib_lc_main=yes
5610 else
5611   echo "$as_me: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 ac_cv_lib_lc_main=no
5614 fi
5615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5616 LIBS=$ac_check_lib_save_LIBS
5617 fi
5618 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5619 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5620 if test $ac_cv_lib_lc_main = yes; then
5621   cat >>confdefs.h <<_ACEOF
5622 #define HAVE_LIBLC 1
5623 _ACEOF
5624
5625   LIBS="-llc $LIBS"
5626
5627 fi
5628
5629
5630 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5631 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5632 if test "${ac_cv_lib_dld_main+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   ac_check_lib_save_LIBS=$LIBS
5636 LIBS="-ldld  $LIBS"
5637 cat >conftest.$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5639 #include "confdefs.h"
5640
5641
5642 #ifdef F77_DUMMY_MAIN
5643 #  ifdef __cplusplus
5644      extern "C"
5645 #  endif
5646    int F77_DUMMY_MAIN() { return 1; }
5647 #endif
5648 int
5649 main ()
5650 {
5651 main ();
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658   (eval $ac_link) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -s conftest$ac_exeext'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; }; then
5668   ac_cv_lib_dld_main=yes
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_lib_dld_main=no
5673 fi
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5676 fi
5677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5678 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5679 if test $ac_cv_lib_dld_main = yes; then
5680   cat >>confdefs.h <<_ACEOF
5681 #define HAVE_LIBDLD 1
5682 _ACEOF
5683
5684   LIBS="-ldld $LIBS"
5685
5686 fi
5687
5688
5689 echo "$as_me:$LINENO: checking for main in -lld" >&5
5690 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5691 if test "${ac_cv_lib_ld_main+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   ac_check_lib_save_LIBS=$LIBS
5695 LIBS="-lld  $LIBS"
5696 cat >conftest.$ac_ext <<_ACEOF
5697 #line $LINENO "configure"
5698 #include "confdefs.h"
5699
5700
5701 #ifdef F77_DUMMY_MAIN
5702 #  ifdef __cplusplus
5703      extern "C"
5704 #  endif
5705    int F77_DUMMY_MAIN() { return 1; }
5706 #endif
5707 int
5708 main ()
5709 {
5710 main ();
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717   (eval $ac_link) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } &&
5721          { ac_try='test -s conftest$ac_exeext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_cv_lib_ld_main=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5731 ac_cv_lib_ld_main=no
5732 fi
5733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5737 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5738 if test $ac_cv_lib_ld_main = yes; then
5739   cat >>confdefs.h <<_ACEOF
5740 #define HAVE_LIBLD 1
5741 _ACEOF
5742
5743   LIBS="-lld $LIBS"
5744
5745 fi
5746
5747
5748 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5749 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5750 if test "${ac_cv_lib_compat_main+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   ac_check_lib_save_LIBS=$LIBS
5754 LIBS="-lcompat  $LIBS"
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 #include "confdefs.h"
5758
5759
5760 #ifdef F77_DUMMY_MAIN
5761 #  ifdef __cplusplus
5762      extern "C"
5763 #  endif
5764    int F77_DUMMY_MAIN() { return 1; }
5765 #endif
5766 int
5767 main ()
5768 {
5769 main ();
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776   (eval $ac_link) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } &&
5780          { ac_try='test -s conftest$ac_exeext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_cv_lib_compat_main=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 ac_cv_lib_compat_main=no
5791 fi
5792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5793 LIBS=$ac_check_lib_save_LIBS
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5796 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5797 if test $ac_cv_lib_compat_main = yes; then
5798   cat >>confdefs.h <<_ACEOF
5799 #define HAVE_LIBCOMPAT 1
5800 _ACEOF
5801
5802   LIBS="-lcompat $LIBS"
5803
5804 fi
5805
5806
5807 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5808 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5809 if test "${ac_cv_lib_BSD_main+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   ac_check_lib_save_LIBS=$LIBS
5813 LIBS="-lBSD  $LIBS"
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 #include "confdefs.h"
5817
5818
5819 #ifdef F77_DUMMY_MAIN
5820 #  ifdef __cplusplus
5821      extern "C"
5822 #  endif
5823    int F77_DUMMY_MAIN() { return 1; }
5824 #endif
5825 int
5826 main ()
5827 {
5828 main ();
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835   (eval $ac_link) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } &&
5839          { ac_try='test -s conftest$ac_exeext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   ac_cv_lib_BSD_main=yes
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ac_cv_lib_BSD_main=no
5850 fi
5851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5852 LIBS=$ac_check_lib_save_LIBS
5853 fi
5854 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5855 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5856 if test $ac_cv_lib_BSD_main = yes; then
5857   cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LIBBSD 1
5859 _ACEOF
5860
5861   LIBS="-lBSD $LIBS"
5862
5863 fi
5864
5865
5866 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5867 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5868 if test "${ac_cv_lib_gen_main+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   ac_check_lib_save_LIBS=$LIBS
5872 LIBS="-lgen  $LIBS"
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line $LINENO "configure"
5875 #include "confdefs.h"
5876
5877
5878 #ifdef F77_DUMMY_MAIN
5879 #  ifdef __cplusplus
5880      extern "C"
5881 #  endif
5882    int F77_DUMMY_MAIN() { return 1; }
5883 #endif
5884 int
5885 main ()
5886 {
5887 main ();
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_lib_gen_main=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_gen_main=no
5909 fi
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5915 if test $ac_cv_lib_gen_main = yes; then
5916   cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBGEN 1
5918 _ACEOF
5919
5920   LIBS="-lgen $LIBS"
5921
5922 fi
5923
5924
5925 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5926 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5927 if test "${ac_cv_lib_PW_main+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   ac_check_lib_save_LIBS=$LIBS
5931 LIBS="-lPW  $LIBS"
5932 cat >conftest.$ac_ext <<_ACEOF
5933 #line $LINENO "configure"
5934 #include "confdefs.h"
5935
5936
5937 #ifdef F77_DUMMY_MAIN
5938 #  ifdef __cplusplus
5939      extern "C"
5940 #  endif
5941    int F77_DUMMY_MAIN() { return 1; }
5942 #endif
5943 int
5944 main ()
5945 {
5946 main ();
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953   (eval $ac_link) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } &&
5957          { ac_try='test -s conftest$ac_exeext'
5958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959   (eval $ac_try) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }; }; then
5963   ac_cv_lib_PW_main=yes
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 ac_cv_lib_PW_main=no
5968 fi
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5970 LIBS=$ac_check_lib_save_LIBS
5971 fi
5972 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5973 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5974 if test $ac_cv_lib_PW_main = yes; then
5975   cat >>confdefs.h <<_ACEOF
5976 #define HAVE_LIBPW 1
5977 _ACEOF
5978
5979   LIBS="-lPW $LIBS"
5980
5981 fi
5982
5983
5984 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5985 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5986 if test "${ac_cv_lib_resolv_main+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   ac_check_lib_save_LIBS=$LIBS
5990 LIBS="-lresolv  $LIBS"
5991 cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 #include "confdefs.h"
5994
5995
5996 #ifdef F77_DUMMY_MAIN
5997 #  ifdef __cplusplus
5998      extern "C"
5999 #  endif
6000    int F77_DUMMY_MAIN() { return 1; }
6001 #endif
6002 int
6003 main ()
6004 {
6005 main ();
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012   (eval $ac_link) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -s conftest$ac_exeext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   ac_cv_lib_resolv_main=yes
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_cv_lib_resolv_main=no
6027 fi
6028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6029 LIBS=$ac_check_lib_save_LIBS
6030 fi
6031 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6032 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6033 if test $ac_cv_lib_resolv_main = yes; then
6034   cat >>confdefs.h <<_ACEOF
6035 #define HAVE_LIBRESOLV 1
6036 _ACEOF
6037
6038   LIBS="-lresolv $LIBS"
6039
6040 fi
6041
6042 # QNX:
6043
6044 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6045 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6046 if test "${ac_cv_lib_unix_main+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   ac_check_lib_save_LIBS=$LIBS
6050 LIBS="-lunix  $LIBS"
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 #include "confdefs.h"
6054
6055
6056 #ifdef F77_DUMMY_MAIN
6057 #  ifdef __cplusplus
6058      extern "C"
6059 #  endif
6060    int F77_DUMMY_MAIN() { return 1; }
6061 #endif
6062 int
6063 main ()
6064 {
6065 main ();
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6072   (eval $ac_link) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } &&
6076          { ac_try='test -s conftest$ac_exeext'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; }; then
6082   ac_cv_lib_unix_main=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 ac_cv_lib_unix_main=no
6087 fi
6088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6089 LIBS=$ac_check_lib_save_LIBS
6090 fi
6091 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6092 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6093 if test $ac_cv_lib_unix_main = yes; then
6094   cat >>confdefs.h <<_ACEOF
6095 #define HAVE_LIBUNIX 1
6096 _ACEOF
6097
6098   LIBS="-lunix $LIBS"
6099
6100 fi
6101
6102 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6103 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6104 if test "${ac_cv_search_crypt+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   ac_func_search_save_LIBS=$LIBS
6108 ac_cv_search_crypt=no
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6111 #include "confdefs.h"
6112
6113 /* Override any gcc2 internal prototype to avoid an error.  */
6114 #ifdef __cplusplus
6115 extern "C"
6116 #endif
6117 /* We use char because int might match the return type of a gcc2
6118    builtin and then its argument prototype would still apply.  */
6119 char crypt ();
6120 #ifdef F77_DUMMY_MAIN
6121 #  ifdef __cplusplus
6122      extern "C"
6123 #  endif
6124    int F77_DUMMY_MAIN() { return 1; }
6125 #endif
6126 int
6127 main ()
6128 {
6129 crypt ();
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext conftest$ac_exeext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136   (eval $ac_link) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } &&
6140          { ac_try='test -s conftest$ac_exeext'
6141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142   (eval $ac_try) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); }; }; then
6146   ac_cv_search_crypt="none required"
6147 else
6148   echo "$as_me: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6150 fi
6151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 if test "$ac_cv_search_crypt" = no; then
6153   for ac_lib in crypt; do
6154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6155     cat >conftest.$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 #include "confdefs.h"
6158
6159 /* Override any gcc2 internal prototype to avoid an error.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 /* We use char because int might match the return type of a gcc2
6164    builtin and then its argument prototype would still apply.  */
6165 char crypt ();
6166 #ifdef F77_DUMMY_MAIN
6167 #  ifdef __cplusplus
6168      extern "C"
6169 #  endif
6170    int F77_DUMMY_MAIN() { return 1; }
6171 #endif
6172 int
6173 main ()
6174 {
6175 crypt ();
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182   (eval $ac_link) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -s conftest$ac_exeext'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; }; then
6192   ac_cv_search_crypt="-l$ac_lib"
6193 break
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6197 fi
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6199   done
6200 fi
6201 LIBS=$ac_func_search_save_LIBS
6202 fi
6203 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6204 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6205 if test "$ac_cv_search_crypt" != no; then
6206   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6207
6208 fi
6209
6210 # BeOS:
6211
6212 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6213 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6214 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   ac_check_lib_save_LIBS=$LIBS
6218 LIBS="-lbind  $LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6222
6223 /* Override any gcc2 internal prototype to avoid an error.  */
6224 #ifdef __cplusplus
6225 extern "C"
6226 #endif
6227 /* We use char because int might match the return type of a gcc2
6228    builtin and then its argument prototype would still apply.  */
6229 char __inet_ntoa ();
6230 #ifdef F77_DUMMY_MAIN
6231 #  ifdef __cplusplus
6232      extern "C"
6233 #  endif
6234    int F77_DUMMY_MAIN() { return 1; }
6235 #endif
6236 int
6237 main ()
6238 {
6239 __inet_ntoa ();
6240   ;
6241   return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246   (eval $ac_link) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -s conftest$ac_exeext'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; }; then
6256   ac_cv_lib_bind___inet_ntoa=yes
6257 else
6258   echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 ac_cv_lib_bind___inet_ntoa=no
6261 fi
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6263 LIBS=$ac_check_lib_save_LIBS
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6266 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6267 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6268   cat >>confdefs.h <<_ACEOF
6269 #define HAVE_LIBBIND 1
6270 _ACEOF
6271
6272   LIBS="-lbind $LIBS"
6273
6274 fi
6275
6276 # Solaris:
6277 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6278 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6279 if test "${ac_cv_search_fdatasync+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   ac_func_search_save_LIBS=$LIBS
6283 ac_cv_search_fdatasync=no
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287
6288 /* Override any gcc2 internal prototype to avoid an error.  */
6289 #ifdef __cplusplus
6290 extern "C"
6291 #endif
6292 /* We use char because int might match the return type of a gcc2
6293    builtin and then its argument prototype would still apply.  */
6294 char fdatasync ();
6295 #ifdef F77_DUMMY_MAIN
6296 #  ifdef __cplusplus
6297      extern "C"
6298 #  endif
6299    int F77_DUMMY_MAIN() { return 1; }
6300 #endif
6301 int
6302 main ()
6303 {
6304 fdatasync ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_search_fdatasync="none required"
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 fi
6326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327 if test "$ac_cv_search_fdatasync" = no; then
6328   for ac_lib in rt posix4; do
6329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6330     cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6333
6334 /* Override any gcc2 internal prototype to avoid an error.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 /* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340 char fdatasync ();
6341 #ifdef F77_DUMMY_MAIN
6342 #  ifdef __cplusplus
6343      extern "C"
6344 #  endif
6345    int F77_DUMMY_MAIN() { return 1; }
6346 #endif
6347 int
6348 main ()
6349 {
6350 fdatasync ();
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -s conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   ac_cv_search_fdatasync="-l$ac_lib"
6368 break
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6372 fi
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374   done
6375 fi
6376 LIBS=$ac_func_search_save_LIBS
6377 fi
6378 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6379 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6380 if test "$ac_cv_search_fdatasync" != no; then
6381   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6382
6383 fi
6384
6385
6386 if test "$with_readline" = yes; then
6387
6388 echo "$as_me:$LINENO: checking for readline" >&5
6389 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6390
6391 if test "${pgac_cv_check_readline+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   pgac_cv_check_readline=no
6395 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6396   for pgac_rllib in -lreadline -ledit ; do
6397     pgac_save_LIBS=$LIBS
6398     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6399     cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6402
6403 /* Override any gcc2 internal prototype to avoid an error.  */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408    builtin and then its argument prototype would still apply.  */
6409 char readline ();
6410 #ifdef F77_DUMMY_MAIN
6411 #  ifdef __cplusplus
6412      extern "C"
6413 #  endif
6414    int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6416 int
6417 main ()
6418 {
6419 readline ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } &&
6430          { ac_try='test -s conftest$ac_exeext'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436
6437       # NetBSD and OpenBSD have a broken linker that does not
6438       # recognize dependent libraries
6439       case $host_os in netbsd* | openbsd* )
6440         case $pgac_lib in
6441           *curses*) ;;
6442           *) pgac_lib=" -lcurses" ;;
6443         esac
6444       esac
6445
6446       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6447       break 2
6448
6449 else
6450   echo "$as_me: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6452 fi
6453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454     LIBS=$pgac_save_LIBS
6455   done
6456 done
6457 LIBS=$pgac_save_LIBS
6458
6459 fi
6460
6461 if test "$pgac_cv_check_readline" != no ; then
6462
6463 cat >>confdefs.h <<\_ACEOF
6464 #define HAVE_LIBREADLINE 1
6465 _ACEOF
6466
6467   LIBS="$pgac_cv_check_readline $LIBS"
6468   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6469 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6470 else
6471   echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6473 fi
6474   if test x"$pgac_cv_check_readline" = x"no"; then
6475     { { echo "$as_me:$LINENO: error: readline library not found
6476 Use --without-readline to disable readline support." >&5
6477 echo "$as_me: error: readline library not found
6478 Use --without-readline to disable readline support." >&2;}
6479    { (exit 1); exit 1; }; }
6480   fi
6481 fi
6482
6483 if test "$with_zlib" = yes; then
6484
6485 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6486 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6487 if test "${ac_cv_lib_z_inflate+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lz  $LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6494 #include "confdefs.h"
6495
6496 /* Override any gcc2 internal prototype to avoid an error.  */
6497 #ifdef __cplusplus
6498 extern "C"
6499 #endif
6500 /* We use char because int might match the return type of a gcc2
6501    builtin and then its argument prototype would still apply.  */
6502 char inflate ();
6503 #ifdef F77_DUMMY_MAIN
6504 #  ifdef __cplusplus
6505      extern "C"
6506 #  endif
6507    int F77_DUMMY_MAIN() { return 1; }
6508 #endif
6509 int
6510 main ()
6511 {
6512 inflate ();
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519   (eval $ac_link) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } &&
6523          { ac_try='test -s conftest$ac_exeext'
6524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525   (eval $ac_try) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); }; }; then
6529   ac_cv_lib_z_inflate=yes
6530 else
6531   echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 ac_cv_lib_z_inflate=no
6534 fi
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6537 fi
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6539 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6540 if test $ac_cv_lib_z_inflate = yes; then
6541   cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBZ 1
6543 _ACEOF
6544
6545   LIBS="-lz $LIBS"
6546
6547 else
6548   { { echo "$as_me:$LINENO: error: zlib library not found
6549 Use --without-zlib to disable zlib support." >&5
6550 echo "$as_me: error: zlib library not found
6551 Use --without-zlib to disable zlib support." >&2;}
6552    { (exit 1); exit 1; }; }
6553 fi
6554
6555 fi
6556
6557 if test "$with_krb4" = yes ; then
6558
6559 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6560 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6561 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   ac_check_lib_save_LIBS=$LIBS
6565 LIBS="-ldes  $LIBS"
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6569
6570 /* Override any gcc2 internal prototype to avoid an error.  */
6571 #ifdef __cplusplus
6572 extern "C"
6573 #endif
6574 /* We use char because int might match the return type of a gcc2
6575    builtin and then its argument prototype would still apply.  */
6576 char des_encrypt ();
6577 #ifdef F77_DUMMY_MAIN
6578 #  ifdef __cplusplus
6579      extern "C"
6580 #  endif
6581    int F77_DUMMY_MAIN() { return 1; }
6582 #endif
6583 int
6584 main ()
6585 {
6586 des_encrypt ();
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593   (eval $ac_link) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -s conftest$ac_exeext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_cv_lib_des_des_encrypt=yes
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 ac_cv_lib_des_des_encrypt=no
6608 fi
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6611 fi
6612 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6613 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6614 if test $ac_cv_lib_des_des_encrypt = yes; then
6615   cat >>confdefs.h <<_ACEOF
6616 #define HAVE_LIBDES 1
6617 _ACEOF
6618
6619   LIBS="-ldes $LIBS"
6620
6621 else
6622   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6623 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6624    { (exit 1); exit 1; }; }
6625 fi
6626
6627
6628 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6629 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6630 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   ac_check_lib_save_LIBS=$LIBS
6634 LIBS="-lkrb  $LIBS"
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6638
6639 /* Override any gcc2 internal prototype to avoid an error.  */
6640 #ifdef __cplusplus
6641 extern "C"
6642 #endif
6643 /* We use char because int might match the return type of a gcc2
6644    builtin and then its argument prototype would still apply.  */
6645 char krb_sendauth ();
6646 #ifdef F77_DUMMY_MAIN
6647 #  ifdef __cplusplus
6648      extern "C"
6649 #  endif
6650    int F77_DUMMY_MAIN() { return 1; }
6651 #endif
6652 int
6653 main ()
6654 {
6655 krb_sendauth ();
6656   ;
6657   return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext conftest$ac_exeext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6662   (eval $ac_link) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          { ac_try='test -s conftest$ac_exeext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_cv_lib_krb_krb_sendauth=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 ac_cv_lib_krb_krb_sendauth=no
6677 fi
6678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6679 LIBS=$ac_check_lib_save_LIBS
6680 fi
6681 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6682 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6683 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6684   cat >>confdefs.h <<_ACEOF
6685 #define HAVE_LIBKRB 1
6686 _ACEOF
6687
6688   LIBS="-lkrb $LIBS"
6689
6690 else
6691   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6692 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6693    { (exit 1); exit 1; }; }
6694 fi
6695
6696 fi
6697
6698 if test "$with_krb5" = yes ; then
6699   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6700 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6701 if test "${ac_cv_search_com_err+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   ac_func_search_save_LIBS=$LIBS
6705 ac_cv_search_com_err=no
6706 cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 #include "confdefs.h"
6709
6710 /* Override any gcc2 internal prototype to avoid an error.  */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715    builtin and then its argument prototype would still apply.  */
6716 char com_err ();
6717 #ifdef F77_DUMMY_MAIN
6718 #  ifdef __cplusplus
6719      extern "C"
6720 #  endif
6721    int F77_DUMMY_MAIN() { return 1; }
6722 #endif
6723 int
6724 main ()
6725 {
6726 com_err ();
6727   ;
6728   return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733   (eval $ac_link) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } &&
6737          { ac_try='test -s conftest$ac_exeext'
6738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739   (eval $ac_try) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); }; }; then
6743   ac_cv_search_com_err="none required"
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6747 fi
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 if test "$ac_cv_search_com_err" = no; then
6750   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6752     cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6755
6756 /* Override any gcc2 internal prototype to avoid an error.  */
6757 #ifdef __cplusplus
6758 extern "C"
6759 #endif
6760 /* We use char because int might match the return type of a gcc2
6761    builtin and then its argument prototype would still apply.  */
6762 char com_err ();
6763 #ifdef F77_DUMMY_MAIN
6764 #  ifdef __cplusplus
6765      extern "C"
6766 #  endif
6767    int F77_DUMMY_MAIN() { return 1; }
6768 #endif
6769 int
6770 main ()
6771 {
6772 com_err ();
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779   (eval $ac_link) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); } &&
6783          { ac_try='test -s conftest$ac_exeext'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; }; then
6789   ac_cv_search_com_err="-l$ac_lib"
6790 break
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 fi
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6796   done
6797 fi
6798 LIBS=$ac_func_search_save_LIBS
6799 fi
6800 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6801 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6802 if test "$ac_cv_search_com_err" != no; then
6803   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6804
6805 else
6806   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6807 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6808    { (exit 1); exit 1; }; }
6809 fi
6810
6811   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6812 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6813 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   ac_func_search_save_LIBS=$LIBS
6817 ac_cv_search_krb5_encrypt=no
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6821
6822 /* Override any gcc2 internal prototype to avoid an error.  */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 /* We use char because int might match the return type of a gcc2
6827    builtin and then its argument prototype would still apply.  */
6828 char krb5_encrypt ();
6829 #ifdef F77_DUMMY_MAIN
6830 #  ifdef __cplusplus
6831      extern "C"
6832 #  endif
6833    int F77_DUMMY_MAIN() { return 1; }
6834 #endif
6835 int
6836 main ()
6837 {
6838 krb5_encrypt ();
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845   (eval $ac_link) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -s conftest$ac_exeext'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855   ac_cv_search_krb5_encrypt="none required"
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 fi
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 if test "$ac_cv_search_krb5_encrypt" = no; then
6862   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6864     cat >conftest.$ac_ext <<_ACEOF
6865 #line $LINENO "configure"
6866 #include "confdefs.h"
6867
6868 /* Override any gcc2 internal prototype to avoid an error.  */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 /* We use char because int might match the return type of a gcc2
6873    builtin and then its argument prototype would still apply.  */
6874 char krb5_encrypt ();
6875 #ifdef F77_DUMMY_MAIN
6876 #  ifdef __cplusplus
6877      extern "C"
6878 #  endif
6879    int F77_DUMMY_MAIN() { return 1; }
6880 #endif
6881 int
6882 main ()
6883 {
6884 krb5_encrypt ();
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891   (eval $ac_link) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); } &&
6895          { ac_try='test -s conftest$ac_exeext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_search_krb5_encrypt="-l$ac_lib"
6902 break
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6906 fi
6907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6908   done
6909 fi
6910 LIBS=$ac_func_search_save_LIBS
6911 fi
6912 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6913 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6914 if test "$ac_cv_search_krb5_encrypt" != no; then
6915   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6916
6917 else
6918   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6919 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6920    { (exit 1); exit 1; }; }
6921 fi
6922
6923   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6924 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6925 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   ac_func_search_save_LIBS=$LIBS
6929 ac_cv_search_krb5_sendauth=no
6930 cat >conftest.$ac_ext <<_ACEOF
6931 #line $LINENO "configure"
6932 #include "confdefs.h"
6933
6934 /* Override any gcc2 internal prototype to avoid an error.  */
6935 #ifdef __cplusplus
6936 extern "C"
6937 #endif
6938 /* We use char because int might match the return type of a gcc2
6939    builtin and then its argument prototype would still apply.  */
6940 char krb5_sendauth ();
6941 #ifdef F77_DUMMY_MAIN
6942 #  ifdef __cplusplus
6943      extern "C"
6944 #  endif
6945    int F77_DUMMY_MAIN() { return 1; }
6946 #endif
6947 int
6948 main ()
6949 {
6950 krb5_sendauth ();
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957   (eval $ac_link) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } &&
6961          { ac_try='test -s conftest$ac_exeext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_cv_search_krb5_sendauth="none required"
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 fi
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973 if test "$ac_cv_search_krb5_sendauth" = no; then
6974   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6976     cat >conftest.$ac_ext <<_ACEOF
6977 #line $LINENO "configure"
6978 #include "confdefs.h"
6979
6980 /* Override any gcc2 internal prototype to avoid an error.  */
6981 #ifdef __cplusplus
6982 extern "C"
6983 #endif
6984 /* We use char because int might match the return type of a gcc2
6985    builtin and then its argument prototype would still apply.  */
6986 char krb5_sendauth ();
6987 #ifdef F77_DUMMY_MAIN
6988 #  ifdef __cplusplus
6989      extern "C"
6990 #  endif
6991    int F77_DUMMY_MAIN() { return 1; }
6992 #endif
6993 int
6994 main ()
6995 {
6996 krb5_sendauth ();
6997   ;
6998   return 0;
6999 }
7000 _ACEOF
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003   (eval $ac_link) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); } &&
7007          { ac_try='test -s conftest$ac_exeext'
7008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009   (eval $ac_try) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; }; then
7013   ac_cv_search_krb5_sendauth="-l$ac_lib"
7014 break
7015 else
7016   echo "$as_me: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7018 fi
7019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7020   done
7021 fi
7022 LIBS=$ac_func_search_save_LIBS
7023 fi
7024 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7025 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7026 if test "$ac_cv_search_krb5_sendauth" != no; then
7027   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7028
7029 else
7030   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7031 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7032    { (exit 1); exit 1; }; }
7033 fi
7034
7035 fi
7036
7037 if test "$with_openssl" = yes ; then
7038
7039 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7040 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7041 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   ac_check_lib_save_LIBS=$LIBS
7045 LIBS="-lcrypto  $LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7049
7050 /* Override any gcc2 internal prototype to avoid an error.  */
7051 #ifdef __cplusplus
7052 extern "C"
7053 #endif
7054 /* We use char because int might match the return type of a gcc2
7055    builtin and then its argument prototype would still apply.  */
7056 char CRYPTO_new_ex_data ();
7057 #ifdef F77_DUMMY_MAIN
7058 #  ifdef __cplusplus
7059      extern "C"
7060 #  endif
7061    int F77_DUMMY_MAIN() { return 1; }
7062 #endif
7063 int
7064 main ()
7065 {
7066 CRYPTO_new_ex_data ();
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073   (eval $ac_link) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -s conftest$ac_exeext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7088 fi
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7093 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7094 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7095   cat >>confdefs.h <<_ACEOF
7096 #define HAVE_LIBCRYPTO 1
7097 _ACEOF
7098
7099   LIBS="-lcrypto $LIBS"
7100
7101 else
7102   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7103 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7104    { (exit 1); exit 1; }; }
7105 fi
7106
7107
7108 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7109 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7110 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   ac_check_lib_save_LIBS=$LIBS
7114 LIBS="-lssl  $LIBS"
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7118
7119 /* Override any gcc2 internal prototype to avoid an error.  */
7120 #ifdef __cplusplus
7121 extern "C"
7122 #endif
7123 /* We use char because int might match the return type of a gcc2
7124    builtin and then its argument prototype would still apply.  */
7125 char SSL_library_init ();
7126 #ifdef F77_DUMMY_MAIN
7127 #  ifdef __cplusplus
7128      extern "C"
7129 #  endif
7130    int F77_DUMMY_MAIN() { return 1; }
7131 #endif
7132 int
7133 main ()
7134 {
7135 SSL_library_init ();
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142   (eval $ac_link) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } &&
7146          { ac_try='test -s conftest$ac_exeext'
7147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   ac_cv_lib_ssl_SSL_library_init=yes
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 ac_cv_lib_ssl_SSL_library_init=no
7157 fi
7158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7160 fi
7161 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7162 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7163 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7164   cat >>confdefs.h <<_ACEOF
7165 #define HAVE_LIBSSL 1
7166 _ACEOF
7167
7168   LIBS="-lssl $LIBS"
7169
7170 else
7171   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7172 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7173    { (exit 1); exit 1; }; }
7174 fi
7175
7176 fi
7177
7178 if test "$with_pam" = yes ; then
7179
7180 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7181 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7182 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   ac_check_lib_save_LIBS=$LIBS
7186 LIBS="-lpam  $LIBS"
7187 cat >conftest.$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7189 #include "confdefs.h"
7190
7191 /* Override any gcc2 internal prototype to avoid an error.  */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 /* We use char because int might match the return type of a gcc2
7196    builtin and then its argument prototype would still apply.  */
7197 char pam_start ();
7198 #ifdef F77_DUMMY_MAIN
7199 #  ifdef __cplusplus
7200      extern "C"
7201 #  endif
7202    int F77_DUMMY_MAIN() { return 1; }
7203 #endif
7204 int
7205 main ()
7206 {
7207 pam_start ();
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext conftest$ac_exeext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214   (eval $ac_link) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } &&
7218          { ac_try='test -s conftest$ac_exeext'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; }; then
7224   ac_cv_lib_pam_pam_start=yes
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7228 ac_cv_lib_pam_pam_start=no
7229 fi
7230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7231 LIBS=$ac_check_lib_save_LIBS
7232 fi
7233 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7234 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7235 if test $ac_cv_lib_pam_pam_start = yes; then
7236   cat >>confdefs.h <<_ACEOF
7237 #define HAVE_LIBPAM 1
7238 _ACEOF
7239
7240   LIBS="-lpam $LIBS"
7241
7242 else
7243   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7244 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7245    { (exit 1); exit 1; }; }
7246 fi
7247
7248 fi
7249
7250
7251 ##
7252 ## Header files
7253 ##
7254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7256 if test "${ac_cv_header_stdc+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   cat >conftest.$ac_ext <<_ACEOF
7260 #line $LINENO "configure"
7261 #include "confdefs.h"
7262 #include <stdlib.h>
7263 #include <stdarg.h>
7264 #include <string.h>
7265 #include <float.h>
7266
7267 _ACEOF
7268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7270   ac_status=$?
7271   egrep -v '^ *\+' conftest.er1 >conftest.err
7272   rm -f conftest.er1
7273   cat conftest.err >&5
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } >/dev/null; then
7276   if test -s conftest.err; then
7277     ac_cpp_err=$ac_c_preproc_warn_flag
7278   else
7279     ac_cpp_err=
7280   fi
7281 else
7282   ac_cpp_err=yes
7283 fi
7284 if test -z "$ac_cpp_err"; then
7285   ac_cv_header_stdc=yes
7286 else
7287   echo "$as_me: failed program was:" >&5
7288   cat conftest.$ac_ext >&5
7289   ac_cv_header_stdc=no
7290 fi
7291 rm -f conftest.err conftest.$ac_ext
7292
7293 if test $ac_cv_header_stdc = yes; then
7294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7295   cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 #include "confdefs.h"
7298 #include <string.h>
7299
7300 _ACEOF
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302   egrep "memchr" >/dev/null 2>&1; then
7303   :
7304 else
7305   ac_cv_header_stdc=no
7306 fi
7307 rm -f conftest*
7308
7309 fi
7310
7311 if test $ac_cv_header_stdc = yes; then
7312   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7313   cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7316 #include <stdlib.h>
7317
7318 _ACEOF
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320   egrep "free" >/dev/null 2>&1; then
7321   :
7322 else
7323   ac_cv_header_stdc=no
7324 fi
7325 rm -f conftest*
7326
7327 fi
7328
7329 if test $ac_cv_header_stdc = yes; then
7330   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7331   if test "$cross_compiling" = yes; then
7332   :
7333 else
7334   cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <ctype.h>
7338 #if ((' ' & 0x0FF) == 0x020)
7339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7341 #else
7342 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7343                      || ('j' <= (c) && (c) <= 'r') \
7344                      || ('s' <= (c) && (c) <= 'z'))
7345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7346 #endif
7347
7348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7349 int
7350 main ()
7351 {
7352   int i;
7353   for (i = 0; i < 256; i++)
7354     if (XOR (islower (i), ISLOWER (i))
7355         || toupper (i) != TOUPPER (i))
7356       exit(2);
7357   exit (0);
7358 }
7359 _ACEOF
7360 rm -f conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362   (eval $ac_link) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367   (eval $ac_try) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   :
7372 else
7373   echo "$as_me: program exited with status $ac_status" >&5
7374 echo "$as_me: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7376 ( exit $ac_status )
7377 ac_cv_header_stdc=no
7378 fi
7379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 fi
7382 fi
7383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7385 if test $ac_cv_header_stdc = yes; then
7386
7387 cat >>confdefs.h <<\_ACEOF
7388 #define STDC_HEADERS 1
7389 _ACEOF
7390
7391 fi
7392
7393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7404                   inttypes.h stdint.h unistd.h
7405 do
7406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 $ac_includes_default
7416
7417 #include <$ac_header>
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -s conftest.$ac_objext'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   eval "$as_ac_Header=yes"
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 eval "$as_ac_Header=no"
7436 fi
7437 rm -f conftest.$ac_objext conftest.$ac_ext
7438 fi
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442   cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7444 _ACEOF
7445
7446 fi
7447
7448 done
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 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
7470 do
7471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7473   echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 fi
7478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7480 else
7481   # Is the header compilable?
7482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7484 cat >conftest.$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 #include "confdefs.h"
7487 $ac_includes_default
7488 #include <$ac_header>
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -s conftest.$ac_objext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_header_compiler=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 ac_header_compiler=no
7507 fi
7508 rm -f conftest.$ac_objext conftest.$ac_ext
7509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7510 echo "${ECHO_T}$ac_header_compiler" >&6
7511
7512 # Is the header present?
7513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 #include "confdefs.h"
7518 #include <$ac_header>
7519 _ACEOF
7520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7522   ac_status=$?
7523   egrep -v '^ *\+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } >/dev/null; then
7528   if test -s conftest.err; then
7529     ac_cpp_err=$ac_c_preproc_warn_flag
7530   else
7531     ac_cpp_err=
7532   fi
7533 else
7534   ac_cpp_err=yes
7535 fi
7536 if test -z "$ac_cpp_err"; then
7537   ac_header_preproc=yes
7538 else
7539   echo "$as_me: failed program was:" >&5
7540   cat conftest.$ac_ext >&5
7541   ac_header_preproc=no
7542 fi
7543 rm -f conftest.err conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7545 echo "${ECHO_T}$ac_header_preproc" >&6
7546
7547 # So?  What about this header?
7548 case $ac_header_compiler:$ac_header_preproc in
7549   yes:no )
7550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7554   no:yes )
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7561 esac
7562 echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567   eval "$as_ac_Header=$ac_header_preproc"
7568 fi
7569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7571
7572 fi
7573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574   cat >>confdefs.h <<_ACEOF
7575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7576 _ACEOF
7577
7578 fi
7579
7580 done
7581
7582
7583 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7584 # netinet/in.h is included first.
7585
7586 for ac_header in netinet/in.h
7587 do
7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590   echo "$as_me:$LINENO: checking for $ac_header" >&5
7591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 fi
7595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7597 else
7598   # Is the header compilable?
7599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7601 cat >conftest.$ac_ext <<_ACEOF
7602 #line $LINENO "configure"
7603 #include "confdefs.h"
7604 $ac_includes_default
7605 #include <$ac_header>
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609   (eval $ac_compile) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -s conftest.$ac_objext'
7614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615   (eval $ac_try) 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); }; }; then
7619   ac_header_compiler=yes
7620 else
7621   echo "$as_me: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 ac_header_compiler=no
7624 fi
7625 rm -f conftest.$ac_objext conftest.$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7627 echo "${ECHO_T}$ac_header_compiler" >&6
7628
7629 # Is the header present?
7630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line $LINENO "configure"
7634 #include "confdefs.h"
7635 #include <$ac_header>
7636 _ACEOF
7637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639   ac_status=$?
7640   egrep -v '^ *\+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } >/dev/null; then
7645   if test -s conftest.err; then
7646     ac_cpp_err=$ac_c_preproc_warn_flag
7647   else
7648     ac_cpp_err=
7649   fi
7650 else
7651   ac_cpp_err=yes
7652 fi
7653 if test -z "$ac_cpp_err"; then
7654   ac_header_preproc=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657   cat conftest.$ac_ext >&5
7658   ac_header_preproc=no
7659 fi
7660 rm -f conftest.err conftest.$ac_ext
7661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7662 echo "${ECHO_T}$ac_header_preproc" >&6
7663
7664 # So?  What about this header?
7665 case $ac_header_compiler:$ac_header_preproc in
7666   yes:no )
7667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7671   no:yes )
7672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7674     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7678 esac
7679 echo "$as_me:$LINENO: checking for $ac_header" >&5
7680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   eval "$as_ac_Header=$ac_header_preproc"
7685 fi
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688
7689 fi
7690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7691   cat >>confdefs.h <<_ACEOF
7692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7693 _ACEOF
7694
7695 fi
7696
7697 done
7698
7699
7700 for ac_header in netinet/tcp.h
7701 do
7702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7703 echo "$as_me:$LINENO: checking for $ac_header" >&5
7704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #ifdef HAVE_NETINET_IN_H
7713 #include <netinet/in.h>
7714 #endif
7715
7716
7717 #include <$ac_header>
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721   (eval $ac_compile) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -s conftest.$ac_objext'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   eval "$as_ac_Header=yes"
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 eval "$as_ac_Header=no"
7736 fi
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7738 fi
7739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7742   cat >>confdefs.h <<_ACEOF
7743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 _ACEOF
7745
7746 fi
7747
7748 done
7749
7750
7751 if test "$with_readline" = yes; then
7752
7753 for ac_header in readline/readline.h
7754 do
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764 else
7765   # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776   (eval $ac_compile) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_header_compiler=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7791 fi
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7795
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7803 _ACEOF
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7806   ac_status=$?
7807   egrep -v '^ *\+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } >/dev/null; then
7812   if test -s conftest.err; then
7813     ac_cpp_err=$ac_c_preproc_warn_flag
7814   else
7815     ac_cpp_err=
7816   fi
7817 else
7818   ac_cpp_err=yes
7819 fi
7820 if test -z "$ac_cpp_err"; then
7821   ac_header_preproc=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824   cat conftest.$ac_ext >&5
7825   ac_header_preproc=no
7826 fi
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7830
7831 # So?  What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7833   yes:no )
7834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7838   no:yes )
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7845 esac
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   eval "$as_ac_Header=$ac_header_preproc"
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855
7856 fi
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858   cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 else
7863
7864 for ac_header in readline.h
7865 do
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868   echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 fi
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7875 else
7876   # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887   (eval $ac_compile) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -s conftest.$ac_objext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_header_compiler=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7902 fi
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7906
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7914 _ACEOF
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7917   ac_status=$?
7918   egrep -v '^ *\+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } >/dev/null; then
7923   if test -s conftest.err; then
7924     ac_cpp_err=$ac_c_preproc_warn_flag
7925   else
7926     ac_cpp_err=
7927   fi
7928 else
7929   ac_cpp_err=yes
7930 fi
7931 if test -z "$ac_cpp_err"; then
7932   ac_header_preproc=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935   cat conftest.$ac_ext >&5
7936   ac_header_preproc=no
7937 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7941
7942 # So?  What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7944   yes:no )
7945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7949   no:yes )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7956 esac
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   eval "$as_ac_Header=$ac_header_preproc"
7963 fi
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7966
7967 fi
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969   cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 _ACEOF
7972
7973 else
7974   { { echo "$as_me:$LINENO: error: readline header not found
7975 Use --without-readline to disable readline support." >&5
7976 echo "$as_me: error: readline header not found
7977 Use --without-readline to disable readline support." >&2;}
7978    { (exit 1); exit 1; }; }
7979 fi
7980
7981 done
7982
7983 fi
7984
7985 done
7986
7987
7988 for ac_header in readline/history.h
7989 do
7990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992   echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 fi
7997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7999 else
8000   # Is the header compilable?
8001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line $LINENO "configure"
8005 #include "confdefs.h"
8006 $ac_includes_default
8007 #include <$ac_header>
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011   (eval $ac_compile) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -s conftest.$ac_objext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_header_compiler=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_header_compiler=no
8026 fi
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8029 echo "${ECHO_T}$ac_header_compiler" >&6
8030
8031 # Is the header present?
8032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8036 #include "confdefs.h"
8037 #include <$ac_header>
8038 _ACEOF
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8041   ac_status=$?
8042   egrep -v '^ *\+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } >/dev/null; then
8047   if test -s conftest.err; then
8048     ac_cpp_err=$ac_c_preproc_warn_flag
8049   else
8050     ac_cpp_err=
8051   fi
8052 else
8053   ac_cpp_err=yes
8054 fi
8055 if test -z "$ac_cpp_err"; then
8056   ac_header_preproc=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059   cat conftest.$ac_ext >&5
8060   ac_header_preproc=no
8061 fi
8062 rm -f conftest.err conftest.$ac_ext
8063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064 echo "${ECHO_T}$ac_header_preproc" >&6
8065
8066 # So?  What about this header?
8067 case $ac_header_compiler:$ac_header_preproc in
8068   yes:no )
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8073   no:yes )
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8080 esac
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   eval "$as_ac_Header=$ac_header_preproc"
8087 fi
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8090
8091 fi
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 else
8098
8099 for ac_header in history.h
8100 do
8101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103   echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 fi
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110 else
8111   # Is the header compilable?
8112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 #line $LINENO "configure"
8116 #include "confdefs.h"
8117 $ac_includes_default
8118 #include <$ac_header>
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122   (eval $ac_compile) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -s conftest.$ac_objext'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_header_compiler=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 ac_header_compiler=no
8137 fi
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6
8141
8142 # Is the header present?
8143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 #include "confdefs.h"
8148 #include <$ac_header>
8149 _ACEOF
8150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8152   ac_status=$?
8153   egrep -v '^ *\+' conftest.er1 >conftest.err
8154   rm -f conftest.er1
8155   cat conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); } >/dev/null; then
8158   if test -s conftest.err; then
8159     ac_cpp_err=$ac_c_preproc_warn_flag
8160   else
8161     ac_cpp_err=
8162   fi
8163 else
8164   ac_cpp_err=yes
8165 fi
8166 if test -z "$ac_cpp_err"; then
8167   ac_header_preproc=yes
8168 else
8169   echo "$as_me: failed program was:" >&5
8170   cat conftest.$ac_ext >&5
8171   ac_header_preproc=no
8172 fi
8173 rm -f conftest.err conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8175 echo "${ECHO_T}$ac_header_preproc" >&6
8176
8177 # So?  What about this header?
8178 case $ac_header_compiler:$ac_header_preproc in
8179   yes:no )
8180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8184   no:yes )
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8191 esac
8192 echo "$as_me:$LINENO: checking for $ac_header" >&5
8193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   eval "$as_ac_Header=$ac_header_preproc"
8198 fi
8199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8201
8202 fi
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204   cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 else
8209   { { echo "$as_me:$LINENO: error: history header not found
8210 Use --without-readline to disable readline support." >&5
8211 echo "$as_me: error: history header not found
8212 Use --without-readline to disable readline support." >&2;}
8213    { (exit 1); exit 1; }; }
8214 fi
8215
8216 done
8217
8218 fi
8219
8220 done
8221
8222 fi
8223
8224 if test "$with_zlib" = yes; then
8225   if test "${ac_cv_header_zlib_h+set}" = set; then
8226   echo "$as_me:$LINENO: checking for zlib.h" >&5
8227 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8228 if test "${ac_cv_header_zlib_h+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 fi
8231 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8232 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8233 else
8234   # Is the header compilable?
8235 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8236 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8238 #line $LINENO "configure"
8239 #include "confdefs.h"
8240 $ac_includes_default
8241 #include <zlib.h>
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245   (eval $ac_compile) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } &&
8249          { ac_try='test -s conftest.$ac_objext'
8250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251   (eval $ac_try) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; }; then
8255   ac_header_compiler=yes
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8259 ac_header_compiler=no
8260 fi
8261 rm -f conftest.$ac_objext conftest.$ac_ext
8262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8263 echo "${ECHO_T}$ac_header_compiler" >&6
8264
8265 # Is the header present?
8266 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8267 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line $LINENO "configure"
8270 #include "confdefs.h"
8271 #include <zlib.h>
8272 _ACEOF
8273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8275   ac_status=$?
8276   egrep -v '^ *\+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } >/dev/null; then
8281   if test -s conftest.err; then
8282     ac_cpp_err=$ac_c_preproc_warn_flag
8283   else
8284     ac_cpp_err=
8285   fi
8286 else
8287   ac_cpp_err=yes
8288 fi
8289 if test -z "$ac_cpp_err"; then
8290   ac_header_preproc=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293   cat conftest.$ac_ext >&5
8294   ac_header_preproc=no
8295 fi
8296 rm -f conftest.err conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8298 echo "${ECHO_T}$ac_header_preproc" >&6
8299
8300 # So?  What about this header?
8301 case $ac_header_compiler:$ac_header_preproc in
8302   yes:no )
8303     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8304 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8306 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8307   no:yes )
8308     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8309 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8310     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8311 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8312     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8313 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8314 esac
8315 echo "$as_me:$LINENO: checking for zlib.h" >&5
8316 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8317 if test "${ac_cv_header_zlib_h+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   ac_cv_header_zlib_h=$ac_header_preproc
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8323 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8324
8325 fi
8326 if test $ac_cv_header_zlib_h = yes; then
8327   :
8328 else
8329   { { echo "$as_me:$LINENO: error: zlib header not found
8330 Use --without-zlib to disable zlib support." >&5
8331 echo "$as_me: error: zlib header not found
8332 Use --without-zlib to disable zlib support." >&2;}
8333    { (exit 1); exit 1; }; }
8334 fi
8335
8336
8337 fi
8338
8339 if test "$with_krb4" = yes ; then
8340   if test "${ac_cv_header_krb_h+set}" = set; then
8341   echo "$as_me:$LINENO: checking for krb.h" >&5
8342 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_krb_h+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8348 else
8349   # Is the header compilable?
8350 echo "$as_me:$LINENO: checking krb.h usability" >&5
8351 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <krb.h>
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest.$ac_objext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_header_compiler=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8375 fi
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8379
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking krb.h presence" >&5
8382 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <krb.h>
8387 _ACEOF
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390   ac_status=$?
8391   egrep -v '^ *\+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } >/dev/null; then
8396   if test -s conftest.err; then
8397     ac_cpp_err=$ac_c_preproc_warn_flag
8398   else
8399     ac_cpp_err=
8400   fi
8401 else
8402   ac_cpp_err=yes
8403 fi
8404 if test -z "$ac_cpp_err"; then
8405   ac_header_preproc=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   ac_header_preproc=no
8410 fi
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8414
8415 # So?  What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8417   yes:no )
8418     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8422   no:yes )
8423     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8429 esac
8430 echo "$as_me:$LINENO: checking for krb.h" >&5
8431 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_krb_h+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_cv_header_krb_h=$ac_header_preproc
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8439
8440 fi
8441 if test $ac_cv_header_krb_h = yes; then
8442   :
8443 else
8444   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8445 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8446    { (exit 1); exit 1; }; }
8447 fi
8448
8449
8450 fi
8451
8452 if test "$with_krb5" = yes ; then
8453   if test "${ac_cv_header_krb5_h+set}" = set; then
8454   echo "$as_me:$LINENO: checking for krb5.h" >&5
8455 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_krb5_h+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8461 else
8462   # Is the header compilable?
8463 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8464 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <krb5.h>
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest.$ac_objext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_header_compiler=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8488 fi
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8492
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8495 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <krb5.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503   ac_status=$?
8504   egrep -v '^ *\+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } >/dev/null; then
8509   if test -s conftest.err; then
8510     ac_cpp_err=$ac_c_preproc_warn_flag
8511   else
8512     ac_cpp_err=
8513   fi
8514 else
8515   ac_cpp_err=yes
8516 fi
8517 if test -z "$ac_cpp_err"; then
8518   ac_header_preproc=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   ac_header_preproc=no
8523 fi
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8527
8528 # So?  What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8530   yes:no )
8531     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8535   no:yes )
8536     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8542 esac
8543 echo "$as_me:$LINENO: checking for krb5.h" >&5
8544 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_krb5_h+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_cv_header_krb5_h=$ac_header_preproc
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8552
8553 fi
8554 if test $ac_cv_header_krb5_h = yes; then
8555   :
8556 else
8557   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8558 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8559    { (exit 1); exit 1; }; }
8560 fi
8561
8562
8563   if test "${ac_cv_header_com_err_h+set}" = set; then
8564   echo "$as_me:$LINENO: checking for com_err.h" >&5
8565 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_com_err_h+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8571 else
8572   # Is the header compilable?
8573 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8574 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <com_err.h>
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583   (eval $ac_compile) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -s conftest.$ac_objext'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; }; then
8593   ac_header_compiler=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8598 fi
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8602
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8605 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <com_err.h>
8610 _ACEOF
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8613   ac_status=$?
8614   egrep -v '^ *\+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } >/dev/null; then
8619   if test -s conftest.err; then
8620     ac_cpp_err=$ac_c_preproc_warn_flag
8621   else
8622     ac_cpp_err=
8623   fi
8624 else
8625   ac_cpp_err=yes
8626 fi
8627 if test -z "$ac_cpp_err"; then
8628   ac_header_preproc=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631   cat conftest.$ac_ext >&5
8632   ac_header_preproc=no
8633 fi
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8637
8638 # So?  What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8640   yes:no )
8641     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8645   no:yes )
8646     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8652 esac
8653 echo "$as_me:$LINENO: checking for com_err.h" >&5
8654 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_com_err_h+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_cv_header_com_err_h=$ac_header_preproc
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8662
8663 fi
8664 if test $ac_cv_header_com_err_h = yes; then
8665   :
8666 else
8667   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8668 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8669    { (exit 1); exit 1; }; }
8670 fi
8671
8672
8673 fi
8674
8675 if test "$with_openssl" = yes ; then
8676   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8677   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8678 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8679 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8680   echo $ECHO_N "(cached) $ECHO_C" >&6
8681 fi
8682 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8683 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8684 else
8685   # Is the header compilable?
8686 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8687 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8689 #line $LINENO "configure"
8690 #include "confdefs.h"
8691 $ac_includes_default
8692 #include <openssl/ssl.h>
8693 _ACEOF
8694 rm -f conftest.$ac_objext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8696   (eval $ac_compile) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -s conftest.$ac_objext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_header_compiler=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ac_header_compiler=no
8711 fi
8712 rm -f conftest.$ac_objext conftest.$ac_ext
8713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6
8715
8716 # Is the header present?
8717 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8718 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8720 #line $LINENO "configure"
8721 #include "confdefs.h"
8722 #include <openssl/ssl.h>
8723 _ACEOF
8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726   ac_status=$?
8727   egrep -v '^ *\+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } >/dev/null; then
8732   if test -s conftest.err; then
8733     ac_cpp_err=$ac_c_preproc_warn_flag
8734   else
8735     ac_cpp_err=
8736   fi
8737 else
8738   ac_cpp_err=yes
8739 fi
8740 if test -z "$ac_cpp_err"; then
8741   ac_header_preproc=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744   cat conftest.$ac_ext >&5
8745   ac_header_preproc=no
8746 fi
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751 # So?  What about this header?
8752 case $ac_header_compiler:$ac_header_preproc in
8753   yes:no )
8754     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8757 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8758   no:yes )
8759     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8760 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8761     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8765 esac
8766 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8767 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8768 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8775
8776 fi
8777 if test $ac_cv_header_openssl_ssl_h = yes; then
8778   :
8779 else
8780   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8781 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8782    { (exit 1); exit 1; }; }
8783 fi
8784
8785
8786   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8787   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8788 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8789 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8790   echo $ECHO_N "(cached) $ECHO_C" >&6
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8793 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8794 else
8795   # Is the header compilable?
8796 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8797 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 #include "confdefs.h"
8801 $ac_includes_default
8802 #include <openssl/err.h>
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806   (eval $ac_compile) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -s conftest.$ac_objext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_header_compiler=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 ac_header_compiler=no
8821 fi
8822 rm -f conftest.$ac_objext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824 echo "${ECHO_T}$ac_header_compiler" >&6
8825
8826 # Is the header present?
8827 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8828 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8831 #include "confdefs.h"
8832 #include <openssl/err.h>
8833 _ACEOF
8834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8836   ac_status=$?
8837   egrep -v '^ *\+' conftest.er1 >conftest.err
8838   rm -f conftest.er1
8839   cat conftest.err >&5
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } >/dev/null; then
8842   if test -s conftest.err; then
8843     ac_cpp_err=$ac_c_preproc_warn_flag
8844   else
8845     ac_cpp_err=
8846   fi
8847 else
8848   ac_cpp_err=yes
8849 fi
8850 if test -z "$ac_cpp_err"; then
8851   ac_header_preproc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854   cat conftest.$ac_ext >&5
8855   ac_header_preproc=no
8856 fi
8857 rm -f conftest.err conftest.$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859 echo "${ECHO_T}$ac_header_preproc" >&6
8860
8861 # So?  What about this header?
8862 case $ac_header_compiler:$ac_header_preproc in
8863   yes:no )
8864     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8865 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8867 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8868   no:yes )
8869     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8875 esac
8876 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8877 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8878 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   ac_cv_header_openssl_err_h=$ac_header_preproc
8882 fi
8883 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8884 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8885
8886 fi
8887 if test $ac_cv_header_openssl_err_h = yes; then
8888   :
8889 else
8890   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8891 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8892    { (exit 1); exit 1; }; }
8893 fi
8894
8895
8896 fi
8897
8898 if test "$with_pam" = yes ; then
8899   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8900   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8901 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8902 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 fi
8905 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8906 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8907 else
8908   # Is the header compilable?
8909 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8910 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 #include "confdefs.h"
8914 $ac_includes_default
8915 #include <security/pam_appl.h>
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919   (eval $ac_compile) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -s conftest.$ac_objext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_header_compiler=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8933 ac_header_compiler=no
8934 fi
8935 rm -f conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937 echo "${ECHO_T}$ac_header_compiler" >&6
8938
8939 # Is the header present?
8940 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8941 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8944 #include "confdefs.h"
8945 #include <security/pam_appl.h>
8946 _ACEOF
8947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8949   ac_status=$?
8950   egrep -v '^ *\+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } >/dev/null; then
8955   if test -s conftest.err; then
8956     ac_cpp_err=$ac_c_preproc_warn_flag
8957   else
8958     ac_cpp_err=
8959   fi
8960 else
8961   ac_cpp_err=yes
8962 fi
8963 if test -z "$ac_cpp_err"; then
8964   ac_header_preproc=yes
8965 else
8966   echo "$as_me: failed program was:" >&5
8967   cat conftest.$ac_ext >&5
8968   ac_header_preproc=no
8969 fi
8970 rm -f conftest.err conftest.$ac_ext
8971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8972 echo "${ECHO_T}$ac_header_preproc" >&6
8973
8974 # So?  What about this header?
8975 case $ac_header_compiler:$ac_header_preproc in
8976   yes:no )
8977     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8978 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8979     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8980 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8981   no:yes )
8982     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8983 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8984     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8985 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8986     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8987 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8988 esac
8989 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8990 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8991 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8997 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8998
8999 fi
9000 if test $ac_cv_header_security_pam_appl_h = yes; then
9001   :
9002 else
9003   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9004 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9005    { (exit 1); exit 1; }; }
9006 fi
9007
9008
9009 fi
9010
9011
9012 ##
9013 ## Types, structures, compiler characteristics
9014 ##
9015
9016 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9017 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9018 if test "${ac_cv_c_const+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 #line $LINENO "configure"
9023 #include "confdefs.h"
9024
9025 #ifdef F77_DUMMY_MAIN
9026 #  ifdef __cplusplus
9027      extern "C"
9028 #  endif
9029    int F77_DUMMY_MAIN() { return 1; }
9030 #endif
9031 int
9032 main ()
9033 {
9034 /* FIXME: Include the comments suggested by Paul. */
9035 #ifndef __cplusplus
9036   /* Ultrix mips cc rejects this.  */
9037   typedef int charset[2];
9038   const charset x;
9039   /* SunOS 4.1.1 cc rejects this.  */
9040   char const *const *ccp;
9041   char **p;
9042   /* NEC SVR4.0.2 mips cc rejects this.  */
9043   struct point {int x, y;};
9044   static struct point const zero = {0,0};
9045   /* AIX XL C 1.02.0.0 rejects this.
9046      It does not let you subtract one const X* pointer from another in
9047      an arm of an if-expression whose if-part is not a constant
9048      expression */
9049   const char *g = "string";
9050   ccp = &g + (g ? g-g : 0);
9051   /* HPUX 7.0 cc rejects these. */
9052   ++ccp;
9053   p = (char**) ccp;
9054   ccp = (char const *const *) p;
9055   { /* SCO 3.2v4 cc rejects this.  */
9056     char *t;
9057     char const *s = 0 ? (char *) 0 : (char const *) 0;
9058
9059     *t++ = 0;
9060   }
9061   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9062     int x[] = {25, 17};
9063     const int *foo = &x[0];
9064     ++foo;
9065   }
9066   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9067     typedef const int *iptr;
9068     iptr p = 0;
9069     ++p;
9070   }
9071   { /* AIX XL C 1.02.0.0 rejects this saying
9072        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9073     struct s { int j; const int *ap[3]; };
9074     struct s *b; b->j = 5;
9075   }
9076   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9077     const int foo = 10;
9078   }
9079 #endif
9080
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087   (eval $ac_compile) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } &&
9091          { ac_try='test -s conftest.$ac_objext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_c_const=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 ac_cv_c_const=no
9102 fi
9103 rm -f conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9106 echo "${ECHO_T}$ac_cv_c_const" >&6
9107 if test $ac_cv_c_const = no; then
9108
9109 cat >>confdefs.h <<\_ACEOF
9110 #define const
9111 _ACEOF
9112
9113 fi
9114
9115 echo "$as_me:$LINENO: checking for inline" >&5
9116 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9117 if test "${ac_cv_c_inline+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   ac_cv_c_inline=no
9121 for ac_kw in inline __inline__ __inline; do
9122   cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9125 #ifndef __cplusplus
9126 static $ac_kw int static_foo () {return 0; }
9127 $ac_kw int foo () {return 0; }
9128 #endif
9129
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133   (eval $ac_compile) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } &&
9137          { ac_try='test -s conftest.$ac_objext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_cv_c_inline=$ac_kw; break
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 fi
9148 rm -f conftest.$ac_objext conftest.$ac_ext
9149 done
9150
9151 fi
9152 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9153 echo "${ECHO_T}$ac_cv_c_inline" >&6
9154 case $ac_cv_c_inline in
9155   inline | yes) ;;
9156   no)
9157 cat >>confdefs.h <<\_ACEOF
9158 #define inline
9159 _ACEOF
9160  ;;
9161   *)  cat >>confdefs.h <<_ACEOF
9162 #define inline $ac_cv_c_inline
9163 _ACEOF
9164  ;;
9165 esac
9166
9167 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9168 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9169 if test "${ac_cv_c_stringize+set}" = set; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 #include "confdefs.h"
9175 #define x(y) #y
9176
9177 char *s = x(teststring);
9178 _ACEOF
9179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9180   egrep "#teststring" >/dev/null 2>&1; then
9181   ac_cv_c_stringize=no
9182 else
9183   ac_cv_c_stringize=yes
9184 fi
9185 rm -f conftest*
9186
9187 fi
9188 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9189 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9190 if test $ac_cv_c_stringize = yes; then
9191
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_STRINGIZE 1
9194 _ACEOF
9195
9196 fi
9197
9198 echo "$as_me:$LINENO: checking for signed types" >&5
9199 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9200 if test "${pgac_cv_c_signed+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   cat >conftest.$ac_ext <<_ACEOF
9204 #line $LINENO "configure"
9205 #include "confdefs.h"
9206
9207 #ifdef F77_DUMMY_MAIN
9208 #  ifdef __cplusplus
9209      extern "C"
9210 #  endif
9211    int F77_DUMMY_MAIN() { return 1; }
9212 #endif
9213 int
9214 main ()
9215 {
9216 signed char c; signed short s; signed int i;
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223   (eval $ac_compile) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   pgac_cv_c_signed=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9237 pgac_cv_c_signed=no
9238 fi
9239 rm -f conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9242 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9243 if test x"$pgac_cv_c_signed" = xno ; then
9244
9245 cat >>confdefs.h <<\_ACEOF
9246 #define signed
9247 _ACEOF
9248
9249 fi
9250 echo "$as_me:$LINENO: checking for working volatile" >&5
9251 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9252 if test "${ac_cv_c_volatile+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 #include "confdefs.h"
9258
9259 #ifdef F77_DUMMY_MAIN
9260 #  ifdef __cplusplus
9261      extern "C"
9262 #  endif
9263    int F77_DUMMY_MAIN() { return 1; }
9264 #endif
9265 int
9266 main ()
9267 {
9268
9269 volatile int x;
9270 int * volatile y;
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -s conftest.$ac_objext'
9282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283   (eval $ac_try) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; }; then
9287   ac_cv_c_volatile=yes
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9291 ac_cv_c_volatile=no
9292 fi
9293 rm -f conftest.$ac_objext conftest.$ac_ext
9294 fi
9295 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9296 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9297 if test $ac_cv_c_volatile = no; then
9298
9299 cat >>confdefs.h <<\_ACEOF
9300 #define volatile
9301 _ACEOF
9302
9303 fi
9304
9305 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9306 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9307 if test "${ac_cv_struct_tm+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   cat >conftest.$ac_ext <<_ACEOF
9311 #line $LINENO "configure"
9312 #include "confdefs.h"
9313 #include <sys/types.h>
9314 #include <time.h>
9315
9316 #ifdef F77_DUMMY_MAIN
9317 #  ifdef __cplusplus
9318      extern "C"
9319 #  endif
9320    int F77_DUMMY_MAIN() { return 1; }
9321 #endif
9322 int
9323 main ()
9324 {
9325 struct tm *tp; tp->tm_sec;
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332   (eval $ac_compile) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -s conftest.$ac_objext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   ac_cv_struct_tm=time.h
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 ac_cv_struct_tm=sys/time.h
9347 fi
9348 rm -f conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9351 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9352 if test $ac_cv_struct_tm = sys/time.h; then
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define TM_IN_SYS_TIME 1
9356 _ACEOF
9357
9358 fi
9359
9360 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9361 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9362 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9368 #include <sys/types.h>
9369 #include <$ac_cv_struct_tm>
9370
9371
9372 #ifdef F77_DUMMY_MAIN
9373 #  ifdef __cplusplus
9374      extern "C"
9375 #  endif
9376    int F77_DUMMY_MAIN() { return 1; }
9377 #endif
9378 int
9379 main ()
9380 {
9381 static struct tm ac_aggr;
9382 if (ac_aggr.tm_zone)
9383 return 0;
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -s conftest.$ac_objext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_cv_member_struct_tm_tm_zone=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 ac_cv_member_struct_tm_tm_zone=no
9405 fi
9406 rm -f conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9409 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9410 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_STRUCT_TM_TM_ZONE 1
9414 _ACEOF
9415
9416
9417 fi
9418
9419 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9420
9421 cat >>confdefs.h <<\_ACEOF
9422 #define HAVE_TM_ZONE 1
9423 _ACEOF
9424
9425 else
9426   echo "$as_me:$LINENO: checking for tzname" >&5
9427 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9428 if test "${ac_cv_var_tzname+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 #include "confdefs.h"
9434 #include <time.h>
9435 #ifndef tzname /* For SGI.  */
9436 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9437 #endif
9438
9439 #ifdef F77_DUMMY_MAIN
9440 #  ifdef __cplusplus
9441      extern "C"
9442 #  endif
9443    int F77_DUMMY_MAIN() { return 1; }
9444 #endif
9445 int
9446 main ()
9447 {
9448 atoi(*tzname);
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455   (eval $ac_link) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -s conftest$ac_exeext'
9460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461   (eval $ac_try) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); }; }; then
9465   ac_cv_var_tzname=yes
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 ac_cv_var_tzname=no
9470 fi
9471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9472 fi
9473 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9474 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9475   if test $ac_cv_var_tzname = yes; then
9476
9477 cat >>confdefs.h <<\_ACEOF
9478 #define HAVE_TZNAME 1
9479 _ACEOF
9480
9481   fi
9482 fi
9483
9484 echo "$as_me:$LINENO: checking for union semun" >&5
9485 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9486 if test "${ac_cv_type_union_semun+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 #include "confdefs.h"
9492 #include <sys/types.h>
9493 #include <sys/ipc.h>
9494 #include <sys/sem.h>
9495
9496 #ifdef F77_DUMMY_MAIN
9497 #  ifdef __cplusplus
9498      extern "C"
9499 #  endif
9500    int F77_DUMMY_MAIN() { return 1; }
9501 #endif
9502 int
9503 main ()
9504 {
9505 if ((union semun *) 0)
9506   return 0;
9507 if (sizeof (union semun))
9508   return 0;
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515   (eval $ac_compile) 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } &&
9519          { ac_try='test -s conftest.$ac_objext'
9520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521   (eval $ac_try) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); }; }; then
9525   ac_cv_type_union_semun=yes
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 cat conftest.$ac_ext >&5
9529 ac_cv_type_union_semun=no
9530 fi
9531 rm -f conftest.$ac_objext conftest.$ac_ext
9532 fi
9533 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9534 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9535 if test $ac_cv_type_union_semun = yes; then
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_UNION_SEMUN 1
9539 _ACEOF
9540
9541
9542 fi
9543
9544 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9545 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9546 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 #include "confdefs.h"
9552 #include <sys/types.h>
9553 #ifdef HAVE_SYS_UN_H
9554 #include <sys/un.h>
9555 #endif
9556
9557
9558 #ifdef F77_DUMMY_MAIN
9559 #  ifdef __cplusplus
9560      extern "C"
9561 #  endif
9562    int F77_DUMMY_MAIN() { return 1; }
9563 #endif
9564 int
9565 main ()
9566 {
9567 if ((struct sockaddr_un *) 0)
9568   return 0;
9569 if (sizeof (struct sockaddr_un))
9570   return 0;
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577   (eval $ac_compile) 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -s conftest.$ac_objext'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; }; then
9587   ac_cv_type_struct_sockaddr_un=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 ac_cv_type_struct_sockaddr_un=no
9592 fi
9593 rm -f conftest.$ac_objext conftest.$ac_ext
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9596 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9597 if test $ac_cv_type_struct_sockaddr_un = yes; then
9598
9599 cat >>confdefs.h <<_ACEOF
9600 #define HAVE_STRUCT_SOCKADDR_UN 1
9601 _ACEOF
9602
9603
9604 fi
9605
9606
9607 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9608 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9609 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 #include "confdefs.h"
9615 #include <sys/param.h>
9616 #include <sys/socket.h>
9617 #include <sys/ucred.h>
9618
9619 #ifdef F77_DUMMY_MAIN
9620 #  ifdef __cplusplus
9621      extern "C"
9622 #  endif
9623    int F77_DUMMY_MAIN() { return 1; }
9624 #endif
9625 int
9626 main ()
9627 {
9628 if ((struct cmsgcred *) 0)
9629   return 0;
9630 if (sizeof (struct cmsgcred))
9631   return 0;
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638   (eval $ac_compile) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } &&
9642          { ac_try='test -s conftest.$ac_objext'
9643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644   (eval $ac_try) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   ac_cv_type_struct_cmsgcred=yes
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 ac_cv_type_struct_cmsgcred=no
9653 fi
9654 rm -f conftest.$ac_objext conftest.$ac_ext
9655 fi
9656 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9657 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9658 if test $ac_cv_type_struct_cmsgcred = yes; then
9659
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_STRUCT_CMSGCRED 1
9662 _ACEOF
9663
9664
9665 fi
9666 echo "$as_me:$LINENO: checking for struct fcred" >&5
9667 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9668 if test "${ac_cv_type_struct_fcred+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671   cat >conftest.$ac_ext <<_ACEOF
9672 #line $LINENO "configure"
9673 #include "confdefs.h"
9674 #include <sys/param.h>
9675 #include <sys/socket.h>
9676 #include <sys/ucred.h>
9677
9678 #ifdef F77_DUMMY_MAIN
9679 #  ifdef __cplusplus
9680      extern "C"
9681 #  endif
9682    int F77_DUMMY_MAIN() { return 1; }
9683 #endif
9684 int
9685 main ()
9686 {
9687 if ((struct fcred *) 0)
9688   return 0;
9689 if (sizeof (struct fcred))
9690   return 0;
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697   (eval $ac_compile) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -s conftest.$ac_objext'
9702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703   (eval $ac_try) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; }; then
9707   ac_cv_type_struct_fcred=yes
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 ac_cv_type_struct_fcred=no
9712 fi
9713 rm -f conftest.$ac_objext conftest.$ac_ext
9714 fi
9715 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9716 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9717 if test $ac_cv_type_struct_fcred = yes; then
9718
9719 cat >>confdefs.h <<_ACEOF
9720 #define HAVE_STRUCT_FCRED 1
9721 _ACEOF
9722
9723
9724 fi
9725 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9726 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9727 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 #include "confdefs.h"
9733 #include <sys/param.h>
9734 #include <sys/socket.h>
9735 #include <sys/ucred.h>
9736
9737 #ifdef F77_DUMMY_MAIN
9738 #  ifdef __cplusplus
9739      extern "C"
9740 #  endif
9741    int F77_DUMMY_MAIN() { return 1; }
9742 #endif
9743 int
9744 main ()
9745 {
9746 if ((struct sockcred *) 0)
9747   return 0;
9748 if (sizeof (struct sockcred))
9749   return 0;
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756   (eval $ac_compile) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -s conftest.$ac_objext'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_cv_type_struct_sockcred=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 ac_cv_type_struct_sockcred=no
9771 fi
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 fi
9774 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9775 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9776 if test $ac_cv_type_struct_sockcred = yes; then
9777
9778 cat >>confdefs.h <<_ACEOF
9779 #define HAVE_STRUCT_SOCKCRED 1
9780 _ACEOF
9781
9782
9783 fi
9784
9785
9786 if test "$with_zlib" = yes; then
9787   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9788   # did not).  While we could work around the lack of z_streamp, it
9789   # seems unwise to encourage people to use such old zlib versions...
9790   echo "$as_me:$LINENO: checking for z_streamp" >&5
9791 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9792 if test "${ac_cv_type_z_streamp+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 #include <zlib.h>
9799
9800 #ifdef F77_DUMMY_MAIN
9801 #  ifdef __cplusplus
9802      extern "C"
9803 #  endif
9804    int F77_DUMMY_MAIN() { return 1; }
9805 #endif
9806 int
9807 main ()
9808 {
9809 if ((z_streamp *) 0)
9810   return 0;
9811 if (sizeof (z_streamp))
9812   return 0;
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819   (eval $ac_compile) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_cv_type_z_streamp=yes
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 ac_cv_type_z_streamp=no
9834 fi
9835 rm -f conftest.$ac_objext conftest.$ac_ext
9836 fi
9837 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9838 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9839 if test $ac_cv_type_z_streamp = yes; then
9840   :
9841 else
9842   { { echo "$as_me:$LINENO: error: zlib version is too old
9843 Use --without-zlib to disable zlib support." >&5
9844 echo "$as_me: error: zlib version is too old
9845 Use --without-zlib to disable zlib support." >&2;}
9846    { (exit 1); exit 1; }; }
9847 fi
9848
9849 fi
9850
9851 if test "$with_krb5" = yes; then
9852 # Check for differences between MIT and Heimdal (KTH) releases
9853   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9854 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9855 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   cat >conftest.$ac_ext <<_ACEOF
9859 #line $LINENO "configure"
9860 #include "confdefs.h"
9861 #include <krb5.h>
9862
9863 #ifdef F77_DUMMY_MAIN
9864 #  ifdef __cplusplus
9865      extern "C"
9866 #  endif
9867    int F77_DUMMY_MAIN() { return 1; }
9868 #endif
9869 int
9870 main ()
9871 {
9872 static krb5_ticket ac_aggr;
9873 if (ac_aggr.enc_part2)
9874 return 0;
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881   (eval $ac_compile) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -s conftest.$ac_objext'
9886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887   (eval $ac_try) 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; }; then
9891   ac_cv_member_krb5_ticket_enc_part2=yes
9892 else
9893   echo "$as_me: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 ac_cv_member_krb5_ticket_enc_part2=no
9896 fi
9897 rm -f conftest.$ac_objext conftest.$ac_ext
9898 fi
9899 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9900 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9901 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9902
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_KRB5_TICKET_ENC_PART2 1
9905 _ACEOF
9906
9907
9908 else
9909   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9910 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9911 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9916 #include "confdefs.h"
9917 #include <krb5.h>
9918
9919 #ifdef F77_DUMMY_MAIN
9920 #  ifdef __cplusplus
9921      extern "C"
9922 #  endif
9923    int F77_DUMMY_MAIN() { return 1; }
9924 #endif
9925 int
9926 main ()
9927 {
9928 static krb5_ticket ac_aggr;
9929 if (ac_aggr.client)
9930 return 0;
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937   (eval $ac_compile) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -s conftest.$ac_objext'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_member_krb5_ticket_client=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 ac_cv_member_krb5_ticket_client=no
9952 fi
9953 rm -f conftest.$ac_objext conftest.$ac_ext
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9956 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9957 if test $ac_cv_member_krb5_ticket_client = yes; then
9958
9959 cat >>confdefs.h <<_ACEOF
9960 #define HAVE_KRB5_TICKET_CLIENT 1
9961 _ACEOF
9962
9963
9964 else
9965   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9966 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9967    { (exit 1); exit 1; }; }
9968 fi
9969
9970 fi
9971
9972   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9973 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9974 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   cat >conftest.$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9979 #include "confdefs.h"
9980 #include <krb5.h>
9981
9982 #ifdef F77_DUMMY_MAIN
9983 #  ifdef __cplusplus
9984      extern "C"
9985 #  endif
9986    int F77_DUMMY_MAIN() { return 1; }
9987 #endif
9988 int
9989 main ()
9990 {
9991 static krb5_error ac_aggr;
9992 if (ac_aggr.text.data)
9993 return 0;
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000   (eval $ac_compile) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -s conftest.$ac_objext'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   ac_cv_member_krb5_error_text_data=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 ac_cv_member_krb5_error_text_data=no
10015 fi
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10019 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10020 if test $ac_cv_member_krb5_error_text_data = yes; then
10021
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10024 _ACEOF
10025
10026
10027 else
10028   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10029 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10030 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   cat >conftest.$ac_ext <<_ACEOF
10034 #line $LINENO "configure"
10035 #include "confdefs.h"
10036 #include <krb5.h>
10037
10038 #ifdef F77_DUMMY_MAIN
10039 #  ifdef __cplusplus
10040      extern "C"
10041 #  endif
10042    int F77_DUMMY_MAIN() { return 1; }
10043 #endif
10044 int
10045 main ()
10046 {
10047 static krb5_error ac_aggr;
10048 if (ac_aggr.e_data)
10049 return 0;
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 rm -f conftest.$ac_objext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056   (eval $ac_compile) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } &&
10060          { ac_try='test -s conftest.$ac_objext'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; }; then
10066   ac_cv_member_krb5_error_e_data=yes
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 ac_cv_member_krb5_error_e_data=no
10071 fi
10072 rm -f conftest.$ac_objext conftest.$ac_ext
10073 fi
10074 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10075 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10076 if test $ac_cv_member_krb5_error_e_data = yes; then
10077   :
10078 else
10079   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10080 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10081    { (exit 1); exit 1; }; }
10082 fi
10083
10084 fi
10085
10086 fi
10087
10088
10089 ##
10090 ## Functions, global variables
10091 ##
10092 echo "$as_me:$LINENO: checking for int timezone" >&5
10093 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10094 if test "${pgac_cv_var_int_timezone+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <time.h>
10101 int res;
10102 #ifdef F77_DUMMY_MAIN
10103 #  ifdef __cplusplus
10104      extern "C"
10105 #  endif
10106    int F77_DUMMY_MAIN() { return 1; }
10107 #endif
10108 int
10109 main ()
10110 {
10111 res = timezone / 60;
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   pgac_cv_var_int_timezone=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 pgac_cv_var_int_timezone=no
10133 fi
10134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10137 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10138 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10139
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_INT_TIMEZONE
10142 _ACEOF
10143
10144 fi
10145 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10146 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10147  if test "${ac_cv_func_accept_arg1+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150    if test "${ac_cv_func_accept_arg2+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153     if test "${ac_cv_func_accept_arg3+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10157      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10158       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10159        cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #ifdef HAVE_SYS_TYPES_H
10163 #include <sys/types.h>
10164 #endif
10165 #ifdef HAVE_SYS_SOCKET_H
10166 #include <sys/socket.h>
10167 #endif
10168 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10169 #ifdef F77_DUMMY_MAIN
10170 #  ifdef __cplusplus
10171      extern "C"
10172 #  endif
10173    int F77_DUMMY_MAIN() { return 1; }
10174 #endif
10175 int
10176 main ()
10177 {
10178
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -s conftest.$ac_objext'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_not_found=no; break 3
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10199 ac_not_found=yes
10200 fi
10201 rm -f conftest.$ac_objext conftest.$ac_ext
10202       done
10203      done
10204     done
10205     if test "$ac_not_found" = yes; then
10206       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10207 echo "$as_me: error: could not determine argument types" >&2;}
10208    { (exit 1); exit 1; }; }
10209     fi
10210     if test "$ac_cv_func_accept_arg3" = "void"; then
10211       ac_cv_func_accept_arg3=int
10212     fi
10213
10214 fi
10215
10216 fi
10217
10218 fi
10219  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10220 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10221
10222 cat >>confdefs.h <<_ACEOF
10223 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10224 _ACEOF
10225
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10229 _ACEOF
10230
10231
10232 cat >>confdefs.h <<_ACEOF
10233 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10234 _ACEOF
10235
10236
10237 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10238 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10239 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245 #include <sys/time.h>
10246 #ifdef F77_DUMMY_MAIN
10247 #  ifdef __cplusplus
10248      extern "C"
10249 #  endif
10250    int F77_DUMMY_MAIN() { return 1; }
10251 #endif
10252 int
10253 main ()
10254 {
10255 struct timeval *tp;
10256 struct timezone *tzp;
10257 gettimeofday(tp,tzp);
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264   (eval $ac_compile) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } &&
10268          { ac_try='test -s conftest.$ac_objext'
10269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270   (eval $ac_try) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; }; then
10274   pgac_cv_func_gettimeofday_1arg=no
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 pgac_cv_func_gettimeofday_1arg=yes
10279 fi
10280 rm -f conftest.$ac_objext conftest.$ac_ext
10281 fi
10282 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10283 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10284 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define GETTIMEOFDAY_1ARG
10288 _ACEOF
10289
10290 fi
10291
10292 # SunOS doesn't handle negative byte comparisons properly with +/- return
10293 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10294 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10295 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   if test "$cross_compiling" = yes; then
10299   pgac_cv_func_memcmp_clean=no
10300 else
10301   cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10303 #include "confdefs.h"
10304
10305 main()
10306 {
10307   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10308   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10309 }
10310
10311 _ACEOF
10312 rm -f conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314   (eval $ac_link) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   pgac_cv_func_memcmp_clean=yes
10324 else
10325   echo "$as_me: program exited with status $ac_status" >&5
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 ( exit $ac_status )
10329 pgac_cv_func_memcmp_clean=no
10330 fi
10331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10332 fi
10333 fi
10334 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10335 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10336 if test $pgac_cv_func_memcmp_clean = no ; then
10337   MEMCMP=memcmp.o
10338 else
10339   MEMCMP=
10340 fi
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10356 do
10357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10358 echo "$as_me:$LINENO: checking for $ac_func" >&5
10359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10360 if eval "test \"\${$as_ac_var+set}\" = set"; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 #include "confdefs.h"
10366 /* System header to define __stub macros and hopefully few prototypes,
10367     which can conflict with char $ac_func (); below.  */
10368 #include <assert.h>
10369 /* Override any gcc2 internal prototype to avoid an error.  */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 /* We use char because int might match the return type of a gcc2
10374    builtin and then its argument prototype would still apply.  */
10375 char $ac_func ();
10376 char (*f) ();
10377
10378 #ifdef F77_DUMMY_MAIN
10379 #  ifdef __cplusplus
10380      extern "C"
10381 #  endif
10382    int F77_DUMMY_MAIN() { return 1; }
10383 #endif
10384 int
10385 main ()
10386 {
10387 /* The GNU C library defines this for functions which it implements
10388     to always fail with ENOSYS.  Some functions are actually named
10389     something starting with __ and the normal name is an alias.  */
10390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10391 choke me
10392 #else
10393 f = $ac_func;
10394 #endif
10395
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402   (eval $ac_link) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -s conftest$ac_exeext'
10407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408   (eval $ac_try) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; }; then
10412   eval "$as_ac_var=yes"
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 eval "$as_ac_var=no"
10417 fi
10418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 fi
10420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423   cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428 done
10429
10430
10431 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10432 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10433 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 #include "confdefs.h"
10439 #include <unistd.h>
10440
10441 #ifdef F77_DUMMY_MAIN
10442 #  ifdef __cplusplus
10443      extern "C"
10444 #  endif
10445    int F77_DUMMY_MAIN() { return 1; }
10446 #endif
10447 int
10448 main ()
10449 {
10450 #ifndef fdatasync
10451   char *p = (char *) fdatasync;
10452 #endif
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460   (eval $ac_compile) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -s conftest.$ac_objext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_cv_have_decl_fdatasync=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 ac_cv_have_decl_fdatasync=no
10475 fi
10476 rm -f conftest.$ac_objext conftest.$ac_ext
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10479 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10480 if test $ac_cv_have_decl_fdatasync = yes; then
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_FDATASYNC 1
10484 _ACEOF
10485
10486
10487 else
10488   cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_FDATASYNC 0
10490 _ACEOF
10491
10492
10493 fi
10494
10495
10496
10497 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10498 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10499 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10504 #include "confdefs.h"
10505 #include <machine/vmparam.h>
10506 #include <sys/exec.h>
10507
10508 #ifdef F77_DUMMY_MAIN
10509 #  ifdef __cplusplus
10510      extern "C"
10511 #  endif
10512    int F77_DUMMY_MAIN() { return 1; }
10513 #endif
10514 int
10515 main ()
10516 {
10517 PS_STRINGS->ps_nargvstr = 1;
10518 PS_STRINGS->ps_argvstr = "foo";
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525   (eval $ac_link) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -s conftest$ac_exeext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   pgac_cv_var_PS_STRINGS=yes
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 pgac_cv_var_PS_STRINGS=no
10540 fi
10541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10542 fi
10543 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10544 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10545 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10546
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_PS_STRINGS
10549 _ACEOF
10550
10551 fi
10552
10553
10554 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10555 # is missing.  Yes, there are machines that have only one.  We may
10556 # also decide to use snprintf.c if snprintf() is present but does not
10557 # have working "long long int" support -- see below.
10558
10559 SNPRINTF=''
10560
10561 for ac_func in snprintf
10562 do
10563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10564 echo "$as_me:$LINENO: checking for $ac_func" >&5
10565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10566 if eval "test \"\${$as_ac_var+set}\" = set"; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   cat >conftest.$ac_ext <<_ACEOF
10570 #line $LINENO "configure"
10571 #include "confdefs.h"
10572 /* System header to define __stub macros and hopefully few prototypes,
10573     which can conflict with char $ac_func (); below.  */
10574 #include <assert.h>
10575 /* Override any gcc2 internal prototype to avoid an error.  */
10576 #ifdef __cplusplus
10577 extern "C"
10578 #endif
10579 /* We use char because int might match the return type of a gcc2
10580    builtin and then its argument prototype would still apply.  */
10581 char $ac_func ();
10582 char (*f) ();
10583
10584 #ifdef F77_DUMMY_MAIN
10585 #  ifdef __cplusplus
10586      extern "C"
10587 #  endif
10588    int F77_DUMMY_MAIN() { return 1; }
10589 #endif
10590 int
10591 main ()
10592 {
10593 /* The GNU C library defines this for functions which it implements
10594     to always fail with ENOSYS.  Some functions are actually named
10595     something starting with __ and the normal name is an alias.  */
10596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10597 choke me
10598 #else
10599 f = $ac_func;
10600 #endif
10601
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608   (eval $ac_link) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -s conftest$ac_exeext'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }; then
10618   eval "$as_ac_var=yes"
10619 else
10620   echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 eval "$as_ac_var=no"
10623 fi
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10625 fi
10626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10628 if test `eval echo '${'$as_ac_var'}'` = yes; then
10629   cat >>confdefs.h <<_ACEOF
10630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10631 _ACEOF
10632
10633 else
10634   SNPRINTF='snprintf.o'
10635 fi
10636 done
10637
10638
10639 for ac_func in vsnprintf
10640 do
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10644 if eval "test \"\${$as_ac_var+set}\" = set"; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   cat >conftest.$ac_ext <<_ACEOF
10648 #line $LINENO "configure"
10649 #include "confdefs.h"
10650 /* System header to define __stub macros and hopefully few prototypes,
10651     which can conflict with char $ac_func (); below.  */
10652 #include <assert.h>
10653 /* Override any gcc2 internal prototype to avoid an error.  */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 /* We use char because int might match the return type of a gcc2
10658    builtin and then its argument prototype would still apply.  */
10659 char $ac_func ();
10660 char (*f) ();
10661
10662 #ifdef F77_DUMMY_MAIN
10663 #  ifdef __cplusplus
10664      extern "C"
10665 #  endif
10666    int F77_DUMMY_MAIN() { return 1; }
10667 #endif
10668 int
10669 main ()
10670 {
10671 /* The GNU C library defines this for functions which it implements
10672     to always fail with ENOSYS.  Some functions are actually named
10673     something starting with __ and the normal name is an alias.  */
10674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 choke me
10676 #else
10677 f = $ac_func;
10678 #endif
10679
10680   ;
10681   return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686   (eval $ac_link) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } &&
10690          { ac_try='test -s conftest$ac_exeext'
10691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692   (eval $ac_try) 2>&5
10693   ac_status=$?
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); }; }; then
10696   eval "$as_ac_var=yes"
10697 else
10698   echo "$as_me: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 eval "$as_ac_var=no"
10701 fi
10702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10703 fi
10704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10706 if test `eval echo '${'$as_ac_var'}'` = yes; then
10707   cat >>confdefs.h <<_ACEOF
10708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10709 _ACEOF
10710
10711 else
10712   SNPRINTF='snprintf.o'
10713 fi
10714 done
10715
10716
10717
10718
10719 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10720 # include/c.h will provide declarations.  Note this is a separate test
10721 # from whether the functions exist in the C library --- there are
10722 # systems that have the functions but don't bother to declare them :-(
10723
10724 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10725 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10726 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   cat >conftest.$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10731 #include "confdefs.h"
10732 $ac_includes_default
10733 #ifdef F77_DUMMY_MAIN
10734 #  ifdef __cplusplus
10735      extern "C"
10736 #  endif
10737    int F77_DUMMY_MAIN() { return 1; }
10738 #endif
10739 int
10740 main ()
10741 {
10742 #ifndef snprintf
10743   char *p = (char *) snprintf;
10744 #endif
10745
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752   (eval $ac_compile) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -s conftest.$ac_objext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   ac_cv_have_decl_snprintf=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 ac_cv_have_decl_snprintf=no
10767 fi
10768 rm -f conftest.$ac_objext conftest.$ac_ext
10769 fi
10770 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10771 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10772 if test $ac_cv_have_decl_snprintf = yes; then
10773
10774 cat >>confdefs.h <<_ACEOF
10775 #define HAVE_DECL_SNPRINTF 1
10776 _ACEOF
10777
10778
10779 else
10780   cat >>confdefs.h <<_ACEOF
10781 #define HAVE_DECL_SNPRINTF 0
10782 _ACEOF
10783
10784
10785 fi
10786 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10787 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10788 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 #include "confdefs.h"
10794 $ac_includes_default
10795 #ifdef F77_DUMMY_MAIN
10796 #  ifdef __cplusplus
10797      extern "C"
10798 #  endif
10799    int F77_DUMMY_MAIN() { return 1; }
10800 #endif
10801 int
10802 main ()
10803 {
10804 #ifndef vsnprintf
10805   char *p = (char *) vsnprintf;
10806 #endif
10807
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814   (eval $ac_compile) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } &&
10818          { ac_try='test -s conftest.$ac_objext'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; }; then
10824   ac_cv_have_decl_vsnprintf=yes
10825 else
10826   echo "$as_me: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 ac_cv_have_decl_vsnprintf=no
10829 fi
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10831 fi
10832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10833 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10834 if test $ac_cv_have_decl_vsnprintf = yes; then
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define HAVE_DECL_VSNPRINTF 1
10838 _ACEOF
10839
10840
10841 else
10842   cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DECL_VSNPRINTF 0
10844 _ACEOF
10845
10846
10847 fi
10848
10849
10850
10851
10852 # do this one the hard way in case isinf() is a macro
10853 echo "$as_me:$LINENO: checking for isinf" >&5
10854 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10855 if test "${ac_cv_func_isinf+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 #line $LINENO "configure"
10860 #include "confdefs.h"
10861 #include <math.h>
10862
10863 #ifdef F77_DUMMY_MAIN
10864 #  ifdef __cplusplus
10865      extern "C"
10866 #  endif
10867    int F77_DUMMY_MAIN() { return 1; }
10868 #endif
10869 int
10870 main ()
10871 {
10872 double x = 0.0; int res = isinf(x);
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10879   (eval $ac_link) 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -s conftest$ac_exeext'
10884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885   (eval $ac_try) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   ac_cv_func_isinf=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 ac_cv_func_isinf=no
10894 fi
10895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10896 fi
10897 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10898 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10899
10900 if test $ac_cv_func_isinf = yes ; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define HAVE_ISINF 1
10904 _ACEOF
10905
10906   ISINF=
10907 else
10908   ISINF='isinf.o'
10909   # Look for a way to implement a substitute for isinf()
10910
10911
10912
10913
10914 for ac_func in fpclass fp_class fp_class_d class
10915 do
10916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10917 echo "$as_me:$LINENO: checking for $ac_func" >&5
10918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10919 if eval "test \"\${$as_ac_var+set}\" = set"; then
10920   echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922   cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 #include "confdefs.h"
10925 /* System header to define __stub macros and hopefully few prototypes,
10926     which can conflict with char $ac_func (); below.  */
10927 #include <assert.h>
10928 /* Override any gcc2 internal prototype to avoid an error.  */
10929 #ifdef __cplusplus
10930 extern "C"
10931 #endif
10932 /* We use char because int might match the return type of a gcc2
10933    builtin and then its argument prototype would still apply.  */
10934 char $ac_func ();
10935 char (*f) ();
10936
10937 #ifdef F77_DUMMY_MAIN
10938 #  ifdef __cplusplus
10939      extern "C"
10940 #  endif
10941    int F77_DUMMY_MAIN() { return 1; }
10942 #endif
10943 int
10944 main ()
10945 {
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10950 choke me
10951 #else
10952 f = $ac_func;
10953 #endif
10954
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 rm -f conftest.$ac_objext conftest$ac_exeext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10961   (eval $ac_link) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -s conftest$ac_exeext'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; }; then
10971   eval "$as_ac_var=yes"
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 eval "$as_ac_var=no"
10976 fi
10977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10978 fi
10979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10981 if test `eval echo '${'$as_ac_var'}'` = yes; then
10982   cat >>confdefs.h <<_ACEOF
10983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10984 _ACEOF
10985  break
10986 fi
10987 done
10988
10989 fi
10990
10991
10992
10993
10994 for ac_func in getrusage
10995 do
10996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10999 if eval "test \"\${$as_ac_var+set}\" = set"; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11005 /* System header to define __stub macros and hopefully few prototypes,
11006     which can conflict with char $ac_func (); below.  */
11007 #include <assert.h>
11008 /* Override any gcc2 internal prototype to avoid an error.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 /* We use char because int might match the return type of a gcc2
11013    builtin and then its argument prototype would still apply.  */
11014 char $ac_func ();
11015 char (*f) ();
11016
11017 #ifdef F77_DUMMY_MAIN
11018 #  ifdef __cplusplus
11019      extern "C"
11020 #  endif
11021    int F77_DUMMY_MAIN() { return 1; }
11022 #endif
11023 int
11024 main ()
11025 {
11026 /* The GNU C library defines this for functions which it implements
11027     to always fail with ENOSYS.  Some functions are actually named
11028     something starting with __ and the normal name is an alias.  */
11029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11030 choke me
11031 #else
11032 f = $ac_func;
11033 #endif
11034
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041   (eval $ac_link) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } &&
11045          { ac_try='test -s conftest$ac_exeext'
11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047   (eval $ac_try) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   eval "$as_ac_var=yes"
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11055 eval "$as_ac_var=no"
11056 fi
11057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11058 fi
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11061 if test `eval echo '${'$as_ac_var'}'` = yes; then
11062   cat >>confdefs.h <<_ACEOF
11063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11064 _ACEOF
11065
11066 else
11067   GETRUSAGE='getrusage.o'
11068 fi
11069 done
11070
11071
11072
11073 for ac_func in srandom
11074 do
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_var+set}\" = set"; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func (); below.  */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error.  */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 /* We use char because int might match the return type of a gcc2
11092    builtin and then its argument prototype would still apply.  */
11093 char $ac_func ();
11094 char (*f) ();
11095
11096 #ifdef F77_DUMMY_MAIN
11097 #  ifdef __cplusplus
11098      extern "C"
11099 #  endif
11100    int F77_DUMMY_MAIN() { return 1; }
11101 #endif
11102 int
11103 main ()
11104 {
11105 /* The GNU C library defines this for functions which it implements
11106     to always fail with ENOSYS.  Some functions are actually named
11107     something starting with __ and the normal name is an alias.  */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11109 choke me
11110 #else
11111 f = $ac_func;
11112 #endif
11113
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120   (eval $ac_link) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -s conftest$ac_exeext'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; }; then
11130   eval "$as_ac_var=yes"
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 eval "$as_ac_var=no"
11135 fi
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141   cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 _ACEOF
11144
11145 else
11146   SRANDOM='srandom.o'
11147 fi
11148 done
11149
11150
11151
11152 for ac_func in gethostname
11153 do
11154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_var+set}\" = set"; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160   cat >conftest.$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11163 /* System header to define __stub macros and hopefully few prototypes,
11164     which can conflict with char $ac_func (); below.  */
11165 #include <assert.h>
11166 /* Override any gcc2 internal prototype to avoid an error.  */
11167 #ifdef __cplusplus
11168 extern "C"
11169 #endif
11170 /* We use char because int might match the return type of a gcc2
11171    builtin and then its argument prototype would still apply.  */
11172 char $ac_func ();
11173 char (*f) ();
11174
11175 #ifdef F77_DUMMY_MAIN
11176 #  ifdef __cplusplus
11177      extern "C"
11178 #  endif
11179    int F77_DUMMY_MAIN() { return 1; }
11180 #endif
11181 int
11182 main ()
11183 {
11184 /* The GNU C library defines this for functions which it implements
11185     to always fail with ENOSYS.  Some functions are actually named
11186     something starting with __ and the normal name is an alias.  */
11187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11188 choke me
11189 #else
11190 f = $ac_func;
11191 #endif
11192
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -s conftest$ac_exeext'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   eval "$as_ac_var=yes"
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 eval "$as_ac_var=no"
11214 fi
11215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11216 fi
11217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220   cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11223
11224 else
11225   GETHOSTNAME='gethostname.o'
11226 fi
11227 done
11228
11229
11230
11231 for ac_func in random
11232 do
11233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 echo "$as_me:$LINENO: checking for $ac_func" >&5
11235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11236 if eval "test \"\${$as_ac_var+set}\" = set"; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243     which can conflict with char $ac_func (); below.  */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error.  */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 /* We use char because int might match the return type of a gcc2
11250    builtin and then its argument prototype would still apply.  */
11251 char $ac_func ();
11252 char (*f) ();
11253
11254 #ifdef F77_DUMMY_MAIN
11255 #  ifdef __cplusplus
11256      extern "C"
11257 #  endif
11258    int F77_DUMMY_MAIN() { return 1; }
11259 #endif
11260 int
11261 main ()
11262 {
11263 /* The GNU C library defines this for functions which it implements
11264     to always fail with ENOSYS.  Some functions are actually named
11265     something starting with __ and the normal name is an alias.  */
11266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11267 choke me
11268 #else
11269 f = $ac_func;
11270 #endif
11271
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -s conftest$ac_exeext'
11283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   eval "$as_ac_var=yes"
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 eval "$as_ac_var=no"
11293 fi
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295 fi
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299   cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 _ACEOF
11302
11303 else
11304   MISSING_RANDOM='random.o'
11305 fi
11306 done
11307
11308
11309
11310 for ac_func in inet_aton
11311 do
11312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11313 echo "$as_me:$LINENO: checking for $ac_func" >&5
11314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11315 if eval "test \"\${$as_ac_var+set}\" = set"; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 #line $LINENO "configure"
11320 #include "confdefs.h"
11321 /* System header to define __stub macros and hopefully few prototypes,
11322     which can conflict with char $ac_func (); below.  */
11323 #include <assert.h>
11324 /* Override any gcc2 internal prototype to avoid an error.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 /* We use char because int might match the return type of a gcc2
11329    builtin and then its argument prototype would still apply.  */
11330 char $ac_func ();
11331 char (*f) ();
11332
11333 #ifdef F77_DUMMY_MAIN
11334 #  ifdef __cplusplus
11335      extern "C"
11336 #  endif
11337    int F77_DUMMY_MAIN() { return 1; }
11338 #endif
11339 int
11340 main ()
11341 {
11342 /* The GNU C library defines this for functions which it implements
11343     to always fail with ENOSYS.  Some functions are actually named
11344     something starting with __ and the normal name is an alias.  */
11345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11346 choke me
11347 #else
11348 f = $ac_func;
11349 #endif
11350
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357   (eval $ac_link) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest$ac_exeext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   eval "$as_ac_var=yes"
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 eval "$as_ac_var=no"
11372 fi
11373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11374 fi
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378   cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11381
11382 else
11383   INET_ATON='inet_aton.o'
11384 fi
11385 done
11386
11387
11388
11389 for ac_func in strerror
11390 do
11391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11392 echo "$as_me:$LINENO: checking for $ac_func" >&5
11393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11394 if eval "test \"\${$as_ac_var+set}\" = set"; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 #include "confdefs.h"
11400 /* System header to define __stub macros and hopefully few prototypes,
11401     which can conflict with char $ac_func (); below.  */
11402 #include <assert.h>
11403 /* Override any gcc2 internal prototype to avoid an error.  */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 /* We use char because int might match the return type of a gcc2
11408    builtin and then its argument prototype would still apply.  */
11409 char $ac_func ();
11410 char (*f) ();
11411
11412 #ifdef F77_DUMMY_MAIN
11413 #  ifdef __cplusplus
11414      extern "C"
11415 #  endif
11416    int F77_DUMMY_MAIN() { return 1; }
11417 #endif
11418 int
11419 main ()
11420 {
11421 /* The GNU C library defines this for functions which it implements
11422     to always fail with ENOSYS.  Some functions are actually named
11423     something starting with __ and the normal name is an alias.  */
11424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11425 choke me
11426 #else
11427 f = $ac_func;
11428 #endif
11429
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436   (eval $ac_link) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -s conftest$ac_exeext'
11441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442   (eval $ac_try) 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   eval "$as_ac_var=yes"
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 eval "$as_ac_var=no"
11451 fi
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 fi
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11456 if test `eval echo '${'$as_ac_var'}'` = yes; then
11457   cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 _ACEOF
11460
11461 else
11462   STRERROR='strerror.o'
11463 fi
11464 done
11465
11466
11467
11468 for ac_func in strdup
11469 do
11470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11471 echo "$as_me:$LINENO: checking for $ac_func" >&5
11472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_var+set}\" = set"; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480     which can conflict with char $ac_func (); below.  */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 /* We use char because int might match the return type of a gcc2
11487    builtin and then its argument prototype would still apply.  */
11488 char $ac_func ();
11489 char (*f) ();
11490
11491 #ifdef F77_DUMMY_MAIN
11492 #  ifdef __cplusplus
11493      extern "C"
11494 #  endif
11495    int F77_DUMMY_MAIN() { return 1; }
11496 #endif
11497 int
11498 main ()
11499 {
11500 /* The GNU C library defines this for functions which it implements
11501     to always fail with ENOSYS.  Some functions are actually named
11502     something starting with __ and the normal name is an alias.  */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11504 choke me
11505 #else
11506 f = $ac_func;
11507 #endif
11508
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515   (eval $ac_link) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } &&
11519          { ac_try='test -s conftest$ac_exeext'
11520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521   (eval $ac_try) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); }; }; then
11525   eval "$as_ac_var=yes"
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11530 fi
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11532 fi
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536   cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 _ACEOF
11539
11540 else
11541   STRDUP='../../utils/strdup.o'
11542 fi
11543 done
11544
11545
11546
11547 for ac_func in strtol
11548 do
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.  */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566    builtin and then its argument prototype would still apply.  */
11567 char $ac_func ();
11568 char (*f) ();
11569
11570 #ifdef F77_DUMMY_MAIN
11571 #  ifdef __cplusplus
11572      extern "C"
11573 #  endif
11574    int F77_DUMMY_MAIN() { return 1; }
11575 #endif
11576 int
11577 main ()
11578 {
11579 /* The GNU C library defines this for functions which it implements
11580     to always fail with ENOSYS.  Some functions are actually named
11581     something starting with __ and the normal name is an alias.  */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11583 choke me
11584 #else
11585 f = $ac_func;
11586 #endif
11587
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -s conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11609 fi
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 fi
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11618
11619 else
11620   STRTOL='strtol.o'
11621 fi
11622 done
11623
11624
11625
11626 for ac_func in strtoul
11627 do
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11631 if eval "test \"\${$as_ac_var+set}\" = set"; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 #include "confdefs.h"
11637 /* System header to define __stub macros and hopefully few prototypes,
11638     which can conflict with char $ac_func (); below.  */
11639 #include <assert.h>
11640 /* Override any gcc2 internal prototype to avoid an error.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 /* We use char because int might match the return type of a gcc2
11645    builtin and then its argument prototype would still apply.  */
11646 char $ac_func ();
11647 char (*f) ();
11648
11649 #ifdef F77_DUMMY_MAIN
11650 #  ifdef __cplusplus
11651      extern "C"
11652 #  endif
11653    int F77_DUMMY_MAIN() { return 1; }
11654 #endif
11655 int
11656 main ()
11657 {
11658 /* The GNU C library defines this for functions which it implements
11659     to always fail with ENOSYS.  Some functions are actually named
11660     something starting with __ and the normal name is an alias.  */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11662 choke me
11663 #else
11664 f = $ac_func;
11665 #endif
11666
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673   (eval $ac_link) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; }; then
11683   eval "$as_ac_var=yes"
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 eval "$as_ac_var=no"
11688 fi
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11690 fi
11691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694   cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11696 _ACEOF
11697
11698 else
11699   STRTOUL='strtoul.o'
11700 fi
11701 done
11702
11703
11704
11705 for ac_func in strcasecmp
11706 do
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717     which can conflict with char $ac_func (); below.  */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error.  */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724    builtin and then its argument prototype would still apply.  */
11725 char $ac_func ();
11726 char (*f) ();
11727
11728 #ifdef F77_DUMMY_MAIN
11729 #  ifdef __cplusplus
11730      extern "C"
11731 #  endif
11732    int F77_DUMMY_MAIN() { return 1; }
11733 #endif
11734 int
11735 main ()
11736 {
11737 /* The GNU C library defines this for functions which it implements
11738     to always fail with ENOSYS.  Some functions are actually named
11739     something starting with __ and the normal name is an alias.  */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11741 choke me
11742 #else
11743 f = $ac_func;
11744 #endif
11745
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752   (eval $ac_link) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -s conftest$ac_exeext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   eval "$as_ac_var=yes"
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11767 fi
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11776
11777 else
11778   STRCASECMP='strcasecmp.o'
11779 fi
11780 done
11781
11782
11783
11784 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11785 # this hackery with HPUXMATHLIB allows us to cope.
11786 HPUXMATHLIB=""
11787 case $host_cpu in
11788   hppa1.1)
11789         if [ -r /lib/pa1.1/libm.a ] ; then
11790             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11791         fi ;;
11792 esac
11793
11794
11795
11796 for ac_func in rint
11797 do
11798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11799 echo "$as_me:$LINENO: checking for $ac_func" >&5
11800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11801 if eval "test \"\${$as_ac_var+set}\" = set"; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   cat >conftest.$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11806 #include "confdefs.h"
11807 /* System header to define __stub macros and hopefully few prototypes,
11808     which can conflict with char $ac_func (); below.  */
11809 #include <assert.h>
11810 /* Override any gcc2 internal prototype to avoid an error.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 /* We use char because int might match the return type of a gcc2
11815    builtin and then its argument prototype would still apply.  */
11816 char $ac_func ();
11817 char (*f) ();
11818
11819 #ifdef F77_DUMMY_MAIN
11820 #  ifdef __cplusplus
11821      extern "C"
11822 #  endif
11823    int F77_DUMMY_MAIN() { return 1; }
11824 #endif
11825 int
11826 main ()
11827 {
11828 /* The GNU C library defines this for functions which it implements
11829     to always fail with ENOSYS.  Some functions are actually named
11830     something starting with __ and the normal name is an alias.  */
11831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11832 choke me
11833 #else
11834 f = $ac_func;
11835 #endif
11836
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843   (eval $ac_link) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -s conftest$ac_exeext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   eval "$as_ac_var=yes"
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11857 eval "$as_ac_var=no"
11858 fi
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 fi
11861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864   cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 _ACEOF
11867
11868 else
11869   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11870 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11871 if test "${ac_cv_lib_m_rint+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lm $HPUXMATHLIB $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11878 #include "confdefs.h"
11879
11880 /* Override any gcc2 internal prototype to avoid an error.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 /* We use char because int might match the return type of a gcc2
11885    builtin and then its argument prototype would still apply.  */
11886 char rint ();
11887 #ifdef F77_DUMMY_MAIN
11888 #  ifdef __cplusplus
11889      extern "C"
11890 #  endif
11891    int F77_DUMMY_MAIN() { return 1; }
11892 #endif
11893 int
11894 main ()
11895 {
11896 rint ();
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903   (eval $ac_link) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } &&
11907          { ac_try='test -s conftest$ac_exeext'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   ac_cv_lib_m_rint=yes
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11917 ac_cv_lib_m_rint=no
11918 fi
11919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11920 LIBS=$ac_check_lib_save_LIBS
11921 fi
11922 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11923 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11924 if test $ac_cv_lib_m_rint = yes; then
11925   cat >>confdefs.h <<\_ACEOF
11926 #define HAVE_RINT 1
11927 _ACEOF
11928
11929 fi
11930
11931 fi
11932 done
11933
11934
11935
11936 if test "$with_readline" = yes; then
11937   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11938 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11939 cat >conftest.$ac_ext <<_ACEOF
11940 #line $LINENO "configure"
11941 #include "confdefs.h"
11942 #include <stdio.h>
11943 #ifdef HAVE_READLINE_READLINE_H
11944 # include <readline/readline.h>
11945 #elif defined(HAVE_READLINE_H)
11946 # include <readline.h>
11947 #endif
11948
11949 #ifdef F77_DUMMY_MAIN
11950 #  ifdef __cplusplus
11951      extern "C"
11952 #  endif
11953    int F77_DUMMY_MAIN() { return 1; }
11954 #endif
11955 int
11956 main ()
11957 {
11958 rl_completion_append_character = 'x';
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965   (eval $ac_link) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -s conftest$ac_exeext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   echo "$as_me:$LINENO: result: yes" >&5
11976 echo "${ECHO_T}yes" >&6
11977
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11980 _ACEOF
11981
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 echo "$as_me:$LINENO: result: no" >&5
11986 echo "${ECHO_T}no" >&6
11987 fi
11988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11989
11990
11991 for ac_func in rl_completion_matches rl_filename_completion_function
11992 do
11993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11994 echo "$as_me:$LINENO: checking for $ac_func" >&5
11995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11996 if eval "test \"\${$as_ac_var+set}\" = set"; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999   cat >conftest.$ac_ext <<_ACEOF
12000 #line $LINENO "configure"
12001 #include "confdefs.h"
12002 /* System header to define __stub macros and hopefully few prototypes,
12003     which can conflict with char $ac_func (); below.  */
12004 #include <assert.h>
12005 /* Override any gcc2 internal prototype to avoid an error.  */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 /* We use char because int might match the return type of a gcc2
12010    builtin and then its argument prototype would still apply.  */
12011 char $ac_func ();
12012 char (*f) ();
12013
12014 #ifdef F77_DUMMY_MAIN
12015 #  ifdef __cplusplus
12016      extern "C"
12017 #  endif
12018    int F77_DUMMY_MAIN() { return 1; }
12019 #endif
12020 int
12021 main ()
12022 {
12023 /* The GNU C library defines this for functions which it implements
12024     to always fail with ENOSYS.  Some functions are actually named
12025     something starting with __ and the normal name is an alias.  */
12026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12027 choke me
12028 #else
12029 f = $ac_func;
12030 #endif
12031
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038   (eval $ac_link) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -s conftest$ac_exeext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   eval "$as_ac_var=yes"
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 eval "$as_ac_var=no"
12053 fi
12054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055 fi
12056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059   cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12061 _ACEOF
12062
12063 fi
12064 done
12065
12066 fi
12067
12068
12069 echo "$as_me:$LINENO: checking for finite" >&5
12070 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line $LINENO "configure"
12073 #include "confdefs.h"
12074 #include <math.h>
12075 #ifdef F77_DUMMY_MAIN
12076 #  ifdef __cplusplus
12077      extern "C"
12078 #  endif
12079    int F77_DUMMY_MAIN() { return 1; }
12080 #endif
12081 int
12082 main ()
12083 {
12084 int dummy=finite(1.0);
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_FINITE 1
12104 _ACEOF
12105
12106 echo "$as_me:$LINENO: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 echo "$as_me:$LINENO: result: no" >&5
12112 echo "${ECHO_T}no" >&6
12113 fi
12114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12115
12116 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12117 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 #include "confdefs.h"
12121 #include <setjmp.h>
12122 #ifdef F77_DUMMY_MAIN
12123 #  ifdef __cplusplus
12124      extern "C"
12125 #  endif
12126    int F77_DUMMY_MAIN() { return 1; }
12127 #endif
12128 int
12129 main ()
12130 {
12131 sigjmp_buf x; sigsetjmp(x, 1);
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_SIGSETJMP 1
12151 _ACEOF
12152
12153 echo "$as_me:$LINENO: result: yes" >&5
12154 echo "${ECHO_T}yes" >&6
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12160 fi
12161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12162
12163
12164
12165
12166 # Check whether --enable-syslog or --disable-syslog was given.
12167 if test "${enable_syslog+set}" = set; then
12168   enableval="$enable_syslog"
12169
12170   case $enableval in
12171     yes)
12172       echo "$as_me:$LINENO: checking for syslog" >&5
12173 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12174 if test "${ac_cv_func_syslog+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181     which can conflict with char syslog (); below.  */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error.  */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 /* We use char because int might match the return type of a gcc2
12188    builtin and then its argument prototype would still apply.  */
12189 char syslog ();
12190 char (*f) ();
12191
12192 #ifdef F77_DUMMY_MAIN
12193 #  ifdef __cplusplus
12194      extern "C"
12195 #  endif
12196    int F77_DUMMY_MAIN() { return 1; }
12197 #endif
12198 int
12199 main ()
12200 {
12201 /* The GNU C library defines this for functions which it implements
12202     to always fail with ENOSYS.  Some functions are actually named
12203     something starting with __ and the normal name is an alias.  */
12204 #if defined (__stub_syslog) || defined (__stub___syslog)
12205 choke me
12206 #else
12207 f = syslog;
12208 #endif
12209
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216   (eval $ac_link) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_cv_func_syslog=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 ac_cv_func_syslog=no
12231 fi
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12235 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12236 if test $ac_cv_func_syslog = yes; then
12237
12238 cat >>confdefs.h <<\_ACEOF
12239 #define ENABLE_SYSLOG 1
12240 _ACEOF
12241
12242 else
12243   { { echo "$as_me:$LINENO: error: no syslog interface found" >&5
12244 echo "$as_me: error: no syslog interface found" >&2;}
12245    { (exit 1); exit 1; }; }
12246 fi
12247
12248       ;;
12249     no)
12250       :
12251       ;;
12252     *)
12253       { { echo "$as_me:$LINENO: error: no argument expected for --enable-syslog option" >&5
12254 echo "$as_me: error: no argument expected for --enable-syslog option" >&2;}
12255    { (exit 1); exit 1; }; }
12256       ;;
12257   esac
12258
12259 else
12260   enable_syslog=no
12261
12262 fi;
12263
12264
12265
12266 echo "$as_me:$LINENO: checking for optreset" >&5
12267 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12268 if test "${pgac_cv_var_int_optreset+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274 #include <unistd.h>
12275 #ifdef F77_DUMMY_MAIN
12276 #  ifdef __cplusplus
12277      extern "C"
12278 #  endif
12279    int F77_DUMMY_MAIN() { return 1; }
12280 #endif
12281 int
12282 main ()
12283 {
12284 extern int optreset; optreset = 1;
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291   (eval $ac_link) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   pgac_cv_var_int_optreset=yes
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 pgac_cv_var_int_optreset=no
12306 fi
12307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12308 fi
12309 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12310 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12311 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12312
12313 cat >>confdefs.h <<\_ACEOF
12314 #define HAVE_INT_OPTRESET 1
12315 _ACEOF
12316
12317 fi
12318
12319
12320 # This test makes sure that run tests work at all.  Sometimes a shared
12321 # library is found by the linker, but the runtime linker can't find it.
12322 # This check should come after all modifications of compiler or linker
12323 # variables, and before any other run tests.
12324 echo "$as_me:$LINENO: checking test program" >&5
12325 echo $ECHO_N "checking test program... $ECHO_C" >&6
12326 if test "$cross_compiling" = yes; then
12327   echo "$as_me:$LINENO: result: cross-compiling" >&5
12328 echo "${ECHO_T}cross-compiling" >&6
12329 else
12330   cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 int main() { return 0; }
12334 _ACEOF
12335 rm -f conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337   (eval $ac_link) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; }; then
12346   echo "$as_me:$LINENO: result: ok" >&5
12347 echo "${ECHO_T}ok" >&6
12348 else
12349   echo "$as_me: program exited with status $ac_status" >&5
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 ( exit $ac_status )
12353 echo "$as_me:$LINENO: result: failed" >&5
12354 echo "${ECHO_T}failed" >&6
12355 { { echo "$as_me:$LINENO: error:
12356 *** Could not execute a simple test program.  This may be a problem
12357 *** related to locating shared libraries.  Check the file 'config.log'
12358 *** for the exact reason." >&5
12359 echo "$as_me: error:
12360 *** Could not execute a simple test program.  This may be a problem
12361 *** related to locating shared libraries.  Check the file 'config.log'
12362 *** for the exact reason." >&2;}
12363    { (exit 1); exit 1; }; }
12364 fi
12365 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12366 fi
12367
12368
12369
12370 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12371 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12372 if test "${pgac_cv_type_long_int_64+set}" = set; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   if test "$cross_compiling" = yes; then
12376   pgac_cv_type_long_int_64=no
12377 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12378 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 typedef long int int64;
12384
12385 /*
12386  * These are globals to discourage the compiler from folding all the
12387  * arithmetic tests down to compile-time constants.
12388  */
12389 int64 a = 20000001;
12390 int64 b = 40000005;
12391
12392 int does_int64_work()
12393 {
12394   int64 c,d;
12395
12396   if (sizeof(int64) != 8)
12397     return 0;                   /* definitely not the right size */
12398
12399   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12400   c = a * b;
12401   d = (c + b) / b;
12402   if (d != a+1)
12403     return 0;
12404   return 1;
12405 }
12406 main() {
12407   exit(! does_int64_work());
12408 }
12409 _ACEOF
12410 rm -f conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412   (eval $ac_link) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; }; then
12421   pgac_cv_type_long_int_64=yes
12422 else
12423   echo "$as_me: program exited with status $ac_status" >&5
12424 echo "$as_me: failed program was:" >&5
12425 cat conftest.$ac_ext >&5
12426 ( exit $ac_status )
12427 pgac_cv_type_long_int_64=no
12428 fi
12429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12430 fi
12431 fi
12432 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12433 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12434
12435 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12436 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12437
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_LONG_INT_64
12440 _ACEOF
12441
12442 fi
12443
12444
12445 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12446   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12447 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12448 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   if test "$cross_compiling" = yes; then
12452   pgac_cv_type_long_long_int_64=no
12453 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12454 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12455 else
12456   cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12459 typedef long long int int64;
12460
12461 /*
12462  * These are globals to discourage the compiler from folding all the
12463  * arithmetic tests down to compile-time constants.
12464  */
12465 int64 a = 20000001;
12466 int64 b = 40000005;
12467
12468 int does_int64_work()
12469 {
12470   int64 c,d;
12471
12472   if (sizeof(int64) != 8)
12473     return 0;                   /* definitely not the right size */
12474
12475   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12476   c = a * b;
12477   d = (c + b) / b;
12478   if (d != a+1)
12479     return 0;
12480   return 1;
12481 }
12482 main() {
12483   exit(! does_int64_work());
12484 }
12485 _ACEOF
12486 rm -f conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488   (eval $ac_link) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493   (eval $ac_try) 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; }; then
12497   pgac_cv_type_long_long_int_64=yes
12498 else
12499   echo "$as_me: program exited with status $ac_status" >&5
12500 echo "$as_me: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 ( exit $ac_status )
12503 pgac_cv_type_long_long_int_64=no
12504 fi
12505 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 fi
12508 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12509 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12510
12511 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12512 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12513
12514 cat >>confdefs.h <<\_ACEOF
12515 #define HAVE_LONG_LONG_INT_64
12516 _ACEOF
12517
12518 fi
12519
12520 fi
12521
12522
12523
12524 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12525   cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528
12529 #define INT64CONST(x)  x##LL
12530 long long int foo = INT64CONST(0x1234567890123456);
12531
12532 #ifdef F77_DUMMY_MAIN
12533 #  ifdef __cplusplus
12534      extern "C"
12535 #  endif
12536    int F77_DUMMY_MAIN() { return 1; }
12537 #endif
12538 int
12539 main ()
12540 {
12541
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548   (eval $ac_compile) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558
12559 cat >>confdefs.h <<\_ACEOF
12560 #define HAVE_LL_CONSTANTS 1
12561 _ACEOF
12562
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 cat conftest.$ac_ext >&5
12566 fi
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12568 fi
12569
12570
12571
12572 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12573   if [ x$SNPRINTF = x ] ; then
12574     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12575 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12576     if test "$cross_compiling" = yes; then
12577    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12578 echo "${ECHO_T}assuming not on target machine" >&6
12579         # Force usage of our own snprintf, since we cannot test foreign snprintf
12580         SNPRINTF='snprintf.o'
12581         INT64_FORMAT='"%lld"'
12582
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 #include <stdio.h>
12588 typedef long long int int64;
12589 #define INT64_FORMAT "%lld"
12590
12591 int64 a = 20000001;
12592 int64 b = 40000005;
12593
12594 int does_int64_snprintf_work()
12595 {
12596   int64 c;
12597   char buf[100];
12598
12599   if (sizeof(int64) != 8)
12600     return 0;                   /* doesn't look like the right size */
12601
12602   c = a * b;
12603   snprintf(buf, 100, INT64_FORMAT, c);
12604   if (strcmp(buf, "800000140000005") != 0)
12605     return 0;                   /* either multiply or snprintf is busted */
12606   return 1;
12607 }
12608 main() {
12609   exit(! does_int64_snprintf_work());
12610 }
12611 _ACEOF
12612 rm -f conftest$ac_exeext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12614   (eval $ac_link) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619   (eval $ac_try) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; }; then
12623    echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6
12625           INT64_FORMAT='"%lld"'
12626
12627 else
12628   echo "$as_me: program exited with status $ac_status" >&5
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 ( exit $ac_status )
12632  echo "$as_me:$LINENO: result: no" >&5
12633 echo "${ECHO_T}no" >&6
12634     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12635 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12636     if test "$cross_compiling" = yes; then
12637    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12638 echo "${ECHO_T}assuming not on target machine" >&6
12639         # Force usage of our own snprintf, since we cannot test foreign snprintf
12640         SNPRINTF='snprintf.o'
12641         INT64_FORMAT='"%lld"'
12642
12643 else
12644   cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 #include "confdefs.h"
12647 #include <stdio.h>
12648 typedef long long int int64;
12649 #define INT64_FORMAT "%qd"
12650
12651 int64 a = 20000001;
12652 int64 b = 40000005;
12653
12654 int does_int64_snprintf_work()
12655 {
12656   int64 c;
12657   char buf[100];
12658
12659   if (sizeof(int64) != 8)
12660     return 0;     /* doesn't look like the right size */
12661
12662   c = a * b;
12663   snprintf(buf, 100, INT64_FORMAT, c);
12664   if (strcmp(buf, "800000140000005") != 0)
12665     return 0;     /* either multiply or snprintf is busted */
12666   return 1;
12667 }
12668 main() {
12669   exit(! does_int64_snprintf_work());
12670 }
12671 _ACEOF
12672 rm -f conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674   (eval $ac_link) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679   (eval $ac_try) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683    echo "$as_me:$LINENO: result: yes" >&5
12684 echo "${ECHO_T}yes" >&6
12685     INT64_FORMAT='"%qd"'
12686
12687 else
12688   echo "$as_me: program exited with status $ac_status" >&5
12689 echo "$as_me: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 ( exit $ac_status )
12692  echo "$as_me:$LINENO: result: no" >&5
12693 echo "${ECHO_T}no" >&6
12694         # Force usage of our own snprintf, since system snprintf is broken
12695         SNPRINTF='snprintf.o'
12696         INT64_FORMAT='"%lld"'
12697
12698 fi
12699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12700 fi
12701 fi
12702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12703 fi
12704   else
12705     # here if we previously decided we needed to use our own snprintf
12706     INT64_FORMAT='"%lld"'
12707   fi
12708 else
12709   # Here if we are not using 'long long int' at all
12710   INT64_FORMAT='"%ld"'
12711 fi
12712
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define INT64_FORMAT $INT64_FORMAT
12716 _ACEOF
12717
12718
12719
12720
12721
12722 for ac_func in strtoll strtoq
12723 do
12724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12725 echo "$as_me:$LINENO: checking for $ac_func" >&5
12726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12727 if eval "test \"\${$as_ac_var+set}\" = set"; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 /* System header to define __stub macros and hopefully few prototypes,
12734     which can conflict with char $ac_func (); below.  */
12735 #include <assert.h>
12736 /* Override any gcc2 internal prototype to avoid an error.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 /* We use char because int might match the return type of a gcc2
12741    builtin and then its argument prototype would still apply.  */
12742 char $ac_func ();
12743 char (*f) ();
12744
12745 #ifdef F77_DUMMY_MAIN
12746 #  ifdef __cplusplus
12747      extern "C"
12748 #  endif
12749    int F77_DUMMY_MAIN() { return 1; }
12750 #endif
12751 int
12752 main ()
12753 {
12754 /* The GNU C library defines this for functions which it implements
12755     to always fail with ENOSYS.  Some functions are actually named
12756     something starting with __ and the normal name is an alias.  */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12758 choke me
12759 #else
12760 f = $ac_func;
12761 #endif
12762
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769   (eval $ac_link) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -s conftest$ac_exeext'
12774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775   (eval $ac_try) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); }; }; then
12779   eval "$as_ac_var=yes"
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12783 eval "$as_ac_var=no"
12784 fi
12785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12786 fi
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12789 if test `eval echo '${'$as_ac_var'}'` = yes; then
12790   cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12792 _ACEOF
12793  break
12794 fi
12795 done
12796
12797
12798
12799 for ac_func in strtoull strtouq
12800 do
12801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12802 echo "$as_me:$LINENO: checking for $ac_func" >&5
12803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12804 if eval "test \"\${$as_ac_var+set}\" = set"; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   cat >conftest.$ac_ext <<_ACEOF
12808 #line $LINENO "configure"
12809 #include "confdefs.h"
12810 /* System header to define __stub macros and hopefully few prototypes,
12811     which can conflict with char $ac_func (); below.  */
12812 #include <assert.h>
12813 /* Override any gcc2 internal prototype to avoid an error.  */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 /* We use char because int might match the return type of a gcc2
12818    builtin and then its argument prototype would still apply.  */
12819 char $ac_func ();
12820 char (*f) ();
12821
12822 #ifdef F77_DUMMY_MAIN
12823 #  ifdef __cplusplus
12824      extern "C"
12825 #  endif
12826    int F77_DUMMY_MAIN() { return 1; }
12827 #endif
12828 int
12829 main ()
12830 {
12831 /* The GNU C library defines this for functions which it implements
12832     to always fail with ENOSYS.  Some functions are actually named
12833     something starting with __ and the normal name is an alias.  */
12834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12835 choke me
12836 #else
12837 f = $ac_func;
12838 #endif
12839
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846   (eval $ac_link) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } &&
12850          { ac_try='test -s conftest$ac_exeext'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   eval "$as_ac_var=yes"
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 cat conftest.$ac_ext >&5
12860 eval "$as_ac_var=no"
12861 fi
12862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12863 fi
12864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12866 if test `eval echo '${'$as_ac_var'}'` = yes; then
12867   cat >>confdefs.h <<_ACEOF
12868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12869 _ACEOF
12870  break
12871 fi
12872 done
12873
12874
12875 # Check for one of atexit() or on_exit()
12876
12877 for ac_func in atexit
12878 do
12879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12880 echo "$as_me:$LINENO: checking for $ac_func" >&5
12881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12882 if eval "test \"\${$as_ac_var+set}\" = set"; then
12883   echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885   cat >conftest.$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888 /* System header to define __stub macros and hopefully few prototypes,
12889     which can conflict with char $ac_func (); below.  */
12890 #include <assert.h>
12891 /* Override any gcc2 internal prototype to avoid an error.  */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 /* We use char because int might match the return type of a gcc2
12896    builtin and then its argument prototype would still apply.  */
12897 char $ac_func ();
12898 char (*f) ();
12899
12900 #ifdef F77_DUMMY_MAIN
12901 #  ifdef __cplusplus
12902      extern "C"
12903 #  endif
12904    int F77_DUMMY_MAIN() { return 1; }
12905 #endif
12906 int
12907 main ()
12908 {
12909 /* The GNU C library defines this for functions which it implements
12910     to always fail with ENOSYS.  Some functions are actually named
12911     something starting with __ and the normal name is an alias.  */
12912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12913 choke me
12914 #else
12915 f = $ac_func;
12916 #endif
12917
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924   (eval $ac_link) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); } &&
12928          { ac_try='test -s conftest$ac_exeext'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; }; then
12934   eval "$as_ac_var=yes"
12935 else
12936   echo "$as_me: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 eval "$as_ac_var=no"
12939 fi
12940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12941 fi
12942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12944 if test `eval echo '${'$as_ac_var'}'` = yes; then
12945   cat >>confdefs.h <<_ACEOF
12946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12947 _ACEOF
12948
12949 else
12950
12951 for ac_func in on_exit
12952 do
12953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12954 echo "$as_me:$LINENO: checking for $ac_func" >&5
12955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12956 if eval "test \"\${$as_ac_var+set}\" = set"; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   cat >conftest.$ac_ext <<_ACEOF
12960 #line $LINENO "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963     which can conflict with char $ac_func (); below.  */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 /* We use char because int might match the return type of a gcc2
12970    builtin and then its argument prototype would still apply.  */
12971 char $ac_func ();
12972 char (*f) ();
12973
12974 #ifdef F77_DUMMY_MAIN
12975 #  ifdef __cplusplus
12976      extern "C"
12977 #  endif
12978    int F77_DUMMY_MAIN() { return 1; }
12979 #endif
12980 int
12981 main ()
12982 {
12983 /* The GNU C library defines this for functions which it implements
12984     to always fail with ENOSYS.  Some functions are actually named
12985     something starting with __ and the normal name is an alias.  */
12986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12987 choke me
12988 #else
12989 f = $ac_func;
12990 #endif
12991
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998   (eval $ac_link) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -s conftest$ac_exeext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   eval "$as_ac_var=yes"
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 eval "$as_ac_var=no"
13013 fi
13014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13015 fi
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13018 if test `eval echo '${'$as_ac_var'}'` = yes; then
13019   cat >>confdefs.h <<_ACEOF
13020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13021 _ACEOF
13022
13023 else
13024   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13025 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13026    { (exit 1); exit 1; }; }
13027 fi
13028 done
13029
13030 fi
13031 done
13032
13033
13034
13035 echo "$as_me:$LINENO: checking for unsigned long" >&5
13036 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13037 if test "${ac_cv_type_unsigned_long+set}" = set; then
13038   echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040   cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 #include "confdefs.h"
13043 $ac_includes_default
13044 #ifdef F77_DUMMY_MAIN
13045 #  ifdef __cplusplus
13046      extern "C"
13047 #  endif
13048    int F77_DUMMY_MAIN() { return 1; }
13049 #endif
13050 int
13051 main ()
13052 {
13053 if ((unsigned long *) 0)
13054   return 0;
13055 if (sizeof (unsigned long))
13056   return 0;
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063   (eval $ac_compile) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -s conftest.$ac_objext'
13068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069   (eval $ac_try) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   ac_cv_type_unsigned_long=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 ac_cv_type_unsigned_long=no
13078 fi
13079 rm -f conftest.$ac_objext conftest.$ac_ext
13080 fi
13081 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13082 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13083
13084 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13085 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13086 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   if test "$ac_cv_type_unsigned_long" = yes; then
13090   # The cast to unsigned long works around a bug in the HP C Compiler
13091   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093   # This bug is HP SR number 8606223364.
13094   if test "$cross_compiling" = yes; then
13095   # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 #include "confdefs.h"
13099 $ac_includes_default
13100 #ifdef F77_DUMMY_MAIN
13101 #  ifdef __cplusplus
13102      extern "C"
13103 #  endif
13104    int F77_DUMMY_MAIN() { return 1; }
13105 #endif
13106 int
13107 main ()
13108 {
13109 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13110 test_array [0] = 0
13111
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118   (eval $ac_compile) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -s conftest.$ac_objext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_lo=0 ac_mid=0
13129   while :; do
13130     cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13133 $ac_includes_default
13134 #ifdef F77_DUMMY_MAIN
13135 #  ifdef __cplusplus
13136      extern "C"
13137 #  endif
13138    int F77_DUMMY_MAIN() { return 1; }
13139 #endif
13140 int
13141 main ()
13142 {
13143 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13144 test_array [0] = 0
13145
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152   (eval $ac_compile) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } &&
13156          { ac_try='test -s conftest.$ac_objext'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   ac_hi=$ac_mid; break
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 ac_lo=`expr $ac_mid + 1`
13167                     if test $ac_lo -le $ac_mid; then
13168                       ac_lo= ac_hi=
13169                       break
13170                     fi
13171                     ac_mid=`expr 2 '*' $ac_mid + 1`
13172 fi
13173 rm -f conftest.$ac_objext conftest.$ac_ext
13174   done
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 cat conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 #include "confdefs.h"
13181 $ac_includes_default
13182 #ifdef F77_DUMMY_MAIN
13183 #  ifdef __cplusplus
13184      extern "C"
13185 #  endif
13186    int F77_DUMMY_MAIN() { return 1; }
13187 #endif
13188 int
13189 main ()
13190 {
13191 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13192 test_array [0] = 0
13193
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200   (eval $ac_compile) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } &&
13204          { ac_try='test -s conftest.$ac_objext'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_hi=-1 ac_mid=-1
13211   while :; do
13212     cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 #include "confdefs.h"
13215 $ac_includes_default
13216 #ifdef F77_DUMMY_MAIN
13217 #  ifdef __cplusplus
13218      extern "C"
13219 #  endif
13220    int F77_DUMMY_MAIN() { return 1; }
13221 #endif
13222 int
13223 main ()
13224 {
13225 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13226 test_array [0] = 0
13227
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234   (eval $ac_compile) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -s conftest.$ac_objext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   ac_lo=$ac_mid; break
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13248 ac_hi=`expr '(' $ac_mid ')' - 1`
13249                        if test $ac_mid -le $ac_hi; then
13250                          ac_lo= ac_hi=
13251                          break
13252                        fi
13253                        ac_mid=`expr 2 '*' $ac_mid`
13254 fi
13255 rm -f conftest.$ac_objext conftest.$ac_ext
13256   done
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13260 ac_lo= ac_hi=
13261 fi
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265 # Binary search between lo and hi bounds.
13266 while test "x$ac_lo" != "x$ac_hi"; do
13267   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13268   cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13270 #include "confdefs.h"
13271 $ac_includes_default
13272 #ifdef F77_DUMMY_MAIN
13273 #  ifdef __cplusplus
13274      extern "C"
13275 #  endif
13276    int F77_DUMMY_MAIN() { return 1; }
13277 #endif
13278 int
13279 main ()
13280 {
13281 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13282 test_array [0] = 0
13283
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290   (eval $ac_compile) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -s conftest.$ac_objext'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300   ac_hi=$ac_mid
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13304 ac_lo=`expr '(' $ac_mid ')' + 1`
13305 fi
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13307 done
13308 case $ac_lo in
13309 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13310 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13311 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13312    { (exit 1); exit 1; }; } ;;
13313 esac
13314 else
13315   if test "$cross_compiling" = yes; then
13316   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13317 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13318    { (exit 1); exit 1; }; }
13319 else
13320   cat >conftest.$ac_ext <<_ACEOF
13321 #line $LINENO "configure"
13322 #include "confdefs.h"
13323 $ac_includes_default
13324 long longval () { return (long) (sizeof (unsigned long)); }
13325 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13326 #include <stdio.h>
13327 #include <stdlib.h>
13328 #ifdef F77_DUMMY_MAIN
13329 #  ifdef __cplusplus
13330      extern "C"
13331 #  endif
13332    int F77_DUMMY_MAIN() { return 1; }
13333 #endif
13334 int
13335 main ()
13336 {
13337
13338   FILE *f = fopen ("conftest.val", "w");
13339   if (! f)
13340     exit (1);
13341   if (((long) (sizeof (unsigned long))) < 0)
13342     {
13343       long i = longval ();
13344       if (i != ((long) (sizeof (unsigned long))))
13345         exit (1);
13346       fprintf (f, "%ld\n", i);
13347     }
13348   else
13349     {
13350       unsigned long i = ulongval ();
13351       if (i != ((long) (sizeof (unsigned long))))
13352         exit (1);
13353       fprintf (f, "%lu\n", i);
13354     }
13355   exit (ferror (f) || fclose (f) != 0);
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363   (eval $ac_link) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13373 else
13374   echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13379 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13380    { (exit 1); exit 1; }; }
13381 fi
13382 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13383 fi
13384 fi
13385 rm -f conftest.val
13386 else
13387   ac_cv_sizeof_unsigned_long=0
13388 fi
13389 fi
13390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13391 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13392 cat >>confdefs.h <<_ACEOF
13393 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13394 _ACEOF
13395
13396
13397
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13400 _ACEOF
13401
13402
13403 # Determine memory alignment requirements for the basic C data types.
13404
13405 echo "$as_me:$LINENO: checking for short" >&5
13406 echo $ECHO_N "checking for short... $ECHO_C" >&6
13407 if test "${ac_cv_type_short+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 #include "confdefs.h"
13413 $ac_includes_default
13414 #ifdef F77_DUMMY_MAIN
13415 #  ifdef __cplusplus
13416      extern "C"
13417 #  endif
13418    int F77_DUMMY_MAIN() { return 1; }
13419 #endif
13420 int
13421 main ()
13422 {
13423 if ((short *) 0)
13424   return 0;
13425 if (sizeof (short))
13426   return 0;
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433   (eval $ac_compile) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -s conftest.$ac_objext'
13438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439   (eval $ac_try) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; }; then
13443   ac_cv_type_short=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 ac_cv_type_short=no
13448 fi
13449 rm -f conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13452 echo "${ECHO_T}$ac_cv_type_short" >&6
13453
13454 echo "$as_me:$LINENO: checking alignment of short" >&5
13455 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13456 if test "${pgac_cv_alignof_short+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   if test "$ac_cv_type_short" = yes; then
13460   if test "$cross_compiling" = yes; then
13461   # Depending upon the size, compute the lo and hi bounds.
13462 cat >conftest.$ac_ext <<_ACEOF
13463 #line $LINENO "configure"
13464 #include "confdefs.h"
13465 $ac_includes_default
13466 struct { char filler; short field; } pgac_struct;
13467 #ifdef F77_DUMMY_MAIN
13468 #  ifdef __cplusplus
13469      extern "C"
13470 #  endif
13471    int F77_DUMMY_MAIN() { return 1; }
13472 #endif
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -s conftest.$ac_objext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   ac_lo=0 ac_mid=0
13496   while :; do
13497     cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 #include "confdefs.h"
13500 $ac_includes_default
13501 struct { char filler; short field; } pgac_struct;
13502 #ifdef F77_DUMMY_MAIN
13503 #  ifdef __cplusplus
13504      extern "C"
13505 #  endif
13506    int F77_DUMMY_MAIN() { return 1; }
13507 #endif
13508 int
13509 main ()
13510 {
13511 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13512 test_array [0] = 0
13513
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520   (eval $ac_compile) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); } &&
13524          { ac_try='test -s conftest.$ac_objext'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   ac_hi=$ac_mid; break
13531 else
13532   echo "$as_me: failed program was:" >&5
13533 cat conftest.$ac_ext >&5
13534 ac_lo=`expr $ac_mid + 1`
13535                     if test $ac_lo -le $ac_mid; then
13536                       ac_lo= ac_hi=
13537                       break
13538                     fi
13539                     ac_mid=`expr 2 '*' $ac_mid + 1`
13540 fi
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13542   done
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 cat >conftest.$ac_ext <<_ACEOF
13547 #line $LINENO "configure"
13548 #include "confdefs.h"
13549 $ac_includes_default
13550 struct { char filler; short field; } pgac_struct;
13551 #ifdef F77_DUMMY_MAIN
13552 #  ifdef __cplusplus
13553      extern "C"
13554 #  endif
13555    int F77_DUMMY_MAIN() { return 1; }
13556 #endif
13557 int
13558 main ()
13559 {
13560 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13561 test_array [0] = 0
13562
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569   (eval $ac_compile) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -s conftest.$ac_objext'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_hi=-1 ac_mid=-1
13580   while :; do
13581     cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13583 #include "confdefs.h"
13584 $ac_includes_default
13585 struct { char filler; short field; } pgac_struct;
13586 #ifdef F77_DUMMY_MAIN
13587 #  ifdef __cplusplus
13588      extern "C"
13589 #  endif
13590    int F77_DUMMY_MAIN() { return 1; }
13591 #endif
13592 int
13593 main ()
13594 {
13595 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13596 test_array [0] = 0
13597
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604   (eval $ac_compile) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -s conftest.$ac_objext'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; }; then
13614   ac_lo=$ac_mid; break
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 cat conftest.$ac_ext >&5
13618 ac_hi=`expr '(' $ac_mid ')' - 1`
13619                        if test $ac_mid -le $ac_hi; then
13620                          ac_lo= ac_hi=
13621                          break
13622                        fi
13623                        ac_mid=`expr 2 '*' $ac_mid`
13624 fi
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13626   done
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 ac_lo= ac_hi=
13631 fi
13632 rm -f conftest.$ac_objext conftest.$ac_ext
13633 fi
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13635 # Binary search between lo and hi bounds.
13636 while test "x$ac_lo" != "x$ac_hi"; do
13637   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13638   cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 #include "confdefs.h"
13641 $ac_includes_default
13642 struct { char filler; short field; } pgac_struct;
13643 #ifdef F77_DUMMY_MAIN
13644 #  ifdef __cplusplus
13645      extern "C"
13646 #  endif
13647    int F77_DUMMY_MAIN() { return 1; }
13648 #endif
13649 int
13650 main ()
13651 {
13652 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13653 test_array [0] = 0
13654
13655   ;
13656   return 0;
13657 }
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661   (eval $ac_compile) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -s conftest.$ac_objext'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_hi=$ac_mid
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13675 ac_lo=`expr '(' $ac_mid ')' + 1`
13676 fi
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13678 done
13679 case $ac_lo in
13680 ?*) pgac_cv_alignof_short=$ac_lo;;
13681 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13682 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13683    { (exit 1); exit 1; }; } ;;
13684 esac
13685 else
13686   if test "$cross_compiling" = yes; then
13687   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13689    { (exit 1); exit 1; }; }
13690 else
13691   cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13693 #include "confdefs.h"
13694 $ac_includes_default
13695 struct { char filler; short field; } pgac_struct;
13696 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13697 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13698 #include <stdio.h>
13699 #include <stdlib.h>
13700 #ifdef F77_DUMMY_MAIN
13701 #  ifdef __cplusplus
13702      extern "C"
13703 #  endif
13704    int F77_DUMMY_MAIN() { return 1; }
13705 #endif
13706 int
13707 main ()
13708 {
13709
13710   FILE *f = fopen ("conftest.val", "w");
13711   if (! f)
13712     exit (1);
13713   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13714     {
13715       long i = longval ();
13716       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13717         exit (1);
13718       fprintf (f, "%ld\n", i);
13719     }
13720   else
13721     {
13722       unsigned long i = ulongval ();
13723       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13724         exit (1);
13725       fprintf (f, "%lu\n", i);
13726     }
13727   exit (ferror (f) || fclose (f) != 0);
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest$ac_exeext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735   (eval $ac_link) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   pgac_cv_alignof_short=`cat conftest.val`
13745 else
13746   echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 ( exit $ac_status )
13750 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13751 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13752    { (exit 1); exit 1; }; }
13753 fi
13754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 fi
13757 rm -f conftest.val
13758 else
13759   pgac_cv_alignof_short=0
13760 fi
13761 fi
13762 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13763 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13764 cat >>confdefs.h <<_ACEOF
13765 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13766 _ACEOF
13767
13768
13769 echo "$as_me:$LINENO: checking for int" >&5
13770 echo $ECHO_N "checking for int... $ECHO_C" >&6
13771 if test "${ac_cv_type_int+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 #ifdef F77_DUMMY_MAIN
13779 #  ifdef __cplusplus
13780      extern "C"
13781 #  endif
13782    int F77_DUMMY_MAIN() { return 1; }
13783 #endif
13784 int
13785 main ()
13786 {
13787 if ((int *) 0)
13788   return 0;
13789 if (sizeof (int))
13790   return 0;
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797   (eval $ac_compile) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -s conftest.$ac_objext'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; }; then
13807   ac_cv_type_int=yes
13808 else
13809   echo "$as_me: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 ac_cv_type_int=no
13812 fi
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13816 echo "${ECHO_T}$ac_cv_type_int" >&6
13817
13818 echo "$as_me:$LINENO: checking alignment of int" >&5
13819 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13820 if test "${pgac_cv_alignof_int+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   if test "$ac_cv_type_int" = yes; then
13824   if test "$cross_compiling" = yes; then
13825   # Depending upon the size, compute the lo and hi bounds.
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 #include "confdefs.h"
13829 $ac_includes_default
13830 struct { char filler; int field; } pgac_struct;
13831 #ifdef F77_DUMMY_MAIN
13832 #  ifdef __cplusplus
13833      extern "C"
13834 #  endif
13835    int F77_DUMMY_MAIN() { return 1; }
13836 #endif
13837 int
13838 main ()
13839 {
13840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13841 test_array [0] = 0
13842
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849   (eval $ac_compile) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -s conftest.$ac_objext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   ac_lo=0 ac_mid=0
13860   while :; do
13861     cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 struct { char filler; int field; } pgac_struct;
13866 #ifdef F77_DUMMY_MAIN
13867 #  ifdef __cplusplus
13868      extern "C"
13869 #  endif
13870    int F77_DUMMY_MAIN() { return 1; }
13871 #endif
13872 int
13873 main ()
13874 {
13875 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13876 test_array [0] = 0
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_hi=$ac_mid; break
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_lo=`expr $ac_mid + 1`
13899                     if test $ac_lo -le $ac_mid; then
13900                       ac_lo= ac_hi=
13901                       break
13902                     fi
13903                     ac_mid=`expr 2 '*' $ac_mid + 1`
13904 fi
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13906   done
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 #include "confdefs.h"
13913 $ac_includes_default
13914 struct { char filler; int field; } pgac_struct;
13915 #ifdef F77_DUMMY_MAIN
13916 #  ifdef __cplusplus
13917      extern "C"
13918 #  endif
13919    int F77_DUMMY_MAIN() { return 1; }
13920 #endif
13921 int
13922 main ()
13923 {
13924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13925 test_array [0] = 0
13926
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -s conftest.$ac_objext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_hi=-1 ac_mid=-1
13944   while :; do
13945     cat >conftest.$ac_ext <<_ACEOF
13946 #line $LINENO "configure"
13947 #include "confdefs.h"
13948 $ac_includes_default
13949 struct { char filler; int field; } pgac_struct;
13950 #ifdef F77_DUMMY_MAIN
13951 #  ifdef __cplusplus
13952      extern "C"
13953 #  endif
13954    int F77_DUMMY_MAIN() { return 1; }
13955 #endif
13956 int
13957 main ()
13958 {
13959 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13960 test_array [0] = 0
13961
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968   (eval $ac_compile) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } &&
13972          { ac_try='test -s conftest.$ac_objext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_lo=$ac_mid; break
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983                        if test $ac_mid -le $ac_hi; then
13984                          ac_lo= ac_hi=
13985                          break
13986                        fi
13987                        ac_mid=`expr 2 '*' $ac_mid`
13988 fi
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13990   done
13991 else
13992   echo "$as_me: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 ac_lo= ac_hi=
13995 fi
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999 # Binary search between lo and hi bounds.
14000 while test "x$ac_lo" != "x$ac_hi"; do
14001   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14002   cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 struct { char filler; int field; } pgac_struct;
14007 #ifdef F77_DUMMY_MAIN
14008 #  ifdef __cplusplus
14009      extern "C"
14010 #  endif
14011    int F77_DUMMY_MAIN() { return 1; }
14012 #endif
14013 int
14014 main ()
14015 {
14016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14017 test_array [0] = 0
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_hi=$ac_mid
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 ac_lo=`expr '(' $ac_mid ')' + 1`
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042 done
14043 case $ac_lo in
14044 ?*) pgac_cv_alignof_int=$ac_lo;;
14045 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14046 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14047    { (exit 1); exit 1; }; } ;;
14048 esac
14049 else
14050   if test "$cross_compiling" = yes; then
14051   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14052 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14053    { (exit 1); exit 1; }; }
14054 else
14055   cat >conftest.$ac_ext <<_ACEOF
14056 #line $LINENO "configure"
14057 #include "confdefs.h"
14058 $ac_includes_default
14059 struct { char filler; int field; } pgac_struct;
14060 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14061 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14062 #include <stdio.h>
14063 #include <stdlib.h>
14064 #ifdef F77_DUMMY_MAIN
14065 #  ifdef __cplusplus
14066      extern "C"
14067 #  endif
14068    int F77_DUMMY_MAIN() { return 1; }
14069 #endif
14070 int
14071 main ()
14072 {
14073
14074   FILE *f = fopen ("conftest.val", "w");
14075   if (! f)
14076     exit (1);
14077   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14078     {
14079       long i = longval ();
14080       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14081         exit (1);
14082       fprintf (f, "%ld\n", i);
14083     }
14084   else
14085     {
14086       unsigned long i = ulongval ();
14087       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14088         exit (1);
14089       fprintf (f, "%lu\n", i);
14090     }
14091   exit (ferror (f) || fclose (f) != 0);
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099   (eval $ac_link) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   pgac_cv_alignof_int=`cat conftest.val`
14109 else
14110   echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14115 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14116    { (exit 1); exit 1; }; }
14117 fi
14118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14119 fi
14120 fi
14121 rm -f conftest.val
14122 else
14123   pgac_cv_alignof_int=0
14124 fi
14125 fi
14126 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14127 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14128 cat >>confdefs.h <<_ACEOF
14129 #define ALIGNOF_INT $pgac_cv_alignof_int
14130 _ACEOF
14131
14132
14133 echo "$as_me:$LINENO: checking for long" >&5
14134 echo $ECHO_N "checking for long... $ECHO_C" >&6
14135 if test "${ac_cv_type_long+set}" = set; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 $ac_includes_default
14142 #ifdef F77_DUMMY_MAIN
14143 #  ifdef __cplusplus
14144      extern "C"
14145 #  endif
14146    int F77_DUMMY_MAIN() { return 1; }
14147 #endif
14148 int
14149 main ()
14150 {
14151 if ((long *) 0)
14152   return 0;
14153 if (sizeof (long))
14154   return 0;
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -s conftest.$ac_objext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_cv_type_long=yes
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14175 ac_cv_type_long=no
14176 fi
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14180 echo "${ECHO_T}$ac_cv_type_long" >&6
14181
14182 echo "$as_me:$LINENO: checking alignment of long" >&5
14183 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14184 if test "${pgac_cv_alignof_long+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   if test "$ac_cv_type_long" = yes; then
14188   if test "$cross_compiling" = yes; then
14189   # Depending upon the size, compute the lo and hi bounds.
14190 cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14192 #include "confdefs.h"
14193 $ac_includes_default
14194 struct { char filler; long field; } pgac_struct;
14195 #ifdef F77_DUMMY_MAIN
14196 #  ifdef __cplusplus
14197      extern "C"
14198 #  endif
14199    int F77_DUMMY_MAIN() { return 1; }
14200 #endif
14201 int
14202 main ()
14203 {
14204 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14205 test_array [0] = 0
14206
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213   (eval $ac_compile) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -s conftest.$ac_objext'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_lo=0 ac_mid=0
14224   while :; do
14225     cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14228 $ac_includes_default
14229 struct { char filler; long field; } pgac_struct;
14230 #ifdef F77_DUMMY_MAIN
14231 #  ifdef __cplusplus
14232      extern "C"
14233 #  endif
14234    int F77_DUMMY_MAIN() { return 1; }
14235 #endif
14236 int
14237 main ()
14238 {
14239 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14240 test_array [0] = 0
14241
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248   (eval $ac_compile) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_hi=$ac_mid; break
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 cat conftest.$ac_ext >&5
14262 ac_lo=`expr $ac_mid + 1`
14263                     if test $ac_lo -le $ac_mid; then
14264                       ac_lo= ac_hi=
14265                       break
14266                     fi
14267                     ac_mid=`expr 2 '*' $ac_mid + 1`
14268 fi
14269 rm -f conftest.$ac_objext conftest.$ac_ext
14270   done
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14276 #include "confdefs.h"
14277 $ac_includes_default
14278 struct { char filler; long field; } pgac_struct;
14279 #ifdef F77_DUMMY_MAIN
14280 #  ifdef __cplusplus
14281      extern "C"
14282 #  endif
14283    int F77_DUMMY_MAIN() { return 1; }
14284 #endif
14285 int
14286 main ()
14287 {
14288 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14289 test_array [0] = 0
14290
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297   (eval $ac_compile) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -s conftest.$ac_objext'
14302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303   (eval $ac_try) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; }; then
14307   ac_hi=-1 ac_mid=-1
14308   while :; do
14309     cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 $ac_includes_default
14313 struct { char filler; long field; } pgac_struct;
14314 #ifdef F77_DUMMY_MAIN
14315 #  ifdef __cplusplus
14316      extern "C"
14317 #  endif
14318    int F77_DUMMY_MAIN() { return 1; }
14319 #endif
14320 int
14321 main ()
14322 {
14323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14324 test_array [0] = 0
14325
14326   ;
14327   return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332   (eval $ac_compile) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -s conftest.$ac_objext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_lo=$ac_mid; break
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14346 ac_hi=`expr '(' $ac_mid ')' - 1`
14347                        if test $ac_mid -le $ac_hi; then
14348                          ac_lo= ac_hi=
14349                          break
14350                        fi
14351                        ac_mid=`expr 2 '*' $ac_mid`
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354   done
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 ac_lo= ac_hi=
14359 fi
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14363 # Binary search between lo and hi bounds.
14364 while test "x$ac_lo" != "x$ac_hi"; do
14365   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14366   cat >conftest.$ac_ext <<_ACEOF
14367 #line $LINENO "configure"
14368 #include "confdefs.h"
14369 $ac_includes_default
14370 struct { char filler; long field; } pgac_struct;
14371 #ifdef F77_DUMMY_MAIN
14372 #  ifdef __cplusplus
14373      extern "C"
14374 #  endif
14375    int F77_DUMMY_MAIN() { return 1; }
14376 #endif
14377 int
14378 main ()
14379 {
14380 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14381 test_array [0] = 0
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -s conftest.$ac_objext'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399   ac_hi=$ac_mid
14400 else
14401   echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 ac_lo=`expr '(' $ac_mid ')' + 1`
14404 fi
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14406 done
14407 case $ac_lo in
14408 ?*) pgac_cv_alignof_long=$ac_lo;;
14409 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14410 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14411    { (exit 1); exit 1; }; } ;;
14412 esac
14413 else
14414   if test "$cross_compiling" = yes; then
14415   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14416 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14417    { (exit 1); exit 1; }; }
14418 else
14419   cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14421 #include "confdefs.h"
14422 $ac_includes_default
14423 struct { char filler; long field; } pgac_struct;
14424 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14425 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14426 #include <stdio.h>
14427 #include <stdlib.h>
14428 #ifdef F77_DUMMY_MAIN
14429 #  ifdef __cplusplus
14430      extern "C"
14431 #  endif
14432    int F77_DUMMY_MAIN() { return 1; }
14433 #endif
14434 int
14435 main ()
14436 {
14437
14438   FILE *f = fopen ("conftest.val", "w");
14439   if (! f)
14440     exit (1);
14441   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14442     {
14443       long i = longval ();
14444       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14445         exit (1);
14446       fprintf (f, "%ld\n", i);
14447     }
14448   else
14449     {
14450       unsigned long i = ulongval ();
14451       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14452         exit (1);
14453       fprintf (f, "%lu\n", i);
14454     }
14455   exit (ferror (f) || fclose (f) != 0);
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   pgac_cv_alignof_long=`cat conftest.val`
14473 else
14474   echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 cat conftest.$ac_ext >&5
14477 ( exit $ac_status )
14478 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14479 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14480    { (exit 1); exit 1; }; }
14481 fi
14482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14483 fi
14484 fi
14485 rm -f conftest.val
14486 else
14487   pgac_cv_alignof_long=0
14488 fi
14489 fi
14490 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14491 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14492 cat >>confdefs.h <<_ACEOF
14493 #define ALIGNOF_LONG $pgac_cv_alignof_long
14494 _ACEOF
14495
14496
14497 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14498   echo "$as_me:$LINENO: checking for long long int" >&5
14499 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14500 if test "${ac_cv_type_long_long_int+set}" = set; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   cat >conftest.$ac_ext <<_ACEOF
14504 #line $LINENO "configure"
14505 #include "confdefs.h"
14506 $ac_includes_default
14507 #ifdef F77_DUMMY_MAIN
14508 #  ifdef __cplusplus
14509      extern "C"
14510 #  endif
14511    int F77_DUMMY_MAIN() { return 1; }
14512 #endif
14513 int
14514 main ()
14515 {
14516 if ((long long int *) 0)
14517   return 0;
14518 if (sizeof (long long int))
14519   return 0;
14520   ;
14521   return 0;
14522 }
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526   (eval $ac_compile) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } &&
14530          { ac_try='test -s conftest.$ac_objext'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; }; then
14536   ac_cv_type_long_long_int=yes
14537 else
14538   echo "$as_me: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14540 ac_cv_type_long_long_int=no
14541 fi
14542 rm -f conftest.$ac_objext conftest.$ac_ext
14543 fi
14544 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14545 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14546
14547 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14548 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14549 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   if test "$ac_cv_type_long_long_int" = yes; then
14553   if test "$cross_compiling" = yes; then
14554   # Depending upon the size, compute the lo and hi bounds.
14555 cat >conftest.$ac_ext <<_ACEOF
14556 #line $LINENO "configure"
14557 #include "confdefs.h"
14558 $ac_includes_default
14559 struct { char filler; long long int field; } pgac_struct;
14560 #ifdef F77_DUMMY_MAIN
14561 #  ifdef __cplusplus
14562      extern "C"
14563 #  endif
14564    int F77_DUMMY_MAIN() { return 1; }
14565 #endif
14566 int
14567 main ()
14568 {
14569 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14570 test_array [0] = 0
14571
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578   (eval $ac_compile) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); } &&
14582          { ac_try='test -s conftest.$ac_objext'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   ac_lo=0 ac_mid=0
14589   while :; do
14590     cat >conftest.$ac_ext <<_ACEOF
14591 #line $LINENO "configure"
14592 #include "confdefs.h"
14593 $ac_includes_default
14594 struct { char filler; long long int field; } pgac_struct;
14595 #ifdef F77_DUMMY_MAIN
14596 #  ifdef __cplusplus
14597      extern "C"
14598 #  endif
14599    int F77_DUMMY_MAIN() { return 1; }
14600 #endif
14601 int
14602 main ()
14603 {
14604 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14605 test_array [0] = 0
14606
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613   (eval $ac_compile) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ac_hi=$ac_mid; break
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 ac_lo=`expr $ac_mid + 1`
14628                     if test $ac_lo -le $ac_mid; then
14629                       ac_lo= ac_hi=
14630                       break
14631                     fi
14632                     ac_mid=`expr 2 '*' $ac_mid + 1`
14633 fi
14634 rm -f conftest.$ac_objext conftest.$ac_ext
14635   done
14636 else
14637   echo "$as_me: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 cat >conftest.$ac_ext <<_ACEOF
14640 #line $LINENO "configure"
14641 #include "confdefs.h"
14642 $ac_includes_default
14643 struct { char filler; long long int field; } pgac_struct;
14644 #ifdef F77_DUMMY_MAIN
14645 #  ifdef __cplusplus
14646      extern "C"
14647 #  endif
14648    int F77_DUMMY_MAIN() { return 1; }
14649 #endif
14650 int
14651 main ()
14652 {
14653 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14654 test_array [0] = 0
14655
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662   (eval $ac_compile) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -s conftest.$ac_objext'
14667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668   (eval $ac_try) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; }; then
14672   ac_hi=-1 ac_mid=-1
14673   while :; do
14674     cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 #include "confdefs.h"
14677 $ac_includes_default
14678 struct { char filler; long long int field; } pgac_struct;
14679 #ifdef F77_DUMMY_MAIN
14680 #  ifdef __cplusplus
14681      extern "C"
14682 #  endif
14683    int F77_DUMMY_MAIN() { return 1; }
14684 #endif
14685 int
14686 main ()
14687 {
14688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14689 test_array [0] = 0
14690
14691   ;
14692   return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697   (eval $ac_compile) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } &&
14701          { ac_try='test -s conftest.$ac_objext'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }; then
14707   ac_lo=$ac_mid; break
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 cat conftest.$ac_ext >&5
14711 ac_hi=`expr '(' $ac_mid ')' - 1`
14712                        if test $ac_mid -le $ac_hi; then
14713                          ac_lo= ac_hi=
14714                          break
14715                        fi
14716                        ac_mid=`expr 2 '*' $ac_mid`
14717 fi
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14719   done
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 ac_lo= ac_hi=
14724 fi
14725 rm -f conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14728 # Binary search between lo and hi bounds.
14729 while test "x$ac_lo" != "x$ac_hi"; do
14730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14731   cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 struct { char filler; long long int field; } pgac_struct;
14736 #ifdef F77_DUMMY_MAIN
14737 #  ifdef __cplusplus
14738      extern "C"
14739 #  endif
14740    int F77_DUMMY_MAIN() { return 1; }
14741 #endif
14742 int
14743 main ()
14744 {
14745 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14746 test_array [0] = 0
14747
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754   (eval $ac_compile) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_hi=$ac_mid
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 ac_lo=`expr '(' $ac_mid ')' + 1`
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771 done
14772 case $ac_lo in
14773 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14774 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14775 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14776    { (exit 1); exit 1; }; } ;;
14777 esac
14778 else
14779   if test "$cross_compiling" = yes; then
14780   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14781 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14782    { (exit 1); exit 1; }; }
14783 else
14784   cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 #include "confdefs.h"
14787 $ac_includes_default
14788 struct { char filler; long long int field; } pgac_struct;
14789 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14790 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14791 #include <stdio.h>
14792 #include <stdlib.h>
14793 #ifdef F77_DUMMY_MAIN
14794 #  ifdef __cplusplus
14795      extern "C"
14796 #  endif
14797    int F77_DUMMY_MAIN() { return 1; }
14798 #endif
14799 int
14800 main ()
14801 {
14802
14803   FILE *f = fopen ("conftest.val", "w");
14804   if (! f)
14805     exit (1);
14806   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14807     {
14808       long i = longval ();
14809       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14810         exit (1);
14811       fprintf (f, "%ld\n", i);
14812     }
14813   else
14814     {
14815       unsigned long i = ulongval ();
14816       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14817         exit (1);
14818       fprintf (f, "%lu\n", i);
14819     }
14820   exit (ferror (f) || fclose (f) != 0);
14821
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest$ac_exeext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14828   (eval $ac_link) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833   (eval $ac_try) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); }; }; then
14837   pgac_cv_alignof_long_long_int=`cat conftest.val`
14838 else
14839   echo "$as_me: program exited with status $ac_status" >&5
14840 echo "$as_me: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 ( exit $ac_status )
14843 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14844 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14845    { (exit 1); exit 1; }; }
14846 fi
14847 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14848 fi
14849 fi
14850 rm -f conftest.val
14851 else
14852   pgac_cv_alignof_long_long_int=0
14853 fi
14854 fi
14855 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14856 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14857 cat >>confdefs.h <<_ACEOF
14858 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14859 _ACEOF
14860
14861
14862 fi
14863 echo "$as_me:$LINENO: checking for double" >&5
14864 echo $ECHO_N "checking for double... $ECHO_C" >&6
14865 if test "${ac_cv_type_double+set}" = set; then
14866   echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868   cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14870 #include "confdefs.h"
14871 $ac_includes_default
14872 #ifdef F77_DUMMY_MAIN
14873 #  ifdef __cplusplus
14874      extern "C"
14875 #  endif
14876    int F77_DUMMY_MAIN() { return 1; }
14877 #endif
14878 int
14879 main ()
14880 {
14881 if ((double *) 0)
14882   return 0;
14883 if (sizeof (double))
14884   return 0;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891   (eval $ac_compile) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -s conftest.$ac_objext'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; }; then
14901   ac_cv_type_double=yes
14902 else
14903   echo "$as_me: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 ac_cv_type_double=no
14906 fi
14907 rm -f conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14910 echo "${ECHO_T}$ac_cv_type_double" >&6
14911
14912 echo "$as_me:$LINENO: checking alignment of double" >&5
14913 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14914 if test "${pgac_cv_alignof_double+set}" = set; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   if test "$ac_cv_type_double" = yes; then
14918   if test "$cross_compiling" = yes; then
14919   # Depending upon the size, compute the lo and hi bounds.
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 #include "confdefs.h"
14923 $ac_includes_default
14924 struct { char filler; double field; } pgac_struct;
14925 #ifdef F77_DUMMY_MAIN
14926 #  ifdef __cplusplus
14927      extern "C"
14928 #  endif
14929    int F77_DUMMY_MAIN() { return 1; }
14930 #endif
14931 int
14932 main ()
14933 {
14934 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14935 test_array [0] = 0
14936
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943   (eval $ac_compile) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   ac_lo=0 ac_mid=0
14954   while :; do
14955     cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 #include "confdefs.h"
14958 $ac_includes_default
14959 struct { char filler; double field; } pgac_struct;
14960 #ifdef F77_DUMMY_MAIN
14961 #  ifdef __cplusplus
14962      extern "C"
14963 #  endif
14964    int F77_DUMMY_MAIN() { return 1; }
14965 #endif
14966 int
14967 main ()
14968 {
14969 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14970 test_array [0] = 0
14971
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978   (eval $ac_compile) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -s conftest.$ac_objext'
14983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984   (eval $ac_try) 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); }; }; then
14988   ac_hi=$ac_mid; break
14989 else
14990   echo "$as_me: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 ac_lo=`expr $ac_mid + 1`
14993                     if test $ac_lo -le $ac_mid; then
14994                       ac_lo= ac_hi=
14995                       break
14996                     fi
14997                     ac_mid=`expr 2 '*' $ac_mid + 1`
14998 fi
14999 rm -f conftest.$ac_objext conftest.$ac_ext
15000   done
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15004 cat >conftest.$ac_ext <<_ACEOF
15005 #line $LINENO "configure"
15006 #include "confdefs.h"
15007 $ac_includes_default
15008 struct { char filler; double field; } pgac_struct;
15009 #ifdef F77_DUMMY_MAIN
15010 #  ifdef __cplusplus
15011      extern "C"
15012 #  endif
15013    int F77_DUMMY_MAIN() { return 1; }
15014 #endif
15015 int
15016 main ()
15017 {
15018 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15019 test_array [0] = 0
15020
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027   (eval $ac_compile) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } &&
15031          { ac_try='test -s conftest.$ac_objext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   ac_hi=-1 ac_mid=-1
15038   while :; do
15039     cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15041 #include "confdefs.h"
15042 $ac_includes_default
15043 struct { char filler; double field; } pgac_struct;
15044 #ifdef F77_DUMMY_MAIN
15045 #  ifdef __cplusplus
15046      extern "C"
15047 #  endif
15048    int F77_DUMMY_MAIN() { return 1; }
15049 #endif
15050 int
15051 main ()
15052 {
15053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15054 test_array [0] = 0
15055
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15062   (eval $ac_compile) 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); } &&
15066          { ac_try='test -s conftest.$ac_objext'
15067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068   (eval $ac_try) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; }; then
15072   ac_lo=$ac_mid; break
15073 else
15074   echo "$as_me: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15076 ac_hi=`expr '(' $ac_mid ')' - 1`
15077                        if test $ac_mid -le $ac_hi; then
15078                          ac_lo= ac_hi=
15079                          break
15080                        fi
15081                        ac_mid=`expr 2 '*' $ac_mid`
15082 fi
15083 rm -f conftest.$ac_objext conftest.$ac_ext
15084   done
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15088 ac_lo= ac_hi=
15089 fi
15090 rm -f conftest.$ac_objext conftest.$ac_ext
15091 fi
15092 rm -f conftest.$ac_objext conftest.$ac_ext
15093 # Binary search between lo and hi bounds.
15094 while test "x$ac_lo" != "x$ac_hi"; do
15095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15096   cat >conftest.$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 $ac_includes_default
15100 struct { char filler; double field; } pgac_struct;
15101 #ifdef F77_DUMMY_MAIN
15102 #  ifdef __cplusplus
15103      extern "C"
15104 #  endif
15105    int F77_DUMMY_MAIN() { return 1; }
15106 #endif
15107 int
15108 main ()
15109 {
15110 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15111 test_array [0] = 0
15112
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15119   (eval $ac_compile) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); } &&
15123          { ac_try='test -s conftest.$ac_objext'
15124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125   (eval $ac_try) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129   ac_hi=$ac_mid
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15133 ac_lo=`expr '(' $ac_mid ')' + 1`
15134 fi
15135 rm -f conftest.$ac_objext conftest.$ac_ext
15136 done
15137 case $ac_lo in
15138 ?*) pgac_cv_alignof_double=$ac_lo;;
15139 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15140 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15141    { (exit 1); exit 1; }; } ;;
15142 esac
15143 else
15144   if test "$cross_compiling" = yes; then
15145   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15146 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15147    { (exit 1); exit 1; }; }
15148 else
15149   cat >conftest.$ac_ext <<_ACEOF
15150 #line $LINENO "configure"
15151 #include "confdefs.h"
15152 $ac_includes_default
15153 struct { char filler; double field; } pgac_struct;
15154 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15155 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15156 #include <stdio.h>
15157 #include <stdlib.h>
15158 #ifdef F77_DUMMY_MAIN
15159 #  ifdef __cplusplus
15160      extern "C"
15161 #  endif
15162    int F77_DUMMY_MAIN() { return 1; }
15163 #endif
15164 int
15165 main ()
15166 {
15167
15168   FILE *f = fopen ("conftest.val", "w");
15169   if (! f)
15170     exit (1);
15171   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15172     {
15173       long i = longval ();
15174       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15175         exit (1);
15176       fprintf (f, "%ld\n", i);
15177     }
15178   else
15179     {
15180       unsigned long i = ulongval ();
15181       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15182         exit (1);
15183       fprintf (f, "%lu\n", i);
15184     }
15185   exit (ferror (f) || fclose (f) != 0);
15186
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193   (eval $ac_link) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; }; then
15202   pgac_cv_alignof_double=`cat conftest.val`
15203 else
15204   echo "$as_me: program exited with status $ac_status" >&5
15205 echo "$as_me: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 ( exit $ac_status )
15208 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15209 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15210    { (exit 1); exit 1; }; }
15211 fi
15212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15213 fi
15214 fi
15215 rm -f conftest.val
15216 else
15217   pgac_cv_alignof_double=0
15218 fi
15219 fi
15220 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15221 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15222 cat >>confdefs.h <<_ACEOF
15223 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15224 _ACEOF
15225
15226
15227
15228 # Compute maximum alignment of any basic type.
15229 # We assume long's alignment is at least as strong as char, short, or int;
15230 # but we must check long long (if it exists) and double.
15231
15232 MAX_ALIGNOF=$pgac_cv_alignof_long
15233 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15234   MAX_ALIGNOF=$pgac_cv_alignof_double
15235 fi
15236 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15237   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15238 fi
15239
15240 cat >>confdefs.h <<_ACEOF
15241 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15242 _ACEOF
15243
15244
15245
15246 # Some platforms predefine the types int8, int16, etc.  Only check
15247 # a (hopefully) representative subset.
15248 echo "$as_me:$LINENO: checking for int8" >&5
15249 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15250 if test "${ac_cv_type_int8+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15255 #include "confdefs.h"
15256 #include <stdio.h>
15257 #ifdef HAVE_SUPPORTDEFS_H
15258 #include <SupportDefs.h>
15259 #endif
15260
15261 #ifdef F77_DUMMY_MAIN
15262 #  ifdef __cplusplus
15263      extern "C"
15264 #  endif
15265    int F77_DUMMY_MAIN() { return 1; }
15266 #endif
15267 int
15268 main ()
15269 {
15270 if ((int8 *) 0)
15271   return 0;
15272 if (sizeof (int8))
15273   return 0;
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280   (eval $ac_compile) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); } &&
15284          { ac_try='test -s conftest.$ac_objext'
15285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286   (eval $ac_try) 2>&5
15287   ac_status=$?
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); }; }; then
15290   ac_cv_type_int8=yes
15291 else
15292   echo "$as_me: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 ac_cv_type_int8=no
15295 fi
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15297 fi
15298 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15299 echo "${ECHO_T}$ac_cv_type_int8" >&6
15300 if test $ac_cv_type_int8 = yes; then
15301
15302 cat >>confdefs.h <<_ACEOF
15303 #define HAVE_INT8 1
15304 _ACEOF
15305
15306
15307 fi
15308 echo "$as_me:$LINENO: checking for uint8" >&5
15309 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15310 if test "${ac_cv_type_uint8+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15315 #include "confdefs.h"
15316 #include <stdio.h>
15317 #ifdef HAVE_SUPPORTDEFS_H
15318 #include <SupportDefs.h>
15319 #endif
15320
15321 #ifdef F77_DUMMY_MAIN
15322 #  ifdef __cplusplus
15323      extern "C"
15324 #  endif
15325    int F77_DUMMY_MAIN() { return 1; }
15326 #endif
15327 int
15328 main ()
15329 {
15330 if ((uint8 *) 0)
15331   return 0;
15332 if (sizeof (uint8))
15333   return 0;
15334   ;
15335   return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340   (eval $ac_compile) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } &&
15344          { ac_try='test -s conftest.$ac_objext'
15345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346   (eval $ac_try) 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; }; then
15350   ac_cv_type_uint8=yes
15351 else
15352   echo "$as_me: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15354 ac_cv_type_uint8=no
15355 fi
15356 rm -f conftest.$ac_objext conftest.$ac_ext
15357 fi
15358 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15359 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15360 if test $ac_cv_type_uint8 = yes; then
15361
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_UINT8 1
15364 _ACEOF
15365
15366
15367 fi
15368 echo "$as_me:$LINENO: checking for int64" >&5
15369 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15370 if test "${ac_cv_type_int64+set}" = set; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 #include "confdefs.h"
15376 #include <stdio.h>
15377 #ifdef HAVE_SUPPORTDEFS_H
15378 #include <SupportDefs.h>
15379 #endif
15380
15381 #ifdef F77_DUMMY_MAIN
15382 #  ifdef __cplusplus
15383      extern "C"
15384 #  endif
15385    int F77_DUMMY_MAIN() { return 1; }
15386 #endif
15387 int
15388 main ()
15389 {
15390 if ((int64 *) 0)
15391   return 0;
15392 if (sizeof (int64))
15393   return 0;
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15400   (eval $ac_compile) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -s conftest.$ac_objext'
15405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406   (eval $ac_try) 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; }; then
15410   ac_cv_type_int64=yes
15411 else
15412   echo "$as_me: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15414 ac_cv_type_int64=no
15415 fi
15416 rm -f conftest.$ac_objext conftest.$ac_ext
15417 fi
15418 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15419 echo "${ECHO_T}$ac_cv_type_int64" >&6
15420 if test $ac_cv_type_int64 = yes; then
15421
15422 cat >>confdefs.h <<_ACEOF
15423 #define HAVE_INT64 1
15424 _ACEOF
15425
15426
15427 fi
15428 echo "$as_me:$LINENO: checking for uint64" >&5
15429 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15430 if test "${ac_cv_type_uint64+set}" = set; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433   cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15435 #include "confdefs.h"
15436 #include <stdio.h>
15437 #ifdef HAVE_SUPPORTDEFS_H
15438 #include <SupportDefs.h>
15439 #endif
15440
15441 #ifdef F77_DUMMY_MAIN
15442 #  ifdef __cplusplus
15443      extern "C"
15444 #  endif
15445    int F77_DUMMY_MAIN() { return 1; }
15446 #endif
15447 int
15448 main ()
15449 {
15450 if ((uint64 *) 0)
15451   return 0;
15452 if (sizeof (uint64))
15453   return 0;
15454   ;
15455   return 0;
15456 }
15457 _ACEOF
15458 rm -f conftest.$ac_objext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15460   (eval $ac_compile) 2>&5
15461   ac_status=$?
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -s conftest.$ac_objext'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; }; then
15470   ac_cv_type_uint64=yes
15471 else
15472   echo "$as_me: failed program was:" >&5
15473 cat conftest.$ac_ext >&5
15474 ac_cv_type_uint64=no
15475 fi
15476 rm -f conftest.$ac_objext conftest.$ac_ext
15477 fi
15478 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15479 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15480 if test $ac_cv_type_uint64 = yes; then
15481
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_UINT64 1
15484 _ACEOF
15485
15486
15487 fi
15488
15489
15490 # We also check for sig_atomic_t, which *should* be defined per ANSI
15491 # C, but is missing on some old platforms.
15492 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15493 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15494 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15500 #include <signal.h>
15501
15502 #ifdef F77_DUMMY_MAIN
15503 #  ifdef __cplusplus
15504      extern "C"
15505 #  endif
15506    int F77_DUMMY_MAIN() { return 1; }
15507 #endif
15508 int
15509 main ()
15510 {
15511 if ((sig_atomic_t *) 0)
15512   return 0;
15513 if (sizeof (sig_atomic_t))
15514   return 0;
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521   (eval $ac_compile) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -s conftest.$ac_objext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_cv_type_sig_atomic_t=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 ac_cv_type_sig_atomic_t=no
15536 fi
15537 rm -f conftest.$ac_objext conftest.$ac_ext
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15540 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15541 if test $ac_cv_type_sig_atomic_t = yes; then
15542
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_SIG_ATOMIC_T 1
15545 _ACEOF
15546
15547
15548 fi
15549
15550
15551
15552 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15553 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15554 if test "${pgac_cv_func_posix_signals+set}" = set; then
15555   echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557   cat >conftest.$ac_ext <<_ACEOF
15558 #line $LINENO "configure"
15559 #include "confdefs.h"
15560 #include <signal.h>
15561
15562 #ifdef F77_DUMMY_MAIN
15563 #  ifdef __cplusplus
15564      extern "C"
15565 #  endif
15566    int F77_DUMMY_MAIN() { return 1; }
15567 #endif
15568 int
15569 main ()
15570 {
15571 struct sigaction act, oact;
15572 sigemptyset(&act.sa_mask);
15573 act.sa_flags = SA_RESTART;
15574 sigaction(0, &act, &oact);
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581   (eval $ac_link) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -s conftest$ac_exeext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   pgac_cv_func_posix_signals=yes
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 pgac_cv_func_posix_signals=no
15596 fi
15597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15598 fi
15599 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15600 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15601 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15602
15603 cat >>confdefs.h <<\_ACEOF
15604 #define HAVE_POSIX_SIGNALS
15605 _ACEOF
15606
15607 fi
15608 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15609
15610
15611
15612 if test "$enable_nls" = yes ; then
15613
15614   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15615 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15616 if test "${ac_cv_search_gettext+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   ac_func_search_save_LIBS=$LIBS
15620 ac_cv_search_gettext=no
15621 cat >conftest.$ac_ext <<_ACEOF
15622 #line $LINENO "configure"
15623 #include "confdefs.h"
15624
15625 /* Override any gcc2 internal prototype to avoid an error.  */
15626 #ifdef __cplusplus
15627 extern "C"
15628 #endif
15629 /* We use char because int might match the return type of a gcc2
15630    builtin and then its argument prototype would still apply.  */
15631 char gettext ();
15632 #ifdef F77_DUMMY_MAIN
15633 #  ifdef __cplusplus
15634      extern "C"
15635 #  endif
15636    int F77_DUMMY_MAIN() { return 1; }
15637 #endif
15638 int
15639 main ()
15640 {
15641 gettext ();
15642   ;
15643   return 0;
15644 }
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648   (eval $ac_link) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); } &&
15652          { ac_try='test -s conftest$ac_exeext'
15653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654   (eval $ac_try) 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; }; then
15658   ac_cv_search_gettext="none required"
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 cat conftest.$ac_ext >&5
15662 fi
15663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15664 if test "$ac_cv_search_gettext" = no; then
15665   for ac_lib in intl; do
15666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15667     cat >conftest.$ac_ext <<_ACEOF
15668 #line $LINENO "configure"
15669 #include "confdefs.h"
15670
15671 /* Override any gcc2 internal prototype to avoid an error.  */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 /* We use char because int might match the return type of a gcc2
15676    builtin and then its argument prototype would still apply.  */
15677 char gettext ();
15678 #ifdef F77_DUMMY_MAIN
15679 #  ifdef __cplusplus
15680      extern "C"
15681 #  endif
15682    int F77_DUMMY_MAIN() { return 1; }
15683 #endif
15684 int
15685 main ()
15686 {
15687 gettext ();
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694   (eval $ac_link) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } &&
15698          { ac_try='test -s conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_cv_search_gettext="-l$ac_lib"
15705 break
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 fi
15710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15711   done
15712 fi
15713 LIBS=$ac_func_search_save_LIBS
15714 fi
15715 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15716 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15717 if test "$ac_cv_search_gettext" != no; then
15718   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15719
15720 else
15721   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15722 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15723    { (exit 1); exit 1; }; }
15724 fi
15725
15726   if test "${ac_cv_header_libintl_h+set}" = set; then
15727   echo "$as_me:$LINENO: checking for libintl.h" >&5
15728 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15729 if test "${ac_cv_header_libintl_h+set}" = set; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 fi
15732 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15733 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15734 else
15735   # Is the header compilable?
15736 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15737 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 $ac_includes_default
15742 #include <libintl.h>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746   (eval $ac_compile) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } &&
15750          { ac_try='test -s conftest.$ac_objext'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; }; then
15756   ac_header_compiler=yes
15757 else
15758   echo "$as_me: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15760 ac_header_compiler=no
15761 fi
15762 rm -f conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6
15765
15766 # Is the header present?
15767 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15768 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 #include "confdefs.h"
15772 #include <libintl.h>
15773 _ACEOF
15774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15776   ac_status=$?
15777   egrep -v '^ *\+' conftest.er1 >conftest.err
15778   rm -f conftest.er1
15779   cat conftest.err >&5
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } >/dev/null; then
15782   if test -s conftest.err; then
15783     ac_cpp_err=$ac_c_preproc_warn_flag
15784   else
15785     ac_cpp_err=
15786   fi
15787 else
15788   ac_cpp_err=yes
15789 fi
15790 if test -z "$ac_cpp_err"; then
15791   ac_header_preproc=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794   cat conftest.$ac_ext >&5
15795   ac_header_preproc=no
15796 fi
15797 rm -f conftest.err conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6
15800
15801 # So?  What about this header?
15802 case $ac_header_compiler:$ac_header_preproc in
15803   yes:no )
15804     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15808   no:yes )
15809     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15813     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15815 esac
15816 echo "$as_me:$LINENO: checking for libintl.h" >&5
15817 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15818 if test "${ac_cv_header_libintl_h+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   ac_cv_header_libintl_h=$ac_header_preproc
15822 fi
15823 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15824 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15825
15826 fi
15827 if test $ac_cv_header_libintl_h = yes; then
15828   :
15829 else
15830   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15831 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15832    { (exit 1); exit 1; }; }
15833 fi
15834
15835
15836   for ac_prog in msgfmt
15837 do
15838   # Extract the first word of "$ac_prog", so it can be a program name with args.
15839 set dummy $ac_prog; ac_word=$2
15840 echo "$as_me:$LINENO: checking for $ac_word" >&5
15841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   if test -n "$MSGFMT"; then
15846   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15847 else
15848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15849 for as_dir in $PATH
15850 do
15851   IFS=$as_save_IFS
15852   test -z "$as_dir" && as_dir=.
15853   for ac_exec_ext in '' $ac_executable_extensions; do
15854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15855     ac_cv_prog_MSGFMT="$ac_prog"
15856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15857     break 2
15858   fi
15859 done
15860 done
15861
15862 fi
15863 fi
15864 MSGFMT=$ac_cv_prog_MSGFMT
15865 if test -n "$MSGFMT"; then
15866   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15867 echo "${ECHO_T}$MSGFMT" >&6
15868 else
15869   echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15871 fi
15872
15873   test -n "$MSGFMT" && break
15874 done
15875
15876   if test -z "$MSGFMT"; then
15877     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15878 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15879    { (exit 1); exit 1; }; }
15880   fi
15881   for ac_prog in msgmerge
15882 do
15883   # Extract the first word of "$ac_prog", so it can be a program name with args.
15884 set dummy $ac_prog; ac_word=$2
15885 echo "$as_me:$LINENO: checking for $ac_word" >&5
15886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15887 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890   if test -n "$MSGMERGE"; then
15891   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15892 else
15893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894 for as_dir in $PATH
15895 do
15896   IFS=$as_save_IFS
15897   test -z "$as_dir" && as_dir=.
15898   for ac_exec_ext in '' $ac_executable_extensions; do
15899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15900     ac_cv_prog_MSGMERGE="$ac_prog"
15901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15902     break 2
15903   fi
15904 done
15905 done
15906
15907 fi
15908 fi
15909 MSGMERGE=$ac_cv_prog_MSGMERGE
15910 if test -n "$MSGMERGE"; then
15911   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15912 echo "${ECHO_T}$MSGMERGE" >&6
15913 else
15914   echo "$as_me:$LINENO: result: no" >&5
15915 echo "${ECHO_T}no" >&6
15916 fi
15917
15918   test -n "$MSGMERGE" && break
15919 done
15920
15921   for ac_prog in xgettext
15922 do
15923   # Extract the first word of "$ac_prog", so it can be a program name with args.
15924 set dummy $ac_prog; ac_word=$2
15925 echo "$as_me:$LINENO: checking for $ac_word" >&5
15926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15927 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15928   echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930   if test -n "$XGETTEXT"; then
15931   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15932 else
15933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15934 for as_dir in $PATH
15935 do
15936   IFS=$as_save_IFS
15937   test -z "$as_dir" && as_dir=.
15938   for ac_exec_ext in '' $ac_executable_extensions; do
15939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15940     ac_cv_prog_XGETTEXT="$ac_prog"
15941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15942     break 2
15943   fi
15944 done
15945 done
15946
15947 fi
15948 fi
15949 XGETTEXT=$ac_cv_prog_XGETTEXT
15950 if test -n "$XGETTEXT"; then
15951   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15952 echo "${ECHO_T}$XGETTEXT" >&6
15953 else
15954   echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15956 fi
15957
15958   test -n "$XGETTEXT" && break
15959 done
15960
15961
15962   # Note: share/locale is always the default, independent of $datadir
15963   localedir='${prefix}/share/locale'
15964   if test x"$prefix" = x"NONE"; then
15965     exp_localedir="$ac_default_prefix/share/locale"
15966   else
15967     exp_localedir="$prefix/share/locale"
15968   fi
15969
15970
15971
15972 cat >>confdefs.h <<_ACEOF
15973 #define LOCALEDIR "$exp_localedir"
15974 _ACEOF
15975
15976
15977 fi
15978
15979 if test "$with_CXX" = yes; then
15980
15981
15982 ac_ext=cc
15983 ac_cpp='$CXXCPP $CPPFLAGS'
15984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15987
15988 if test "${ac_cv_header_string+set}" = set; then
15989   echo "$as_me:$LINENO: checking for string" >&5
15990 echo $ECHO_N "checking for string... $ECHO_C" >&6
15991 if test "${ac_cv_header_string+set}" = set; then
15992   echo $ECHO_N "(cached) $ECHO_C" >&6
15993 fi
15994 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15995 echo "${ECHO_T}$ac_cv_header_string" >&6
15996 else
15997   # Is the header compilable?
15998 echo "$as_me:$LINENO: checking string usability" >&5
15999 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16002 #include "confdefs.h"
16003 $ac_includes_default
16004 #include <string>
16005 _ACEOF
16006 rm -f conftest.$ac_objext
16007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16008   (eval $ac_compile) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } &&
16012          { ac_try='test -s conftest.$ac_objext'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_header_compiler=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 cat conftest.$ac_ext >&5
16022 ac_header_compiler=no
16023 fi
16024 rm -f conftest.$ac_objext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16026 echo "${ECHO_T}$ac_header_compiler" >&6
16027
16028 # Is the header present?
16029 echo "$as_me:$LINENO: checking string presence" >&5
16030 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16032 #line $LINENO "configure"
16033 #include "confdefs.h"
16034 #include <string>
16035 _ACEOF
16036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16038   ac_status=$?
16039   egrep -v '^ *\+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } >/dev/null; then
16044   if test -s conftest.err; then
16045     ac_cpp_err=$ac_cxx_preproc_warn_flag
16046   else
16047     ac_cpp_err=
16048   fi
16049 else
16050   ac_cpp_err=yes
16051 fi
16052 if test -z "$ac_cpp_err"; then
16053   ac_header_preproc=yes
16054 else
16055   echo "$as_me: failed program was:" >&5
16056   cat conftest.$ac_ext >&5
16057   ac_header_preproc=no
16058 fi
16059 rm -f conftest.err conftest.$ac_ext
16060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061 echo "${ECHO_T}$ac_header_preproc" >&6
16062
16063 # So?  What about this header?
16064 case $ac_header_compiler:$ac_header_preproc in
16065   yes:no )
16066     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16067 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16069 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16070   no:yes )
16071     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16072 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16073     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16074 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16076 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16077 esac
16078 echo "$as_me:$LINENO: checking for string" >&5
16079 echo $ECHO_N "checking for string... $ECHO_C" >&6
16080 if test "${ac_cv_header_string+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   ac_cv_header_string=$ac_header_preproc
16084 fi
16085 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16086 echo "${ECHO_T}$ac_cv_header_string" >&6
16087
16088 fi
16089 if test $ac_cv_header_string = yes; then
16090
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_CXX_STRING_HEADER 1
16093 _ACEOF
16094
16095 else
16096   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16097 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16098 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 #include "confdefs.h"
16104 #include <stdio.h>
16105 #include <stdlib.h>
16106 #include <string.h>
16107
16108 #ifdef F77_DUMMY_MAIN
16109 #  ifdef __cplusplus
16110      extern "C"
16111 #  endif
16112    int F77_DUMMY_MAIN() { return 1; }
16113 #endif
16114 int
16115 main ()
16116 {
16117 string foo = "test"
16118   ;
16119   return 0;
16120 }
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124   (eval $ac_compile) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } &&
16128          { ac_try='test -s conftest.$ac_objext'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   pgac_cv_class_string_in_string_h=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 pgac_cv_class_string_in_string_h=no
16139 fi
16140 rm -f conftest.$ac_objext conftest.$ac_ext
16141 fi
16142 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16143 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16144
16145   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16146     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16147 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16148    { (exit 1); exit 1; }; }
16149   fi
16150
16151 fi
16152
16153
16154 ac_ext=c
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16159
16160
16161 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16162 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16163 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166
16167 ac_ext=cc
16168 ac_cpp='$CXXCPP $CPPFLAGS'
16169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16172
16173 cat >conftest.$ac_ext <<_ACEOF
16174 #line $LINENO "configure"
16175 #include "confdefs.h"
16176 #include <stdio.h>
16177 #include <stdlib.h>
16178 #ifdef HAVE_CXX_STRING_HEADER
16179 #include <string>
16180 #endif
16181 using namespace std;
16182
16183 #ifdef F77_DUMMY_MAIN
16184 #  ifdef __cplusplus
16185      extern "C"
16186 #  endif
16187    int F77_DUMMY_MAIN() { return 1; }
16188 #endif
16189 int
16190 main ()
16191 {
16192
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199   (eval $ac_compile) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); } &&
16203          { ac_try='test -s conftest.$ac_objext'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; }; then
16209   pgac_cv_cxx_namespace_std=yes
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 cat conftest.$ac_ext >&5
16213 pgac_cv_cxx_namespace_std=no
16214 fi
16215 rm -f conftest.$ac_objext conftest.$ac_ext
16216 ac_ext=c
16217 ac_cpp='$CPP $CPPFLAGS'
16218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221
16222 fi
16223 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16224 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16225
16226 if test $pgac_cv_cxx_namespace_std = yes ; then
16227
16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_NAMESPACE_STD 1
16230 _ACEOF
16231
16232 fi
16233 fi
16234
16235
16236 # Check for Tcl configuration script tclConfig.sh
16237 if test "$with_tcl" = yes; then
16238     for ac_prog in tclsh tcl
16239 do
16240   # Extract the first word of "$ac_prog", so it can be a program name with args.
16241 set dummy $ac_prog; ac_word=$2
16242 echo "$as_me:$LINENO: checking for $ac_word" >&5
16243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16244 if test "${ac_cv_path_TCLSH+set}" = set; then
16245   echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247   case $TCLSH in
16248   [\\/]* | ?:[\\/]*)
16249   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16250   ;;
16251   *)
16252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16253 for as_dir in $PATH
16254 do
16255   IFS=$as_save_IFS
16256   test -z "$as_dir" && as_dir=.
16257   for ac_exec_ext in '' $ac_executable_extensions; do
16258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16259     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16261     break 2
16262   fi
16263 done
16264 done
16265
16266   ;;
16267 esac
16268 fi
16269 TCLSH=$ac_cv_path_TCLSH
16270
16271 if test -n "$TCLSH"; then
16272   echo "$as_me:$LINENO: result: $TCLSH" >&5
16273 echo "${ECHO_T}$TCLSH" >&6
16274 else
16275   echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6
16277 fi
16278
16279   test -n "$TCLSH" && break
16280 done
16281
16282 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16283 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16284 # Let user override test
16285 if test -z "$TCL_CONFIG_SH"; then
16286     pgac_test_dirs="$with_tclconfig"
16287
16288     set X $pgac_test_dirs; shift
16289     if test $# -eq 0; then
16290         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16291 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16292    { (exit 1); exit 1; }; }
16293         set X `echo 'puts $auto_path' | $TCLSH`; shift
16294     fi
16295
16296     for pgac_dir do
16297         if test -r "$pgac_dir/tclConfig.sh"; then
16298             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16299             break
16300         fi
16301     done
16302 fi
16303
16304 if test -z "$TCL_CONFIG_SH"; then
16305     echo "$as_me:$LINENO: result: no" >&5
16306 echo "${ECHO_T}no" >&6
16307     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16308 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16309    { (exit 1); exit 1; }; }
16310 else
16311     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16312 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16313 fi
16314
16315
16316
16317 fi
16318
16319 # Check for Tk configuration script tkConfig.sh
16320 if test "$with_tk" = yes; then
16321     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16322 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16323 # Let user override test
16324 if test -z "$TK_CONFIG_SH"; then
16325     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16326
16327     set X $pgac_test_dirs; shift
16328     if test $# -eq 0; then
16329         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16330 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16331    { (exit 1); exit 1; }; }
16332         set X `echo 'puts $auto_path' | $TCLSH`; shift
16333     fi
16334
16335     for pgac_dir do
16336         if test -r "$pgac_dir/tkConfig.sh"; then
16337             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16338             break
16339         fi
16340     done
16341 fi
16342
16343 if test -z "$TK_CONFIG_SH"; then
16344     echo "$as_me:$LINENO: result: no" >&5
16345 echo "${ECHO_T}no" >&6
16346     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16347 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16348    { (exit 1); exit 1; }; }
16349 else
16350     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16351 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16352 fi
16353
16354
16355
16356 fi
16357
16358
16359 #
16360 # Check for DocBook and tools
16361 #
16362 for ac_prog in onsgmls nsgmls
16363 do
16364   # Extract the first word of "$ac_prog", so it can be a program name with args.
16365 set dummy $ac_prog; ac_word=$2
16366 echo "$as_me:$LINENO: checking for $ac_word" >&5
16367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16368 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371   if test -n "$NSGMLS"; then
16372   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16373 else
16374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16375 for as_dir in $PATH
16376 do
16377   IFS=$as_save_IFS
16378   test -z "$as_dir" && as_dir=.
16379   for ac_exec_ext in '' $ac_executable_extensions; do
16380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16381     ac_cv_prog_NSGMLS="$ac_prog"
16382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16383     break 2
16384   fi
16385 done
16386 done
16387
16388 fi
16389 fi
16390 NSGMLS=$ac_cv_prog_NSGMLS
16391 if test -n "$NSGMLS"; then
16392   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16393 echo "${ECHO_T}$NSGMLS" >&6
16394 else
16395   echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6
16397 fi
16398
16399   test -n "$NSGMLS" && break
16400 done
16401
16402 # If you don't have nsgmls you won't get very far, so save the cycles.
16403 if test -n "$NSGMLS"; then
16404   for ac_prog in openjade jade
16405 do
16406   # Extract the first word of "$ac_prog", so it can be a program name with args.
16407 set dummy $ac_prog; ac_word=$2
16408 echo "$as_me:$LINENO: checking for $ac_word" >&5
16409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16410 if test "${ac_cv_prog_JADE+set}" = set; then
16411   echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413   if test -n "$JADE"; then
16414   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16415 else
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16418 do
16419   IFS=$as_save_IFS
16420   test -z "$as_dir" && as_dir=.
16421   for ac_exec_ext in '' $ac_executable_extensions; do
16422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423     ac_cv_prog_JADE="$ac_prog"
16424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16425     break 2
16426   fi
16427 done
16428 done
16429
16430 fi
16431 fi
16432 JADE=$ac_cv_prog_JADE
16433 if test -n "$JADE"; then
16434   echo "$as_me:$LINENO: result: $JADE" >&5
16435 echo "${ECHO_T}$JADE" >&6
16436 else
16437   echo "$as_me:$LINENO: result: no" >&5
16438 echo "${ECHO_T}no" >&6
16439 fi
16440
16441   test -n "$JADE" && break
16442 done
16443
16444
16445 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16446 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16447 if test "${pgac_cv_check_docbook+set}" = set; then
16448   echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450   cat >conftest.sgml <<EOF
16451 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16452 <book>
16453  <title>test</title>
16454  <chapter>
16455   <title>random</title>
16456    <sect1>
16457     <title>testsect</title>
16458     <para>text</para>
16459   </sect1>
16460  </chapter>
16461 </book>
16462 EOF
16463
16464 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16465 if test $? -eq 0; then
16466   pgac_cv_check_docbook=yes
16467 else
16468   pgac_cv_check_docbook=no
16469 fi
16470 rm -f conftest.sgml
16471 fi
16472 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16473 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16474
16475 have_docbook=$pgac_cv_check_docbook
16476
16477
16478   echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16479 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16480 if test "${pgac_cv_path_stylesheets+set}" = set; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   if test -n "$DOCBOOKSTYLE"; then
16484   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16485 else
16486   for pgac_prefix in /usr /usr/local /opt; do
16487     for pgac_infix in share lib; do
16488       for pgac_postfix in \
16489         sgml/stylesheets/nwalsh-modular \
16490         sgml/stylesheets/docbook \
16491         sgml/docbook/dsssl/modular
16492       do
16493         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16494         if test -r "$pgac_candidate/html/docbook.dsl" \
16495            && test -r "$pgac_candidate/print/docbook.dsl"
16496         then
16497           pgac_cv_path_stylesheets=$pgac_candidate
16498           break 3
16499         fi
16500       done
16501     done
16502   done
16503 fi
16504 fi
16505
16506 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16507
16508 if test -n "$DOCBOOKSTYLE"; then
16509   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16510 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16511 else
16512   echo "$as_me:$LINENO: result: no" >&5
16513 echo "${ECHO_T}no" >&6
16514 fi
16515   for ac_prog in sgmlspl
16516 do
16517   # Extract the first word of "$ac_prog", so it can be a program name with args.
16518 set dummy $ac_prog; ac_word=$2
16519 echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16521 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   if test -n "$SGMLSPL"; then
16525   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530   IFS=$as_save_IFS
16531   test -z "$as_dir" && as_dir=.
16532   for ac_exec_ext in '' $ac_executable_extensions; do
16533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534     ac_cv_prog_SGMLSPL="$ac_prog"
16535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16536     break 2
16537   fi
16538 done
16539 done
16540
16541 fi
16542 fi
16543 SGMLSPL=$ac_cv_prog_SGMLSPL
16544 if test -n "$SGMLSPL"; then
16545   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16546 echo "${ECHO_T}$SGMLSPL" >&6
16547 else
16548   echo "$as_me:$LINENO: result: no" >&5
16549 echo "${ECHO_T}no" >&6
16550 fi
16551
16552   test -n "$SGMLSPL" && break
16553 done
16554
16555 fi
16556
16557
16558 # prepare build tree if outside source tree
16559 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16560 # Note 2: /bin/pwd might be better than shell's built-in at getting
16561 #         a symlink-free name.
16562 if test "$no_create" != yes; then
16563   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16564     :
16565   else
16566     vpath_build=yes
16567
16568     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16569     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16570     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16571       || { { echo "$as_me:$LINENO: error: failed" >&5
16572 echo "$as_me: error: failed" >&2;}
16573    { (exit 1); exit 1; }; }
16574     echo "$as_me:$LINENO: result: done" >&5
16575 echo "${ECHO_T}done" >&6
16576   fi
16577 fi
16578
16579
16580 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16581
16582
16583 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}"
16584
16585
16586 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16587
16588
16589 cat >confcache <<\_ACEOF
16590 # This file is a shell script that caches the results of configure
16591 # tests run on this system so they can be shared between configure
16592 # scripts and configure runs, see configure's option --config-cache.
16593 # It is not useful on other systems.  If it contains results you don't
16594 # want to keep, you may remove or edit it.
16595 #
16596 # config.status only pays attention to the cache file if you give it
16597 # the --recheck option to rerun configure.
16598 #
16599 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16601 # following values.
16602
16603 _ACEOF
16604
16605 # The following way of writing the cache mishandles newlines in values,
16606 # but we know of no workaround that is simple, portable, and efficient.
16607 # So, don't put newlines in cache variables' values.
16608 # Ultrix sh set writes to stderr and can't be redirected directly,
16609 # and sets the high bit in the cache file unless we assign to the vars.
16610 {
16611   (set) 2>&1 |
16612     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16613     *ac_space=\ *)
16614       # `set' does not quote correctly, so add quotes (double-quote
16615       # substitution turns \\\\ into \\, and sed turns \\ into \).
16616       sed -n \
16617         "s/'/'\\\\''/g;
16618           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16619       ;;
16620     *)
16621       # `set' quotes correctly as required by POSIX, so do not add quotes.
16622       sed -n \
16623         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16624       ;;
16625     esac;
16626 } |
16627   sed '
16628      t clear
16629      : clear
16630      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16631      t end
16632      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16633      : end' >>confcache
16634 if cmp -s $cache_file confcache; then :; else
16635   if test -w $cache_file; then
16636     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16637     cat confcache >$cache_file
16638   else
16639     echo "not updating unwritable cache $cache_file"
16640   fi
16641 fi
16642 rm -f confcache
16643
16644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16645 # Let make expand exec_prefix.
16646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16647
16648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16650 # trailing colons and then remove the whole line if VPATH becomes empty
16651 # (actually we leave an empty line to preserve line numbers).
16652 if test "x$srcdir" = x.; then
16653   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16654 s/:*\$(srcdir):*/:/;
16655 s/:*\${srcdir}:*/:/;
16656 s/:*@srcdir@:*/:/;
16657 s/^\([^=]*=[    ]*\):*/\1/;
16658 s/:*$//;
16659 s/^[^=]*=[      ]*$//;
16660 }'
16661 fi
16662
16663 DEFS=-DHAVE_CONFIG_H
16664
16665
16666 : ${CONFIG_STATUS=./config.status}
16667 ac_clean_files_save=$ac_clean_files
16668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16671 cat >$CONFIG_STATUS <<_ACEOF
16672 #! $SHELL
16673 # Generated by $as_me.
16674 # Run this file to recreate the current configuration.
16675 # Compiler output produced by configure, useful for debugging
16676 # configure, is in config.log if it exists.
16677
16678 debug=false
16679 SHELL=\${CONFIG_SHELL-$SHELL}
16680 _ACEOF
16681
16682 cat >>$CONFIG_STATUS <<\_ACEOF
16683
16684 ## --------------------- ##
16685 ## M4sh Initialization.  ##
16686 ## --------------------- ##
16687
16688 # Be Bourne compatible
16689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16690   emulate sh
16691   NULLCMD=:
16692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16693   set -o posix
16694 fi
16695
16696 # NLS nuisances.
16697 # Support unset when possible.
16698 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16699   as_unset=unset
16700 else
16701   as_unset=false
16702 fi
16703
16704 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16705     { $as_unset LANG || test "${LANG+set}" != set; } ||
16706       { LANG=C; export LANG; }
16707 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16708     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16709       { LC_ALL=C; export LC_ALL; }
16710 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16711     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16712       { LC_TIME=C; export LC_TIME; }
16713 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16714     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16715       { LC_CTYPE=C; export LC_CTYPE; }
16716 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16717     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16718       { LANGUAGE=C; export LANGUAGE; }
16719 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16720     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16721       { LC_COLLATE=C; export LC_COLLATE; }
16722 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16723     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16724       { LC_NUMERIC=C; export LC_NUMERIC; }
16725 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16726     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16727       { LC_MESSAGES=C; export LC_MESSAGES; }
16728
16729
16730 # Name of the executable.
16731 as_me=`(basename "$0") 2>/dev/null ||
16732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16733          X"$0" : 'X\(//\)$' \| \
16734          X"$0" : 'X\(/\)$' \| \
16735          .     : '\(.\)' 2>/dev/null ||
16736 echo X/"$0" |
16737     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16738           /^X\/\(\/\/\)$/{ s//\1/; q; }
16739           /^X\/\(\/\).*/{ s//\1/; q; }
16740           s/.*/./; q'`
16741
16742 # PATH needs CR, and LINENO needs CR and PATH.
16743 # Avoid depending upon Character Ranges.
16744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16747 as_cr_digits='0123456789'
16748 as_cr_alnum=$as_cr_Letters$as_cr_digits
16749
16750 # The user is always right.
16751 if test "${PATH_SEPARATOR+set}" != set; then
16752   echo "#! /bin/sh" >conftest.sh
16753   echo  "exit 0"   >>conftest.sh
16754   chmod +x conftest.sh
16755   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16756     PATH_SEPARATOR=';'
16757   else
16758     PATH_SEPARATOR=:
16759   fi
16760   rm -f conftest.sh
16761 fi
16762
16763
16764   as_lineno_1=$LINENO
16765   as_lineno_2=$LINENO
16766   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16767   test "x$as_lineno_1" != "x$as_lineno_2" &&
16768   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16769   # Find who we are.  Look in the path if we contain no path at all
16770   # relative or not.
16771   case $0 in
16772     *[\\/]* ) as_myself=$0 ;;
16773     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16774 for as_dir in $PATH
16775 do
16776   IFS=$as_save_IFS
16777   test -z "$as_dir" && as_dir=.
16778   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16779 done
16780
16781        ;;
16782   esac
16783   # We did not find ourselves, most probably we were run as `sh COMMAND'
16784   # in which case we are not to be found in the path.
16785   if test "x$as_myself" = x; then
16786     as_myself=$0
16787   fi
16788   if test ! -f "$as_myself"; then
16789     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16790 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16791    { (exit 1); exit 1; }; }
16792   fi
16793   case $CONFIG_SHELL in
16794   '')
16795     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16797 do
16798   IFS=$as_save_IFS
16799   test -z "$as_dir" && as_dir=.
16800   for as_base in sh bash ksh sh5; do
16801          case $as_dir in
16802          /*)
16803            if ("$as_dir/$as_base" -c '
16804   as_lineno_1=$LINENO
16805   as_lineno_2=$LINENO
16806   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16807   test "x$as_lineno_1" != "x$as_lineno_2" &&
16808   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16809              CONFIG_SHELL=$as_dir/$as_base
16810              export CONFIG_SHELL
16811              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16812            fi;;
16813          esac
16814        done
16815 done
16816 ;;
16817   esac
16818
16819   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16820   # uniformly replaced by the line number.  The first 'sed' inserts a
16821   # line-number line before each line; the second 'sed' does the real
16822   # work.  The second script uses 'N' to pair each line-number line
16823   # with the numbered line, and appends trailing '-' during
16824   # substitution so that $LINENO is not a special case at line end.
16825   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16826   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16827   sed '=' <$as_myself |
16828     sed '
16829       N
16830       s,$,-,
16831       : loop
16832       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16833       t loop
16834       s,-$,,
16835       s,^['$as_cr_digits']*\n,,
16836     ' >$as_me.lineno &&
16837   chmod +x $as_me.lineno ||
16838     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16840    { (exit 1); exit 1; }; }
16841
16842   # Don't try to exec as it changes $[0], causing all sort of problems
16843   # (the dirname of $[0] is not the place where we might find the
16844   # original and so on.  Autoconf is especially sensible to this).
16845   . ./$as_me.lineno
16846   # Exit status is that of the last command.
16847   exit
16848 }
16849
16850
16851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16852   *c*,-n*) ECHO_N= ECHO_C='
16853 ' ECHO_T='      ' ;;
16854   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16855   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16856 esac
16857
16858 if expr a : '\(a\)' >/dev/null 2>&1; then
16859   as_expr=expr
16860 else
16861   as_expr=false
16862 fi
16863
16864 rm -f conf$$ conf$$.exe conf$$.file
16865 echo >conf$$.file
16866 if ln -s conf$$.file conf$$ 2>/dev/null; then
16867   # We could just check for DJGPP; but this test a) works b) is more generic
16868   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16869   if test -f conf$$.exe; then
16870     # Don't use ln at all; we don't have any links
16871     as_ln_s='cp -p'
16872   else
16873     as_ln_s='ln -s'
16874   fi
16875 elif ln conf$$.file conf$$ 2>/dev/null; then
16876   as_ln_s=ln
16877 else
16878   as_ln_s='cp -p'
16879 fi
16880 rm -f conf$$ conf$$.exe conf$$.file
16881
16882 as_executable_p="test -f"
16883
16884 # Sed expression to map a string onto a valid CPP name.
16885 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16886
16887 # Sed expression to map a string onto a valid variable name.
16888 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16889
16890
16891 # IFS
16892 # We need space, tab and new line, in precisely that order.
16893 as_nl='
16894 '
16895 IFS="   $as_nl"
16896
16897 # CDPATH.
16898 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16899
16900 exec 6>&1
16901
16902 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16903 # report actual input values of CONFIG_FILES etc. instead of their
16904 # values after options handling.  Logging --version etc. is OK.
16905 exec 5>>config.log
16906 {
16907   echo
16908   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16909 ## Running $as_me. ##
16910 _ASBOX
16911 } >&5
16912 cat >&5 <<_CSEOF
16913
16914 This file was extended by PostgreSQL $as_me 7.3devel, which was
16915 generated by GNU Autoconf 2.53.  Invocation command line was
16916
16917   CONFIG_FILES    = $CONFIG_FILES
16918   CONFIG_HEADERS  = $CONFIG_HEADERS
16919   CONFIG_LINKS    = $CONFIG_LINKS
16920   CONFIG_COMMANDS = $CONFIG_COMMANDS
16921   $ $0 $@
16922
16923 _CSEOF
16924 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16925 echo >&5
16926 _ACEOF
16927
16928 # Files that config.status was made for.
16929 if test -n "$ac_config_files"; then
16930   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16931 fi
16932
16933 if test -n "$ac_config_headers"; then
16934   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16935 fi
16936
16937 if test -n "$ac_config_links"; then
16938   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16939 fi
16940
16941 if test -n "$ac_config_commands"; then
16942   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16943 fi
16944
16945 cat >>$CONFIG_STATUS <<\_ACEOF
16946
16947 ac_cs_usage="\
16948 \`$as_me' instantiates files from templates according to the
16949 current configuration.
16950
16951 Usage: $0 [OPTIONS] [FILE]...
16952
16953   -h, --help       print this help, then exit
16954   -V, --version    print version number, then exit
16955   -d, --debug      don't remove temporary files
16956       --recheck    update $as_me by reconfiguring in the same conditions
16957   --file=FILE[:TEMPLATE]
16958                    instantiate the configuration file FILE
16959   --header=FILE[:TEMPLATE]
16960                    instantiate the configuration header FILE
16961
16962 Configuration files:
16963 $config_files
16964
16965 Configuration headers:
16966 $config_headers
16967
16968 Configuration links:
16969 $config_links
16970
16971 Report bugs to <bug-autoconf@gnu.org>."
16972 _ACEOF
16973
16974 cat >>$CONFIG_STATUS <<_ACEOF
16975 ac_cs_version="\\
16976 PostgreSQL config.status 7.3devel
16977 configured by $0, generated by GNU Autoconf 2.53,
16978   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16979
16980 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16981 Free Software Foundation, Inc.
16982 This config.status script is free software; the Free Software Foundation
16983 gives unlimited permission to copy, distribute and modify it."
16984 srcdir=$srcdir
16985 _ACEOF
16986
16987 cat >>$CONFIG_STATUS <<\_ACEOF
16988 # If no file are specified by the user, then we need to provide default
16989 # value.  By we need to know if files were specified by the user.
16990 ac_need_defaults=:
16991 while test $# != 0
16992 do
16993   case $1 in
16994   --*=*)
16995     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16996     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16997     shift
16998     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16999     shift
17000     ;;
17001   -*);;
17002   *) # This is not an option, so the user has probably given explicit
17003      # arguments.
17004      ac_need_defaults=false;;
17005   esac
17006
17007   case $1 in
17008   # Handling of the options.
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<_ACEOF
17011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17012     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17013     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17014 _ACEOF
17015 cat >>$CONFIG_STATUS <<\_ACEOF
17016   --version | --vers* | -V )
17017     echo "$ac_cs_version"; exit 0 ;;
17018   --he | --h)
17019     # Conflict between --help and --header
17020     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17021 Try \`$0 --help' for more information." >&5
17022 echo "$as_me: error: ambiguous option: $1
17023 Try \`$0 --help' for more information." >&2;}
17024    { (exit 1); exit 1; }; };;
17025   --help | --hel | -h )
17026     echo "$ac_cs_usage"; exit 0 ;;
17027   --debug | --d* | -d )
17028     debug=: ;;
17029   --file | --fil | --fi | --f )
17030     shift
17031     CONFIG_FILES="$CONFIG_FILES $1"
17032     ac_need_defaults=false;;
17033   --header | --heade | --head | --hea )
17034     shift
17035     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17036     ac_need_defaults=false;;
17037
17038   # This is an error.
17039   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17040 Try \`$0 --help' for more information." >&5
17041 echo "$as_me: error: unrecognized option: $1
17042 Try \`$0 --help' for more information." >&2;}
17043    { (exit 1); exit 1; }; } ;;
17044
17045   *) ac_config_targets="$ac_config_targets $1" ;;
17046
17047   esac
17048   shift
17049 done
17050
17051 _ACEOF
17052
17053
17054
17055
17056
17057 cat >>$CONFIG_STATUS <<\_ACEOF
17058 for ac_config_target in $ac_config_targets
17059 do
17060   case "$ac_config_target" in
17061   # Handling of arguments.
17062   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17063   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17064   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17065   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17066   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17067   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17068   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17069   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17070   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17071 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17072    { (exit 1); exit 1; }; };;
17073   esac
17074 done
17075
17076 # If the user did not use the arguments to specify the items to instantiate,
17077 # then the envvar interface is used.  Set only those that are not.
17078 # We use the long form for the default assignment because of an extremely
17079 # bizarre bug on SunOS 4.1.3.
17080 if $ac_need_defaults; then
17081   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17082   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17083   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17084 fi
17085
17086 # Create a temporary directory, and hook for its removal unless debugging.
17087 $debug ||
17088 {
17089   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17090   trap '{ (exit 1); exit 1; }' 1 2 13 15
17091 }
17092
17093 # Create a (secure) tmp directory for tmp files.
17094 : ${TMPDIR=/tmp}
17095 {
17096   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17097   test -n "$tmp" && test -d "$tmp"
17098 }  ||
17099 {
17100   tmp=$TMPDIR/cs$$-$RANDOM
17101   (umask 077 && mkdir $tmp)
17102 } ||
17103 {
17104    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17105    { (exit 1); exit 1; }
17106 }
17107
17108 _ACEOF
17109
17110 cat >>$CONFIG_STATUS <<_ACEOF
17111
17112 #
17113 # CONFIG_FILES section.
17114 #
17115
17116 # No need to generate the scripts if there are no CONFIG_FILES.
17117 # This happens for instance when ./config.status config.h
17118 if test -n "\$CONFIG_FILES"; then
17119   # Protect against being on the right side of a sed subst in config.status.
17120   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17121    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17122 s,@SHELL@,$SHELL,;t t
17123 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17124 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17125 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17126 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17127 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17128 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17129 s,@exec_prefix@,$exec_prefix,;t t
17130 s,@prefix@,$prefix,;t t
17131 s,@program_transform_name@,$program_transform_name,;t t
17132 s,@bindir@,$bindir,;t t
17133 s,@sbindir@,$sbindir,;t t
17134 s,@libexecdir@,$libexecdir,;t t
17135 s,@datadir@,$datadir,;t t
17136 s,@sysconfdir@,$sysconfdir,;t t
17137 s,@sharedstatedir@,$sharedstatedir,;t t
17138 s,@localstatedir@,$localstatedir,;t t
17139 s,@libdir@,$libdir,;t t
17140 s,@includedir@,$includedir,;t t
17141 s,@oldincludedir@,$oldincludedir,;t t
17142 s,@infodir@,$infodir,;t t
17143 s,@mandir@,$mandir,;t t
17144 s,@build_alias@,$build_alias,;t t
17145 s,@host_alias@,$host_alias,;t t
17146 s,@target_alias@,$target_alias,;t t
17147 s,@DEFS@,$DEFS,;t t
17148 s,@ECHO_C@,$ECHO_C,;t t
17149 s,@ECHO_N@,$ECHO_N,;t t
17150 s,@ECHO_T@,$ECHO_T,;t t
17151 s,@LIBS@,$LIBS,;t t
17152 s,@docdir@,$docdir,;t t
17153 s,@configure_args@,$configure_args,;t t
17154 s,@build@,$build,;t t
17155 s,@build_cpu@,$build_cpu,;t t
17156 s,@build_vendor@,$build_vendor,;t t
17157 s,@build_os@,$build_os,;t t
17158 s,@host@,$host,;t t
17159 s,@host_cpu@,$host_cpu,;t t
17160 s,@host_vendor@,$host_vendor,;t t
17161 s,@host_os@,$host_os,;t t
17162 s,@PORTNAME@,$PORTNAME,;t t
17163 s,@TAS@,$TAS,;t t
17164 s,@MULTIBYTE@,$MULTIBYTE,;t t
17165 s,@enable_nls@,$enable_nls,;t t
17166 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17167 s,@default_port@,$default_port,;t t
17168 s,@enable_shared@,$enable_shared,;t t
17169 s,@enable_rpath@,$enable_rpath,;t t
17170 s,@enable_debug@,$enable_debug,;t t
17171 s,@CC@,$CC,;t t
17172 s,@CFLAGS@,$CFLAGS,;t t
17173 s,@LDFLAGS@,$LDFLAGS,;t t
17174 s,@CPPFLAGS@,$CPPFLAGS,;t t
17175 s,@ac_ct_CC@,$ac_ct_CC,;t t
17176 s,@EXEEXT@,$EXEEXT,;t t
17177 s,@OBJEXT@,$OBJEXT,;t t
17178 s,@CPP@,$CPP,;t t
17179 s,@GCC@,$GCC,;t t
17180 s,@autodepend@,$autodepend,;t t
17181 s,@INCLUDES@,$INCLUDES,;t t
17182 s,@with_tcl@,$with_tcl,;t t
17183 s,@with_tk@,$with_tk,;t t
17184 s,@with_perl@,$with_perl,;t t
17185 s,@with_python@,$with_python,;t t
17186 s,@ANT@,$ANT,;t t
17187 s,@with_java@,$with_java,;t t
17188 s,@with_krb4@,$with_krb4,;t t
17189 s,@with_krb5@,$with_krb5,;t t
17190 s,@krb_srvtab@,$krb_srvtab,;t t
17191 s,@with_pam@,$with_pam,;t t
17192 s,@with_openssl@,$with_openssl,;t t
17193 s,@enable_odbc@,$enable_odbc,;t t
17194 s,@with_unixodbc@,$with_unixodbc,;t t
17195 s,@with_iodbc@,$with_iodbc,;t t
17196 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17197 s,@ELF_SYS@,$ELF_SYS,;t t
17198 s,@CXX@,$CXX,;t t
17199 s,@CXXFLAGS@,$CXXFLAGS,;t t
17200 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17201 s,@CXXCPP@,$CXXCPP,;t t
17202 s,@with_CXX@,$with_CXX,;t t
17203 s,@GXX@,$GXX,;t t
17204 s,@AWK@,$AWK,;t t
17205 s,@FLEX@,$FLEX,;t t
17206 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17207 s,@LN_S@,$LN_S,;t t
17208 s,@LD@,$LD,;t t
17209 s,@with_gnu_ld@,$with_gnu_ld,;t t
17210 s,@ld_R_works@,$ld_R_works,;t t
17211 s,@RANLIB@,$RANLIB,;t t
17212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17213 s,@LORDER@,$LORDER,;t t
17214 s,@TAR@,$TAR,;t t
17215 s,@STRIP@,$STRIP,;t t
17216 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17217 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17218 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17219 s,@YACC@,$YACC,;t t
17220 s,@YFLAGS@,$YFLAGS,;t t
17221 s,@WISH@,$WISH,;t t
17222 s,@PERL@,$PERL,;t t
17223 s,@perl_installsitearch@,$perl_installsitearch,;t t
17224 s,@perl_installsitelib@,$perl_installsitelib,;t t
17225 s,@perl_installman3dir@,$perl_installman3dir,;t t
17226 s,@PYTHON@,$PYTHON,;t t
17227 s,@python_version@,$python_version,;t t
17228 s,@python_prefix@,$python_prefix,;t t
17229 s,@python_execprefix@,$python_execprefix,;t t
17230 s,@python_configdir@,$python_configdir,;t t
17231 s,@python_moduledir@,$python_moduledir,;t t
17232 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17233 s,@python_includespec@,$python_includespec,;t t
17234 s,@python_libspec@,$python_libspec,;t t
17235 s,@MEMCMP@,$MEMCMP,;t t
17236 s,@SNPRINTF@,$SNPRINTF,;t t
17237 s,@ISINF@,$ISINF,;t t
17238 s,@GETRUSAGE@,$GETRUSAGE,;t t
17239 s,@SRANDOM@,$SRANDOM,;t t
17240 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17241 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17242 s,@INET_ATON@,$INET_ATON,;t t
17243 s,@STRERROR@,$STRERROR,;t t
17244 s,@STRDUP@,$STRDUP,;t t
17245 s,@STRTOL@,$STRTOL,;t t
17246 s,@STRTOUL@,$STRTOUL,;t t
17247 s,@STRCASECMP@,$STRCASECMP,;t t
17248 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17249 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17250 s,@MSGFMT@,$MSGFMT,;t t
17251 s,@MSGMERGE@,$MSGMERGE,;t t
17252 s,@XGETTEXT@,$XGETTEXT,;t t
17253 s,@localedir@,$localedir,;t t
17254 s,@TCLSH@,$TCLSH,;t t
17255 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17256 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17257 s,@NSGMLS@,$NSGMLS,;t t
17258 s,@JADE@,$JADE,;t t
17259 s,@have_docbook@,$have_docbook,;t t
17260 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17261 s,@SGMLSPL@,$SGMLSPL,;t t
17262 s,@vpath_build@,$vpath_build,;t t
17263 CEOF
17264
17265 _ACEOF
17266
17267   cat >>$CONFIG_STATUS <<\_ACEOF
17268   # Split the substitutions into bite-sized pieces for seds with
17269   # small command number limits, like on Digital OSF/1 and HP-UX.
17270   ac_max_sed_lines=48
17271   ac_sed_frag=1 # Number of current file.
17272   ac_beg=1 # First line for current file.
17273   ac_end=$ac_max_sed_lines # Line after last line for current file.
17274   ac_more_lines=:
17275   ac_sed_cmds=
17276   while $ac_more_lines; do
17277     if test $ac_beg -gt 1; then
17278       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17279     else
17280       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17281     fi
17282     if test ! -s $tmp/subs.frag; then
17283       ac_more_lines=false
17284     else
17285       # The purpose of the label and of the branching condition is to
17286       # speed up the sed processing (if there are no `@' at all, there
17287       # is no need to browse any of the substitutions).
17288       # These are the two extra sed commands mentioned above.
17289       (echo ':t
17290   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17291       if test -z "$ac_sed_cmds"; then
17292         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17293       else
17294         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17295       fi
17296       ac_sed_frag=`expr $ac_sed_frag + 1`
17297       ac_beg=$ac_end
17298       ac_end=`expr $ac_end + $ac_max_sed_lines`
17299     fi
17300   done
17301   if test -z "$ac_sed_cmds"; then
17302     ac_sed_cmds=cat
17303   fi
17304 fi # test -n "$CONFIG_FILES"
17305
17306 _ACEOF
17307 cat >>$CONFIG_STATUS <<\_ACEOF
17308 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17309   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17310   case $ac_file in
17311   - | *:- | *:-:* ) # input from stdin
17312         cat >$tmp/stdin
17313         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17314         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17315   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17316         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17317   * )   ac_file_in=$ac_file.in ;;
17318   esac
17319
17320   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17321   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323          X"$ac_file" : 'X\(//\)[^/]' \| \
17324          X"$ac_file" : 'X\(//\)$' \| \
17325          X"$ac_file" : 'X\(/\)' \| \
17326          .     : '\(.\)' 2>/dev/null ||
17327 echo X"$ac_file" |
17328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17330           /^X\(\/\/\)$/{ s//\1/; q; }
17331           /^X\(\/\).*/{ s//\1/; q; }
17332           s/.*/./; q'`
17333   { case "$ac_dir" in
17334   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17335   *)                      as_incr_dir=.;;
17336 esac
17337 as_dummy="$ac_dir"
17338 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17339   case $as_mkdir_dir in
17340     # Skip DOS drivespec
17341     ?:) as_incr_dir=$as_mkdir_dir ;;
17342     *)
17343       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17344       test -d "$as_incr_dir" ||
17345         mkdir "$as_incr_dir" ||
17346         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17347 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17348    { (exit 1); exit 1; }; }
17349     ;;
17350   esac
17351 done; }
17352
17353   ac_builddir=.
17354
17355 if test "$ac_dir" != .; then
17356   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17357   # A "../" for each directory in $ac_dir_suffix.
17358   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17359 else
17360   ac_dir_suffix= ac_top_builddir=
17361 fi
17362
17363 case $srcdir in
17364   .)  # No --srcdir option.  We are building in place.
17365     ac_srcdir=.
17366     if test -z "$ac_top_builddir"; then
17367        ac_top_srcdir=.
17368     else
17369        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17370     fi ;;
17371   [\\/]* | ?:[\\/]* )  # Absolute path.
17372     ac_srcdir=$srcdir$ac_dir_suffix;
17373     ac_top_srcdir=$srcdir ;;
17374   *) # Relative path.
17375     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17376     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17377 esac
17378 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17379 # absolute.
17380 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17381 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17382 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17383 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17384
17385
17386
17387   if test x"$ac_file" != x-; then
17388     { echo "$as_me:$LINENO: creating $ac_file" >&5
17389 echo "$as_me: creating $ac_file" >&6;}
17390     rm -f "$ac_file"
17391   fi
17392   # Let's still pretend it is `configure' which instantiates (i.e., don't
17393   # use $as_me), people would be surprised to read:
17394   #    /* config.h.  Generated by config.status.  */
17395   if test x"$ac_file" = x-; then
17396     configure_input=
17397   else
17398     configure_input="$ac_file.  "
17399   fi
17400   configure_input=$configure_input"Generated from `echo $ac_file_in |
17401                                      sed 's,.*/,,'` by configure."
17402
17403   # First look for the input files in the build tree, otherwise in the
17404   # src tree.
17405   ac_file_inputs=`IFS=:
17406     for f in $ac_file_in; do
17407       case $f in
17408       -) echo $tmp/stdin ;;
17409       [\\/$]*)
17410          # Absolute (can't be DOS-style, as IFS=:)
17411          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17412 echo "$as_me: error: cannot find input file: $f" >&2;}
17413    { (exit 1); exit 1; }; }
17414          echo $f;;
17415       *) # Relative
17416          if test -f "$f"; then
17417            # Build tree
17418            echo $f
17419          elif test -f "$srcdir/$f"; then
17420            # Source tree
17421            echo $srcdir/$f
17422          else
17423            # /dev/null tree
17424            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17425 echo "$as_me: error: cannot find input file: $f" >&2;}
17426    { (exit 1); exit 1; }; }
17427          fi;;
17428       esac
17429     done` || { (exit 1); exit 1; }
17430 _ACEOF
17431 cat >>$CONFIG_STATUS <<_ACEOF
17432   sed "$ac_vpsub
17433 $extrasub
17434 _ACEOF
17435 cat >>$CONFIG_STATUS <<\_ACEOF
17436 :t
17437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17438 s,@configure_input@,$configure_input,;t t
17439 s,@srcdir@,$ac_srcdir,;t t
17440 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17441 s,@top_srcdir@,$ac_top_srcdir,;t t
17442 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17443 s,@builddir@,$ac_builddir,;t t
17444 s,@abs_builddir@,$ac_abs_builddir,;t t
17445 s,@top_builddir@,$ac_top_builddir,;t t
17446 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17447 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17448   rm -f $tmp/stdin
17449   if test x"$ac_file" != x-; then
17450     mv $tmp/out $ac_file
17451   else
17452     cat $tmp/out
17453     rm -f $tmp/out
17454   fi
17455
17456 done
17457 _ACEOF
17458 cat >>$CONFIG_STATUS <<\_ACEOF
17459
17460 #
17461 # CONFIG_HEADER section.
17462 #
17463
17464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17466 #
17467 # ac_d sets the value in "#define NAME VALUE" lines.
17468 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17469 ac_dB='[        ].*$,\1#\2'
17470 ac_dC=' '
17471 ac_dD=',;t'
17472 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17473 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17474 ac_uB='$,\1#\2define\3'
17475 ac_uC=' '
17476 ac_uD=',;t'
17477
17478 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17479   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17480   case $ac_file in
17481   - | *:- | *:-:* ) # input from stdin
17482         cat >$tmp/stdin
17483         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17485   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17487   * )   ac_file_in=$ac_file.in ;;
17488   esac
17489
17490   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17491 echo "$as_me: creating $ac_file" >&6;}
17492
17493   # First look for the input files in the build tree, otherwise in the
17494   # src tree.
17495   ac_file_inputs=`IFS=:
17496     for f in $ac_file_in; do
17497       case $f in
17498       -) echo $tmp/stdin ;;
17499       [\\/$]*)
17500          # Absolute (can't be DOS-style, as IFS=:)
17501          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17502 echo "$as_me: error: cannot find input file: $f" >&2;}
17503    { (exit 1); exit 1; }; }
17504          echo $f;;
17505       *) # Relative
17506          if test -f "$f"; then
17507            # Build tree
17508            echo $f
17509          elif test -f "$srcdir/$f"; then
17510            # Source tree
17511            echo $srcdir/$f
17512          else
17513            # /dev/null tree
17514            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17515 echo "$as_me: error: cannot find input file: $f" >&2;}
17516    { (exit 1); exit 1; }; }
17517          fi;;
17518       esac
17519     done` || { (exit 1); exit 1; }
17520   # Remove the trailing spaces.
17521   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17522
17523 _ACEOF
17524
17525 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17526 # `conftest.undefs', that substitutes the proper values into
17527 # config.h.in to produce config.h.  The first handles `#define'
17528 # templates, and the second `#undef' templates.
17529 # And first: Protect against being on the right side of a sed subst in
17530 # config.status.  Protect against being in an unquoted here document
17531 # in config.status.
17532 rm -f conftest.defines conftest.undefs
17533 # Using a here document instead of a string reduces the quoting nightmare.
17534 # Putting comments in sed scripts is not portable.
17535 #
17536 # `end' is used to avoid that the second main sed command (meant for
17537 # 0-ary CPP macros) applies to n-ary macro definitions.
17538 # See the Autoconf documentation for `clear'.
17539 cat >confdef2sed.sed <<\_ACEOF
17540 s/[\\&,]/\\&/g
17541 s,[\\$`],\\&,g
17542 t clear
17543 : clear
17544 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17545 t end
17546 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17547 : end
17548 _ACEOF
17549 # If some macros were called several times there might be several times
17550 # the same #defines, which is useless.  Nevertheless, we may not want to
17551 # sort them, since we want the *last* AC-DEFINE to be honored.
17552 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17553 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17554 rm -f confdef2sed.sed
17555
17556 # This sed command replaces #undef with comments.  This is necessary, for
17557 # example, in the case of _POSIX_SOURCE, which is predefined and required
17558 # on some systems where configure will not decide to define it.
17559 cat >>conftest.undefs <<\_ACEOF
17560 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17561 _ACEOF
17562
17563 # Break up conftest.defines because some shells have a limit on the size
17564 # of here documents, and old seds have small limits too (100 cmds).
17565 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17566 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17567 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17568 echo '  :' >>$CONFIG_STATUS
17569 rm -f conftest.tail
17570 while grep . conftest.defines >/dev/null
17571 do
17572   # Write a limited-size here document to $tmp/defines.sed.
17573   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17574   # Speed up: don't consider the non `#define' lines.
17575   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17576   # Work around the forget-to-reset-the-flag bug.
17577   echo 't clr' >>$CONFIG_STATUS
17578   echo ': clr' >>$CONFIG_STATUS
17579   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17580   echo 'CEOF
17581   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17582   rm -f $tmp/in
17583   mv $tmp/out $tmp/in
17584 ' >>$CONFIG_STATUS
17585   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17586   rm -f conftest.defines
17587   mv conftest.tail conftest.defines
17588 done
17589 rm -f conftest.defines
17590 echo '  fi # egrep' >>$CONFIG_STATUS
17591 echo >>$CONFIG_STATUS
17592
17593 # Break up conftest.undefs because some shells have a limit on the size
17594 # of here documents, and old seds have small limits too (100 cmds).
17595 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17596 rm -f conftest.tail
17597 while grep . conftest.undefs >/dev/null
17598 do
17599   # Write a limited-size here document to $tmp/undefs.sed.
17600   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17601   # Speed up: don't consider the non `#undef'
17602   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17603   # Work around the forget-to-reset-the-flag bug.
17604   echo 't clr' >>$CONFIG_STATUS
17605   echo ': clr' >>$CONFIG_STATUS
17606   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17607   echo 'CEOF
17608   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17609   rm -f $tmp/in
17610   mv $tmp/out $tmp/in
17611 ' >>$CONFIG_STATUS
17612   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17613   rm -f conftest.undefs
17614   mv conftest.tail conftest.undefs
17615 done
17616 rm -f conftest.undefs
17617
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619   # Let's still pretend it is `configure' which instantiates (i.e., don't
17620   # use $as_me), people would be surprised to read:
17621   #    /* config.h.  Generated by config.status.  */
17622   if test x"$ac_file" = x-; then
17623     echo "/* Generated by configure.  */" >$tmp/config.h
17624   else
17625     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17626   fi
17627   cat $tmp/in >>$tmp/config.h
17628   rm -f $tmp/in
17629   if test x"$ac_file" != x-; then
17630     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17631       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17632 echo "$as_me: $ac_file is unchanged" >&6;}
17633     else
17634       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17636          X"$ac_file" : 'X\(//\)[^/]' \| \
17637          X"$ac_file" : 'X\(//\)$' \| \
17638          X"$ac_file" : 'X\(/\)' \| \
17639          .     : '\(.\)' 2>/dev/null ||
17640 echo X"$ac_file" |
17641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17643           /^X\(\/\/\)$/{ s//\1/; q; }
17644           /^X\(\/\).*/{ s//\1/; q; }
17645           s/.*/./; q'`
17646       { case "$ac_dir" in
17647   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17648   *)                      as_incr_dir=.;;
17649 esac
17650 as_dummy="$ac_dir"
17651 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17652   case $as_mkdir_dir in
17653     # Skip DOS drivespec
17654     ?:) as_incr_dir=$as_mkdir_dir ;;
17655     *)
17656       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17657       test -d "$as_incr_dir" ||
17658         mkdir "$as_incr_dir" ||
17659         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17660 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17661    { (exit 1); exit 1; }; }
17662     ;;
17663   esac
17664 done; }
17665
17666       rm -f $ac_file
17667       mv $tmp/config.h $ac_file
17668     fi
17669   else
17670     cat $tmp/config.h
17671     rm -f $tmp/config.h
17672   fi
17673   # Run the commands associated with the file.
17674   case $ac_file in
17675     src/include/pg_config.h )
17676 # Update timestamp for pg_config.h (see Makefile.global)
17677 echo >src/include/stamp-h
17678  ;;
17679   esac
17680 done
17681 _ACEOF
17682 cat >>$CONFIG_STATUS <<\_ACEOF
17683
17684 #
17685 # CONFIG_LINKS section.
17686 #
17687
17688 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17689   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17690   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17691
17692   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17693 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17694
17695   if test ! -r $srcdir/$ac_source; then
17696     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17697 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17698    { (exit 1); exit 1; }; }
17699   fi
17700   rm -f $ac_dest
17701
17702   # Make relative symlinks.
17703   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17704 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705          X"$ac_dest" : 'X\(//\)[^/]' \| \
17706          X"$ac_dest" : 'X\(//\)$' \| \
17707          X"$ac_dest" : 'X\(/\)' \| \
17708          .     : '\(.\)' 2>/dev/null ||
17709 echo X"$ac_dest" |
17710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712           /^X\(\/\/\)$/{ s//\1/; q; }
17713           /^X\(\/\).*/{ s//\1/; q; }
17714           s/.*/./; q'`
17715   { case "$ac_dest_dir" in
17716   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17717   *)                      as_incr_dir=.;;
17718 esac
17719 as_dummy="$ac_dest_dir"
17720 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17721   case $as_mkdir_dir in
17722     # Skip DOS drivespec
17723     ?:) as_incr_dir=$as_mkdir_dir ;;
17724     *)
17725       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17726       test -d "$as_incr_dir" ||
17727         mkdir "$as_incr_dir" ||
17728         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17729 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17730    { (exit 1); exit 1; }; }
17731     ;;
17732   esac
17733 done; }
17734
17735   ac_builddir=.
17736
17737 if test "$ac_dest_dir" != .; then
17738   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17739   # A "../" for each directory in $ac_dir_suffix.
17740   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17741 else
17742   ac_dir_suffix= ac_top_builddir=
17743 fi
17744
17745 case $srcdir in
17746   .)  # No --srcdir option.  We are building in place.
17747     ac_srcdir=.
17748     if test -z "$ac_top_builddir"; then
17749        ac_top_srcdir=.
17750     else
17751        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17752     fi ;;
17753   [\\/]* | ?:[\\/]* )  # Absolute path.
17754     ac_srcdir=$srcdir$ac_dir_suffix;
17755     ac_top_srcdir=$srcdir ;;
17756   *) # Relative path.
17757     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17758     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17759 esac
17760 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17761 # absolute.
17762 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17763 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17764 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17765 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17766
17767
17768   case $srcdir in
17769   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17770       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17771   esac
17772
17773   # Make a symlink if possible; otherwise try a hard link.
17774   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17775     ln $srcdir/$ac_source $ac_dest ||
17776     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17777 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17778    { (exit 1); exit 1; }; }
17779 done
17780 _ACEOF
17781
17782 cat >>$CONFIG_STATUS <<\_ACEOF
17783
17784 { (exit 0); exit 0; }
17785 _ACEOF
17786 chmod +x $CONFIG_STATUS
17787 ac_clean_files=$ac_clean_files_save
17788
17789
17790 # configure is writing to config.log, and then calls config.status.
17791 # config.status does its own redirection, appending to config.log.
17792 # Unfortunately, on DOS this fails, as config.log is still kept open
17793 # by configure, so config.status won't be able to write to it; its
17794 # output is simply discarded.  So we exec the FD to /dev/null,
17795 # effectively closing config.log, so it can be properly (re)opened and
17796 # appended to by config.status.  When coming back to configure, we
17797 # need to make the FD available again.
17798 if test "$no_create" != yes; then
17799   ac_cs_success=:
17800   exec 5>/dev/null
17801   $SHELL $CONFIG_STATUS || ac_cs_success=false
17802   exec 5>>config.log
17803   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17804   # would make configure fail if this is the last instruction.
17805   $ac_cs_success || { (exit 1); exit 1; }
17806 fi
17807