]> granicus.if.org Git - postgresql/blob - configure
Create an internal semaphore API that is not tied to SysV semaphores.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-integer-datetimes  enable 64-bit integer date/time support
853   --enable-recode         enable character set recode support
854   --enable-nls[=LANGUAGES]  enable Native Language Support
855   --disable-shared        do not build shared libraries
856   --disable-rpath         do not embed shared library search path in executables
857   --enable-debug          build with debugging symbols (-g)
858   --enable-depend         turn on automatic dependency tracking
859   --enable-cassert        enable assertion checks (for debugging)
860   --enable-odbc           build the ODBC driver package
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865
866   --with-includes=DIRS    look for additional header files in DIRS
867   --with-libraries=DIRS   look for additional libraries in DIRS
868   --with-libs=DIRS        alternative spelling of --with-libraries
869   --with-pgport=PORTNUM   change default port number 5432
870   --with-maxbackends=N    set default maximum number of connections 32
871   --with-tcl              build Tcl and Tk interfaces
872   --without-tk            do not build Tk interfaces if Tcl is enabled
873   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
874   --with-tkconfig=DIR     tkConfig.sh is in DIR
875   --with-perl             build Perl interface and PL/Perl
876   --with-python           build Python interface module
877   --with-java             build JDBC interface and Java tools
878   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
879   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
880   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
881   --with-pam              build with PAM support
882   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
883   --without-readline      do not use Readline
884   --without-zlib          do not use Zlib
885   --with-unixodbc         build ODBC driver for unixODBC
886   --with-iodbc            build ODBC driver for iODBC
887   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
888   --with-CXX              build C++ modules (libpq++)
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890
891 Some influential environment variables:
892   CC          C compiler command
893   CFLAGS      C compiler flags
894   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
895               nonstandard directory <lib dir>
896   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
897               headers in a nonstandard directory <include dir>
898   CPP         C preprocessor
899   CXX         C++ compiler command
900   CXXFLAGS    C++ compiler flags
901   CXXCPP      C++ preprocessor
902   DOCBOOKSTYLE
903               location of DocBook stylesheets
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 Report bugs to <pgsql-bugs@postgresql.org>.
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978
979 Copyright 2002 PostgreSQL Global Development Group
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1042 ac_configure_args=
1043 ac_sep=
1044 for ac_arg
1045 do
1046   case $ac_arg in
1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048   | --no-cr | --no-c | -n ) continue ;;
1049   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051     continue ;;
1052   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054   esac
1055   case " $ac_configure_args " in
1056     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1057     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058        ac_sep=" " ;;
1059   esac
1060   # Get rid of the leading space.
1061 done
1062
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log.  We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069   # Save into config.log some information that might help in debugging.
1070   {
1071     echo
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094     if test -s confdefs.h; then
1095       cat <<\_ASBOX
1096 ## ----------- ##
1097 ## confdefs.h. ##
1098 ## ----------- ##
1099 _ASBOX
1100       echo
1101       sed "/^$/d" confdefs.h
1102       echo
1103     fi
1104     test "$ac_signal" != 0 &&
1105       echo "$as_me: caught signal $ac_signal"
1106     echo "$as_me: exit $exit_status"
1107   } >&5
1108   rm -f core core.* *.core &&
1109   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110     exit $exit_status
1111      ' 0
1112 for ac_signal in 1 2 13 15; do
1113   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 _ACEOF
1147
1148
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152   if test "x$prefix" != xNONE; then
1153     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154   else
1155     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156   fi
1157 fi
1158 for ac_site_file in $CONFIG_SITE; do
1159   if test -r "$ac_site_file"; then
1160     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162     sed 's/^/| /' "$ac_site_file" >&5
1163     . "$ac_site_file"
1164   fi
1165 done
1166
1167 if test -r "$cache_file"; then
1168   # Some versions of bash will fail to source /dev/null (special
1169   # files actually), so we avoid doing that.
1170   if test -f "$cache_file"; then
1171     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173     case $cache_file in
1174       [\\/]* | ?:[\\/]* ) . $cache_file;;
1175       *)                      . ./$cache_file;;
1176     esac
1177   fi
1178 else
1179   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181   >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190   eval ac_new_set=\$ac_env_${ac_var}_set
1191   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192   eval ac_new_val="\$ac_env_${ac_var}_value"
1193   case $ac_old_set,$ac_new_set in
1194     set,)
1195       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197       ac_cache_corrupted=: ;;
1198     ,set)
1199       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201       ac_cache_corrupted=: ;;
1202     ,);;
1203     *)
1204       if test "x$ac_old_val" != "x$ac_new_val"; then
1205         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1208 echo "$as_me:   former value:  $ac_old_val" >&2;}
1209         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1210 echo "$as_me:   current value: $ac_new_val" >&2;}
1211         ac_cache_corrupted=:
1212       fi;;
1213   esac
1214   # Pass precious variables to config.status.
1215   if test "$ac_new_set" = set; then
1216     case $ac_new_val in
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     *) ac_arg=$ac_var=$ac_new_val ;;
1220     esac
1221     case " $ac_configure_args " in
1222       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1223       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224     esac
1225   fi
1226 done
1227 if $ac_cache_corrupted; then
1228   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232    { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273 ac_aux_dir=
1274 for ac_dir in config $srcdir/config; do
1275   if test -f $ac_dir/install-sh; then
1276     ac_aux_dir=$ac_dir
1277     ac_install_sh="$ac_aux_dir/install-sh -c"
1278     break
1279   elif test -f $ac_dir/install.sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install.sh -c"
1282     break
1283   elif test -f $ac_dir/shtool; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/shtool install -c"
1286     break
1287   fi
1288 done
1289 if test -z "$ac_aux_dir"; then
1290   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297
1298
1299 configure_args=$ac_configure_args
1300
1301
1302
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1305 _ACEOF
1306
1307
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312    { (exit 1); exit 1; }; }
1313
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321   ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325    { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329    { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1334 build=$ac_cv_build
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347   ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1356 host=$ac_cv_host
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362
1363 template=
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1366
1367
1368
1369
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372   withval="$with_template"
1373
1374   case $withval in
1375     yes)
1376       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378    { (exit 1); exit 1; }; }
1379       ;;
1380     no)
1381       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383    { (exit 1); exit 1; }; }
1384       ;;
1385     *)
1386
1387   case $withval in
1388     list)   echo; ls "$srcdir/src/template"; exit;;
1389     *)      if test -f "$srcdir/src/template/$with_template" ; then
1390               template=$withval
1391             else
1392               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394    { (exit 1); exit 1; }; }
1395             fi;;
1396   esac
1397
1398       ;;
1399   esac
1400
1401 else
1402
1403   # --with-template not given
1404
1405 case $host_os in
1406      aix*) template=aix ;;
1407     beos*) template=beos ;;
1408     bsdi*) template=bsdi ;;
1409   cygwin*) template=win ;;
1410   darwin*) template=darwin ;;
1411     dgux*) template=dgux ;;
1412  freebsd*) template=freebsd ;;
1413     hpux*) template=hpux ;;
1414     irix*) template=irix5 ;;
1415    linux*) template=linux ;;
1416   netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418  openbsd*) template=openbsd ;;
1419      osf*) template=osf ;;
1420      qnx*) template=qnx4 ;;
1421      sco*) template=sco ;;
1422  solaris*) template=solaris ;;
1423    sunos*) template=sunos4 ;;
1424  sysv4.2*)
1425         case $host_vendor in
1426           univel) template=univel ;;
1427         esac ;;
1428    sysv4*) template=svr4 ;;
1429    sysv5*) template=unixware ;;
1430   ultrix*) template=ultrix4 ;;
1431 esac
1432
1433   if test x"$template" = x"" ; then
1434     { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1439
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this.  Include the above 'checking host system type...'
1442 line.
1443 *******************************************************************
1444 " >&5
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1450
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this.  Include the above 'checking host system type...'
1453 line.
1454 *******************************************************************
1455 " >&2;}
1456    { (exit 1); exit 1; }; }
1457   fi
1458
1459
1460 fi;
1461
1462
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1465
1466 PORTNAME=$template
1467
1468
1469 # Pick right test-and-set (TAS) code.  Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1472 case $host in
1473   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1474   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1476   *)                need_tas=no;  tas_file=dummy.s ;;
1477 esac
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1479
1480
1481 if test "$need_tas" = yes ; then
1482   TAS=tas.o
1483 fi
1484
1485
1486
1487
1488 ##
1489 ## Command line options
1490 ##
1491
1492
1493 #
1494 # Add non-standard directories to the include path
1495 #
1496
1497
1498
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501   withval="$with_includes"
1502
1503   case $withval in
1504     yes)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     no)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     *)
1515
1516       ;;
1517   esac
1518
1519 fi;
1520
1521
1522
1523 #
1524 # Add non-standard directories to the library search path
1525 #
1526
1527
1528
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531   withval="$with_libraries"
1532
1533   case $withval in
1534     yes)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     no)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     *)
1545       LIBRARY_DIRS=$withval
1546       ;;
1547   esac
1548
1549 fi;
1550
1551
1552
1553
1554
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557   withval="$with_libs"
1558
1559   case $withval in
1560     yes)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     no)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     *)
1571       LIBRARY_DIRS=$withval
1572       ;;
1573   esac
1574
1575 fi;
1576
1577
1578
1579 #
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588   enableval="$enable_integer_datetimes"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_integer_datetimes=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1615
1616
1617 # Character set recode (--enable-recode)
1618 #
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625   enableval="$enable_recode"
1626
1627   case $enableval in
1628     yes)
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1632 _ACEOF
1633
1634       ;;
1635     no)
1636       :
1637       ;;
1638     *)
1639       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641    { (exit 1); exit 1; }; }
1642       ;;
1643   esac
1644
1645 else
1646   enable_recode=no
1647
1648 fi;
1649
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1652
1653
1654 #
1655 # Multibyte support
1656 #
1657 MULTIBYTE=SQL_ASCII
1658
1659 cat >>confdefs.h <<\_ACEOF
1660 #define MULTIBYTE 1
1661 _ACEOF
1662
1663
1664
1665 #
1666 # NLS
1667 #
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1670
1671
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674   enableval="$enable_nls"
1675
1676   case $enableval in
1677     yes)
1678       :
1679       ;;
1680     no)
1681       :
1682       ;;
1683     *)
1684       enable_nls=yes
1685 WANTED_LANGUAGES=$enableval
1686       ;;
1687   esac
1688
1689 else
1690   enable_nls=no
1691 fi;
1692
1693
1694 if test "$enable_nls" = yes; then
1695
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1698 _ACEOF
1699
1700 fi
1701
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1704
1705
1706
1707 #
1708 # Default port number (--with-pgport), default 5432
1709 #
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1712
1713
1714
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717   withval="$with_pgport"
1718
1719   case $withval in
1720     yes)
1721       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725     no)
1726       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728    { (exit 1); exit 1; }; }
1729       ;;
1730     *)
1731       default_port=$withval
1732       ;;
1733   esac
1734
1735 else
1736   default_port=5432
1737 fi;
1738
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1750 _ACEOF
1751
1752
1753
1754 #
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1756 #
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1759
1760
1761
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764   withval="$with_maxbackends"
1765
1766   case $withval in
1767     yes)
1768       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770    { (exit 1); exit 1; }; }
1771       ;;
1772     no)
1773       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777     *)
1778
1779       ;;
1780   esac
1781
1782 else
1783   with_maxbackends=32
1784 fi;
1785
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1791 _ACEOF
1792
1793
1794
1795 #
1796 # Option to disable shared libraries
1797 #
1798
1799
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802   enableval="$enable_shared"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_shared=yes
1820
1821 fi;
1822
1823
1824
1825 #
1826 # '-rpath'-like feature can be disabled
1827 #
1828
1829
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832   enableval="$enable_rpath"
1833
1834   case $enableval in
1835     yes)
1836       :
1837       ;;
1838     no)
1839       :
1840       ;;
1841     *)
1842       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844    { (exit 1); exit 1; }; }
1845       ;;
1846   esac
1847
1848 else
1849   enable_rpath=yes
1850
1851 fi;
1852
1853
1854
1855
1856 #
1857 # --enable-debug adds -g to compiler flags
1858 #
1859
1860
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863   enableval="$enable_debug"
1864
1865   case $enableval in
1866     yes)
1867       :
1868       ;;
1869     no)
1870       :
1871       ;;
1872     *)
1873       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875    { (exit 1); exit 1; }; }
1876       ;;
1877   esac
1878
1879 else
1880   enable_debug=no
1881
1882 fi;
1883
1884
1885
1886 #
1887 # C compiler
1888 #
1889
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1892 # variable.
1893
1894
1895
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1898   withval="$with_CC"
1899
1900   case $withval in
1901     yes)
1902       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904    { (exit 1); exit 1; }; }
1905       ;;
1906     no)
1907       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909    { (exit 1); exit 1; }; }
1910       ;;
1911     *)
1912       CC=$with_CC
1913       ;;
1914   esac
1915
1916 fi;
1917
1918
1919 case $template in
1920   aix) pgac_cc_list="gcc xlc";;
1921  irix) pgac_cc_list="cc";; # no gcc
1922     *) pgac_cc_list="gcc cc";;
1923 esac
1924
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 if test -n "$ac_tool_prefix"; then
1931   for ac_prog in $pgac_cc_list
1932   do
1933     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$CC"; then
1941   ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 CC=$ac_cv_prog_CC
1960 if test -n "$CC"; then
1961   echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968     test -n "$CC" && break
1969   done
1970 fi
1971 if test -z "$CC"; then
1972   ac_ct_CC=$CC
1973   for ac_prog in $pgac_cc_list
1974 do
1975   # Extract the first word of "$ac_prog", so it can be a program name with args.
1976 set dummy $ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$ac_ct_CC"; then
1983   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_ac_ct_CC="$ac_prog"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999 fi
2000 fi
2001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002 if test -n "$ac_ct_CC"; then
2003   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004 echo "${ECHO_T}$ac_ct_CC" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010   test -n "$ac_ct_CC" && break
2011 done
2012
2013   CC=$ac_ct_CC
2014 fi
2015
2016
2017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2018 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 # Provide some information about the compiler.
2022 echo "$as_me:$LINENO:" \
2023      "checking for C compiler version" >&5
2024 ac_compiler=`set X $ac_compile; echo $2`
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2026   (eval $ac_compiler --version </dev/null >&5) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2031   (eval $ac_compiler -v </dev/null >&5) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2036   (eval $ac_compiler -V </dev/null >&5) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); }
2040
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2044
2045 #ifdef F77_DUMMY_MAIN
2046 #  ifdef __cplusplus
2047      extern "C"
2048 #  endif
2049    int F77_DUMMY_MAIN() { return 1; }
2050 #endif
2051 int
2052 main ()
2053 {
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 ac_clean_files_save=$ac_clean_files
2060 ac_clean_files="$ac_clean_files a.out a.exe"
2061 # Try to create an executable without -o first, disregard a.out.
2062 # It will help us diagnose broken compilers, and finding out an intuition
2063 # of exeext.
2064 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2065 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2066 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2068   (eval $ac_link_default) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; then
2072   # Find the output, starting from the most likely.  This scheme is
2073 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2074 # resort.
2075
2076 # Be careful to initialize this variable, since it used to be cached.
2077 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2078 ac_cv_exeext=
2079 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2080                 ls a.out conftest 2>/dev/null;
2081                 ls a.* conftest.* 2>/dev/null`; do
2082   case $ac_file in
2083     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2084     a.out ) # We found the default executable, but exeext='' is most
2085             # certainly right.
2086             break;;
2087     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2089           export ac_cv_exeext
2090           break;;
2091     * ) break;;
2092   esac
2093 done
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2098 echo "$as_me: error: C compiler cannot create executables" >&2;}
2099    { (exit 77); exit 77; }; }
2100 fi
2101
2102 ac_exeext=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2105
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113   if { ac_try='./$ac_file'
2114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115   (eval $ac_try) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; }; then
2119     cross_compiling=no
2120   else
2121     if test "$cross_compiling" = maybe; then
2122         cross_compiling=yes
2123     else
2124         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'." >&5
2126 echo "$as_me: error: cannot run C compiled programs.
2127 If you meant to cross compile, use \`--host'." >&2;}
2128    { (exit 1); exit 1; }; }
2129     fi
2130   fi
2131 fi
2132 echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6
2134
2135 rm -f a.out a.exe conftest$ac_cv_exeext
2136 ac_clean_files=$ac_clean_files_save
2137 # Check the compiler produces executables we can run.  If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142 echo "${ECHO_T}$cross_compiling" >&6
2143
2144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147   (eval $ac_link) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; then
2151   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2153 # work properly (i.e., refer to `conftest.exe'), while it won't with
2154 # `rm'.
2155 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2156   case $ac_file in
2157     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2158     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159           export ac_cv_exeext
2160           break;;
2161     * ) break;;
2162   esac
2163 done
2164 else
2165   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170 rm -f conftest$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172 echo "${ECHO_T}$ac_cv_exeext" >&6
2173
2174 rm -f conftest.$ac_ext
2175 EXEEXT=$ac_cv_exeext
2176 ac_exeext=$EXEEXT
2177 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2179 if test "${ac_cv_objext+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   cat >conftest.$ac_ext <<_ACEOF
2183 #line $LINENO "configure"
2184 #include "confdefs.h"
2185
2186 #ifdef F77_DUMMY_MAIN
2187 #  ifdef __cplusplus
2188      extern "C"
2189 #  endif
2190    int F77_DUMMY_MAIN() { return 1; }
2191 #endif
2192 int
2193 main ()
2194 {
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 rm -f conftest.o conftest.obj
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202   (eval $ac_compile) 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }; then
2206   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2209     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210        break;;
2211   esac
2212 done
2213 else
2214   echo "$as_me: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222 fi
2223 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224 echo "${ECHO_T}$ac_cv_objext" >&6
2225 OBJEXT=$ac_cv_objext
2226 ac_objext=$OBJEXT
2227 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 #include "confdefs.h"
2235
2236 #ifdef F77_DUMMY_MAIN
2237 #  ifdef __cplusplus
2238      extern "C"
2239 #  endif
2240    int F77_DUMMY_MAIN() { return 1; }
2241 #endif
2242 int
2243 main ()
2244 {
2245 #ifndef __GNUC__
2246        choke me
2247 #endif
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255   (eval $ac_compile) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); } &&
2259          { ac_try='test -s conftest.$ac_objext'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265   ac_compiler_gnu=yes
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 ac_compiler_gnu=no
2270 fi
2271 rm -f conftest.$ac_objext conftest.$ac_ext
2272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273
2274 fi
2275 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277 GCC=`test $ac_compiler_gnu = yes && echo yes`
2278 ac_test_CFLAGS=${CFLAGS+set}
2279 ac_save_CFLAGS=$CFLAGS
2280 CFLAGS="-g"
2281 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283 if test "${ac_cv_prog_cc_g+set}" = set; then
2284   echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286   cat >conftest.$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2288 #include "confdefs.h"
2289
2290 #ifdef F77_DUMMY_MAIN
2291 #  ifdef __cplusplus
2292      extern "C"
2293 #  endif
2294    int F77_DUMMY_MAIN() { return 1; }
2295 #endif
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); } &&
2310          { ac_try='test -s conftest.$ac_objext'
2311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312   (eval $ac_try) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; }; then
2316   ac_cv_prog_cc_g=yes
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 ac_cv_prog_cc_g=no
2321 fi
2322 rm -f conftest.$ac_objext conftest.$ac_ext
2323 fi
2324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2326 if test "$ac_test_CFLAGS" = set; then
2327   CFLAGS=$ac_save_CFLAGS
2328 elif test $ac_cv_prog_cc_g = yes; then
2329   if test "$GCC" = yes; then
2330     CFLAGS="-g -O2"
2331   else
2332     CFLAGS="-g"
2333   fi
2334 else
2335   if test "$GCC" = yes; then
2336     CFLAGS="-O2"
2337   else
2338     CFLAGS=
2339   fi
2340 fi
2341 # Some people use a C++ compiler to compile C.  Since we use `exit',
2342 # in C++ we need to declare it.  In case someone uses the same compiler
2343 # for both compiling C and C++ we need to have the C++ compiler decide
2344 # the declaration of exit, since it's the most demanding environment.
2345 cat >conftest.$ac_ext <<_ACEOF
2346 #ifndef __cplusplus
2347   choke me
2348 #endif
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); } &&
2356          { ac_try='test -s conftest.$ac_objext'
2357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358   (eval $ac_try) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; }; then
2362   for ac_declaration in \
2363    ''\
2364    '#include <stdlib.h>' \
2365    'extern "C" void std::exit (int) throw (); using std::exit;' \
2366    'extern "C" void std::exit (int); using std::exit;' \
2367    'extern "C" void exit (int) throw ();' \
2368    'extern "C" void exit (int);' \
2369    'void exit (int);'
2370 do
2371   cat >conftest.$ac_ext <<_ACEOF
2372 #line $LINENO "configure"
2373 #include "confdefs.h"
2374 #include <stdlib.h>
2375 $ac_declaration
2376 #ifdef F77_DUMMY_MAIN
2377 #  ifdef __cplusplus
2378      extern "C"
2379 #  endif
2380    int F77_DUMMY_MAIN() { return 1; }
2381 #endif
2382 int
2383 main ()
2384 {
2385 exit (42);
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392   (eval $ac_compile) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402   :
2403 else
2404   echo "$as_me: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 continue
2407 fi
2408 rm -f conftest.$ac_objext conftest.$ac_ext
2409   cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2412 $ac_declaration
2413 #ifdef F77_DUMMY_MAIN
2414 #  ifdef __cplusplus
2415      extern "C"
2416 #  endif
2417    int F77_DUMMY_MAIN() { return 1; }
2418 #endif
2419 int
2420 main ()
2421 {
2422 exit (42);
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   break
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 fi
2444 rm -f conftest.$ac_objext conftest.$ac_ext
2445 done
2446 rm -f conftest*
2447 if test -n "$ac_declaration"; then
2448   echo '#ifdef __cplusplus' >>confdefs.h
2449   echo $ac_declaration      >>confdefs.h
2450   echo '#endif'             >>confdefs.h
2451 fi
2452
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 fi
2457 rm -f conftest.$ac_objext conftest.$ac_ext
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464 # Read the template
2465 . "$srcdir/src/template/$template" || exit
2466
2467 if test "$ac_env_CFLAGS_set" = set; then
2468   CFLAGS=$ac_env_CFLAGS_value
2469 fi
2470 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2471   CFLAGS="$CFLAGS -g"
2472 fi
2473 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2474 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2475 # Check if the compiler still works with the template settings
2476 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2477 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2478
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 #include "confdefs.h"
2482
2483 #ifdef F77_DUMMY_MAIN
2484 #  ifdef __cplusplus
2485      extern "C"
2486 #  endif
2487    int F77_DUMMY_MAIN() { return 1; }
2488 #endif
2489 int
2490 main ()
2491 {
2492 return 0;
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext conftest$ac_exeext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2499   (eval $ac_link) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); } &&
2503          { ac_try='test -s conftest$ac_exeext'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; }; then
2509   echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2517 echo "$as_me: error: cannot proceed" >&2;}
2518    { (exit 1); exit 1; }; }
2519 fi
2520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2521 ac_ext=c
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2528 # On Suns, sometimes $CPP names a directory.
2529 if test -n "$CPP" && test -d "$CPP"; then
2530   CPP=
2531 fi
2532 if test -z "$CPP"; then
2533   if test "${ac_cv_prog_CPP+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536       # Double quotes because CPP needs to be expanded
2537     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2538     do
2539       ac_preproc_ok=false
2540 for ac_c_preproc_warn_flag in '' yes
2541 do
2542   # Use a header file that comes with gcc, so configuring glibc
2543   # with a fresh cross-compiler works.
2544   # On the NeXT, cc -E runs the code through the compiler's parser,
2545   # not just through cpp. "Syntax error" is here to catch this case.
2546   cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2549 #include <assert.h>
2550                      Syntax error
2551 _ACEOF
2552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2554   ac_status=$?
2555   egrep -v '^ *\+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } >/dev/null; then
2560   if test -s conftest.err; then
2561     ac_cpp_err=$ac_c_preproc_warn_flag
2562   else
2563     ac_cpp_err=
2564   fi
2565 else
2566   ac_cpp_err=yes
2567 fi
2568 if test -z "$ac_cpp_err"; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572   cat conftest.$ac_ext >&5
2573   # Broken: fails on valid input.
2574 continue
2575 fi
2576 rm -f conftest.err conftest.$ac_ext
2577
2578   # OK, works on sane cases.  Now check whether non-existent headers
2579   # can be detected and how.
2580   cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2583 #include <ac_nonexistent.h>
2584 _ACEOF
2585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2587   ac_status=$?
2588   egrep -v '^ *\+' conftest.er1 >conftest.err
2589   rm -f conftest.er1
2590   cat conftest.err >&5
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } >/dev/null; then
2593   if test -s conftest.err; then
2594     ac_cpp_err=$ac_c_preproc_warn_flag
2595   else
2596     ac_cpp_err=
2597   fi
2598 else
2599   ac_cpp_err=yes
2600 fi
2601 if test -z "$ac_cpp_err"; then
2602   # Broken: success on invalid input.
2603 continue
2604 else
2605   echo "$as_me: failed program was:" >&5
2606   cat conftest.$ac_ext >&5
2607   # Passes both tests.
2608 ac_preproc_ok=:
2609 break
2610 fi
2611 rm -f conftest.err conftest.$ac_ext
2612
2613 done
2614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2615 rm -f conftest.err conftest.$ac_ext
2616 if $ac_preproc_ok; then
2617   break
2618 fi
2619
2620     done
2621     ac_cv_prog_CPP=$CPP
2622
2623 fi
2624   CPP=$ac_cv_prog_CPP
2625 else
2626   ac_cv_prog_CPP=$CPP
2627 fi
2628 echo "$as_me:$LINENO: result: $CPP" >&5
2629 echo "${ECHO_T}$CPP" >&6
2630 ac_preproc_ok=false
2631 for ac_c_preproc_warn_flag in '' yes
2632 do
2633   # Use a header file that comes with gcc, so configuring glibc
2634   # with a fresh cross-compiler works.
2635   # On the NeXT, cc -E runs the code through the compiler's parser,
2636   # not just through cpp. "Syntax error" is here to catch this case.
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 #include "confdefs.h"
2640 #include <assert.h>
2641                      Syntax error
2642 _ACEOF
2643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645   ac_status=$?
2646   egrep -v '^ *\+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } >/dev/null; then
2651   if test -s conftest.err; then
2652     ac_cpp_err=$ac_c_preproc_warn_flag
2653   else
2654     ac_cpp_err=
2655   fi
2656 else
2657   ac_cpp_err=yes
2658 fi
2659 if test -z "$ac_cpp_err"; then
2660   :
2661 else
2662   echo "$as_me: failed program was:" >&5
2663   cat conftest.$ac_ext >&5
2664   # Broken: fails on valid input.
2665 continue
2666 fi
2667 rm -f conftest.err conftest.$ac_ext
2668
2669   # OK, works on sane cases.  Now check whether non-existent headers
2670   # can be detected and how.
2671   cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2674 #include <ac_nonexistent.h>
2675 _ACEOF
2676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678   ac_status=$?
2679   egrep -v '^ *\+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } >/dev/null; then
2684   if test -s conftest.err; then
2685     ac_cpp_err=$ac_c_preproc_warn_flag
2686   else
2687     ac_cpp_err=
2688   fi
2689 else
2690   ac_cpp_err=yes
2691 fi
2692 if test -z "$ac_cpp_err"; then
2693   # Broken: success on invalid input.
2694 continue
2695 else
2696   echo "$as_me: failed program was:" >&5
2697   cat conftest.$ac_ext >&5
2698   # Passes both tests.
2699 ac_preproc_ok=:
2700 break
2701 fi
2702 rm -f conftest.err conftest.$ac_ext
2703
2704 done
2705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706 rm -f conftest.err conftest.$ac_ext
2707 if $ac_preproc_ok; then
2708   :
2709 else
2710   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2711 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2712    { (exit 1); exit 1; }; }
2713 fi
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723 # Create compiler version string
2724 if test x"$GCC" = x"yes" ; then
2725   cc_string="GCC `${CC} --version | sed q`"
2726 else
2727   cc_string=$CC
2728 fi
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2732 _ACEOF
2733
2734
2735
2736 #
2737 # Automatic dependency tracking
2738 #
2739
2740
2741 # Check whether --enable-depend or --disable-depend was given.
2742 if test "${enable_depend+set}" = set; then
2743   enableval="$enable_depend"
2744
2745   case $enableval in
2746     yes)
2747       autodepend=yes
2748       ;;
2749     no)
2750       :
2751       ;;
2752     *)
2753       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2754 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2755    { (exit 1); exit 1; }; }
2756       ;;
2757   esac
2758
2759 else
2760   enable_depend=no
2761
2762 fi;
2763
2764
2765
2766
2767 #
2768 # Enable assert checks
2769 #
2770
2771
2772 # Check whether --enable-cassert or --disable-cassert was given.
2773 if test "${enable_cassert+set}" = set; then
2774   enableval="$enable_cassert"
2775
2776   case $enableval in
2777     yes)
2778
2779 cat >>confdefs.h <<\_ACEOF
2780 #define USE_ASSERT_CHECKING 1
2781 _ACEOF
2782
2783       ;;
2784     no)
2785       :
2786       ;;
2787     *)
2788       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2789 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2790    { (exit 1); exit 1; }; }
2791       ;;
2792   esac
2793
2794 else
2795   enable_cassert=no
2796
2797 fi;
2798
2799
2800
2801 #
2802 # Include directories
2803 #
2804 ac_save_IFS=$IFS
2805 IFS="${IFS}:"
2806 # SRCH_INC comes from the template file
2807 for dir in $with_includes $SRCH_INC; do
2808   if test -d "$dir"; then
2809     INCLUDES="$INCLUDES -I$dir"
2810   else
2811     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2812 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2813   fi
2814 done
2815 IFS=$ac_save_IFS
2816
2817
2818
2819 #
2820 # Library directories
2821 #
2822 ac_save_IFS=$IFS
2823 IFS="${IFS}:"
2824 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2825 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2826   if test -d "$dir"; then
2827     LIBDIRS="$LIBDIRS -L$dir"
2828   else
2829     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2830 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2831   fi
2832 done
2833 IFS=$ac_save_IFS
2834
2835
2836 #
2837 # Tcl/Tk
2838 #
2839 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2840 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2841
2842
2843
2844 # Check whether --with-tcl or --without-tcl was given.
2845 if test "${with_tcl+set}" = set; then
2846   withval="$with_tcl"
2847
2848   case $withval in
2849     yes)
2850       :
2851       ;;
2852     no)
2853       :
2854       ;;
2855     *)
2856       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2857 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2858    { (exit 1); exit 1; }; }
2859       ;;
2860   esac
2861
2862 else
2863   with_tcl=no
2864
2865 fi;
2866
2867 echo "$as_me:$LINENO: result: $with_tcl" >&5
2868 echo "${ECHO_T}$with_tcl" >&6
2869
2870
2871 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2872 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2873 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2874 if test "$with_tcl" = yes; then
2875
2876
2877
2878 # Check whether --with-tk or --without-tk was given.
2879 if test "${with_tk+set}" = set; then
2880   withval="$with_tk"
2881
2882   case $withval in
2883     yes)
2884       :
2885       ;;
2886     no)
2887       :
2888       ;;
2889     *)
2890       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2891 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2892    { (exit 1); exit 1; }; }
2893       ;;
2894   esac
2895
2896 else
2897   with_tk=yes
2898
2899 fi;
2900
2901 else
2902   with_tk=no
2903 fi
2904 echo "$as_me:$LINENO: result: $with_tk" >&5
2905 echo "${ECHO_T}$with_tk" >&6
2906
2907
2908
2909 # We see if the path to the Tcl/Tk configuration scripts is specified.
2910 # This will override the use of tclsh to find the paths to search.
2911
2912
2913
2914
2915 # Check whether --with-tclconfig or --without-tclconfig was given.
2916 if test "${with_tclconfig+set}" = set; then
2917   withval="$with_tclconfig"
2918
2919   case $withval in
2920     yes)
2921       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2922 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2923    { (exit 1); exit 1; }; }
2924       ;;
2925     no)
2926       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2927 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2928    { (exit 1); exit 1; }; }
2929       ;;
2930     *)
2931
2932       ;;
2933   esac
2934
2935 fi;
2936
2937
2938 # We see if the path to the Tk configuration scripts is specified.
2939 # This will override the use of tclsh to find the paths to search.
2940
2941
2942
2943
2944 # Check whether --with-tkconfig or --without-tkconfig was given.
2945 if test "${with_tkconfig+set}" = set; then
2946   withval="$with_tkconfig"
2947
2948   case $withval in
2949     yes)
2950       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2951 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2952    { (exit 1); exit 1; }; }
2953       ;;
2954     no)
2955       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2956 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2957    { (exit 1); exit 1; }; }
2958       ;;
2959     *)
2960
2961       ;;
2962   esac
2963
2964 fi;
2965
2966
2967 #
2968 # Optionally build Perl modules (Pg.pm and PL/Perl)
2969 #
2970 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2971 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2972
2973
2974
2975 # Check whether --with-perl or --without-perl was given.
2976 if test "${with_perl+set}" = set; then
2977   withval="$with_perl"
2978
2979   case $withval in
2980     yes)
2981       :
2982       ;;
2983     no)
2984       :
2985       ;;
2986     *)
2987       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2988 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2989    { (exit 1); exit 1; }; }
2990       ;;
2991   esac
2992
2993 else
2994   with_perl=no
2995
2996 fi;
2997
2998 echo "$as_me:$LINENO: result: $with_perl" >&5
2999 echo "${ECHO_T}$with_perl" >&6
3000
3001
3002 #
3003 # Optionally build Python interface module
3004 #
3005 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3006 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3007
3008
3009
3010 # Check whether --with-python or --without-python was given.
3011 if test "${with_python+set}" = set; then
3012   withval="$with_python"
3013
3014   case $withval in
3015     yes)
3016       :
3017       ;;
3018     no)
3019       :
3020       ;;
3021     *)
3022       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3023 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3024    { (exit 1); exit 1; }; }
3025       ;;
3026   esac
3027
3028 else
3029   with_python=no
3030
3031 fi;
3032
3033 echo "$as_me:$LINENO: result: $with_python" >&5
3034 echo "${ECHO_T}$with_python" >&6
3035
3036
3037 #
3038 # Optionally build the Java/JDBC tools
3039 #
3040 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3041 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3042
3043
3044
3045 # Check whether --with-java or --without-java was given.
3046 if test "${with_java+set}" = set; then
3047   withval="$with_java"
3048
3049   case $withval in
3050     yes)
3051       echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3053
3054   for ac_prog in jakarta-ant ant ant.sh ant.bat
3055 do
3056   # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_path_ANT+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   case $ANT in
3064   [\\/]* | ?:[\\/]*)
3065   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3066   ;;
3067   *)
3068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073   for ac_exec_ext in '' $ac_executable_extensions; do
3074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080 done
3081
3082   ;;
3083 esac
3084 fi
3085 ANT=$ac_cv_path_ANT
3086
3087 if test -n "$ANT"; then
3088   echo "$as_me:$LINENO: result: $ANT" >&5
3089 echo "${ECHO_T}$ANT" >&6
3090 else
3091   echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093 fi
3094
3095   test -n "$ANT" && break
3096 done
3097
3098
3099   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3100 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3101 if test "${pgac_cv_prog_ant_works+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104
3105     cat > conftest.java << EOF
3106 public class conftest {
3107     int testmethod(int a, int b) {
3108         return a + b;
3109     }
3110 }
3111 EOF
3112
3113     cat > conftest.xml << EOF
3114 <project name="conftest" default="conftest">
3115  <target name="conftest">
3116   <javac srcdir="." includes="conftest.java">
3117   </javac>
3118  </target>
3119 </project>
3120 EOF
3121
3122     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3123     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3124   (eval $pgac_cmd) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128     pgac_save_status=$?
3129     if test $? = 0 && test -f ./conftest.class ; then
3130       pgac_cv_prog_ant_works=yes
3131     else
3132       echo "configure: failed java program was:" >&5
3133       cat conftest.java >&5
3134       echo "configure: failed build file was:" >&5
3135       cat conftest.xml >&5
3136       pgac_cv_prog_ant_works=no
3137     fi
3138
3139     rm -f conftest* core core.* *.core
3140
3141 fi
3142 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3143 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3144
3145   if test "$pgac_cv_prog_ant_works" != yes; then
3146     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3147 echo "$as_me: error: ant does not work" >&2;}
3148    { (exit 1); exit 1; }; }
3149   fi
3150
3151
3152 if test -z "$ANT"; then
3153   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3154 echo "$as_me: error: Ant is required to build Java components" >&2;}
3155    { (exit 1); exit 1; }; }
3156 fi
3157       ;;
3158     no)
3159       echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161       ;;
3162     *)
3163       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3164 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3165    { (exit 1); exit 1; }; }
3166       ;;
3167   esac
3168
3169 else
3170   with_java=no
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3173 fi;
3174
3175
3176
3177
3178 #
3179 # Kerberos 4
3180 #
3181 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3182 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3183
3184
3185
3186 # Check whether --with-krb4 or --without-krb4 was given.
3187 if test "${with_krb4+set}" = set; then
3188   withval="$with_krb4"
3189
3190   case $withval in
3191     yes)
3192       krb4_prefix=/usr/athena
3193       ;;
3194     no)
3195       :
3196       ;;
3197     *)
3198       with_krb4=yes
3199 krb4_prefix=$withval
3200       ;;
3201   esac
3202
3203 else
3204   with_krb4=no
3205 fi;
3206
3207
3208 if test "$with_krb4" = yes; then
3209
3210   echo "$as_me:$LINENO: result: yes" >&5
3211 echo "${ECHO_T}yes" >&6
3212
3213 cat >>confdefs.h <<\_ACEOF
3214 #define KRB4 1
3215 _ACEOF
3216
3217
3218   if test -d "$krb4_prefix/include"; then
3219     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3220   fi
3221   if test -d "$krb4_prefix/lib"; then
3222     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3223   fi
3224
3225   krb_srvtab="/etc/srvtab"
3226
3227 else
3228   echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3230 fi
3231
3232
3233
3234
3235
3236 #
3237 # Kerberos 5
3238 #
3239 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3240 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3241
3242
3243
3244 # Check whether --with-krb5 or --without-krb5 was given.
3245 if test "${with_krb5+set}" = set; then
3246   withval="$with_krb5"
3247
3248   case $withval in
3249     yes)
3250       krb5_prefix=/usr/athena
3251       ;;
3252     no)
3253       :
3254       ;;
3255     *)
3256       with_krb5=yes
3257 krb5_prefix=$withval
3258       ;;
3259   esac
3260
3261 else
3262   with_krb5=no
3263 fi;
3264
3265
3266 if test "$with_krb5" = yes; then
3267
3268   echo "$as_me:$LINENO: result: yes" >&5
3269 echo "${ECHO_T}yes" >&6
3270
3271 cat >>confdefs.h <<\_ACEOF
3272 #define KRB5 1
3273 _ACEOF
3274
3275
3276   if test -d "$krb5_prefix/include"; then
3277     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3278   fi
3279   if test -d "$krb5_prefix/lib"; then
3280     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3281   fi
3282
3283   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3284
3285 else
3286   echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3288 fi
3289
3290
3291
3292
3293
3294 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3295 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3296   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3297 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3298    { (exit 1); exit 1; }; }
3299 fi
3300
3301
3302
3303
3304 #
3305 # Kerberos configuration parameters
3306 #
3307
3308
3309
3310 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3311 if test "${with_krb_srvnam+set}" = set; then
3312   withval="$with_krb_srvnam"
3313
3314   case $withval in
3315     yes)
3316       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3317 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3318    { (exit 1); exit 1; }; }
3319       ;;
3320     no)
3321       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3322 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3323    { (exit 1); exit 1; }; }
3324       ;;
3325     *)
3326
3327       ;;
3328   esac
3329
3330 else
3331   with_krb_srvnam="postgres"
3332 fi;
3333
3334
3335 cat >>confdefs.h <<_ACEOF
3336 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3337 _ACEOF
3338
3339
3340
3341 #
3342 # PAM
3343 #
3344 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3345 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3346
3347
3348
3349 # Check whether --with-pam or --without-pam was given.
3350 if test "${with_pam+set}" = set; then
3351   withval="$with_pam"
3352
3353   case $withval in
3354     yes)
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define USE_PAM 1
3358 _ACEOF
3359
3360       ;;
3361     no)
3362       :
3363       ;;
3364     *)
3365       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3366 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3367    { (exit 1); exit 1; }; }
3368       ;;
3369   esac
3370
3371 else
3372   with_pam=no
3373
3374 fi;
3375
3376 echo "$as_me:$LINENO: result: $with_pam" >&5
3377 echo "${ECHO_T}$with_pam" >&6
3378
3379
3380
3381 #
3382 # OpenSSL
3383 #
3384
3385
3386
3387 # Check whether --with-openssl or --without-openssl was given.
3388 if test "${with_openssl+set}" = set; then
3389   withval="$with_openssl"
3390
3391   case $withval in
3392     yes)
3393       openssl_prefix=/usr/local/ssl
3394       ;;
3395     no)
3396       :
3397       ;;
3398     *)
3399       with_openssl=yes
3400 openssl_prefix=$withval
3401       ;;
3402   esac
3403
3404 else
3405   with_openssl=no
3406 fi;
3407
3408
3409 if test "$with_openssl" = yes; then
3410
3411   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3412 echo "${ECHO_T}building with OpenSSL support" >&6
3413
3414 cat >>confdefs.h <<\_ACEOF
3415 #define USE_SSL 1
3416 _ACEOF
3417
3418
3419   if test -d "${openssl_prefix}/include" ; then
3420     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3421   fi
3422   if test -d "${openssl_prefix}/lib" ; then
3423     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3424   fi
3425
3426 fi
3427
3428
3429
3430
3431
3432 #
3433 # Readline
3434 #
3435
3436
3437
3438 # Check whether --with-readline or --without-readline was given.
3439 if test "${with_readline+set}" = set; then
3440   withval="$with_readline"
3441
3442   case $withval in
3443     yes)
3444       :
3445       ;;
3446     no)
3447       :
3448       ;;
3449     *)
3450       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3451 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3452    { (exit 1); exit 1; }; }
3453       ;;
3454   esac
3455
3456 else
3457   with_readline=yes
3458
3459 fi;
3460
3461
3462 #
3463 # Zlib
3464 #
3465
3466
3467
3468 # Check whether --with-zlib or --without-zlib was given.
3469 if test "${with_zlib+set}" = set; then
3470   withval="$with_zlib"
3471
3472   case $withval in
3473     yes)
3474       :
3475       ;;
3476     no)
3477       :
3478       ;;
3479     *)
3480       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3481 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3482    { (exit 1); exit 1; }; }
3483       ;;
3484   esac
3485
3486 else
3487   with_zlib=yes
3488
3489 fi;
3490
3491
3492
3493
3494 #
3495 # Optionally enable the building of the ODBC driver
3496 #
3497
3498 # Old option name
3499 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3500   enable_odbc=$with_odbc
3501 fi
3502
3503 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3504 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3505
3506
3507 # Check whether --enable-odbc or --disable-odbc was given.
3508 if test "${enable_odbc+set}" = set; then
3509   enableval="$enable_odbc"
3510
3511   case $enableval in
3512     yes)
3513       :
3514       ;;
3515     no)
3516       :
3517       ;;
3518     *)
3519       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3520 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3521    { (exit 1); exit 1; }; }
3522       ;;
3523   esac
3524
3525 else
3526   enable_odbc=no
3527
3528 fi;
3529
3530
3531
3532
3533 # Check whether --with-unixodbc or --without-unixodbc was given.
3534 if test "${with_unixodbc+set}" = set; then
3535   withval="$with_unixodbc"
3536
3537   case $withval in
3538     yes)
3539       :
3540       ;;
3541     no)
3542       :
3543       ;;
3544     *)
3545       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3546 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3547    { (exit 1); exit 1; }; }
3548       ;;
3549   esac
3550
3551 else
3552   with_unixodbc=no
3553
3554 fi;
3555
3556
3557
3558
3559 # Check whether --with-iodbc or --without-iodbc was given.
3560 if test "${with_iodbc+set}" = set; then
3561   withval="$with_iodbc"
3562
3563   case $withval in
3564     yes)
3565       :
3566       ;;
3567     no)
3568       :
3569       ;;
3570     *)
3571       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3572 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3573    { (exit 1); exit 1; }; }
3574       ;;
3575   esac
3576
3577 else
3578   with_iodbc=no
3579
3580 fi;
3581
3582 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3583   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3584 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3585    { (exit 1); exit 1; }; }
3586 fi
3587 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3588   enable_odbc=yes
3589 fi
3590 case $enable_odbc:$with_unixodbc:$with_iodbc in
3591   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3592 echo "${ECHO_T}yes (stand-alone)" >&6;;
3593   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3594 echo "${ECHO_T}yes (unixODBC)" >&6
3595
3596 cat >>confdefs.h <<\_ACEOF
3597 #define WITH_UNIXODBC 1
3598 _ACEOF
3599
3600                 ;;
3601   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3602 echo "${ECHO_T}yes (iODBC)" >&6
3603
3604 cat >>confdefs.h <<\_ACEOF
3605 #define WITH_IODBC 1
3606 _ACEOF
3607
3608                 ;;
3609   no:*)         echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6;;
3611 esac
3612
3613
3614
3615
3616
3617 # Allow for overriding the default location of the odbcinst.ini
3618 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3619
3620
3621
3622 # Check whether --with-odbcinst or --without-odbcinst was given.
3623 if test "${with_odbcinst+set}" = set; then
3624   withval="$with_odbcinst"
3625
3626   case $withval in
3627     yes)
3628       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3629 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3630    { (exit 1); exit 1; }; }
3631       ;;
3632     no)
3633       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3634 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3635    { (exit 1); exit 1; }; }
3636       ;;
3637     *)
3638       odbcinst_ini_dir=$withval
3639       ;;
3640   esac
3641
3642 else
3643   odbcinst_ini_dir="\${sysconfdir}"
3644 fi;
3645
3646
3647
3648
3649
3650 # Assume system is ELF if it predefines __ELF__ as 1,
3651 # otherwise believe host_os based default.
3652 case $host_os in
3653     freebsd1*|freebsd2*) elf=no;;
3654     freebsd3*|freebsd4*) elf=yes;;
3655 esac
3656
3657
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3661 #if __ELF__
3662   yes
3663 #endif
3664
3665 _ACEOF
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667   egrep "yes" >/dev/null 2>&1; then
3668   ELF_SYS=true
3669 else
3670   if test "X$elf" = "Xyes" ; then
3671   ELF_SYS=true
3672 else
3673   ELF_SYS=
3674 fi
3675 fi
3676 rm -f conftest*
3677
3678
3679
3680
3681
3682 #
3683 # Optionally build C++ code (i.e., libpq++)
3684 #
3685 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3686 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3687
3688
3689
3690 # Check whether --with-CXX or --without-CXX was given.
3691 if test "${with_CXX+set}" = set; then
3692   withval="$with_CXX"
3693
3694   case $withval in
3695     yes)
3696       :
3697       ;;
3698     no)
3699       :
3700       ;;
3701     *)
3702       with_CXX=yes
3703 CXX=$withval
3704       ;;
3705   esac
3706
3707 else
3708   with_CXX=no
3709 fi;
3710
3711
3712 if test "$with_CXX" = yes; then
3713
3714   echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716
3717   # If the user has specified CXXFLAGS in the environment, leave it
3718   # alone, else use a default.
3719
3720   ac_ext=cc
3721 ac_cpp='$CXXCPP $CPPFLAGS'
3722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725 if test -n "$ac_tool_prefix"; then
3726   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3727   do
3728     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_CXX+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if test -n "$CXX"; then
3736   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741   IFS=$as_save_IFS
3742   test -z "$as_dir" && as_dir=.
3743   for ac_exec_ext in '' $ac_executable_extensions; do
3744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747     break 2
3748   fi
3749 done
3750 done
3751
3752 fi
3753 fi
3754 CXX=$ac_cv_prog_CXX
3755 if test -n "$CXX"; then
3756   echo "$as_me:$LINENO: result: $CXX" >&5
3757 echo "${ECHO_T}$CXX" >&6
3758 else
3759   echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763     test -n "$CXX" && break
3764   done
3765 fi
3766 if test -z "$CXX"; then
3767   ac_ct_CXX=$CXX
3768   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3769 do
3770   # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   if test -n "$ac_ct_CXX"; then
3778   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787     ac_cv_prog_ac_ct_CXX="$ac_prog"
3788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792 done
3793
3794 fi
3795 fi
3796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3797 if test -n "$ac_ct_CXX"; then
3798   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3799 echo "${ECHO_T}$ac_ct_CXX" >&6
3800 else
3801   echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3803 fi
3804
3805   test -n "$ac_ct_CXX" && break
3806 done
3807 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3808
3809   CXX=$ac_ct_CXX
3810 fi
3811
3812
3813 # Provide some information about the compiler.
3814 echo "$as_me:$LINENO:" \
3815      "checking for C++ compiler version" >&5
3816 ac_compiler=`set X $ac_compile; echo $2`
3817 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3818   (eval $ac_compiler --version </dev/null >&5) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }
3822 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3823   (eval $ac_compiler -v </dev/null >&5) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }
3827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3828   (eval $ac_compiler -V </dev/null >&5) 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }
3832
3833 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 #line $LINENO "configure"
3840 #include "confdefs.h"
3841
3842 #ifdef F77_DUMMY_MAIN
3843 #  ifdef __cplusplus
3844      extern "C"
3845 #  endif
3846    int F77_DUMMY_MAIN() { return 1; }
3847 #endif
3848 int
3849 main ()
3850 {
3851 #ifndef __GNUC__
3852        choke me
3853 #endif
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>&5
3862   ac_status=$?
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -s conftest.$ac_objext'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   ac_compiler_gnu=yes
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 ac_compiler_gnu=no
3876 fi
3877 rm -f conftest.$ac_objext conftest.$ac_ext
3878 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3879
3880 fi
3881 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3883 GXX=`test $ac_compiler_gnu = yes && echo yes`
3884 ac_test_CXXFLAGS=${CXXFLAGS+set}
3885 ac_save_CXXFLAGS=$CXXFLAGS
3886 CXXFLAGS="-g"
3887 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3888 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3889 if test "${ac_cv_prog_cxx_g+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   cat >conftest.$ac_ext <<_ACEOF
3893 #line $LINENO "configure"
3894 #include "confdefs.h"
3895
3896 #ifdef F77_DUMMY_MAIN
3897 #  ifdef __cplusplus
3898      extern "C"
3899 #  endif
3900    int F77_DUMMY_MAIN() { return 1; }
3901 #endif
3902 int
3903 main ()
3904 {
3905
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912   (eval $ac_compile) 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } &&
3916          { ac_try='test -s conftest.$ac_objext'
3917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918   (eval $ac_try) 2>&5
3919   ac_status=$?
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); }; }; then
3922   ac_cv_prog_cxx_g=yes
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 ac_cv_prog_cxx_g=no
3927 fi
3928 rm -f conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3931 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3932 if test "$ac_test_CXXFLAGS" = set; then
3933   CXXFLAGS=$ac_save_CXXFLAGS
3934 elif test $ac_cv_prog_cxx_g = yes; then
3935   if test "$GXX" = yes; then
3936     CXXFLAGS="-g -O2"
3937   else
3938     CXXFLAGS="-g"
3939   fi
3940 else
3941   if test "$GXX" = yes; then
3942     CXXFLAGS="-O2"
3943   else
3944     CXXFLAGS=
3945   fi
3946 fi
3947 for ac_declaration in \
3948    ''\
3949    '#include <stdlib.h>' \
3950    'extern "C" void std::exit (int) throw (); using std::exit;' \
3951    'extern "C" void std::exit (int); using std::exit;' \
3952    'extern "C" void exit (int) throw ();' \
3953    'extern "C" void exit (int);' \
3954    'void exit (int);'
3955 do
3956   cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 #include "confdefs.h"
3959 #include <stdlib.h>
3960 $ac_declaration
3961 #ifdef F77_DUMMY_MAIN
3962 #  ifdef __cplusplus
3963      extern "C"
3964 #  endif
3965    int F77_DUMMY_MAIN() { return 1; }
3966 #endif
3967 int
3968 main ()
3969 {
3970 exit (42);
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977   (eval $ac_compile) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } &&
3981          { ac_try='test -s conftest.$ac_objext'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; }; then
3987   :
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3991 continue
3992 fi
3993 rm -f conftest.$ac_objext conftest.$ac_ext
3994   cat >conftest.$ac_ext <<_ACEOF
3995 #line $LINENO "configure"
3996 #include "confdefs.h"
3997 $ac_declaration
3998 #ifdef F77_DUMMY_MAIN
3999 #  ifdef __cplusplus
4000      extern "C"
4001 #  endif
4002    int F77_DUMMY_MAIN() { return 1; }
4003 #endif
4004 int
4005 main ()
4006 {
4007 exit (42);
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014   (eval $ac_compile) 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } &&
4018          { ac_try='test -s conftest.$ac_objext'
4019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020   (eval $ac_try) 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }; }; then
4024   break
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 fi
4029 rm -f conftest.$ac_objext conftest.$ac_ext
4030 done
4031 rm -f conftest*
4032 if test -n "$ac_declaration"; then
4033   echo '#ifdef __cplusplus' >>confdefs.h
4034   echo $ac_declaration      >>confdefs.h
4035   echo '#endif'             >>confdefs.h
4036 fi
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044   if test "$ac_env_CXXFLAGS" != set; then
4045     if test "$GXX" = yes; then
4046       CXXFLAGS=-O2
4047     else
4048       case $template in
4049         osf)            CXXFLAGS='-O4 -Olimit 2000' ;;
4050         unixware)       CXXFLAGS='-O' ;;
4051         *)              CXXFLAGS= ;;
4052       esac
4053     fi
4054   fi
4055   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056     CXXFLAGS="$CXXFLAGS -g"
4057   fi
4058   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4060
4061   ac_ext=cc
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072       # Double quotes because CXXCPP needs to be expanded
4073     for CXXCPP in "$CXX -E" "/lib/cpp"
4074     do
4075       ac_preproc_ok=false
4076 for ac_cxx_preproc_warn_flag in '' yes
4077 do
4078   # Use a header file that comes with gcc, so configuring glibc
4079   # with a fresh cross-compiler works.
4080   # On the NeXT, cc -E runs the code through the compiler's parser,
4081   # not just through cpp. "Syntax error" is here to catch this case.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 #include <assert.h>
4086                      Syntax error
4087 _ACEOF
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090   ac_status=$?
4091   egrep -v '^ *\+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } >/dev/null; then
4096   if test -s conftest.err; then
4097     ac_cpp_err=$ac_cxx_preproc_warn_flag
4098   else
4099     ac_cpp_err=
4100   fi
4101 else
4102   ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105   :
4106 else
4107   echo "$as_me: failed program was:" >&5
4108   cat conftest.$ac_ext >&5
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   egrep -v '^ *\+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_cxx_preproc_warn_flag
4131   else
4132     ac_cpp_err=
4133   fi
4134 else
4135   ac_cpp_err=yes
4136 fi
4137 if test -z "$ac_cpp_err"; then
4138   # Broken: success on invalid input.
4139 continue
4140 else
4141   echo "$as_me: failed program was:" >&5
4142   cat conftest.$ac_ext >&5
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4153   break
4154 fi
4155
4156     done
4157     ac_cv_prog_CXXCPP=$CXXCPP
4158
4159 fi
4160   CXXCPP=$ac_cv_prog_CXXCPP
4161 else
4162   ac_cv_prog_CXXCPP=$CXXCPP
4163 fi
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4166 ac_preproc_ok=false
4167 for ac_cxx_preproc_warn_flag in '' yes
4168 do
4169   # Use a header file that comes with gcc, so configuring glibc
4170   # with a fresh cross-compiler works.
4171   # On the NeXT, cc -E runs the code through the compiler's parser,
4172   # not just through cpp. "Syntax error" is here to catch this case.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 #include <assert.h>
4177                      Syntax error
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_cxx_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   # Broken: fails on valid input.
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_ext
4204
4205   # OK, works on sane cases.  Now check whether non-existent headers
4206   # can be detected and how.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214   ac_status=$?
4215   egrep -v '^ *\+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } >/dev/null; then
4220   if test -s conftest.err; then
4221     ac_cpp_err=$ac_cxx_preproc_warn_flag
4222   else
4223     ac_cpp_err=
4224   fi
4225 else
4226   ac_cpp_err=yes
4227 fi
4228 if test -z "$ac_cpp_err"; then
4229   # Broken: success on invalid input.
4230 continue
4231 else
4232   echo "$as_me: failed program was:" >&5
4233   cat conftest.$ac_ext >&5
4234   # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4237 fi
4238 rm -f conftest.err conftest.$ac_ext
4239
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4244   :
4245 else
4246   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248    { (exit 1); exit 1; }; }
4249 fi
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264
4265
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4268
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4273
4274
4275 for ac_prog in gawk mawk nawk awk
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$AWK"; then
4285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AWK="$ac_prog"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 AWK=$ac_cv_prog_AWK
4304 if test -n "$AWK"; then
4305   echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312   test -n "$AWK" && break
4313 done
4314
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   # Let the user override the test
4321 if test -n "$FLEX"; then
4322   pgac_cv_path_flex=$FLEX
4323 else
4324   pgac_save_IFS=$IFS
4325   IFS=:
4326   for pgac_dir in $PATH; do
4327     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4328       pgac_dir=`pwd`
4329     fi
4330     for pgac_prog in flex lex; do
4331       pgac_candidate="$pgac_dir/$pgac_prog"
4332       if test -f "$pgac_candidate" \
4333         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4334       then
4335         echo '%%'  > conftest.l
4336         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338             pgac_broken_flex=$pgac_candidate
4339             continue
4340           fi
4341
4342           pgac_cv_path_flex=$pgac_candidate
4343           break 2
4344         fi
4345       fi
4346     done
4347   done
4348   IFS=$pgac_save_IFS
4349   rm -f conftest.l
4350   : ${pgac_cv_path_flex=no}
4351 fi
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357   if test -n "$pgac_broken_flex"; then
4358     { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4364   fi
4365
4366   { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files.  You can obtain Flex from
4369 *** a GNU mirror site.  (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files.  You can obtain Flex from
4375 *** a GNU mirror site.  (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4378 fi
4379
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381   FLEX=
4382 else
4383   FLEX=$pgac_cv_path_flex
4384 fi
4385
4386
4387
4388
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4391 LN_S=$as_ln_s
4392 if test "$LN_S" = "ln -s"; then
4393   echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4395 else
4396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4398 fi
4399
4400
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403   withval="$with_gnu_ld"
4404   test "$withval" = no || with_gnu_ld=yes
4405 else
4406   with_gnu_ld=no
4407 fi;
4408 ac_prog=ld
4409 if test "$GCC" = yes; then
4410   # Check if gcc -print-prog-name=ld gives a path.
4411   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4413   case $host in
4414   *-*-mingw*)
4415     # gcc leaves a trailing carriage return which upsets mingw
4416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417   *)
4418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419   esac
4420   case "$ac_prog" in
4421     # Accept absolute paths.
4422     [\\/]* | [A-Za-z]:[\\/]*)
4423       re_direlt='/[^/][^/]*/\.\./'
4424       # Canonicalize the path of ld
4425       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4428       done
4429       test -z "$LD" && LD="$ac_prog"
4430       ;;
4431   "")
4432     # If it fails, then pretend we aren't using GCC.
4433     ac_prog=ld
4434     ;;
4435   *)
4436     # If it is relative, then search for the first ld in PATH.
4437     with_gnu_ld=unknown
4438     ;;
4439   esac
4440 elif test "$with_gnu_ld" = yes; then
4441   echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443 else
4444   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446 fi
4447 if test "${ac_cv_path_LD+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -z "$LD"; then
4451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452   for ac_dir in $PATH; do
4453     test -z "$ac_dir" && ac_dir=.
4454     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455       ac_cv_path_LD="$ac_dir/$ac_prog"
4456       # Check to see if the program is GNU ld.  I'd rather use --version,
4457       # but apparently some GNU ld's only accept -v.
4458       # Break only if it was the GNU/non-GNU ld that we prefer.
4459       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460         test "$with_gnu_ld" != no && break
4461       else
4462         test "$with_gnu_ld" != yes && break
4463       fi
4464     fi
4465   done
4466   IFS="$ac_save_ifs"
4467 else
4468   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4469 fi
4470 fi
4471
4472 LD="$ac_cv_path_LD"
4473 if test -n "$LD"; then
4474   echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482    { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490   ac_cv_prog_gnu_ld=yes
4491 else
4492   ac_cv_prog_gnu_ld=no
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4498
4499
4500
4501
4502 case $host_os in sysv5*)
4503   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508
4509     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510     cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4513
4514 #ifdef F77_DUMMY_MAIN
4515 #  ifdef __cplusplus
4516      extern "C"
4517 #  endif
4518    int F77_DUMMY_MAIN() { return 1; }
4519 #endif
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530   (eval $ac_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -s conftest$ac_exeext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   pgac_cv_prog_ld_R=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4545 fi
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547     LDFLAGS=$pgac_save_LDFLAGS
4548
4549 fi
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552   ld_R_works=$pgac_cv_prog_ld_R
4553
4554 esac
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 for ac_prog in lorder
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$LORDER"; then
4645   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_LORDER="$ac_prog"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660
4661 fi
4662 fi
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665   echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   test -n "$LORDER" && break
4673 done
4674
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   case $TAR in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700
4701   ;;
4702 esac
4703 fi
4704 TAR=$ac_cv_path_TAR
4705
4706 if test -n "$TAR"; then
4707   echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4709 else
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 fi
4713
4714
4715   if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$STRIP"; then
4724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744   echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_STRIP"; then
4753   ac_ct_STRIP=$STRIP
4754   # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_STRIP"; then
4762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_STRIP="strip"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779 fi
4780 fi
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   STRIP=$ac_ct_STRIP
4791 else
4792   STRIP="$ac_cv_prog_STRIP"
4793 fi
4794
4795
4796   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799     STRIP_STATIC_LIB="$STRIP -x"
4800     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801     echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4803   else
4804     STRIP_STATIC_LIB=:
4805     STRIP_SHARED_LIB=:
4806     echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808   fi
4809
4810
4811
4812
4813 for ac_prog in 'bison -y'
4814 do
4815   # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$YACC"; then
4823   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_YACC="$ac_prog"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843   echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$YACC" && break
4851 done
4852
4853 if test -z "$YACC"; then
4854   { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files.  You can obtain Bison from
4857 *** a GNU mirror site.  (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.)  To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files.  You can obtain Bison from
4865 *** a GNU mirror site.  (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.)  To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4870 fi
4871
4872
4873 if test "$with_tk" = yes; then
4874     # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   case $WISH in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899
4900   ;;
4901 esac
4902 fi
4903 WISH=$ac_cv_path_WISH
4904
4905 if test -n "$WISH"; then
4906   echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915    { (exit 1); exit 1; }; }
4916 fi
4917
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   case $PERL in
4926   [\\/]* | ?:[\\/]*)
4927   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4928   ;;
4929   *)
4930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944   ;;
4945 esac
4946 fi
4947 PERL=$ac_cv_path_PERL
4948
4949 if test -n "$PERL"; then
4950   echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957 if test "$with_perl" = yes; then
4958
4959
4960 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4961 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4962
4963 # These are the ones we currently need.  Others can be added easily.
4964 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4965 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967
4968
4969 echo "$as_me:$LINENO: result: done" >&5
4970 echo "${ECHO_T}done" >&6
4971
4972 fi
4973
4974 if test "$with_python" = yes; then
4975   # Extract the first word of "python", so it can be a program name with args.
4976 set dummy python; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_path_PYTHON+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   case $PYTHON in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000
5001   ;;
5002 esac
5003 fi
5004 PYTHON=$ac_cv_path_PYTHON
5005
5006 if test -n "$PYTHON"; then
5007   echo "$as_me:$LINENO: result: $PYTHON" >&5
5008 echo "${ECHO_T}$PYTHON" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014 if test x"$PYTHON" = x""; then
5015   { { echo "$as_me:$LINENO: error: Python not found" >&5
5016 echo "$as_me: error: Python not found" >&2;}
5017    { (exit 1); exit 1; }; }
5018 fi
5019
5020
5021 echo "$as_me:$LINENO: checking Python installation directories" >&5
5022 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5023 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5024 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5025 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5026 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5027 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5028 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5029 python_includespec="-I${python_prefix}/include/python${python_version}"
5030 if test "$python_prefix" != "$python_execprefix"; then
5031   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5032 fi
5033
5034 # This should be enough of a message.
5035 if test "$python_prefix" != "$python_execprefix"; then
5036   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5037 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5038 else
5039   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5040 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5041 fi
5042
5043
5044
5045
5046
5047 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5048 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5049
5050 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5051 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5052 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5053 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5054 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5055
5056 pgac_tab="      " # tab character
5057 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"`
5058
5059 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5060 echo "${ECHO_T}${python_libspec}" >&6
5061
5062
5063 fi
5064
5065
5066 ##
5067 ## Libraries
5068 ##
5069
5070 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5071 then
5072
5073 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5074 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5075 if test "${ac_cv_lib_bsd_main+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lbsd  $LIBS"
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line $LINENO "configure"
5082 #include "confdefs.h"
5083
5084
5085 #ifdef F77_DUMMY_MAIN
5086 #  ifdef __cplusplus
5087      extern "C"
5088 #  endif
5089    int F77_DUMMY_MAIN() { return 1; }
5090 #endif
5091 int
5092 main ()
5093 {
5094 main ();
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101   (eval $ac_link) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest$ac_exeext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_cv_lib_bsd_main=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_cv_lib_bsd_main=no
5116 fi
5117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5118 LIBS=$ac_check_lib_save_LIBS
5119 fi
5120 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5121 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5122 if test $ac_cv_lib_bsd_main = yes; then
5123   cat >>confdefs.h <<_ACEOF
5124 #define HAVE_LIBBSD 1
5125 _ACEOF
5126
5127   LIBS="-lbsd $LIBS"
5128
5129 fi
5130
5131 fi
5132
5133 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5134 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5135 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   ac_check_lib_save_LIBS=$LIBS
5139 LIBS="-lutil  $LIBS"
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 #include "confdefs.h"
5143
5144 /* Override any gcc2 internal prototype to avoid an error.  */
5145 #ifdef __cplusplus
5146 extern "C"
5147 #endif
5148 /* We use char because int might match the return type of a gcc2
5149    builtin and then its argument prototype would still apply.  */
5150 char setproctitle ();
5151 #ifdef F77_DUMMY_MAIN
5152 #  ifdef __cplusplus
5153      extern "C"
5154 #  endif
5155    int F77_DUMMY_MAIN() { return 1; }
5156 #endif
5157 int
5158 main ()
5159 {
5160 setproctitle ();
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167   (eval $ac_link) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -s conftest$ac_exeext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_lib_util_setproctitle=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_cv_lib_util_setproctitle=no
5182 fi
5183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5185 fi
5186 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5187 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5188 if test $ac_cv_lib_util_setproctitle = yes; then
5189   cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LIBUTIL 1
5191 _ACEOF
5192
5193   LIBS="-lutil $LIBS"
5194
5195 fi
5196
5197
5198 echo "$as_me:$LINENO: checking for main in -lm" >&5
5199 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5200 if test "${ac_cv_lib_m_main+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lm  $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5208
5209
5210 #ifdef F77_DUMMY_MAIN
5211 #  ifdef __cplusplus
5212      extern "C"
5213 #  endif
5214    int F77_DUMMY_MAIN() { return 1; }
5215 #endif
5216 int
5217 main ()
5218 {
5219 main ();
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226   (eval $ac_link) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } &&
5230          { ac_try='test -s conftest$ac_exeext'
5231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; }; then
5236   ac_cv_lib_m_main=yes
5237 else
5238   echo "$as_me: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 ac_cv_lib_m_main=no
5241 fi
5242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5244 fi
5245 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5246 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5247 if test $ac_cv_lib_m_main = yes; then
5248   cat >>confdefs.h <<_ACEOF
5249 #define HAVE_LIBM 1
5250 _ACEOF
5251
5252   LIBS="-lm $LIBS"
5253
5254 fi
5255
5256
5257 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5258 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5259 if test "${ac_cv_lib_dl_main+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   ac_check_lib_save_LIBS=$LIBS
5263 LIBS="-ldl  $LIBS"
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5267
5268
5269 #ifdef F77_DUMMY_MAIN
5270 #  ifdef __cplusplus
5271      extern "C"
5272 #  endif
5273    int F77_DUMMY_MAIN() { return 1; }
5274 #endif
5275 int
5276 main ()
5277 {
5278 main ();
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285   (eval $ac_link) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } &&
5289          { ac_try='test -s conftest$ac_exeext'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; }; then
5295   ac_cv_lib_dl_main=yes
5296 else
5297   echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 ac_cv_lib_dl_main=no
5300 fi
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5305 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5306 if test $ac_cv_lib_dl_main = yes; then
5307   cat >>confdefs.h <<_ACEOF
5308 #define HAVE_LIBDL 1
5309 _ACEOF
5310
5311   LIBS="-ldl $LIBS"
5312
5313 fi
5314
5315
5316 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5317 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5318 if test "${ac_cv_lib_nsl_main+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   ac_check_lib_save_LIBS=$LIBS
5322 LIBS="-lnsl  $LIBS"
5323 cat >conftest.$ac_ext <<_ACEOF
5324 #line $LINENO "configure"
5325 #include "confdefs.h"
5326
5327
5328 #ifdef F77_DUMMY_MAIN
5329 #  ifdef __cplusplus
5330      extern "C"
5331 #  endif
5332    int F77_DUMMY_MAIN() { return 1; }
5333 #endif
5334 int
5335 main ()
5336 {
5337 main ();
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext conftest$ac_exeext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5344   (eval $ac_link) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -s conftest$ac_exeext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_cv_lib_nsl_main=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 ac_cv_lib_nsl_main=no
5359 fi
5360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5361 LIBS=$ac_check_lib_save_LIBS
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5364 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5365 if test $ac_cv_lib_nsl_main = yes; then
5366   cat >>confdefs.h <<_ACEOF
5367 #define HAVE_LIBNSL 1
5368 _ACEOF
5369
5370   LIBS="-lnsl $LIBS"
5371
5372 fi
5373
5374
5375 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5376 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5377 if test "${ac_cv_lib_socket_main+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   ac_check_lib_save_LIBS=$LIBS
5381 LIBS="-lsocket  $LIBS"
5382 cat >conftest.$ac_ext <<_ACEOF
5383 #line $LINENO "configure"
5384 #include "confdefs.h"
5385
5386
5387 #ifdef F77_DUMMY_MAIN
5388 #  ifdef __cplusplus
5389      extern "C"
5390 #  endif
5391    int F77_DUMMY_MAIN() { return 1; }
5392 #endif
5393 int
5394 main ()
5395 {
5396 main ();
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403   (eval $ac_link) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -s conftest$ac_exeext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_cv_lib_socket_main=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 ac_cv_lib_socket_main=no
5418 fi
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420 LIBS=$ac_check_lib_save_LIBS
5421 fi
5422 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5423 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5424 if test $ac_cv_lib_socket_main = yes; then
5425   cat >>confdefs.h <<_ACEOF
5426 #define HAVE_LIBSOCKET 1
5427 _ACEOF
5428
5429   LIBS="-lsocket $LIBS"
5430
5431 fi
5432
5433
5434 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5435 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5436 if test "${ac_cv_lib_ipc_main+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   ac_check_lib_save_LIBS=$LIBS
5440 LIBS="-lipc  $LIBS"
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5444
5445
5446 #ifdef F77_DUMMY_MAIN
5447 #  ifdef __cplusplus
5448      extern "C"
5449 #  endif
5450    int F77_DUMMY_MAIN() { return 1; }
5451 #endif
5452 int
5453 main ()
5454 {
5455 main ();
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462   (eval $ac_link) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } &&
5466          { ac_try='test -s conftest$ac_exeext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   ac_cv_lib_ipc_main=yes
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5476 ac_cv_lib_ipc_main=no
5477 fi
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5480 fi
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5482 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5483 if test $ac_cv_lib_ipc_main = yes; then
5484   cat >>confdefs.h <<_ACEOF
5485 #define HAVE_LIBIPC 1
5486 _ACEOF
5487
5488   LIBS="-lipc $LIBS"
5489
5490 fi
5491
5492
5493 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5494 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5495 if test "${ac_cv_lib_IPC_main+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-lIPC  $LIBS"
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 #include "confdefs.h"
5503
5504
5505 #ifdef F77_DUMMY_MAIN
5506 #  ifdef __cplusplus
5507      extern "C"
5508 #  endif
5509    int F77_DUMMY_MAIN() { return 1; }
5510 #endif
5511 int
5512 main ()
5513 {
5514 main ();
5515   ;
5516   return 0;
5517 }
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521   (eval $ac_link) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -s conftest$ac_exeext'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; }; then
5531   ac_cv_lib_IPC_main=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5535 ac_cv_lib_IPC_main=no
5536 fi
5537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5538 LIBS=$ac_check_lib_save_LIBS
5539 fi
5540 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5541 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5542 if test $ac_cv_lib_IPC_main = yes; then
5543   cat >>confdefs.h <<_ACEOF
5544 #define HAVE_LIBIPC 1
5545 _ACEOF
5546
5547   LIBS="-lIPC $LIBS"
5548
5549 fi
5550
5551
5552 echo "$as_me:$LINENO: checking for main in -llc" >&5
5553 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5554 if test "${ac_cv_lib_lc_main+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   ac_check_lib_save_LIBS=$LIBS
5558 LIBS="-llc  $LIBS"
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5561 #include "confdefs.h"
5562
5563
5564 #ifdef F77_DUMMY_MAIN
5565 #  ifdef __cplusplus
5566      extern "C"
5567 #  endif
5568    int F77_DUMMY_MAIN() { return 1; }
5569 #endif
5570 int
5571 main ()
5572 {
5573 main ();
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580   (eval $ac_link) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } &&
5584          { ac_try='test -s conftest$ac_exeext'
5585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586   (eval $ac_try) 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }; }; then
5590   ac_cv_lib_lc_main=yes
5591 else
5592   echo "$as_me: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 ac_cv_lib_lc_main=no
5595 fi
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5598 fi
5599 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5600 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5601 if test $ac_cv_lib_lc_main = yes; then
5602   cat >>confdefs.h <<_ACEOF
5603 #define HAVE_LIBLC 1
5604 _ACEOF
5605
5606   LIBS="-llc $LIBS"
5607
5608 fi
5609
5610
5611 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5612 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5613 if test "${ac_cv_lib_dld_main+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   ac_check_lib_save_LIBS=$LIBS
5617 LIBS="-ldld  $LIBS"
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5621
5622
5623 #ifdef F77_DUMMY_MAIN
5624 #  ifdef __cplusplus
5625      extern "C"
5626 #  endif
5627    int F77_DUMMY_MAIN() { return 1; }
5628 #endif
5629 int
5630 main ()
5631 {
5632 main ();
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639   (eval $ac_link) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } &&
5643          { ac_try='test -s conftest$ac_exeext'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; }; then
5649   ac_cv_lib_dld_main=yes
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 ac_cv_lib_dld_main=no
5654 fi
5655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5656 LIBS=$ac_check_lib_save_LIBS
5657 fi
5658 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5659 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5660 if test $ac_cv_lib_dld_main = yes; then
5661   cat >>confdefs.h <<_ACEOF
5662 #define HAVE_LIBDLD 1
5663 _ACEOF
5664
5665   LIBS="-ldld $LIBS"
5666
5667 fi
5668
5669
5670 echo "$as_me:$LINENO: checking for main in -lld" >&5
5671 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5672 if test "${ac_cv_lib_ld_main+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675   ac_check_lib_save_LIBS=$LIBS
5676 LIBS="-lld  $LIBS"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 #include "confdefs.h"
5680
5681
5682 #ifdef F77_DUMMY_MAIN
5683 #  ifdef __cplusplus
5684      extern "C"
5685 #  endif
5686    int F77_DUMMY_MAIN() { return 1; }
5687 #endif
5688 int
5689 main ()
5690 {
5691 main ();
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698   (eval $ac_link) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } &&
5702          { ac_try='test -s conftest$ac_exeext'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; }; then
5708   ac_cv_lib_ld_main=yes
5709 else
5710   echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 ac_cv_lib_ld_main=no
5713 fi
5714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5716 fi
5717 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5718 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5719 if test $ac_cv_lib_ld_main = yes; then
5720   cat >>confdefs.h <<_ACEOF
5721 #define HAVE_LIBLD 1
5722 _ACEOF
5723
5724   LIBS="-lld $LIBS"
5725
5726 fi
5727
5728
5729 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5730 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5731 if test "${ac_cv_lib_compat_main+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   ac_check_lib_save_LIBS=$LIBS
5735 LIBS="-lcompat  $LIBS"
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5738 #include "confdefs.h"
5739
5740
5741 #ifdef F77_DUMMY_MAIN
5742 #  ifdef __cplusplus
5743      extern "C"
5744 #  endif
5745    int F77_DUMMY_MAIN() { return 1; }
5746 #endif
5747 int
5748 main ()
5749 {
5750 main ();
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757   (eval $ac_link) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -s conftest$ac_exeext'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   ac_cv_lib_compat_main=yes
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5771 ac_cv_lib_compat_main=no
5772 fi
5773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774 LIBS=$ac_check_lib_save_LIBS
5775 fi
5776 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5777 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5778 if test $ac_cv_lib_compat_main = yes; then
5779   cat >>confdefs.h <<_ACEOF
5780 #define HAVE_LIBCOMPAT 1
5781 _ACEOF
5782
5783   LIBS="-lcompat $LIBS"
5784
5785 fi
5786
5787
5788 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5789 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5790 if test "${ac_cv_lib_BSD_main+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   ac_check_lib_save_LIBS=$LIBS
5794 LIBS="-lBSD  $LIBS"
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line $LINENO "configure"
5797 #include "confdefs.h"
5798
5799
5800 #ifdef F77_DUMMY_MAIN
5801 #  ifdef __cplusplus
5802      extern "C"
5803 #  endif
5804    int F77_DUMMY_MAIN() { return 1; }
5805 #endif
5806 int
5807 main ()
5808 {
5809 main ();
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816   (eval $ac_link) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_cv_lib_BSD_main=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5830 ac_cv_lib_BSD_main=no
5831 fi
5832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5833 LIBS=$ac_check_lib_save_LIBS
5834 fi
5835 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5836 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5837 if test $ac_cv_lib_BSD_main = yes; then
5838   cat >>confdefs.h <<_ACEOF
5839 #define HAVE_LIBBSD 1
5840 _ACEOF
5841
5842   LIBS="-lBSD $LIBS"
5843
5844 fi
5845
5846
5847 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5848 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5849 if test "${ac_cv_lib_gen_main+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   ac_check_lib_save_LIBS=$LIBS
5853 LIBS="-lgen  $LIBS"
5854 cat >conftest.$ac_ext <<_ACEOF
5855 #line $LINENO "configure"
5856 #include "confdefs.h"
5857
5858
5859 #ifdef F77_DUMMY_MAIN
5860 #  ifdef __cplusplus
5861      extern "C"
5862 #  endif
5863    int F77_DUMMY_MAIN() { return 1; }
5864 #endif
5865 int
5866 main ()
5867 {
5868 main ();
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875   (eval $ac_link) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); } &&
5879          { ac_try='test -s conftest$ac_exeext'
5880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881   (eval $ac_try) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; }; then
5885   ac_cv_lib_gen_main=yes
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 ac_cv_lib_gen_main=no
5890 fi
5891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5893 fi
5894 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5895 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5896 if test $ac_cv_lib_gen_main = yes; then
5897   cat >>confdefs.h <<_ACEOF
5898 #define HAVE_LIBGEN 1
5899 _ACEOF
5900
5901   LIBS="-lgen $LIBS"
5902
5903 fi
5904
5905
5906 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5907 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5908 if test "${ac_cv_lib_PW_main+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   ac_check_lib_save_LIBS=$LIBS
5912 LIBS="-lPW  $LIBS"
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 #include "confdefs.h"
5916
5917
5918 #ifdef F77_DUMMY_MAIN
5919 #  ifdef __cplusplus
5920      extern "C"
5921 #  endif
5922    int F77_DUMMY_MAIN() { return 1; }
5923 #endif
5924 int
5925 main ()
5926 {
5927 main ();
5928   ;
5929   return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934   (eval $ac_link) 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -s conftest$ac_exeext'
5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940   (eval $ac_try) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; }; then
5944   ac_cv_lib_PW_main=yes
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 ac_cv_lib_PW_main=no
5949 fi
5950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5952 fi
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5954 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5955 if test $ac_cv_lib_PW_main = yes; then
5956   cat >>confdefs.h <<_ACEOF
5957 #define HAVE_LIBPW 1
5958 _ACEOF
5959
5960   LIBS="-lPW $LIBS"
5961
5962 fi
5963
5964
5965 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5966 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5967 if test "${ac_cv_lib_resolv_main+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lresolv  $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5975
5976
5977 #ifdef F77_DUMMY_MAIN
5978 #  ifdef __cplusplus
5979      extern "C"
5980 #  endif
5981    int F77_DUMMY_MAIN() { return 1; }
5982 #endif
5983 int
5984 main ()
5985 {
5986 main ();
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993   (eval $ac_link) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); } &&
5997          { ac_try='test -s conftest$ac_exeext'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_cv_lib_resolv_main=yes
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6007 ac_cv_lib_resolv_main=no
6008 fi
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6011 fi
6012 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6013 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6014 if test $ac_cv_lib_resolv_main = yes; then
6015   cat >>confdefs.h <<_ACEOF
6016 #define HAVE_LIBRESOLV 1
6017 _ACEOF
6018
6019   LIBS="-lresolv $LIBS"
6020
6021 fi
6022
6023 # QNX:
6024
6025 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6026 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6027 if test "${ac_cv_lib_unix_main+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   ac_check_lib_save_LIBS=$LIBS
6031 LIBS="-lunix  $LIBS"
6032 cat >conftest.$ac_ext <<_ACEOF
6033 #line $LINENO "configure"
6034 #include "confdefs.h"
6035
6036
6037 #ifdef F77_DUMMY_MAIN
6038 #  ifdef __cplusplus
6039      extern "C"
6040 #  endif
6041    int F77_DUMMY_MAIN() { return 1; }
6042 #endif
6043 int
6044 main ()
6045 {
6046 main ();
6047   ;
6048   return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053   (eval $ac_link) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -s conftest$ac_exeext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   ac_cv_lib_unix_main=yes
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6067 ac_cv_lib_unix_main=no
6068 fi
6069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6073 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6074 if test $ac_cv_lib_unix_main = yes; then
6075   cat >>confdefs.h <<_ACEOF
6076 #define HAVE_LIBUNIX 1
6077 _ACEOF
6078
6079   LIBS="-lunix $LIBS"
6080
6081 fi
6082
6083 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6084 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6085 if test "${ac_cv_search_crypt+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   ac_func_search_save_LIBS=$LIBS
6089 ac_cv_search_crypt=no
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6093
6094 /* Override any gcc2 internal prototype to avoid an error.  */
6095 #ifdef __cplusplus
6096 extern "C"
6097 #endif
6098 /* We use char because int might match the return type of a gcc2
6099    builtin and then its argument prototype would still apply.  */
6100 char crypt ();
6101 #ifdef F77_DUMMY_MAIN
6102 #  ifdef __cplusplus
6103      extern "C"
6104 #  endif
6105    int F77_DUMMY_MAIN() { return 1; }
6106 #endif
6107 int
6108 main ()
6109 {
6110 crypt ();
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117   (eval $ac_link) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } &&
6121          { ac_try='test -s conftest$ac_exeext'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }; then
6127   ac_cv_search_crypt="none required"
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 fi
6132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6133 if test "$ac_cv_search_crypt" = no; then
6134   for ac_lib in crypt; do
6135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6136     cat >conftest.$ac_ext <<_ACEOF
6137 #line $LINENO "configure"
6138 #include "confdefs.h"
6139
6140 /* Override any gcc2 internal prototype to avoid an error.  */
6141 #ifdef __cplusplus
6142 extern "C"
6143 #endif
6144 /* We use char because int might match the return type of a gcc2
6145    builtin and then its argument prototype would still apply.  */
6146 char crypt ();
6147 #ifdef F77_DUMMY_MAIN
6148 #  ifdef __cplusplus
6149      extern "C"
6150 #  endif
6151    int F77_DUMMY_MAIN() { return 1; }
6152 #endif
6153 int
6154 main ()
6155 {
6156 crypt ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163   (eval $ac_link) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -s conftest$ac_exeext'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; }; then
6173   ac_cv_search_crypt="-l$ac_lib"
6174 break
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 fi
6179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180   done
6181 fi
6182 LIBS=$ac_func_search_save_LIBS
6183 fi
6184 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6185 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6186 if test "$ac_cv_search_crypt" != no; then
6187   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6188
6189 fi
6190
6191 # BeOS:
6192
6193 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6194 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6195 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   ac_check_lib_save_LIBS=$LIBS
6199 LIBS="-lbind  $LIBS"
6200 cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 #include "confdefs.h"
6203
6204 /* Override any gcc2 internal prototype to avoid an error.  */
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 /* We use char because int might match the return type of a gcc2
6209    builtin and then its argument prototype would still apply.  */
6210 char __inet_ntoa ();
6211 #ifdef F77_DUMMY_MAIN
6212 #  ifdef __cplusplus
6213      extern "C"
6214 #  endif
6215    int F77_DUMMY_MAIN() { return 1; }
6216 #endif
6217 int
6218 main ()
6219 {
6220 __inet_ntoa ();
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext conftest$ac_exeext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227   (eval $ac_link) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } &&
6231          { ac_try='test -s conftest$ac_exeext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   ac_cv_lib_bind___inet_ntoa=yes
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6241 ac_cv_lib_bind___inet_ntoa=no
6242 fi
6243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6244 LIBS=$ac_check_lib_save_LIBS
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6247 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6248 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6249   cat >>confdefs.h <<_ACEOF
6250 #define HAVE_LIBBIND 1
6251 _ACEOF
6252
6253   LIBS="-lbind $LIBS"
6254
6255 fi
6256
6257 # Solaris:
6258 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6259 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6260 if test "${ac_cv_search_fdatasync+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   ac_func_search_save_LIBS=$LIBS
6264 ac_cv_search_fdatasync=no
6265 cat >conftest.$ac_ext <<_ACEOF
6266 #line $LINENO "configure"
6267 #include "confdefs.h"
6268
6269 /* Override any gcc2 internal prototype to avoid an error.  */
6270 #ifdef __cplusplus
6271 extern "C"
6272 #endif
6273 /* We use char because int might match the return type of a gcc2
6274    builtin and then its argument prototype would still apply.  */
6275 char fdatasync ();
6276 #ifdef F77_DUMMY_MAIN
6277 #  ifdef __cplusplus
6278      extern "C"
6279 #  endif
6280    int F77_DUMMY_MAIN() { return 1; }
6281 #endif
6282 int
6283 main ()
6284 {
6285 fdatasync ();
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292   (eval $ac_link) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } &&
6296          { ac_try='test -s conftest$ac_exeext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_cv_search_fdatasync="none required"
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 fi
6307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308 if test "$ac_cv_search_fdatasync" = no; then
6309   for ac_lib in rt posix4; do
6310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6311     cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6313 #include "confdefs.h"
6314
6315 /* Override any gcc2 internal prototype to avoid an error.  */
6316 #ifdef __cplusplus
6317 extern "C"
6318 #endif
6319 /* We use char because int might match the return type of a gcc2
6320    builtin and then its argument prototype would still apply.  */
6321 char fdatasync ();
6322 #ifdef F77_DUMMY_MAIN
6323 #  ifdef __cplusplus
6324      extern "C"
6325 #  endif
6326    int F77_DUMMY_MAIN() { return 1; }
6327 #endif
6328 int
6329 main ()
6330 {
6331 fdatasync ();
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338   (eval $ac_link) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -s conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   ac_cv_search_fdatasync="-l$ac_lib"
6349 break
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6353 fi
6354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6355   done
6356 fi
6357 LIBS=$ac_func_search_save_LIBS
6358 fi
6359 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6360 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6361 if test "$ac_cv_search_fdatasync" != no; then
6362   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6363
6364 fi
6365
6366
6367 if test "$with_readline" = yes; then
6368
6369 echo "$as_me:$LINENO: checking for readline" >&5
6370 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6371
6372 if test "${pgac_cv_check_readline+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   pgac_cv_check_readline=no
6376 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6377   for pgac_rllib in -lreadline -ledit ; do
6378     pgac_save_LIBS=$LIBS
6379     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6380     cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6383
6384 /* Override any gcc2 internal prototype to avoid an error.  */
6385 #ifdef __cplusplus
6386 extern "C"
6387 #endif
6388 /* We use char because int might match the return type of a gcc2
6389    builtin and then its argument prototype would still apply.  */
6390 char readline ();
6391 #ifdef F77_DUMMY_MAIN
6392 #  ifdef __cplusplus
6393      extern "C"
6394 #  endif
6395    int F77_DUMMY_MAIN() { return 1; }
6396 #endif
6397 int
6398 main ()
6399 {
6400 readline ();
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407   (eval $ac_link) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } &&
6411          { ac_try='test -s conftest$ac_exeext'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; }; then
6417
6418       # NetBSD and OpenBSD have a broken linker that does not
6419       # recognize dependent libraries
6420       case $host_os in netbsd* | openbsd* )
6421         case $pgac_lib in
6422           *curses*) ;;
6423           *) pgac_lib=" -lcurses" ;;
6424         esac
6425       esac
6426
6427       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6428       break 2
6429
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6433 fi
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435     LIBS=$pgac_save_LIBS
6436   done
6437 done
6438 LIBS=$pgac_save_LIBS
6439
6440 fi
6441
6442 if test "$pgac_cv_check_readline" != no ; then
6443
6444 cat >>confdefs.h <<\_ACEOF
6445 #define HAVE_LIBREADLINE 1
6446 _ACEOF
6447
6448   LIBS="$pgac_cv_check_readline $LIBS"
6449   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6450 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6451 else
6452   echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6454 fi
6455   if test x"$pgac_cv_check_readline" = x"no"; then
6456     { { echo "$as_me:$LINENO: error: readline library not found
6457 Use --without-readline to disable readline support." >&5
6458 echo "$as_me: error: readline library not found
6459 Use --without-readline to disable readline support." >&2;}
6460    { (exit 1); exit 1; }; }
6461   fi
6462 fi
6463
6464 if test "$with_zlib" = yes; then
6465
6466 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6467 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6468 if test "${ac_cv_lib_z_inflate+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471   ac_check_lib_save_LIBS=$LIBS
6472 LIBS="-lz  $LIBS"
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6476
6477 /* Override any gcc2 internal prototype to avoid an error.  */
6478 #ifdef __cplusplus
6479 extern "C"
6480 #endif
6481 /* We use char because int might match the return type of a gcc2
6482    builtin and then its argument prototype would still apply.  */
6483 char inflate ();
6484 #ifdef F77_DUMMY_MAIN
6485 #  ifdef __cplusplus
6486      extern "C"
6487 #  endif
6488    int F77_DUMMY_MAIN() { return 1; }
6489 #endif
6490 int
6491 main ()
6492 {
6493 inflate ();
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500   (eval $ac_link) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } &&
6504          { ac_try='test -s conftest$ac_exeext'
6505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506   (eval $ac_try) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; }; then
6510   ac_cv_lib_z_inflate=yes
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 ac_cv_lib_z_inflate=no
6515 fi
6516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6517 LIBS=$ac_check_lib_save_LIBS
6518 fi
6519 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6520 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6521 if test $ac_cv_lib_z_inflate = yes; then
6522   cat >>confdefs.h <<_ACEOF
6523 #define HAVE_LIBZ 1
6524 _ACEOF
6525
6526   LIBS="-lz $LIBS"
6527
6528 else
6529   { { echo "$as_me:$LINENO: error: zlib library not found
6530 Use --without-zlib to disable zlib support." >&5
6531 echo "$as_me: error: zlib library not found
6532 Use --without-zlib to disable zlib support." >&2;}
6533    { (exit 1); exit 1; }; }
6534 fi
6535
6536 fi
6537
6538 if test "$with_krb4" = yes ; then
6539
6540 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6541 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6542 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   ac_check_lib_save_LIBS=$LIBS
6546 LIBS="-ldes  $LIBS"
6547 cat >conftest.$ac_ext <<_ACEOF
6548 #line $LINENO "configure"
6549 #include "confdefs.h"
6550
6551 /* Override any gcc2 internal prototype to avoid an error.  */
6552 #ifdef __cplusplus
6553 extern "C"
6554 #endif
6555 /* We use char because int might match the return type of a gcc2
6556    builtin and then its argument prototype would still apply.  */
6557 char des_encrypt ();
6558 #ifdef F77_DUMMY_MAIN
6559 #  ifdef __cplusplus
6560      extern "C"
6561 #  endif
6562    int F77_DUMMY_MAIN() { return 1; }
6563 #endif
6564 int
6565 main ()
6566 {
6567 des_encrypt ();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574   (eval $ac_link) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -s conftest$ac_exeext'
6579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580   (eval $ac_try) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; }; then
6584   ac_cv_lib_des_des_encrypt=yes
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 ac_cv_lib_des_des_encrypt=no
6589 fi
6590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6591 LIBS=$ac_check_lib_save_LIBS
6592 fi
6593 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6594 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6595 if test $ac_cv_lib_des_des_encrypt = yes; then
6596   cat >>confdefs.h <<_ACEOF
6597 #define HAVE_LIBDES 1
6598 _ACEOF
6599
6600   LIBS="-ldes $LIBS"
6601
6602 else
6603   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6604 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6605    { (exit 1); exit 1; }; }
6606 fi
6607
6608
6609 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6610 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6611 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   ac_check_lib_save_LIBS=$LIBS
6615 LIBS="-lkrb  $LIBS"
6616 cat >conftest.$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6618 #include "confdefs.h"
6619
6620 /* Override any gcc2 internal prototype to avoid an error.  */
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 /* We use char because int might match the return type of a gcc2
6625    builtin and then its argument prototype would still apply.  */
6626 char krb_sendauth ();
6627 #ifdef F77_DUMMY_MAIN
6628 #  ifdef __cplusplus
6629      extern "C"
6630 #  endif
6631    int F77_DUMMY_MAIN() { return 1; }
6632 #endif
6633 int
6634 main ()
6635 {
6636 krb_sendauth ();
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643   (eval $ac_link) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -s conftest$ac_exeext'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653   ac_cv_lib_krb_krb_sendauth=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6657 ac_cv_lib_krb_krb_sendauth=no
6658 fi
6659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6660 LIBS=$ac_check_lib_save_LIBS
6661 fi
6662 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6663 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6664 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6665   cat >>confdefs.h <<_ACEOF
6666 #define HAVE_LIBKRB 1
6667 _ACEOF
6668
6669   LIBS="-lkrb $LIBS"
6670
6671 else
6672   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6673 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6674    { (exit 1); exit 1; }; }
6675 fi
6676
6677 fi
6678
6679 if test "$with_krb5" = yes ; then
6680   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6681 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6682 if test "${ac_cv_search_com_err+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   ac_func_search_save_LIBS=$LIBS
6686 ac_cv_search_com_err=no
6687 cat >conftest.$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6689 #include "confdefs.h"
6690
6691 /* Override any gcc2 internal prototype to avoid an error.  */
6692 #ifdef __cplusplus
6693 extern "C"
6694 #endif
6695 /* We use char because int might match the return type of a gcc2
6696    builtin and then its argument prototype would still apply.  */
6697 char com_err ();
6698 #ifdef F77_DUMMY_MAIN
6699 #  ifdef __cplusplus
6700      extern "C"
6701 #  endif
6702    int F77_DUMMY_MAIN() { return 1; }
6703 #endif
6704 int
6705 main ()
6706 {
6707 com_err ();
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -s conftest$ac_exeext'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   ac_cv_search_com_err="none required"
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 fi
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730 if test "$ac_cv_search_com_err" = no; then
6731   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6733     cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 #include "confdefs.h"
6736
6737 /* Override any gcc2 internal prototype to avoid an error.  */
6738 #ifdef __cplusplus
6739 extern "C"
6740 #endif
6741 /* We use char because int might match the return type of a gcc2
6742    builtin and then its argument prototype would still apply.  */
6743 char com_err ();
6744 #ifdef F77_DUMMY_MAIN
6745 #  ifdef __cplusplus
6746      extern "C"
6747 #  endif
6748    int F77_DUMMY_MAIN() { return 1; }
6749 #endif
6750 int
6751 main ()
6752 {
6753 com_err ();
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext conftest$ac_exeext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760   (eval $ac_link) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -s conftest$ac_exeext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_cv_search_com_err="-l$ac_lib"
6771 break
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 fi
6776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6777   done
6778 fi
6779 LIBS=$ac_func_search_save_LIBS
6780 fi
6781 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6782 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6783 if test "$ac_cv_search_com_err" != no; then
6784   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6785
6786 else
6787   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6788 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6789    { (exit 1); exit 1; }; }
6790 fi
6791
6792   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6793 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6794 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   ac_func_search_save_LIBS=$LIBS
6798 ac_cv_search_krb5_encrypt=no
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6802
6803 /* Override any gcc2 internal prototype to avoid an error.  */
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 /* We use char because int might match the return type of a gcc2
6808    builtin and then its argument prototype would still apply.  */
6809 char krb5_encrypt ();
6810 #ifdef F77_DUMMY_MAIN
6811 #  ifdef __cplusplus
6812      extern "C"
6813 #  endif
6814    int F77_DUMMY_MAIN() { return 1; }
6815 #endif
6816 int
6817 main ()
6818 {
6819 krb5_encrypt ();
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826   (eval $ac_link) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } &&
6830          { ac_try='test -s conftest$ac_exeext'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; }; then
6836   ac_cv_search_krb5_encrypt="none required"
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 fi
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6842 if test "$ac_cv_search_krb5_encrypt" = no; then
6843   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6845     cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848
6849 /* Override any gcc2 internal prototype to avoid an error.  */
6850 #ifdef __cplusplus
6851 extern "C"
6852 #endif
6853 /* We use char because int might match the return type of a gcc2
6854    builtin and then its argument prototype would still apply.  */
6855 char krb5_encrypt ();
6856 #ifdef F77_DUMMY_MAIN
6857 #  ifdef __cplusplus
6858      extern "C"
6859 #  endif
6860    int F77_DUMMY_MAIN() { return 1; }
6861 #endif
6862 int
6863 main ()
6864 {
6865 krb5_encrypt ();
6866   ;
6867   return 0;
6868 }
6869 _ACEOF
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872   (eval $ac_link) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); } &&
6876          { ac_try='test -s conftest$ac_exeext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   ac_cv_search_krb5_encrypt="-l$ac_lib"
6883 break
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6887 fi
6888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6889   done
6890 fi
6891 LIBS=$ac_func_search_save_LIBS
6892 fi
6893 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6894 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6895 if test "$ac_cv_search_krb5_encrypt" != no; then
6896   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6897
6898 else
6899   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6900 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6901    { (exit 1); exit 1; }; }
6902 fi
6903
6904   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6905 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6906 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   ac_func_search_save_LIBS=$LIBS
6910 ac_cv_search_krb5_sendauth=no
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 #include "confdefs.h"
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char krb5_sendauth ();
6922 #ifdef F77_DUMMY_MAIN
6923 #  ifdef __cplusplus
6924      extern "C"
6925 #  endif
6926    int F77_DUMMY_MAIN() { return 1; }
6927 #endif
6928 int
6929 main ()
6930 {
6931 krb5_sendauth ();
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938   (eval $ac_link) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -s conftest$ac_exeext'
6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; }; then
6948   ac_cv_search_krb5_sendauth="none required"
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 fi
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 if test "$ac_cv_search_krb5_sendauth" = no; then
6955   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6957     cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6960
6961 /* Override any gcc2 internal prototype to avoid an error.  */
6962 #ifdef __cplusplus
6963 extern "C"
6964 #endif
6965 /* We use char because int might match the return type of a gcc2
6966    builtin and then its argument prototype would still apply.  */
6967 char krb5_sendauth ();
6968 #ifdef F77_DUMMY_MAIN
6969 #  ifdef __cplusplus
6970      extern "C"
6971 #  endif
6972    int F77_DUMMY_MAIN() { return 1; }
6973 #endif
6974 int
6975 main ()
6976 {
6977 krb5_sendauth ();
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 rm -f conftest.$ac_objext conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984   (eval $ac_link) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } &&
6988          { ac_try='test -s conftest$ac_exeext'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; }; then
6994   ac_cv_search_krb5_sendauth="-l$ac_lib"
6995 break
6996 else
6997   echo "$as_me: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
6999 fi
7000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7001   done
7002 fi
7003 LIBS=$ac_func_search_save_LIBS
7004 fi
7005 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7006 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7007 if test "$ac_cv_search_krb5_sendauth" != no; then
7008   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7009
7010 else
7011   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7012 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7013    { (exit 1); exit 1; }; }
7014 fi
7015
7016 fi
7017
7018 if test "$with_openssl" = yes ; then
7019
7020 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7021 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7022 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lcrypto  $LIBS"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 #include "confdefs.h"
7030
7031 /* Override any gcc2 internal prototype to avoid an error.  */
7032 #ifdef __cplusplus
7033 extern "C"
7034 #endif
7035 /* We use char because int might match the return type of a gcc2
7036    builtin and then its argument prototype would still apply.  */
7037 char CRYPTO_new_ex_data ();
7038 #ifdef F77_DUMMY_MAIN
7039 #  ifdef __cplusplus
7040      extern "C"
7041 #  endif
7042    int F77_DUMMY_MAIN() { return 1; }
7043 #endif
7044 int
7045 main ()
7046 {
7047 CRYPTO_new_ex_data ();
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054   (eval $ac_link) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -s conftest$ac_exeext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7069 fi
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7074 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7075 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7076   cat >>confdefs.h <<_ACEOF
7077 #define HAVE_LIBCRYPTO 1
7078 _ACEOF
7079
7080   LIBS="-lcrypto $LIBS"
7081
7082 else
7083   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7084 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7085    { (exit 1); exit 1; }; }
7086 fi
7087
7088
7089 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7090 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7091 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   ac_check_lib_save_LIBS=$LIBS
7095 LIBS="-lssl  $LIBS"
7096 cat >conftest.$ac_ext <<_ACEOF
7097 #line $LINENO "configure"
7098 #include "confdefs.h"
7099
7100 /* Override any gcc2 internal prototype to avoid an error.  */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 /* We use char because int might match the return type of a gcc2
7105    builtin and then its argument prototype would still apply.  */
7106 char SSL_library_init ();
7107 #ifdef F77_DUMMY_MAIN
7108 #  ifdef __cplusplus
7109      extern "C"
7110 #  endif
7111    int F77_DUMMY_MAIN() { return 1; }
7112 #endif
7113 int
7114 main ()
7115 {
7116 SSL_library_init ();
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123   (eval $ac_link) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } &&
7127          { ac_try='test -s conftest$ac_exeext'
7128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129   (eval $ac_try) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); }; }; then
7133   ac_cv_lib_ssl_SSL_library_init=yes
7134 else
7135   echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 ac_cv_lib_ssl_SSL_library_init=no
7138 fi
7139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140 LIBS=$ac_check_lib_save_LIBS
7141 fi
7142 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7143 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7144 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7145   cat >>confdefs.h <<_ACEOF
7146 #define HAVE_LIBSSL 1
7147 _ACEOF
7148
7149   LIBS="-lssl $LIBS"
7150
7151 else
7152   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7153 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7154    { (exit 1); exit 1; }; }
7155 fi
7156
7157 fi
7158
7159 if test "$with_pam" = yes ; then
7160
7161 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7162 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7163 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lpam  $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line $LINENO "configure"
7170 #include "confdefs.h"
7171
7172 /* Override any gcc2 internal prototype to avoid an error.  */
7173 #ifdef __cplusplus
7174 extern "C"
7175 #endif
7176 /* We use char because int might match the return type of a gcc2
7177    builtin and then its argument prototype would still apply.  */
7178 char pam_start ();
7179 #ifdef F77_DUMMY_MAIN
7180 #  ifdef __cplusplus
7181      extern "C"
7182 #  endif
7183    int F77_DUMMY_MAIN() { return 1; }
7184 #endif
7185 int
7186 main ()
7187 {
7188 pam_start ();
7189   ;
7190   return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195   (eval $ac_link) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -s conftest$ac_exeext'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   ac_cv_lib_pam_pam_start=yes
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 ac_cv_lib_pam_pam_start=no
7210 fi
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212 LIBS=$ac_check_lib_save_LIBS
7213 fi
7214 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7215 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7216 if test $ac_cv_lib_pam_pam_start = yes; then
7217   cat >>confdefs.h <<_ACEOF
7218 #define HAVE_LIBPAM 1
7219 _ACEOF
7220
7221   LIBS="-lpam $LIBS"
7222
7223 else
7224   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7225 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7226    { (exit 1); exit 1; }; }
7227 fi
7228
7229 fi
7230
7231
7232 ##
7233 ## Header files
7234 ##
7235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7237 if test "${ac_cv_header_stdc+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7242 #include "confdefs.h"
7243 #include <stdlib.h>
7244 #include <stdarg.h>
7245 #include <string.h>
7246 #include <float.h>
7247
7248 _ACEOF
7249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251   ac_status=$?
7252   egrep -v '^ *\+' conftest.er1 >conftest.err
7253   rm -f conftest.er1
7254   cat conftest.err >&5
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } >/dev/null; then
7257   if test -s conftest.err; then
7258     ac_cpp_err=$ac_c_preproc_warn_flag
7259   else
7260     ac_cpp_err=
7261   fi
7262 else
7263   ac_cpp_err=yes
7264 fi
7265 if test -z "$ac_cpp_err"; then
7266   ac_cv_header_stdc=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269   cat conftest.$ac_ext >&5
7270   ac_cv_header_stdc=no
7271 fi
7272 rm -f conftest.err conftest.$ac_ext
7273
7274 if test $ac_cv_header_stdc = yes; then
7275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276   cat >conftest.$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7279 #include <string.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   egrep "memchr" >/dev/null 2>&1; then
7284   :
7285 else
7286   ac_cv_header_stdc=no
7287 fi
7288 rm -f conftest*
7289
7290 fi
7291
7292 if test $ac_cv_header_stdc = yes; then
7293   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7294   cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 #include "confdefs.h"
7297 #include <stdlib.h>
7298
7299 _ACEOF
7300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301   egrep "free" >/dev/null 2>&1; then
7302   :
7303 else
7304   ac_cv_header_stdc=no
7305 fi
7306 rm -f conftest*
7307
7308 fi
7309
7310 if test $ac_cv_header_stdc = yes; then
7311   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7312   if test "$cross_compiling" = yes; then
7313   :
7314 else
7315   cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 #include "confdefs.h"
7318 #include <ctype.h>
7319 #if ((' ' & 0x0FF) == 0x020)
7320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7322 #else
7323 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7324                      || ('j' <= (c) && (c) <= 'r') \
7325                      || ('s' <= (c) && (c) <= 'z'))
7326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7327 #endif
7328
7329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7330 int
7331 main ()
7332 {
7333   int i;
7334   for (i = 0; i < 256; i++)
7335     if (XOR (islower (i), ISLOWER (i))
7336         || toupper (i) != TOUPPER (i))
7337       exit(2);
7338   exit (0);
7339 }
7340 _ACEOF
7341 rm -f conftest$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343   (eval $ac_link) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; }; then
7352   :
7353 else
7354   echo "$as_me: program exited with status $ac_status" >&5
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7357 ( exit $ac_status )
7358 ac_cv_header_stdc=no
7359 fi
7360 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7361 fi
7362 fi
7363 fi
7364 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7366 if test $ac_cv_header_stdc = yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define STDC_HEADERS 1
7370 _ACEOF
7371
7372 fi
7373
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385                   inttypes.h stdint.h unistd.h
7386 do
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   cat >conftest.$ac_ext <<_ACEOF
7394 #line $LINENO "configure"
7395 #include "confdefs.h"
7396 $ac_includes_default
7397
7398 #include <$ac_header>
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402   (eval $ac_compile) 2>&5
7403   ac_status=$?
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } &&
7406          { ac_try='test -s conftest.$ac_objext'
7407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408   (eval $ac_try) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; }; then
7412   eval "$as_ac_Header=yes"
7413 else
7414   echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 eval "$as_ac_Header=no"
7417 fi
7418 rm -f conftest.$ac_objext conftest.$ac_ext
7419 fi
7420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7423   cat >>confdefs.h <<_ACEOF
7424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425 _ACEOF
7426
7427 fi
7428
7429 done
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 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
7451 do
7452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454   echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 fi
7459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461 else
7462   # Is the header compilable?
7463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7466 #line $LINENO "configure"
7467 #include "confdefs.h"
7468 $ac_includes_default
7469 #include <$ac_header>
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473   (eval $ac_compile) 2>&5
7474   ac_status=$?
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -s conftest.$ac_objext'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; }; then
7483   ac_header_compiler=yes
7484 else
7485   echo "$as_me: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 ac_header_compiler=no
7488 fi
7489 rm -f conftest.$ac_objext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491 echo "${ECHO_T}$ac_header_compiler" >&6
7492
7493 # Is the header present?
7494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 #include "confdefs.h"
7499 #include <$ac_header>
7500 _ACEOF
7501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7503   ac_status=$?
7504   egrep -v '^ *\+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } >/dev/null; then
7509   if test -s conftest.err; then
7510     ac_cpp_err=$ac_c_preproc_warn_flag
7511   else
7512     ac_cpp_err=
7513   fi
7514 else
7515   ac_cpp_err=yes
7516 fi
7517 if test -z "$ac_cpp_err"; then
7518   ac_header_preproc=yes
7519 else
7520   echo "$as_me: failed program was:" >&5
7521   cat conftest.$ac_ext >&5
7522   ac_header_preproc=no
7523 fi
7524 rm -f conftest.err conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7526 echo "${ECHO_T}$ac_header_preproc" >&6
7527
7528 # So?  What about this header?
7529 case $ac_header_compiler:$ac_header_preproc in
7530   yes:no )
7531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7535   no:yes )
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7542 esac
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   eval "$as_ac_Header=$ac_header_preproc"
7549 fi
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552
7553 fi
7554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555   cat >>confdefs.h <<_ACEOF
7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557 _ACEOF
7558
7559 fi
7560
7561 done
7562
7563
7564 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7565 # netinet/in.h is included first.
7566
7567 for ac_header in netinet/in.h
7568 do
7569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571   echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 fi
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 else
7579   # Is the header compilable?
7580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 #include "confdefs.h"
7585 $ac_includes_default
7586 #include <$ac_header>
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590   (eval $ac_compile) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); } &&
7594          { ac_try='test -s conftest.$ac_objext'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; }; then
7600   ac_header_compiler=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_header_compiler=no
7605 fi
7606 rm -f conftest.$ac_objext conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7608 echo "${ECHO_T}$ac_header_compiler" >&6
7609
7610 # Is the header present?
7611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 #include "confdefs.h"
7616 #include <$ac_header>
7617 _ACEOF
7618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620   ac_status=$?
7621   egrep -v '^ *\+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } >/dev/null; then
7626   if test -s conftest.err; then
7627     ac_cpp_err=$ac_c_preproc_warn_flag
7628   else
7629     ac_cpp_err=
7630   fi
7631 else
7632   ac_cpp_err=yes
7633 fi
7634 if test -z "$ac_cpp_err"; then
7635   ac_header_preproc=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638   cat conftest.$ac_ext >&5
7639   ac_header_preproc=no
7640 fi
7641 rm -f conftest.err conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7643 echo "${ECHO_T}$ac_header_preproc" >&6
7644
7645 # So?  What about this header?
7646 case $ac_header_compiler:$ac_header_preproc in
7647   yes:no )
7648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7652   no:yes )
7653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7655     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7659 esac
7660 echo "$as_me:$LINENO: checking for $ac_header" >&5
7661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665   eval "$as_ac_Header=$ac_header_preproc"
7666 fi
7667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7669
7670 fi
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672   cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7674 _ACEOF
7675
7676 fi
7677
7678 done
7679
7680
7681 for ac_header in netinet/tcp.h
7682 do
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 echo "$as_me:$LINENO: checking for $ac_header" >&5
7685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 $ac_includes_default
7693 #ifdef HAVE_NETINET_IN_H
7694 #include <netinet/in.h>
7695 #endif
7696
7697
7698 #include <$ac_header>
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702   (eval $ac_compile) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } &&
7706          { ac_try='test -s conftest.$ac_objext'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   eval "$as_ac_Header=yes"
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 eval "$as_ac_Header=no"
7717 fi
7718 rm -f conftest.$ac_objext conftest.$ac_ext
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723   cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 _ACEOF
7726
7727 fi
7728
7729 done
7730
7731
7732 if test "$with_readline" = yes; then
7733
7734 for ac_header in readline/readline.h
7735 do
7736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738   echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 fi
7743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7745 else
7746   # Is the header compilable?
7747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 #include "confdefs.h"
7752 $ac_includes_default
7753 #include <$ac_header>
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757   (eval $ac_compile) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } &&
7761          { ac_try='test -s conftest.$ac_objext'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; }; then
7767   ac_header_compiler=yes
7768 else
7769   echo "$as_me: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 ac_header_compiler=no
7772 fi
7773 rm -f conftest.$ac_objext conftest.$ac_ext
7774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7775 echo "${ECHO_T}$ac_header_compiler" >&6
7776
7777 # Is the header present?
7778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7780 cat >conftest.$ac_ext <<_ACEOF
7781 #line $LINENO "configure"
7782 #include "confdefs.h"
7783 #include <$ac_header>
7784 _ACEOF
7785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7787   ac_status=$?
7788   egrep -v '^ *\+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } >/dev/null; then
7793   if test -s conftest.err; then
7794     ac_cpp_err=$ac_c_preproc_warn_flag
7795   else
7796     ac_cpp_err=
7797   fi
7798 else
7799   ac_cpp_err=yes
7800 fi
7801 if test -z "$ac_cpp_err"; then
7802   ac_header_preproc=yes
7803 else
7804   echo "$as_me: failed program was:" >&5
7805   cat conftest.$ac_ext >&5
7806   ac_header_preproc=no
7807 fi
7808 rm -f conftest.err conftest.$ac_ext
7809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7810 echo "${ECHO_T}$ac_header_preproc" >&6
7811
7812 # So?  What about this header?
7813 case $ac_header_compiler:$ac_header_preproc in
7814   yes:no )
7815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7819   no:yes )
7820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7826 esac
7827 echo "$as_me:$LINENO: checking for $ac_header" >&5
7828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   eval "$as_ac_Header=$ac_header_preproc"
7833 fi
7834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7836
7837 fi
7838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7839   cat >>confdefs.h <<_ACEOF
7840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7841 _ACEOF
7842
7843 else
7844
7845 for ac_header in readline.h
7846 do
7847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo "$as_me:$LINENO: checking for $ac_header" >&5
7850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856 else
7857   # Is the header compilable?
7858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7862 #include "confdefs.h"
7863 $ac_includes_default
7864 #include <$ac_header>
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868   (eval $ac_compile) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -s conftest.$ac_objext'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   ac_header_compiler=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 ac_header_compiler=no
7883 fi
7884 rm -f conftest.$ac_objext conftest.$ac_ext
7885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886 echo "${ECHO_T}$ac_header_compiler" >&6
7887
7888 # Is the header present?
7889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7894 #include <$ac_header>
7895 _ACEOF
7896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7898   ac_status=$?
7899   egrep -v '^ *\+' conftest.er1 >conftest.err
7900   rm -f conftest.er1
7901   cat conftest.err >&5
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } >/dev/null; then
7904   if test -s conftest.err; then
7905     ac_cpp_err=$ac_c_preproc_warn_flag
7906   else
7907     ac_cpp_err=
7908   fi
7909 else
7910   ac_cpp_err=yes
7911 fi
7912 if test -z "$ac_cpp_err"; then
7913   ac_header_preproc=yes
7914 else
7915   echo "$as_me: failed program was:" >&5
7916   cat conftest.$ac_ext >&5
7917   ac_header_preproc=no
7918 fi
7919 rm -f conftest.err conftest.$ac_ext
7920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7921 echo "${ECHO_T}$ac_header_preproc" >&6
7922
7923 # So?  What about this header?
7924 case $ac_header_compiler:$ac_header_preproc in
7925   yes:no )
7926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7930   no:yes )
7931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7933     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7937 esac
7938 echo "$as_me:$LINENO: checking for $ac_header" >&5
7939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   eval "$as_ac_Header=$ac_header_preproc"
7944 fi
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7947
7948 fi
7949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7950   cat >>confdefs.h <<_ACEOF
7951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 _ACEOF
7953
7954 else
7955   { { echo "$as_me:$LINENO: error: readline header not found
7956 Use --without-readline to disable readline support." >&5
7957 echo "$as_me: error: readline header not found
7958 Use --without-readline to disable readline support." >&2;}
7959    { (exit 1); exit 1; }; }
7960 fi
7961
7962 done
7963
7964 fi
7965
7966 done
7967
7968
7969 for ac_header in readline/history.h
7970 do
7971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7973   echo "$as_me:$LINENO: checking for $ac_header" >&5
7974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 fi
7978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7980 else
7981   # Is the header compilable?
7982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 #include "confdefs.h"
7987 $ac_includes_default
7988 #include <$ac_header>
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_header_compiler=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 ac_header_compiler=no
8007 fi
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010 echo "${ECHO_T}$ac_header_compiler" >&6
8011
8012 # Is the header present?
8013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 #include "confdefs.h"
8018 #include <$ac_header>
8019 _ACEOF
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8022   ac_status=$?
8023   egrep -v '^ *\+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } >/dev/null; then
8028   if test -s conftest.err; then
8029     ac_cpp_err=$ac_c_preproc_warn_flag
8030   else
8031     ac_cpp_err=
8032   fi
8033 else
8034   ac_cpp_err=yes
8035 fi
8036 if test -z "$ac_cpp_err"; then
8037   ac_header_preproc=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040   cat conftest.$ac_ext >&5
8041   ac_header_preproc=no
8042 fi
8043 rm -f conftest.err conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045 echo "${ECHO_T}$ac_header_preproc" >&6
8046
8047 # So?  What about this header?
8048 case $ac_header_compiler:$ac_header_preproc in
8049   yes:no )
8050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8054   no:yes )
8055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8057     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8061 esac
8062 echo "$as_me:$LINENO: checking for $ac_header" >&5
8063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   eval "$as_ac_Header=$ac_header_preproc"
8068 fi
8069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8071
8072 fi
8073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074   cat >>confdefs.h <<_ACEOF
8075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 _ACEOF
8077
8078 else
8079
8080 for ac_header in history.h
8081 do
8082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084   echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 fi
8089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8091 else
8092   # Is the header compilable?
8093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 #include "confdefs.h"
8098 $ac_includes_default
8099 #include <$ac_header>
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103   (eval $ac_compile) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -s conftest.$ac_objext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_header_compiler=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 ac_header_compiler=no
8118 fi
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121 echo "${ECHO_T}$ac_header_compiler" >&6
8122
8123 # Is the header present?
8124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 #include <$ac_header>
8130 _ACEOF
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133   ac_status=$?
8134   egrep -v '^ *\+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } >/dev/null; then
8139   if test -s conftest.err; then
8140     ac_cpp_err=$ac_c_preproc_warn_flag
8141   else
8142     ac_cpp_err=
8143   fi
8144 else
8145   ac_cpp_err=yes
8146 fi
8147 if test -z "$ac_cpp_err"; then
8148   ac_header_preproc=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151   cat conftest.$ac_ext >&5
8152   ac_header_preproc=no
8153 fi
8154 rm -f conftest.err conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8156 echo "${ECHO_T}$ac_header_preproc" >&6
8157
8158 # So?  What about this header?
8159 case $ac_header_compiler:$ac_header_preproc in
8160   yes:no )
8161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8165   no:yes )
8166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8172 esac
8173 echo "$as_me:$LINENO: checking for $ac_header" >&5
8174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   eval "$as_ac_Header=$ac_header_preproc"
8179 fi
8180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8182
8183 fi
8184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185   cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8187 _ACEOF
8188
8189 else
8190   { { echo "$as_me:$LINENO: error: history header not found
8191 Use --without-readline to disable readline support." >&5
8192 echo "$as_me: error: history header not found
8193 Use --without-readline to disable readline support." >&2;}
8194    { (exit 1); exit 1; }; }
8195 fi
8196
8197 done
8198
8199 fi
8200
8201 done
8202
8203 fi
8204
8205 if test "$with_zlib" = yes; then
8206   if test "${ac_cv_header_zlib_h+set}" = set; then
8207   echo "$as_me:$LINENO: checking for zlib.h" >&5
8208 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_zlib_h+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 fi
8212 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8213 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8214 else
8215   # Is the header compilable?
8216 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8217 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 #include "confdefs.h"
8221 $ac_includes_default
8222 #include <zlib.h>
8223 _ACEOF
8224 rm -f conftest.$ac_objext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226   (eval $ac_compile) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -s conftest.$ac_objext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_header_compiler=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 ac_header_compiler=no
8241 fi
8242 rm -f conftest.$ac_objext conftest.$ac_ext
8243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8244 echo "${ECHO_T}$ac_header_compiler" >&6
8245
8246 # Is the header present?
8247 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8248 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8250 #line $LINENO "configure"
8251 #include "confdefs.h"
8252 #include <zlib.h>
8253 _ACEOF
8254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8256   ac_status=$?
8257   egrep -v '^ *\+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } >/dev/null; then
8262   if test -s conftest.err; then
8263     ac_cpp_err=$ac_c_preproc_warn_flag
8264   else
8265     ac_cpp_err=
8266   fi
8267 else
8268   ac_cpp_err=yes
8269 fi
8270 if test -z "$ac_cpp_err"; then
8271   ac_header_preproc=yes
8272 else
8273   echo "$as_me: failed program was:" >&5
8274   cat conftest.$ac_ext >&5
8275   ac_header_preproc=no
8276 fi
8277 rm -f conftest.err conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279 echo "${ECHO_T}$ac_header_preproc" >&6
8280
8281 # So?  What about this header?
8282 case $ac_header_compiler:$ac_header_preproc in
8283   yes:no )
8284     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8287 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8288   no:yes )
8289     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8290 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8291     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8292 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8293     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8294 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8295 esac
8296 echo "$as_me:$LINENO: checking for zlib.h" >&5
8297 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8298 if test "${ac_cv_header_zlib_h+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_cv_header_zlib_h=$ac_header_preproc
8302 fi
8303 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8304 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8305
8306 fi
8307 if test $ac_cv_header_zlib_h = yes; then
8308   :
8309 else
8310   { { echo "$as_me:$LINENO: error: zlib header not found
8311 Use --without-zlib to disable zlib support." >&5
8312 echo "$as_me: error: zlib header not found
8313 Use --without-zlib to disable zlib support." >&2;}
8314    { (exit 1); exit 1; }; }
8315 fi
8316
8317
8318 fi
8319
8320 if test "$with_krb4" = yes ; then
8321   if test "${ac_cv_header_krb_h+set}" = set; then
8322   echo "$as_me:$LINENO: checking for krb.h" >&5
8323 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8324 if test "${ac_cv_header_krb_h+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8329 else
8330   # Is the header compilable?
8331 echo "$as_me:$LINENO: checking krb.h usability" >&5
8332 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8334 #line $LINENO "configure"
8335 #include "confdefs.h"
8336 $ac_includes_default
8337 #include <krb.h>
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341   (eval $ac_compile) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -s conftest.$ac_objext'
8346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347   (eval $ac_try) 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; }; then
8351   ac_header_compiler=yes
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 cat conftest.$ac_ext >&5
8355 ac_header_compiler=no
8356 fi
8357 rm -f conftest.$ac_objext conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8359 echo "${ECHO_T}$ac_header_compiler" >&6
8360
8361 # Is the header present?
8362 echo "$as_me:$LINENO: checking krb.h presence" >&5
8363 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 #include "confdefs.h"
8367 #include <krb.h>
8368 _ACEOF
8369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8371   ac_status=$?
8372   egrep -v '^ *\+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } >/dev/null; then
8377   if test -s conftest.err; then
8378     ac_cpp_err=$ac_c_preproc_warn_flag
8379   else
8380     ac_cpp_err=
8381   fi
8382 else
8383   ac_cpp_err=yes
8384 fi
8385 if test -z "$ac_cpp_err"; then
8386   ac_header_preproc=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389   cat conftest.$ac_ext >&5
8390   ac_header_preproc=no
8391 fi
8392 rm -f conftest.err conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8394 echo "${ECHO_T}$ac_header_preproc" >&6
8395
8396 # So?  What about this header?
8397 case $ac_header_compiler:$ac_header_preproc in
8398   yes:no )
8399     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8400 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8403   no:yes )
8404     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8405 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8406     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8407 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8408     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8409 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8410 esac
8411 echo "$as_me:$LINENO: checking for krb.h" >&5
8412 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8413 if test "${ac_cv_header_krb_h+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_cv_header_krb_h=$ac_header_preproc
8417 fi
8418 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8419 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8420
8421 fi
8422 if test $ac_cv_header_krb_h = yes; then
8423   :
8424 else
8425   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8426 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8427    { (exit 1); exit 1; }; }
8428 fi
8429
8430
8431 fi
8432
8433 if test "$with_krb5" = yes ; then
8434   if test "${ac_cv_header_krb5_h+set}" = set; then
8435   echo "$as_me:$LINENO: checking for krb5.h" >&5
8436 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8437 if test "${ac_cv_header_krb5_h+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8442 else
8443   # Is the header compilable?
8444 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8445 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8447 #line $LINENO "configure"
8448 #include "confdefs.h"
8449 $ac_includes_default
8450 #include <krb5.h>
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454   (eval $ac_compile) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_header_compiler=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8468 ac_header_compiler=no
8469 fi
8470 rm -f conftest.$ac_objext conftest.$ac_ext
8471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472 echo "${ECHO_T}$ac_header_compiler" >&6
8473
8474 # Is the header present?
8475 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8476 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8478 #line $LINENO "configure"
8479 #include "confdefs.h"
8480 #include <krb5.h>
8481 _ACEOF
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8484   ac_status=$?
8485   egrep -v '^ *\+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } >/dev/null; then
8490   if test -s conftest.err; then
8491     ac_cpp_err=$ac_c_preproc_warn_flag
8492   else
8493     ac_cpp_err=
8494   fi
8495 else
8496   ac_cpp_err=yes
8497 fi
8498 if test -z "$ac_cpp_err"; then
8499   ac_header_preproc=yes
8500 else
8501   echo "$as_me: failed program was:" >&5
8502   cat conftest.$ac_ext >&5
8503   ac_header_preproc=no
8504 fi
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8508
8509 # So?  What about this header?
8510 case $ac_header_compiler:$ac_header_preproc in
8511   yes:no )
8512     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8515 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8516   no:yes )
8517     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8518 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8519     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8520 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8522 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8523 esac
8524 echo "$as_me:$LINENO: checking for krb5.h" >&5
8525 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8526 if test "${ac_cv_header_krb5_h+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   ac_cv_header_krb5_h=$ac_header_preproc
8530 fi
8531 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8532 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8533
8534 fi
8535 if test $ac_cv_header_krb5_h = yes; then
8536   :
8537 else
8538   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8539 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8540    { (exit 1); exit 1; }; }
8541 fi
8542
8543
8544   if test "${ac_cv_header_com_err_h+set}" = set; then
8545   echo "$as_me:$LINENO: checking for com_err.h" >&5
8546 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8547 if test "${ac_cv_header_com_err_h+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8552 else
8553   # Is the header compilable?
8554 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8555 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8556 cat >conftest.$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8559 $ac_includes_default
8560 #include <com_err.h>
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564   (eval $ac_compile) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } &&
8568          { ac_try='test -s conftest.$ac_objext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_header_compiler=yes
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 ac_header_compiler=no
8579 fi
8580 rm -f conftest.$ac_objext conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582 echo "${ECHO_T}$ac_header_compiler" >&6
8583
8584 # Is the header present?
8585 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8586 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 #include "confdefs.h"
8590 #include <com_err.h>
8591 _ACEOF
8592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8594   ac_status=$?
8595   egrep -v '^ *\+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } >/dev/null; then
8600   if test -s conftest.err; then
8601     ac_cpp_err=$ac_c_preproc_warn_flag
8602   else
8603     ac_cpp_err=
8604   fi
8605 else
8606   ac_cpp_err=yes
8607 fi
8608 if test -z "$ac_cpp_err"; then
8609   ac_header_preproc=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612   cat conftest.$ac_ext >&5
8613   ac_header_preproc=no
8614 fi
8615 rm -f conftest.err conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8617 echo "${ECHO_T}$ac_header_preproc" >&6
8618
8619 # So?  What about this header?
8620 case $ac_header_compiler:$ac_header_preproc in
8621   yes:no )
8622     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8623 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8624     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8626   no:yes )
8627     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8628 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8629     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8630 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8631     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8632 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8633 esac
8634 echo "$as_me:$LINENO: checking for com_err.h" >&5
8635 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8636 if test "${ac_cv_header_com_err_h+set}" = set; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639   ac_cv_header_com_err_h=$ac_header_preproc
8640 fi
8641 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8642 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8643
8644 fi
8645 if test $ac_cv_header_com_err_h = yes; then
8646   :
8647 else
8648   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8649 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8650    { (exit 1); exit 1; }; }
8651 fi
8652
8653
8654 fi
8655
8656 if test "$with_openssl" = yes ; then
8657   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8658   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8659 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8664 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8665 else
8666   # Is the header compilable?
8667 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8668 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 #line $LINENO "configure"
8671 #include "confdefs.h"
8672 $ac_includes_default
8673 #include <openssl/ssl.h>
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677   (eval $ac_compile) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } &&
8681          { ac_try='test -s conftest.$ac_objext'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   ac_header_compiler=yes
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 ac_header_compiler=no
8692 fi
8693 rm -f conftest.$ac_objext conftest.$ac_ext
8694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695 echo "${ECHO_T}$ac_header_compiler" >&6
8696
8697 # Is the header present?
8698 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8699 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8701 #line $LINENO "configure"
8702 #include "confdefs.h"
8703 #include <openssl/ssl.h>
8704 _ACEOF
8705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8707   ac_status=$?
8708   egrep -v '^ *\+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } >/dev/null; then
8713   if test -s conftest.err; then
8714     ac_cpp_err=$ac_c_preproc_warn_flag
8715   else
8716     ac_cpp_err=
8717   fi
8718 else
8719   ac_cpp_err=yes
8720 fi
8721 if test -z "$ac_cpp_err"; then
8722   ac_header_preproc=yes
8723 else
8724   echo "$as_me: failed program was:" >&5
8725   cat conftest.$ac_ext >&5
8726   ac_header_preproc=no
8727 fi
8728 rm -f conftest.err conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730 echo "${ECHO_T}$ac_header_preproc" >&6
8731
8732 # So?  What about this header?
8733 case $ac_header_compiler:$ac_header_preproc in
8734   yes:no )
8735     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8736 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8738 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8739   no:yes )
8740     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8741 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8743 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8745 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8746 esac
8747 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8748 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8749 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8753 fi
8754 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8755 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8756
8757 fi
8758 if test $ac_cv_header_openssl_ssl_h = yes; then
8759   :
8760 else
8761   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8762 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8763    { (exit 1); exit 1; }; }
8764 fi
8765
8766
8767   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8768   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8769 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8770 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8774 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8775 else
8776   # Is the header compilable?
8777 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8778 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 $ac_includes_default
8783 #include <openssl/err.h>
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787   (eval $ac_compile) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } &&
8791          { ac_try='test -s conftest.$ac_objext'
8792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793   (eval $ac_try) 2>&5
8794   ac_status=$?
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); }; }; then
8797   ac_header_compiler=yes
8798 else
8799   echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_header_compiler=no
8802 fi
8803 rm -f conftest.$ac_objext conftest.$ac_ext
8804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8805 echo "${ECHO_T}$ac_header_compiler" >&6
8806
8807 # Is the header present?
8808 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8809 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813 #include <openssl/err.h>
8814 _ACEOF
8815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8817   ac_status=$?
8818   egrep -v '^ *\+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } >/dev/null; then
8823   if test -s conftest.err; then
8824     ac_cpp_err=$ac_c_preproc_warn_flag
8825   else
8826     ac_cpp_err=
8827   fi
8828 else
8829   ac_cpp_err=yes
8830 fi
8831 if test -z "$ac_cpp_err"; then
8832   ac_header_preproc=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835   cat conftest.$ac_ext >&5
8836   ac_header_preproc=no
8837 fi
8838 rm -f conftest.err conftest.$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8840 echo "${ECHO_T}$ac_header_preproc" >&6
8841
8842 # So?  What about this header?
8843 case $ac_header_compiler:$ac_header_preproc in
8844   yes:no )
8845     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8846 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8849   no:yes )
8850     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8851 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8853 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8855 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8856 esac
8857 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8858 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8859 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   ac_cv_header_openssl_err_h=$ac_header_preproc
8863 fi
8864 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8865 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8866
8867 fi
8868 if test $ac_cv_header_openssl_err_h = yes; then
8869   :
8870 else
8871   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8872 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8873    { (exit 1); exit 1; }; }
8874 fi
8875
8876
8877 fi
8878
8879 if test "$with_pam" = yes ; then
8880   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8881   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8882 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 fi
8886 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8888 else
8889   # Is the header compilable?
8890 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8891 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8892 cat >conftest.$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <security/pam_appl.h>
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900   (eval $ac_compile) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -s conftest.$ac_objext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_header_compiler=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 ac_header_compiler=no
8915 fi
8916 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8919
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8922 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <security/pam_appl.h>
8927 _ACEOF
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8930   ac_status=$?
8931   egrep -v '^ *\+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } >/dev/null; then
8936   if test -s conftest.err; then
8937     ac_cpp_err=$ac_c_preproc_warn_flag
8938   else
8939     ac_cpp_err=
8940   fi
8941 else
8942   ac_cpp_err=yes
8943 fi
8944 if test -z "$ac_cpp_err"; then
8945   ac_header_preproc=yes
8946 else
8947   echo "$as_me: failed program was:" >&5
8948   cat conftest.$ac_ext >&5
8949   ac_header_preproc=no
8950 fi
8951 rm -f conftest.err conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8954
8955 # So?  What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8957   yes:no )
8958     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8962   no:yes )
8963     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8965     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8967     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8969 esac
8970 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8971 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8979
8980 fi
8981 if test $ac_cv_header_security_pam_appl_h = yes; then
8982   :
8983 else
8984   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8985 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8986    { (exit 1); exit 1; }; }
8987 fi
8988
8989
8990 fi
8991
8992
8993 ##
8994 ## Types, structures, compiler characteristics
8995 ##
8996
8997 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8999 if test "${ac_cv_c_const+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9005
9006 #ifdef F77_DUMMY_MAIN
9007 #  ifdef __cplusplus
9008      extern "C"
9009 #  endif
9010    int F77_DUMMY_MAIN() { return 1; }
9011 #endif
9012 int
9013 main ()
9014 {
9015 /* FIXME: Include the comments suggested by Paul. */
9016 #ifndef __cplusplus
9017   /* Ultrix mips cc rejects this.  */
9018   typedef int charset[2];
9019   const charset x;
9020   /* SunOS 4.1.1 cc rejects this.  */
9021   char const *const *ccp;
9022   char **p;
9023   /* NEC SVR4.0.2 mips cc rejects this.  */
9024   struct point {int x, y;};
9025   static struct point const zero = {0,0};
9026   /* AIX XL C 1.02.0.0 rejects this.
9027      It does not let you subtract one const X* pointer from another in
9028      an arm of an if-expression whose if-part is not a constant
9029      expression */
9030   const char *g = "string";
9031   ccp = &g + (g ? g-g : 0);
9032   /* HPUX 7.0 cc rejects these. */
9033   ++ccp;
9034   p = (char**) ccp;
9035   ccp = (char const *const *) p;
9036   { /* SCO 3.2v4 cc rejects this.  */
9037     char *t;
9038     char const *s = 0 ? (char *) 0 : (char const *) 0;
9039
9040     *t++ = 0;
9041   }
9042   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9043     int x[] = {25, 17};
9044     const int *foo = &x[0];
9045     ++foo;
9046   }
9047   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9048     typedef const int *iptr;
9049     iptr p = 0;
9050     ++p;
9051   }
9052   { /* AIX XL C 1.02.0.0 rejects this saying
9053        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9054     struct s { int j; const int *ap[3]; };
9055     struct s *b; b->j = 5;
9056   }
9057   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9058     const int foo = 10;
9059   }
9060 #endif
9061
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068   (eval $ac_compile) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest.$ac_objext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_c_const=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9082 ac_cv_c_const=no
9083 fi
9084 rm -f conftest.$ac_objext conftest.$ac_ext
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9087 echo "${ECHO_T}$ac_cv_c_const" >&6
9088 if test $ac_cv_c_const = no; then
9089
9090 cat >>confdefs.h <<\_ACEOF
9091 #define const
9092 _ACEOF
9093
9094 fi
9095
9096 echo "$as_me:$LINENO: checking for inline" >&5
9097 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9098 if test "${ac_cv_c_inline+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   ac_cv_c_inline=no
9102 for ac_kw in inline __inline__ __inline; do
9103   cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #ifndef __cplusplus
9107 static $ac_kw int static_foo () {return 0; }
9108 $ac_kw int foo () {return 0; }
9109 #endif
9110
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114   (eval $ac_compile) 2>&5
9115   ac_status=$?
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } &&
9118          { ac_try='test -s conftest.$ac_objext'
9119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120   (eval $ac_try) 2>&5
9121   ac_status=$?
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); }; }; then
9124   ac_cv_c_inline=$ac_kw; break
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9128 fi
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9130 done
9131
9132 fi
9133 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9134 echo "${ECHO_T}$ac_cv_c_inline" >&6
9135 case $ac_cv_c_inline in
9136   inline | yes) ;;
9137   no)
9138 cat >>confdefs.h <<\_ACEOF
9139 #define inline
9140 _ACEOF
9141  ;;
9142   *)  cat >>confdefs.h <<_ACEOF
9143 #define inline $ac_cv_c_inline
9144 _ACEOF
9145  ;;
9146 esac
9147
9148 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9149 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9150 if test "${ac_cv_c_stringize+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153   cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 #include "confdefs.h"
9156 #define x(y) #y
9157
9158 char *s = x(teststring);
9159 _ACEOF
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161   egrep "#teststring" >/dev/null 2>&1; then
9162   ac_cv_c_stringize=no
9163 else
9164   ac_cv_c_stringize=yes
9165 fi
9166 rm -f conftest*
9167
9168 fi
9169 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9170 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9171 if test $ac_cv_c_stringize = yes; then
9172
9173 cat >>confdefs.h <<\_ACEOF
9174 #define HAVE_STRINGIZE 1
9175 _ACEOF
9176
9177 fi
9178
9179 echo "$as_me:$LINENO: checking for signed types" >&5
9180 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9181 if test "${pgac_cv_c_signed+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9186 #include "confdefs.h"
9187
9188 #ifdef F77_DUMMY_MAIN
9189 #  ifdef __cplusplus
9190      extern "C"
9191 #  endif
9192    int F77_DUMMY_MAIN() { return 1; }
9193 #endif
9194 int
9195 main ()
9196 {
9197 signed char c; signed short s; signed int i;
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204   (eval $ac_compile) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   pgac_cv_c_signed=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 pgac_cv_c_signed=no
9219 fi
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9221 fi
9222 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9223 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9224 if test x"$pgac_cv_c_signed" = xno ; then
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define signed
9228 _ACEOF
9229
9230 fi
9231 echo "$as_me:$LINENO: checking for working volatile" >&5
9232 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9233 if test "${ac_cv_c_volatile+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 #include "confdefs.h"
9239
9240 #ifdef F77_DUMMY_MAIN
9241 #  ifdef __cplusplus
9242      extern "C"
9243 #  endif
9244    int F77_DUMMY_MAIN() { return 1; }
9245 #endif
9246 int
9247 main ()
9248 {
9249
9250 volatile int x;
9251 int * volatile y;
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258   (eval $ac_compile) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } &&
9262          { ac_try='test -s conftest.$ac_objext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_c_volatile=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 ac_cv_c_volatile=no
9273 fi
9274 rm -f conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9277 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9278 if test $ac_cv_c_volatile = no; then
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define volatile
9282 _ACEOF
9283
9284 fi
9285
9286 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9287 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9288 if test "${ac_cv_struct_tm+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 #include "confdefs.h"
9294 #include <sys/types.h>
9295 #include <time.h>
9296
9297 #ifdef F77_DUMMY_MAIN
9298 #  ifdef __cplusplus
9299      extern "C"
9300 #  endif
9301    int F77_DUMMY_MAIN() { return 1; }
9302 #endif
9303 int
9304 main ()
9305 {
9306 struct tm *tp; tp->tm_sec;
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313   (eval $ac_compile) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -s conftest.$ac_objext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_struct_tm=time.h
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9327 ac_cv_struct_tm=sys/time.h
9328 fi
9329 rm -f conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9332 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9333 if test $ac_cv_struct_tm = sys/time.h; then
9334
9335 cat >>confdefs.h <<\_ACEOF
9336 #define TM_IN_SYS_TIME 1
9337 _ACEOF
9338
9339 fi
9340
9341 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9342 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9343 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346   cat >conftest.$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <$ac_cv_struct_tm>
9351
9352
9353 #ifdef F77_DUMMY_MAIN
9354 #  ifdef __cplusplus
9355      extern "C"
9356 #  endif
9357    int F77_DUMMY_MAIN() { return 1; }
9358 #endif
9359 int
9360 main ()
9361 {
9362 static struct tm ac_aggr;
9363 if (ac_aggr.tm_zone)
9364 return 0;
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371   (eval $ac_compile) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -s conftest.$ac_objext'
9376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377   (eval $ac_try) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; }; then
9381   ac_cv_member_struct_tm_tm_zone=yes
9382 else
9383   echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 ac_cv_member_struct_tm_tm_zone=no
9386 fi
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9390 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9391 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_STRUCT_TM_TM_ZONE 1
9395 _ACEOF
9396
9397
9398 fi
9399
9400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9401
9402 cat >>confdefs.h <<\_ACEOF
9403 #define HAVE_TM_ZONE 1
9404 _ACEOF
9405
9406 else
9407   echo "$as_me:$LINENO: checking for tzname" >&5
9408 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9409 if test "${ac_cv_var_tzname+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <time.h>
9416 #ifndef tzname /* For SGI.  */
9417 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9418 #endif
9419
9420 #ifdef F77_DUMMY_MAIN
9421 #  ifdef __cplusplus
9422      extern "C"
9423 #  endif
9424    int F77_DUMMY_MAIN() { return 1; }
9425 #endif
9426 int
9427 main ()
9428 {
9429 atoi(*tzname);
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436   (eval $ac_link) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } &&
9440          { ac_try='test -s conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   ac_cv_var_tzname=yes
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 ac_cv_var_tzname=no
9451 fi
9452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9455 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9456   if test $ac_cv_var_tzname = yes; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_TZNAME 1
9460 _ACEOF
9461
9462   fi
9463 fi
9464
9465 echo "$as_me:$LINENO: checking for union semun" >&5
9466 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9467 if test "${ac_cv_type_union_semun+set}" = set; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470   cat >conftest.$ac_ext <<_ACEOF
9471 #line $LINENO "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/ipc.h>
9475 #include <sys/sem.h>
9476
9477 #ifdef F77_DUMMY_MAIN
9478 #  ifdef __cplusplus
9479      extern "C"
9480 #  endif
9481    int F77_DUMMY_MAIN() { return 1; }
9482 #endif
9483 int
9484 main ()
9485 {
9486 if ((union semun *) 0)
9487   return 0;
9488 if (sizeof (union semun))
9489   return 0;
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496   (eval $ac_compile) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -s conftest.$ac_objext'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; }; then
9506   ac_cv_type_union_semun=yes
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 ac_cv_type_union_semun=no
9511 fi
9512 rm -f conftest.$ac_objext conftest.$ac_ext
9513 fi
9514 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9515 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9516 if test $ac_cv_type_union_semun = yes; then
9517
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_UNION_SEMUN 1
9520 _ACEOF
9521
9522
9523 fi
9524
9525 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9526 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9527 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   cat >conftest.$ac_ext <<_ACEOF
9531 #line $LINENO "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #ifdef HAVE_SYS_UN_H
9535 #include <sys/un.h>
9536 #endif
9537
9538
9539 #ifdef F77_DUMMY_MAIN
9540 #  ifdef __cplusplus
9541      extern "C"
9542 #  endif
9543    int F77_DUMMY_MAIN() { return 1; }
9544 #endif
9545 int
9546 main ()
9547 {
9548 if ((struct sockaddr_un *) 0)
9549   return 0;
9550 if (sizeof (struct sockaddr_un))
9551   return 0;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_type_struct_sockaddr_un=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_type_struct_sockaddr_un=no
9573 fi
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9577 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9578 if test $ac_cv_type_struct_sockaddr_un = yes; then
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_STRUCT_SOCKADDR_UN 1
9582 _ACEOF
9583
9584
9585 fi
9586
9587
9588 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9589 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9590 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9591   echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593   cat >conftest.$ac_ext <<_ACEOF
9594 #line $LINENO "configure"
9595 #include "confdefs.h"
9596 #include <sys/param.h>
9597 #include <sys/socket.h>
9598 #include <sys/ucred.h>
9599
9600 #ifdef F77_DUMMY_MAIN
9601 #  ifdef __cplusplus
9602      extern "C"
9603 #  endif
9604    int F77_DUMMY_MAIN() { return 1; }
9605 #endif
9606 int
9607 main ()
9608 {
9609 if ((struct cmsgcred *) 0)
9610   return 0;
9611 if (sizeof (struct cmsgcred))
9612   return 0;
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619   (eval $ac_compile) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } &&
9623          { ac_try='test -s conftest.$ac_objext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   ac_cv_type_struct_cmsgcred=yes
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 ac_cv_type_struct_cmsgcred=no
9634 fi
9635 rm -f conftest.$ac_objext conftest.$ac_ext
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9638 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9639 if test $ac_cv_type_struct_cmsgcred = yes; then
9640
9641 cat >>confdefs.h <<_ACEOF
9642 #define HAVE_STRUCT_CMSGCRED 1
9643 _ACEOF
9644
9645
9646 fi
9647 echo "$as_me:$LINENO: checking for struct fcred" >&5
9648 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9649 if test "${ac_cv_type_struct_fcred+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655 #include <sys/param.h>
9656 #include <sys/socket.h>
9657 #include <sys/ucred.h>
9658
9659 #ifdef F77_DUMMY_MAIN
9660 #  ifdef __cplusplus
9661      extern "C"
9662 #  endif
9663    int F77_DUMMY_MAIN() { return 1; }
9664 #endif
9665 int
9666 main ()
9667 {
9668 if ((struct fcred *) 0)
9669   return 0;
9670 if (sizeof (struct fcred))
9671   return 0;
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678   (eval $ac_compile) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -s conftest.$ac_objext'
9683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684   (eval $ac_try) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; }; then
9688   ac_cv_type_struct_fcred=yes
9689 else
9690   echo "$as_me: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9692 ac_cv_type_struct_fcred=no
9693 fi
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9695 fi
9696 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9697 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9698 if test $ac_cv_type_struct_fcred = yes; then
9699
9700 cat >>confdefs.h <<_ACEOF
9701 #define HAVE_STRUCT_FCRED 1
9702 _ACEOF
9703
9704
9705 fi
9706 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9707 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9708 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   cat >conftest.$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9713 #include "confdefs.h"
9714 #include <sys/param.h>
9715 #include <sys/socket.h>
9716 #include <sys/ucred.h>
9717
9718 #ifdef F77_DUMMY_MAIN
9719 #  ifdef __cplusplus
9720      extern "C"
9721 #  endif
9722    int F77_DUMMY_MAIN() { return 1; }
9723 #endif
9724 int
9725 main ()
9726 {
9727 if ((struct sockcred *) 0)
9728   return 0;
9729 if (sizeof (struct sockcred))
9730   return 0;
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest.$ac_objext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_type_struct_sockcred=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 ac_cv_type_struct_sockcred=no
9752 fi
9753 rm -f conftest.$ac_objext conftest.$ac_ext
9754 fi
9755 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9756 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9757 if test $ac_cv_type_struct_sockcred = yes; then
9758
9759 cat >>confdefs.h <<_ACEOF
9760 #define HAVE_STRUCT_SOCKCRED 1
9761 _ACEOF
9762
9763
9764 fi
9765
9766
9767 if test "$with_zlib" = yes; then
9768   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9769   # did not).  While we could work around the lack of z_streamp, it
9770   # seems unwise to encourage people to use such old zlib versions...
9771   echo "$as_me:$LINENO: checking for z_streamp" >&5
9772 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9773 if test "${ac_cv_type_z_streamp+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   cat >conftest.$ac_ext <<_ACEOF
9777 #line $LINENO "configure"
9778 #include "confdefs.h"
9779 #include <zlib.h>
9780
9781 #ifdef F77_DUMMY_MAIN
9782 #  ifdef __cplusplus
9783      extern "C"
9784 #  endif
9785    int F77_DUMMY_MAIN() { return 1; }
9786 #endif
9787 int
9788 main ()
9789 {
9790 if ((z_streamp *) 0)
9791   return 0;
9792 if (sizeof (z_streamp))
9793   return 0;
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800   (eval $ac_compile) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } &&
9804          { ac_try='test -s conftest.$ac_objext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_cv_type_z_streamp=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 ac_cv_type_z_streamp=no
9815 fi
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9819 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9820 if test $ac_cv_type_z_streamp = yes; then
9821   :
9822 else
9823   { { echo "$as_me:$LINENO: error: zlib version is too old
9824 Use --without-zlib to disable zlib support." >&5
9825 echo "$as_me: error: zlib version is too old
9826 Use --without-zlib to disable zlib support." >&2;}
9827    { (exit 1); exit 1; }; }
9828 fi
9829
9830 fi
9831
9832 if test "$with_krb5" = yes; then
9833 # Check for differences between MIT and Heimdal (KTH) releases
9834   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9835 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9836 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 #include "confdefs.h"
9842 #include <krb5.h>
9843
9844 #ifdef F77_DUMMY_MAIN
9845 #  ifdef __cplusplus
9846      extern "C"
9847 #  endif
9848    int F77_DUMMY_MAIN() { return 1; }
9849 #endif
9850 int
9851 main ()
9852 {
9853 static krb5_ticket ac_aggr;
9854 if (ac_aggr.enc_part2)
9855 return 0;
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862   (eval $ac_compile) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } &&
9866          { ac_try='test -s conftest.$ac_objext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_member_krb5_ticket_enc_part2=yes
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 ac_cv_member_krb5_ticket_enc_part2=no
9877 fi
9878 rm -f conftest.$ac_objext conftest.$ac_ext
9879 fi
9880 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9881 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9882 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9883
9884 cat >>confdefs.h <<_ACEOF
9885 #define HAVE_KRB5_TICKET_ENC_PART2 1
9886 _ACEOF
9887
9888
9889 else
9890   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9891 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9892 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895   cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 #include "confdefs.h"
9898 #include <krb5.h>
9899
9900 #ifdef F77_DUMMY_MAIN
9901 #  ifdef __cplusplus
9902      extern "C"
9903 #  endif
9904    int F77_DUMMY_MAIN() { return 1; }
9905 #endif
9906 int
9907 main ()
9908 {
9909 static krb5_ticket ac_aggr;
9910 if (ac_aggr.client)
9911 return 0;
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918   (eval $ac_compile) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); } &&
9922          { ac_try='test -s conftest.$ac_objext'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; }; then
9928   ac_cv_member_krb5_ticket_client=yes
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9932 ac_cv_member_krb5_ticket_client=no
9933 fi
9934 rm -f conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9937 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9938 if test $ac_cv_member_krb5_ticket_client = yes; then
9939
9940 cat >>confdefs.h <<_ACEOF
9941 #define HAVE_KRB5_TICKET_CLIENT 1
9942 _ACEOF
9943
9944
9945 else
9946   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9947 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9948    { (exit 1); exit 1; }; }
9949 fi
9950
9951 fi
9952
9953   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9954 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9955 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 #include "confdefs.h"
9961 #include <krb5.h>
9962
9963 #ifdef F77_DUMMY_MAIN
9964 #  ifdef __cplusplus
9965      extern "C"
9966 #  endif
9967    int F77_DUMMY_MAIN() { return 1; }
9968 #endif
9969 int
9970 main ()
9971 {
9972 static krb5_error ac_aggr;
9973 if (ac_aggr.text.data)
9974 return 0;
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981   (eval $ac_compile) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -s conftest.$ac_objext'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; }; then
9991   ac_cv_member_krb5_error_text_data=yes
9992 else
9993   echo "$as_me: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 ac_cv_member_krb5_error_text_data=no
9996 fi
9997 rm -f conftest.$ac_objext conftest.$ac_ext
9998 fi
9999 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10000 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10001 if test $ac_cv_member_krb5_error_text_data = yes; then
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10005 _ACEOF
10006
10007
10008 else
10009   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10010 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10011 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 #include "confdefs.h"
10017 #include <krb5.h>
10018
10019 #ifdef F77_DUMMY_MAIN
10020 #  ifdef __cplusplus
10021      extern "C"
10022 #  endif
10023    int F77_DUMMY_MAIN() { return 1; }
10024 #endif
10025 int
10026 main ()
10027 {
10028 static krb5_error ac_aggr;
10029 if (ac_aggr.e_data)
10030 return 0;
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037   (eval $ac_compile) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -s conftest.$ac_objext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   ac_cv_member_krb5_error_e_data=yes
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 ac_cv_member_krb5_error_e_data=no
10052 fi
10053 rm -f conftest.$ac_objext conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10056 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10057 if test $ac_cv_member_krb5_error_e_data = yes; then
10058   :
10059 else
10060   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10061 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10062    { (exit 1); exit 1; }; }
10063 fi
10064
10065 fi
10066
10067 fi
10068
10069
10070 ##
10071 ## Functions, global variables
10072 ##
10073 echo "$as_me:$LINENO: checking for int timezone" >&5
10074 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10075 if test "${pgac_cv_var_int_timezone+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 #include "confdefs.h"
10081 #include <time.h>
10082 int res;
10083 #ifdef F77_DUMMY_MAIN
10084 #  ifdef __cplusplus
10085      extern "C"
10086 #  endif
10087    int F77_DUMMY_MAIN() { return 1; }
10088 #endif
10089 int
10090 main ()
10091 {
10092 res = timezone / 60;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099   (eval $ac_link) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -s conftest$ac_exeext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   pgac_cv_var_int_timezone=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 pgac_cv_var_int_timezone=no
10114 fi
10115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10116 fi
10117 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10118 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10119 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10120
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_INT_TIMEZONE
10123 _ACEOF
10124
10125 fi
10126 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10127 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10128  if test "${ac_cv_func_accept_arg1+set}" = set; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131    if test "${ac_cv_func_accept_arg2+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134     if test "${ac_cv_func_accept_arg3+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10138      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10139       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10140        cat >conftest.$ac_ext <<_ACEOF
10141 #line $LINENO "configure"
10142 #include "confdefs.h"
10143 #ifdef HAVE_SYS_TYPES_H
10144 #include <sys/types.h>
10145 #endif
10146 #ifdef HAVE_SYS_SOCKET_H
10147 #include <sys/socket.h>
10148 #endif
10149 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10150 #ifdef F77_DUMMY_MAIN
10151 #  ifdef __cplusplus
10152      extern "C"
10153 #  endif
10154    int F77_DUMMY_MAIN() { return 1; }
10155 #endif
10156 int
10157 main ()
10158 {
10159
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166   (eval $ac_compile) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } &&
10170          { ac_try='test -s conftest.$ac_objext'
10171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172   (eval $ac_try) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_not_found=no; break 3
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 ac_not_found=yes
10181 fi
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10183       done
10184      done
10185     done
10186     if test "$ac_not_found" = yes; then
10187       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10188 echo "$as_me: error: could not determine argument types" >&2;}
10189    { (exit 1); exit 1; }; }
10190     fi
10191     if test "$ac_cv_func_accept_arg3" = "void"; then
10192       ac_cv_func_accept_arg3=int
10193     fi
10194
10195 fi
10196
10197 fi
10198
10199 fi
10200  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10201 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10202
10203 cat >>confdefs.h <<_ACEOF
10204 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10205 _ACEOF
10206
10207
10208 cat >>confdefs.h <<_ACEOF
10209 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10210 _ACEOF
10211
10212
10213 cat >>confdefs.h <<_ACEOF
10214 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10215 _ACEOF
10216
10217
10218 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10219 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10220 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 #include <sys/time.h>
10227 #ifdef F77_DUMMY_MAIN
10228 #  ifdef __cplusplus
10229      extern "C"
10230 #  endif
10231    int F77_DUMMY_MAIN() { return 1; }
10232 #endif
10233 int
10234 main ()
10235 {
10236 struct timeval *tp;
10237 struct timezone *tzp;
10238 gettimeofday(tp,tzp);
10239   ;
10240   return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245   (eval $ac_compile) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   pgac_cv_func_gettimeofday_1arg=no
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10259 pgac_cv_func_gettimeofday_1arg=yes
10260 fi
10261 rm -f conftest.$ac_objext conftest.$ac_ext
10262 fi
10263 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10264 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10265 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10266
10267 cat >>confdefs.h <<\_ACEOF
10268 #define GETTIMEOFDAY_1ARG
10269 _ACEOF
10270
10271 fi
10272
10273 # SunOS doesn't handle negative byte comparisons properly with +/- return
10274 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10275 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10276 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   if test "$cross_compiling" = yes; then
10280   pgac_cv_func_memcmp_clean=no
10281 else
10282   cat >conftest.$ac_ext <<_ACEOF
10283 #line $LINENO "configure"
10284 #include "confdefs.h"
10285
10286 main()
10287 {
10288   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10289   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10290 }
10291
10292 _ACEOF
10293 rm -f conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295   (eval $ac_link) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   pgac_cv_func_memcmp_clean=yes
10305 else
10306   echo "$as_me: program exited with status $ac_status" >&5
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ( exit $ac_status )
10310 pgac_cv_func_memcmp_clean=no
10311 fi
10312 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10313 fi
10314 fi
10315 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10316 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10317 if test $pgac_cv_func_memcmp_clean = no ; then
10318   MEMCMP=memcmp.o
10319 else
10320   MEMCMP=
10321 fi
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10337 do
10338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10339 echo "$as_me:$LINENO: checking for $ac_func" >&5
10340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10341 if eval "test \"\${$as_ac_var+set}\" = set"; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 #include "confdefs.h"
10347 /* System header to define __stub macros and hopefully few prototypes,
10348     which can conflict with char $ac_func (); below.  */
10349 #include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355    builtin and then its argument prototype would still apply.  */
10356 char $ac_func ();
10357 char (*f) ();
10358
10359 #ifdef F77_DUMMY_MAIN
10360 #  ifdef __cplusplus
10361      extern "C"
10362 #  endif
10363    int F77_DUMMY_MAIN() { return 1; }
10364 #endif
10365 int
10366 main ()
10367 {
10368 /* The GNU C library defines this for functions which it implements
10369     to always fail with ENOSYS.  Some functions are actually named
10370     something starting with __ and the normal name is an alias.  */
10371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372 choke me
10373 #else
10374 f = $ac_func;
10375 #endif
10376
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383   (eval $ac_link) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   eval "$as_ac_var=yes"
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 eval "$as_ac_var=no"
10398 fi
10399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10400 fi
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10403 if test `eval echo '${'$as_ac_var'}'` = yes; then
10404   cat >>confdefs.h <<_ACEOF
10405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10406 _ACEOF
10407
10408 fi
10409 done
10410
10411
10412 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10413 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10414 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10419 #include "confdefs.h"
10420 #include <unistd.h>
10421
10422 #ifdef F77_DUMMY_MAIN
10423 #  ifdef __cplusplus
10424      extern "C"
10425 #  endif
10426    int F77_DUMMY_MAIN() { return 1; }
10427 #endif
10428 int
10429 main ()
10430 {
10431 #ifndef fdatasync
10432   char *p = (char *) fdatasync;
10433 #endif
10434
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -s conftest.$ac_objext'
10446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447   (eval $ac_try) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451   ac_cv_have_decl_fdatasync=yes
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 ac_cv_have_decl_fdatasync=no
10456 fi
10457 rm -f conftest.$ac_objext conftest.$ac_ext
10458 fi
10459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10460 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10461 if test $ac_cv_have_decl_fdatasync = yes; then
10462
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_DECL_FDATASYNC 1
10465 _ACEOF
10466
10467
10468 else
10469   cat >>confdefs.h <<_ACEOF
10470 #define HAVE_DECL_FDATASYNC 0
10471 _ACEOF
10472
10473
10474 fi
10475
10476
10477
10478 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10479 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10480 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 #include "confdefs.h"
10486 #include <machine/vmparam.h>
10487 #include <sys/exec.h>
10488
10489 #ifdef F77_DUMMY_MAIN
10490 #  ifdef __cplusplus
10491      extern "C"
10492 #  endif
10493    int F77_DUMMY_MAIN() { return 1; }
10494 #endif
10495 int
10496 main ()
10497 {
10498 PS_STRINGS->ps_nargvstr = 1;
10499 PS_STRINGS->ps_argvstr = "foo";
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506   (eval $ac_link) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); } &&
10510          { ac_try='test -s conftest$ac_exeext'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }; then
10516   pgac_cv_var_PS_STRINGS=yes
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 pgac_cv_var_PS_STRINGS=no
10521 fi
10522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10523 fi
10524 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10525 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10526 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10527
10528 cat >>confdefs.h <<\_ACEOF
10529 #define HAVE_PS_STRINGS
10530 _ACEOF
10531
10532 fi
10533
10534
10535 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10536 # is missing.  Yes, there are machines that have only one.  We may
10537 # also decide to use snprintf.c if snprintf() is present but does not
10538 # have working "long long int" support -- see below.
10539
10540 SNPRINTF=''
10541
10542 for ac_func in snprintf
10543 do
10544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10545 echo "$as_me:$LINENO: checking for $ac_func" >&5
10546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10547 if eval "test \"\${$as_ac_var+set}\" = set"; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 #include "confdefs.h"
10553 /* System header to define __stub macros and hopefully few prototypes,
10554     which can conflict with char $ac_func (); below.  */
10555 #include <assert.h>
10556 /* Override any gcc2 internal prototype to avoid an error.  */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 /* We use char because int might match the return type of a gcc2
10561    builtin and then its argument prototype would still apply.  */
10562 char $ac_func ();
10563 char (*f) ();
10564
10565 #ifdef F77_DUMMY_MAIN
10566 #  ifdef __cplusplus
10567      extern "C"
10568 #  endif
10569    int F77_DUMMY_MAIN() { return 1; }
10570 #endif
10571 int
10572 main ()
10573 {
10574 /* The GNU C library defines this for functions which it implements
10575     to always fail with ENOSYS.  Some functions are actually named
10576     something starting with __ and the normal name is an alias.  */
10577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10578 choke me
10579 #else
10580 f = $ac_func;
10581 #endif
10582
10583   ;
10584   return 0;
10585 }
10586 _ACEOF
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589   (eval $ac_link) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } &&
10593          { ac_try='test -s conftest$ac_exeext'
10594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595   (eval $ac_try) 2>&5
10596   ac_status=$?
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); }; }; then
10599   eval "$as_ac_var=yes"
10600 else
10601   echo "$as_me: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 eval "$as_ac_var=no"
10604 fi
10605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10606 fi
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10609 if test `eval echo '${'$as_ac_var'}'` = yes; then
10610   cat >>confdefs.h <<_ACEOF
10611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10612 _ACEOF
10613
10614 else
10615   SNPRINTF='snprintf.o'
10616 fi
10617 done
10618
10619
10620 for ac_func in vsnprintf
10621 do
10622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 echo "$as_me:$LINENO: checking for $ac_func" >&5
10624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10625 if eval "test \"\${$as_ac_var+set}\" = set"; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628   cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 #include "confdefs.h"
10631 /* System header to define __stub macros and hopefully few prototypes,
10632     which can conflict with char $ac_func (); below.  */
10633 #include <assert.h>
10634 /* Override any gcc2 internal prototype to avoid an error.  */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 /* We use char because int might match the return type of a gcc2
10639    builtin and then its argument prototype would still apply.  */
10640 char $ac_func ();
10641 char (*f) ();
10642
10643 #ifdef F77_DUMMY_MAIN
10644 #  ifdef __cplusplus
10645      extern "C"
10646 #  endif
10647    int F77_DUMMY_MAIN() { return 1; }
10648 #endif
10649 int
10650 main ()
10651 {
10652 /* The GNU C library defines this for functions which it implements
10653     to always fail with ENOSYS.  Some functions are actually named
10654     something starting with __ and the normal name is an alias.  */
10655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10656 choke me
10657 #else
10658 f = $ac_func;
10659 #endif
10660
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667   (eval $ac_link) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -s conftest$ac_exeext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   eval "$as_ac_var=yes"
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 eval "$as_ac_var=no"
10682 fi
10683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10684 fi
10685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10687 if test `eval echo '${'$as_ac_var'}'` = yes; then
10688   cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10690 _ACEOF
10691
10692 else
10693   SNPRINTF='snprintf.o'
10694 fi
10695 done
10696
10697
10698
10699
10700 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10701 # include/c.h will provide declarations.  Note this is a separate test
10702 # from whether the functions exist in the C library --- there are
10703 # systems that have the functions but don't bother to declare them :-(
10704
10705 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10706 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10707 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   cat >conftest.$ac_ext <<_ACEOF
10711 #line $LINENO "configure"
10712 #include "confdefs.h"
10713 $ac_includes_default
10714 #ifdef F77_DUMMY_MAIN
10715 #  ifdef __cplusplus
10716      extern "C"
10717 #  endif
10718    int F77_DUMMY_MAIN() { return 1; }
10719 #endif
10720 int
10721 main ()
10722 {
10723 #ifndef snprintf
10724   char *p = (char *) snprintf;
10725 #endif
10726
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733   (eval $ac_compile) 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -s conftest.$ac_objext'
10738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739   (eval $ac_try) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; }; then
10743   ac_cv_have_decl_snprintf=yes
10744 else
10745   echo "$as_me: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 ac_cv_have_decl_snprintf=no
10748 fi
10749 rm -f conftest.$ac_objext conftest.$ac_ext
10750 fi
10751 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10752 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10753 if test $ac_cv_have_decl_snprintf = yes; then
10754
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_DECL_SNPRINTF 1
10757 _ACEOF
10758
10759
10760 else
10761   cat >>confdefs.h <<_ACEOF
10762 #define HAVE_DECL_SNPRINTF 0
10763 _ACEOF
10764
10765
10766 fi
10767 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10768 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10769 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 $ac_includes_default
10776 #ifdef F77_DUMMY_MAIN
10777 #  ifdef __cplusplus
10778      extern "C"
10779 #  endif
10780    int F77_DUMMY_MAIN() { return 1; }
10781 #endif
10782 int
10783 main ()
10784 {
10785 #ifndef vsnprintf
10786   char *p = (char *) vsnprintf;
10787 #endif
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795   (eval $ac_compile) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_cv_have_decl_vsnprintf=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_cv_have_decl_vsnprintf=no
10810 fi
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10812 fi
10813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10814 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10815 if test $ac_cv_have_decl_vsnprintf = yes; then
10816
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_DECL_VSNPRINTF 1
10819 _ACEOF
10820
10821
10822 else
10823   cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_VSNPRINTF 0
10825 _ACEOF
10826
10827
10828 fi
10829
10830
10831
10832
10833 # do this one the hard way in case isinf() is a macro
10834 echo "$as_me:$LINENO: checking for isinf" >&5
10835 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10836 if test "${ac_cv_func_isinf+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 #include "confdefs.h"
10842 #include <math.h>
10843
10844 #ifdef F77_DUMMY_MAIN
10845 #  ifdef __cplusplus
10846      extern "C"
10847 #  endif
10848    int F77_DUMMY_MAIN() { return 1; }
10849 #endif
10850 int
10851 main ()
10852 {
10853 double x = 0.0; int res = isinf(x);
10854   ;
10855   return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860   (eval $ac_link) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -s conftest$ac_exeext'
10865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866   (eval $ac_try) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; }; then
10870   ac_cv_func_isinf=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 ac_cv_func_isinf=no
10875 fi
10876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10877 fi
10878 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10879 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10880
10881 if test $ac_cv_func_isinf = yes ; then
10882
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_ISINF 1
10885 _ACEOF
10886
10887   ISINF=
10888 else
10889   ISINF='isinf.o'
10890   # Look for a way to implement a substitute for isinf()
10891
10892
10893
10894
10895 for ac_func in fpclass fp_class fp_class_d class
10896 do
10897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10898 echo "$as_me:$LINENO: checking for $ac_func" >&5
10899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10900 if eval "test \"\${$as_ac_var+set}\" = set"; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10905 #include "confdefs.h"
10906 /* System header to define __stub macros and hopefully few prototypes,
10907     which can conflict with char $ac_func (); below.  */
10908 #include <assert.h>
10909 /* Override any gcc2 internal prototype to avoid an error.  */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 /* We use char because int might match the return type of a gcc2
10914    builtin and then its argument prototype would still apply.  */
10915 char $ac_func ();
10916 char (*f) ();
10917
10918 #ifdef F77_DUMMY_MAIN
10919 #  ifdef __cplusplus
10920      extern "C"
10921 #  endif
10922    int F77_DUMMY_MAIN() { return 1; }
10923 #endif
10924 int
10925 main ()
10926 {
10927 /* The GNU C library defines this for functions which it implements
10928     to always fail with ENOSYS.  Some functions are actually named
10929     something starting with __ and the normal name is an alias.  */
10930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10931 choke me
10932 #else
10933 f = $ac_func;
10934 #endif
10935
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942   (eval $ac_link) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -s conftest$ac_exeext'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   eval "$as_ac_var=yes"
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 eval "$as_ac_var=no"
10957 fi
10958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10959 fi
10960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10962 if test `eval echo '${'$as_ac_var'}'` = yes; then
10963   cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965 _ACEOF
10966  break
10967 fi
10968 done
10969
10970 fi
10971
10972
10973
10974
10975 for ac_func in getrusage
10976 do
10977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978 echo "$as_me:$LINENO: checking for $ac_func" >&5
10979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_var+set}\" = set"; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   cat >conftest.$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10985 #include "confdefs.h"
10986 /* System header to define __stub macros and hopefully few prototypes,
10987     which can conflict with char $ac_func (); below.  */
10988 #include <assert.h>
10989 /* Override any gcc2 internal prototype to avoid an error.  */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 /* We use char because int might match the return type of a gcc2
10994    builtin and then its argument prototype would still apply.  */
10995 char $ac_func ();
10996 char (*f) ();
10997
10998 #ifdef F77_DUMMY_MAIN
10999 #  ifdef __cplusplus
11000      extern "C"
11001 #  endif
11002    int F77_DUMMY_MAIN() { return 1; }
11003 #endif
11004 int
11005 main ()
11006 {
11007 /* The GNU C library defines this for functions which it implements
11008     to always fail with ENOSYS.  Some functions are actually named
11009     something starting with __ and the normal name is an alias.  */
11010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11011 choke me
11012 #else
11013 f = $ac_func;
11014 #endif
11015
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022   (eval $ac_link) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -s conftest$ac_exeext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   eval "$as_ac_var=yes"
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 eval "$as_ac_var=no"
11037 fi
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11039 fi
11040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11042 if test `eval echo '${'$as_ac_var'}'` = yes; then
11043   cat >>confdefs.h <<_ACEOF
11044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045 _ACEOF
11046
11047 else
11048   GETRUSAGE='getrusage.o'
11049 fi
11050 done
11051
11052
11053
11054 for ac_func in srandom
11055 do
11056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 echo "$as_me:$LINENO: checking for $ac_func" >&5
11058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_var+set}\" = set"; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066     which can conflict with char $ac_func (); below.  */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 /* We use char because int might match the return type of a gcc2
11073    builtin and then its argument prototype would still apply.  */
11074 char $ac_func ();
11075 char (*f) ();
11076
11077 #ifdef F77_DUMMY_MAIN
11078 #  ifdef __cplusplus
11079      extern "C"
11080 #  endif
11081    int F77_DUMMY_MAIN() { return 1; }
11082 #endif
11083 int
11084 main ()
11085 {
11086 /* The GNU C library defines this for functions which it implements
11087     to always fail with ENOSYS.  Some functions are actually named
11088     something starting with __ and the normal name is an alias.  */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11090 choke me
11091 #else
11092 f = $ac_func;
11093 #endif
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -s conftest$ac_exeext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   eval "$as_ac_var=yes"
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11116 fi
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118 fi
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122   cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11124 _ACEOF
11125
11126 else
11127   SRANDOM='srandom.o'
11128 fi
11129 done
11130
11131
11132
11133 for ac_func in gethostname
11134 do
11135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11136 echo "$as_me:$LINENO: checking for $ac_func" >&5
11137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11138 if eval "test \"\${$as_ac_var+set}\" = set"; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 #include "confdefs.h"
11144 /* System header to define __stub macros and hopefully few prototypes,
11145     which can conflict with char $ac_func (); below.  */
11146 #include <assert.h>
11147 /* Override any gcc2 internal prototype to avoid an error.  */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 /* We use char because int might match the return type of a gcc2
11152    builtin and then its argument prototype would still apply.  */
11153 char $ac_func ();
11154 char (*f) ();
11155
11156 #ifdef F77_DUMMY_MAIN
11157 #  ifdef __cplusplus
11158      extern "C"
11159 #  endif
11160    int F77_DUMMY_MAIN() { return 1; }
11161 #endif
11162 int
11163 main ()
11164 {
11165 /* The GNU C library defines this for functions which it implements
11166     to always fail with ENOSYS.  Some functions are actually named
11167     something starting with __ and the normal name is an alias.  */
11168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169 choke me
11170 #else
11171 f = $ac_func;
11172 #endif
11173
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180   (eval $ac_link) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } &&
11184          { ac_try='test -s conftest$ac_exeext'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   eval "$as_ac_var=yes"
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 eval "$as_ac_var=no"
11195 fi
11196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11197 fi
11198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11200 if test `eval echo '${'$as_ac_var'}'` = yes; then
11201   cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11203 _ACEOF
11204
11205 else
11206   GETHOSTNAME='gethostname.o'
11207 fi
11208 done
11209
11210
11211
11212 for ac_func in random
11213 do
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11217 if eval "test \"\${$as_ac_var+set}\" = set"; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 #include "confdefs.h"
11223 /* System header to define __stub macros and hopefully few prototypes,
11224     which can conflict with char $ac_func (); below.  */
11225 #include <assert.h>
11226 /* Override any gcc2 internal prototype to avoid an error.  */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 /* We use char because int might match the return type of a gcc2
11231    builtin and then its argument prototype would still apply.  */
11232 char $ac_func ();
11233 char (*f) ();
11234
11235 #ifdef F77_DUMMY_MAIN
11236 #  ifdef __cplusplus
11237      extern "C"
11238 #  endif
11239    int F77_DUMMY_MAIN() { return 1; }
11240 #endif
11241 int
11242 main ()
11243 {
11244 /* The GNU C library defines this for functions which it implements
11245     to always fail with ENOSYS.  Some functions are actually named
11246     something starting with __ and the normal name is an alias.  */
11247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11248 choke me
11249 #else
11250 f = $ac_func;
11251 #endif
11252
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259   (eval $ac_link) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -s conftest$ac_exeext'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   eval "$as_ac_var=yes"
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 eval "$as_ac_var=no"
11274 fi
11275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11276 fi
11277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11279 if test `eval echo '${'$as_ac_var'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 else
11285   MISSING_RANDOM='random.o'
11286 fi
11287 done
11288
11289
11290
11291 for ac_func in inet_aton
11292 do
11293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 echo "$as_me:$LINENO: checking for $ac_func" >&5
11295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11296 if eval "test \"\${$as_ac_var+set}\" = set"; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   cat >conftest.$ac_ext <<_ACEOF
11300 #line $LINENO "configure"
11301 #include "confdefs.h"
11302 /* System header to define __stub macros and hopefully few prototypes,
11303     which can conflict with char $ac_func (); below.  */
11304 #include <assert.h>
11305 /* Override any gcc2 internal prototype to avoid an error.  */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 /* We use char because int might match the return type of a gcc2
11310    builtin and then its argument prototype would still apply.  */
11311 char $ac_func ();
11312 char (*f) ();
11313
11314 #ifdef F77_DUMMY_MAIN
11315 #  ifdef __cplusplus
11316      extern "C"
11317 #  endif
11318    int F77_DUMMY_MAIN() { return 1; }
11319 #endif
11320 int
11321 main ()
11322 {
11323 /* The GNU C library defines this for functions which it implements
11324     to always fail with ENOSYS.  Some functions are actually named
11325     something starting with __ and the normal name is an alias.  */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 f = $ac_func;
11330 #endif
11331
11332   ;
11333   return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338   (eval $ac_link) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -s conftest$ac_exeext'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   eval "$as_ac_var=yes"
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 eval "$as_ac_var=no"
11353 fi
11354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11355 fi
11356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11358 if test `eval echo '${'$as_ac_var'}'` = yes; then
11359   cat >>confdefs.h <<_ACEOF
11360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11361 _ACEOF
11362
11363 else
11364   INET_ATON='inet_aton.o'
11365 fi
11366 done
11367
11368
11369
11370 for ac_func in strerror
11371 do
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   cat >conftest.$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11380 #include "confdefs.h"
11381 /* System header to define __stub macros and hopefully few prototypes,
11382     which can conflict with char $ac_func (); below.  */
11383 #include <assert.h>
11384 /* Override any gcc2 internal prototype to avoid an error.  */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 /* We use char because int might match the return type of a gcc2
11389    builtin and then its argument prototype would still apply.  */
11390 char $ac_func ();
11391 char (*f) ();
11392
11393 #ifdef F77_DUMMY_MAIN
11394 #  ifdef __cplusplus
11395      extern "C"
11396 #  endif
11397    int F77_DUMMY_MAIN() { return 1; }
11398 #endif
11399 int
11400 main ()
11401 {
11402 /* The GNU C library defines this for functions which it implements
11403     to always fail with ENOSYS.  Some functions are actually named
11404     something starting with __ and the normal name is an alias.  */
11405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11406 choke me
11407 #else
11408 f = $ac_func;
11409 #endif
11410
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417   (eval $ac_link) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -s conftest$ac_exeext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   eval "$as_ac_var=yes"
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 eval "$as_ac_var=no"
11432 fi
11433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434 fi
11435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11437 if test `eval echo '${'$as_ac_var'}'` = yes; then
11438   cat >>confdefs.h <<_ACEOF
11439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11440 _ACEOF
11441
11442 else
11443   STRERROR='strerror.o'
11444 fi
11445 done
11446
11447
11448
11449 for ac_func in strdup
11450 do
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_var+set}\" = set"; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   cat >conftest.$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11459 #include "confdefs.h"
11460 /* System header to define __stub macros and hopefully few prototypes,
11461     which can conflict with char $ac_func (); below.  */
11462 #include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error.  */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 /* We use char because int might match the return type of a gcc2
11468    builtin and then its argument prototype would still apply.  */
11469 char $ac_func ();
11470 char (*f) ();
11471
11472 #ifdef F77_DUMMY_MAIN
11473 #  ifdef __cplusplus
11474      extern "C"
11475 #  endif
11476    int F77_DUMMY_MAIN() { return 1; }
11477 #endif
11478 int
11479 main ()
11480 {
11481 /* The GNU C library defines this for functions which it implements
11482     to always fail with ENOSYS.  Some functions are actually named
11483     something starting with __ and the normal name is an alias.  */
11484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11485 choke me
11486 #else
11487 f = $ac_func;
11488 #endif
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -s conftest$ac_exeext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   eval "$as_ac_var=yes"
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 eval "$as_ac_var=no"
11511 fi
11512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517   cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519 _ACEOF
11520
11521 else
11522   STRDUP='../../utils/strdup.o'
11523 fi
11524 done
11525
11526
11527
11528 for ac_func in strtol
11529 do
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_var+set}\" = set"; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 #include "confdefs.h"
11539 /* System header to define __stub macros and hopefully few prototypes,
11540     which can conflict with char $ac_func (); below.  */
11541 #include <assert.h>
11542 /* Override any gcc2 internal prototype to avoid an error.  */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 /* We use char because int might match the return type of a gcc2
11547    builtin and then its argument prototype would still apply.  */
11548 char $ac_func ();
11549 char (*f) ();
11550
11551 #ifdef F77_DUMMY_MAIN
11552 #  ifdef __cplusplus
11553      extern "C"
11554 #  endif
11555    int F77_DUMMY_MAIN() { return 1; }
11556 #endif
11557 int
11558 main ()
11559 {
11560 /* The GNU C library defines this for functions which it implements
11561     to always fail with ENOSYS.  Some functions are actually named
11562     something starting with __ and the normal name is an alias.  */
11563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11564 choke me
11565 #else
11566 f = $ac_func;
11567 #endif
11568
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575   (eval $ac_link) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } &&
11579          { ac_try='test -s conftest$ac_exeext'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; }; then
11585   eval "$as_ac_var=yes"
11586 else
11587   echo "$as_me: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11589 eval "$as_ac_var=no"
11590 fi
11591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11592 fi
11593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11595 if test `eval echo '${'$as_ac_var'}'` = yes; then
11596   cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598 _ACEOF
11599
11600 else
11601   STRTOL='strtol.o'
11602 fi
11603 done
11604
11605
11606
11607 for ac_func in strtoul
11608 do
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11612 if eval "test \"\${$as_ac_var+set}\" = set"; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char $ac_func (); below.  */
11620 #include <assert.h>
11621 /* Override any gcc2 internal prototype to avoid an error.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626    builtin and then its argument prototype would still apply.  */
11627 char $ac_func ();
11628 char (*f) ();
11629
11630 #ifdef F77_DUMMY_MAIN
11631 #  ifdef __cplusplus
11632      extern "C"
11633 #  endif
11634    int F77_DUMMY_MAIN() { return 1; }
11635 #endif
11636 int
11637 main ()
11638 {
11639 /* The GNU C library defines this for functions which it implements
11640     to always fail with ENOSYS.  Some functions are actually named
11641     something starting with __ and the normal name is an alias.  */
11642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11643 choke me
11644 #else
11645 f = $ac_func;
11646 #endif
11647
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654   (eval $ac_link) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } &&
11658          { ac_try='test -s conftest$ac_exeext'
11659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660   (eval $ac_try) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; }; then
11664   eval "$as_ac_var=yes"
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11669 fi
11670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11671 fi
11672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11674 if test `eval echo '${'$as_ac_var'}'` = yes; then
11675   cat >>confdefs.h <<_ACEOF
11676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677 _ACEOF
11678
11679 else
11680   STRTOUL='strtoul.o'
11681 fi
11682 done
11683
11684
11685
11686 for ac_func in strcasecmp
11687 do
11688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691 if eval "test \"\${$as_ac_var+set}\" = set"; then
11692   echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694   cat >conftest.$ac_ext <<_ACEOF
11695 #line $LINENO "configure"
11696 #include "confdefs.h"
11697 /* System header to define __stub macros and hopefully few prototypes,
11698     which can conflict with char $ac_func (); below.  */
11699 #include <assert.h>
11700 /* Override any gcc2 internal prototype to avoid an error.  */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 /* We use char because int might match the return type of a gcc2
11705    builtin and then its argument prototype would still apply.  */
11706 char $ac_func ();
11707 char (*f) ();
11708
11709 #ifdef F77_DUMMY_MAIN
11710 #  ifdef __cplusplus
11711      extern "C"
11712 #  endif
11713    int F77_DUMMY_MAIN() { return 1; }
11714 #endif
11715 int
11716 main ()
11717 {
11718 /* The GNU C library defines this for functions which it implements
11719     to always fail with ENOSYS.  Some functions are actually named
11720     something starting with __ and the normal name is an alias.  */
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11722 choke me
11723 #else
11724 f = $ac_func;
11725 #endif
11726
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733   (eval $ac_link) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -s conftest$ac_exeext'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   eval "$as_ac_var=yes"
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11748 fi
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11750 fi
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754   cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11757
11758 else
11759   STRCASECMP='strcasecmp.o'
11760 fi
11761 done
11762
11763
11764
11765 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11766 # this hackery with HPUXMATHLIB allows us to cope.
11767 HPUXMATHLIB=""
11768 case $host_cpu in
11769   hppa1.1)
11770         if [ -r /lib/pa1.1/libm.a ] ; then
11771             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11772         fi ;;
11773 esac
11774
11775
11776
11777 for ac_func in rint
11778 do
11779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780 echo "$as_me:$LINENO: checking for $ac_func" >&5
11781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11782 if eval "test \"\${$as_ac_var+set}\" = set"; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   cat >conftest.$ac_ext <<_ACEOF
11786 #line $LINENO "configure"
11787 #include "confdefs.h"
11788 /* System header to define __stub macros and hopefully few prototypes,
11789     which can conflict with char $ac_func (); below.  */
11790 #include <assert.h>
11791 /* Override any gcc2 internal prototype to avoid an error.  */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 /* We use char because int might match the return type of a gcc2
11796    builtin and then its argument prototype would still apply.  */
11797 char $ac_func ();
11798 char (*f) ();
11799
11800 #ifdef F77_DUMMY_MAIN
11801 #  ifdef __cplusplus
11802      extern "C"
11803 #  endif
11804    int F77_DUMMY_MAIN() { return 1; }
11805 #endif
11806 int
11807 main ()
11808 {
11809 /* The GNU C library defines this for functions which it implements
11810     to always fail with ENOSYS.  Some functions are actually named
11811     something starting with __ and the normal name is an alias.  */
11812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11813 choke me
11814 #else
11815 f = $ac_func;
11816 #endif
11817
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest$ac_exeext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   eval "$as_ac_var=yes"
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 eval "$as_ac_var=no"
11839 fi
11840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11841 fi
11842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11844 if test `eval echo '${'$as_ac_var'}'` = yes; then
11845   cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11847 _ACEOF
11848
11849 else
11850   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11851 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11852 if test "${ac_cv_lib_m_rint+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lm $HPUXMATHLIB $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 #include "confdefs.h"
11860
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 /* We use char because int might match the return type of a gcc2
11866    builtin and then its argument prototype would still apply.  */
11867 char rint ();
11868 #ifdef F77_DUMMY_MAIN
11869 #  ifdef __cplusplus
11870      extern "C"
11871 #  endif
11872    int F77_DUMMY_MAIN() { return 1; }
11873 #endif
11874 int
11875 main ()
11876 {
11877 rint ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884   (eval $ac_link) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -s conftest$ac_exeext'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_cv_lib_m_rint=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 ac_cv_lib_m_rint=no
11899 fi
11900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11904 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11905 if test $ac_cv_lib_m_rint = yes; then
11906   cat >>confdefs.h <<\_ACEOF
11907 #define HAVE_RINT 1
11908 _ACEOF
11909
11910 fi
11911
11912 fi
11913 done
11914
11915
11916
11917 if test "$with_readline" = yes; then
11918   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11919 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11920 cat >conftest.$ac_ext <<_ACEOF
11921 #line $LINENO "configure"
11922 #include "confdefs.h"
11923 #include <stdio.h>
11924 #ifdef HAVE_READLINE_READLINE_H
11925 # include <readline/readline.h>
11926 #elif defined(HAVE_READLINE_H)
11927 # include <readline.h>
11928 #endif
11929
11930 #ifdef F77_DUMMY_MAIN
11931 #  ifdef __cplusplus
11932      extern "C"
11933 #  endif
11934    int F77_DUMMY_MAIN() { return 1; }
11935 #endif
11936 int
11937 main ()
11938 {
11939 rl_completion_append_character = 'x';
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946   (eval $ac_link) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -s conftest$ac_exeext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   echo "$as_me:$LINENO: result: yes" >&5
11957 echo "${ECHO_T}yes" >&6
11958
11959 cat >>confdefs.h <<\_ACEOF
11960 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11961 _ACEOF
11962
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 echo "$as_me:$LINENO: result: no" >&5
11967 echo "${ECHO_T}no" >&6
11968 fi
11969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11970
11971
11972 for ac_func in rl_completion_matches rl_filename_completion_function
11973 do
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984     which can conflict with char $ac_func (); below.  */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error.  */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 /* We use char because int might match the return type of a gcc2
11991    builtin and then its argument prototype would still apply.  */
11992 char $ac_func ();
11993 char (*f) ();
11994
11995 #ifdef F77_DUMMY_MAIN
11996 #  ifdef __cplusplus
11997      extern "C"
11998 #  endif
11999    int F77_DUMMY_MAIN() { return 1; }
12000 #endif
12001 int
12002 main ()
12003 {
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 choke me
12009 #else
12010 f = $ac_func;
12011 #endif
12012
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019   (eval $ac_link) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest$ac_exeext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   eval "$as_ac_var=yes"
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 eval "$as_ac_var=no"
12034 fi
12035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12036 fi
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045 done
12046
12047 fi
12048
12049
12050 echo "$as_me:$LINENO: checking for finite" >&5
12051 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12055 #include <math.h>
12056 #ifdef F77_DUMMY_MAIN
12057 #  ifdef __cplusplus
12058      extern "C"
12059 #  endif
12060    int F77_DUMMY_MAIN() { return 1; }
12061 #endif
12062 int
12063 main ()
12064 {
12065 int dummy=finite(1.0);
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072   (eval $ac_link) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_FINITE 1
12085 _ACEOF
12086
12087 echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 echo "$as_me:$LINENO: result: no" >&5
12093 echo "${ECHO_T}no" >&6
12094 fi
12095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12096
12097 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12098 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102 #include <setjmp.h>
12103 #ifdef F77_DUMMY_MAIN
12104 #  ifdef __cplusplus
12105      extern "C"
12106 #  endif
12107    int F77_DUMMY_MAIN() { return 1; }
12108 #endif
12109 int
12110 main ()
12111 {
12112 sigjmp_buf x; sigsetjmp(x, 1);
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119   (eval $ac_link) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest$ac_exeext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129
12130 cat >>confdefs.h <<\_ACEOF
12131 #define HAVE_SIGSETJMP 1
12132 _ACEOF
12133
12134 echo "$as_me:$LINENO: result: yes" >&5
12135 echo "${ECHO_T}yes" >&6
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12141 fi
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143
12144 echo "$as_me:$LINENO: checking for syslog" >&5
12145 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12146 if test "${ac_cv_func_syslog+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 #include "confdefs.h"
12152 /* System header to define __stub macros and hopefully few prototypes,
12153     which can conflict with char syslog (); below.  */
12154 #include <assert.h>
12155 /* Override any gcc2 internal prototype to avoid an error.  */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 /* We use char because int might match the return type of a gcc2
12160    builtin and then its argument prototype would still apply.  */
12161 char syslog ();
12162 char (*f) ();
12163
12164 #ifdef F77_DUMMY_MAIN
12165 #  ifdef __cplusplus
12166      extern "C"
12167 #  endif
12168    int F77_DUMMY_MAIN() { return 1; }
12169 #endif
12170 int
12171 main ()
12172 {
12173 /* The GNU C library defines this for functions which it implements
12174     to always fail with ENOSYS.  Some functions are actually named
12175     something starting with __ and the normal name is an alias.  */
12176 #if defined (__stub_syslog) || defined (__stub___syslog)
12177 choke me
12178 #else
12179 f = syslog;
12180 #endif
12181
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188   (eval $ac_link) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -s conftest$ac_exeext'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   ac_cv_func_syslog=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 ac_cv_func_syslog=no
12203 fi
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205 fi
12206 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12207 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12208 if test $ac_cv_func_syslog = yes; then
12209   if test "${ac_cv_header_syslog_h+set}" = set; then
12210   echo "$as_me:$LINENO: checking for syslog.h" >&5
12211 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12212 if test "${ac_cv_header_syslog_h+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 fi
12215 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12216 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12217 else
12218   # Is the header compilable?
12219 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12220 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12221 cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 #include "confdefs.h"
12224 $ac_includes_default
12225 #include <syslog.h>
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229   (eval $ac_compile) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); } &&
12233          { ac_try='test -s conftest.$ac_objext'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   ac_header_compiler=yes
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12243 ac_header_compiler=no
12244 fi
12245 rm -f conftest.$ac_objext conftest.$ac_ext
12246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12247 echo "${ECHO_T}$ac_header_compiler" >&6
12248
12249 # Is the header present?
12250 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12251 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255 #include <syslog.h>
12256 _ACEOF
12257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12259   ac_status=$?
12260   egrep -v '^ *\+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } >/dev/null; then
12265   if test -s conftest.err; then
12266     ac_cpp_err=$ac_c_preproc_warn_flag
12267   else
12268     ac_cpp_err=
12269   fi
12270 else
12271   ac_cpp_err=yes
12272 fi
12273 if test -z "$ac_cpp_err"; then
12274   ac_header_preproc=yes
12275 else
12276   echo "$as_me: failed program was:" >&5
12277   cat conftest.$ac_ext >&5
12278   ac_header_preproc=no
12279 fi
12280 rm -f conftest.err conftest.$ac_ext
12281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12282 echo "${ECHO_T}$ac_header_preproc" >&6
12283
12284 # So?  What about this header?
12285 case $ac_header_compiler:$ac_header_preproc in
12286   yes:no )
12287     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12288 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12290 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12291   no:yes )
12292     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12293 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12294     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12295 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12296     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12298 esac
12299 echo "$as_me:$LINENO: checking for syslog.h" >&5
12300 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12301 if test "${ac_cv_header_syslog_h+set}" = set; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304   ac_cv_header_syslog_h=$ac_header_preproc
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12307 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12308
12309 fi
12310 if test $ac_cv_header_syslog_h = yes; then
12311   cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_SYSLOG 1
12313 _ACEOF
12314
12315 fi
12316
12317
12318 fi
12319
12320
12321 echo "$as_me:$LINENO: checking for optreset" >&5
12322 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12323 if test "${pgac_cv_var_int_optreset+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329 #include <unistd.h>
12330 #ifdef F77_DUMMY_MAIN
12331 #  ifdef __cplusplus
12332      extern "C"
12333 #  endif
12334    int F77_DUMMY_MAIN() { return 1; }
12335 #endif
12336 int
12337 main ()
12338 {
12339 extern int optreset; optreset = 1;
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346   (eval $ac_link) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -s conftest$ac_exeext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   pgac_cv_var_int_optreset=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 pgac_cv_var_int_optreset=no
12361 fi
12362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12363 fi
12364 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12365 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12366 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_INT_OPTRESET 1
12370 _ACEOF
12371
12372 fi
12373
12374
12375 # This test makes sure that run tests work at all.  Sometimes a shared
12376 # library is found by the linker, but the runtime linker can't find it.
12377 # This check should come after all modifications of compiler or linker
12378 # variables, and before any other run tests.
12379 echo "$as_me:$LINENO: checking test program" >&5
12380 echo $ECHO_N "checking test program... $ECHO_C" >&6
12381 if test "$cross_compiling" = yes; then
12382   echo "$as_me:$LINENO: result: cross-compiling" >&5
12383 echo "${ECHO_T}cross-compiling" >&6
12384 else
12385   cat >conftest.$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12388 int main() { return 0; }
12389 _ACEOF
12390 rm -f conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392   (eval $ac_link) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   echo "$as_me:$LINENO: result: ok" >&5
12402 echo "${ECHO_T}ok" >&6
12403 else
12404   echo "$as_me: program exited with status $ac_status" >&5
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 ( exit $ac_status )
12408 echo "$as_me:$LINENO: result: failed" >&5
12409 echo "${ECHO_T}failed" >&6
12410 { { echo "$as_me:$LINENO: error:
12411 *** Could not execute a simple test program.  This may be a problem
12412 *** related to locating shared libraries.  Check the file 'config.log'
12413 *** for the exact reason." >&5
12414 echo "$as_me: error:
12415 *** Could not execute a simple test program.  This may be a problem
12416 *** related to locating shared libraries.  Check the file 'config.log'
12417 *** for the exact reason." >&2;}
12418    { (exit 1); exit 1; }; }
12419 fi
12420 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12421 fi
12422
12423
12424
12425 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12426 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12427 if test "${pgac_cv_type_long_int_64+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   if test "$cross_compiling" = yes; then
12431   pgac_cv_type_long_int_64=no
12432 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12433 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12434 else
12435   cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438 typedef long int int64;
12439
12440 /*
12441  * These are globals to discourage the compiler from folding all the
12442  * arithmetic tests down to compile-time constants.
12443  */
12444 int64 a = 20000001;
12445 int64 b = 40000005;
12446
12447 int does_int64_work()
12448 {
12449   int64 c,d;
12450
12451   if (sizeof(int64) != 8)
12452     return 0;                   /* definitely not the right size */
12453
12454   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12455   c = a * b;
12456   d = (c + b) / b;
12457   if (d != a+1)
12458     return 0;
12459   return 1;
12460 }
12461 main() {
12462   exit(! does_int64_work());
12463 }
12464 _ACEOF
12465 rm -f conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   pgac_cv_type_long_int_64=yes
12477 else
12478   echo "$as_me: program exited with status $ac_status" >&5
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ( exit $ac_status )
12482 pgac_cv_type_long_int_64=no
12483 fi
12484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12485 fi
12486 fi
12487 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12488 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12489
12490 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12491 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12492
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_LONG_INT_64
12495 _ACEOF
12496
12497 fi
12498
12499
12500 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12501   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12502 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12503 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   if test "$cross_compiling" = yes; then
12507   pgac_cv_type_long_long_int_64=no
12508 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12509 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12510 else
12511   cat >conftest.$ac_ext <<_ACEOF
12512 #line $LINENO "configure"
12513 #include "confdefs.h"
12514 typedef long long int int64;
12515
12516 /*
12517  * These are globals to discourage the compiler from folding all the
12518  * arithmetic tests down to compile-time constants.
12519  */
12520 int64 a = 20000001;
12521 int64 b = 40000005;
12522
12523 int does_int64_work()
12524 {
12525   int64 c,d;
12526
12527   if (sizeof(int64) != 8)
12528     return 0;                   /* definitely not the right size */
12529
12530   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12531   c = a * b;
12532   d = (c + b) / b;
12533   if (d != a+1)
12534     return 0;
12535   return 1;
12536 }
12537 main() {
12538   exit(! does_int64_work());
12539 }
12540 _ACEOF
12541 rm -f conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543   (eval $ac_link) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   pgac_cv_type_long_long_int_64=yes
12553 else
12554   echo "$as_me: program exited with status $ac_status" >&5
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 ( exit $ac_status )
12558 pgac_cv_type_long_long_int_64=no
12559 fi
12560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 fi
12563 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12564 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12565
12566 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12567 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12568
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_LONG_LONG_INT_64
12571 _ACEOF
12572
12573 fi
12574
12575 fi
12576
12577
12578
12579 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12580   cat >conftest.$ac_ext <<_ACEOF
12581 #line $LINENO "configure"
12582 #include "confdefs.h"
12583
12584 #define INT64CONST(x)  x##LL
12585 long long int foo = INT64CONST(0x1234567890123456);
12586
12587 #ifdef F77_DUMMY_MAIN
12588 #  ifdef __cplusplus
12589      extern "C"
12590 #  endif
12591    int F77_DUMMY_MAIN() { return 1; }
12592 #endif
12593 int
12594 main ()
12595 {
12596
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603   (eval $ac_compile) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -s conftest.$ac_objext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define HAVE_LL_CONSTANTS 1
12616 _ACEOF
12617
12618 else
12619   echo "$as_me: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 fi
12622 rm -f conftest.$ac_objext conftest.$ac_ext
12623 fi
12624
12625
12626
12627 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12628   if [ x$SNPRINTF = x ] ; then
12629     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12630 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12631     if test "$cross_compiling" = yes; then
12632    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12633 echo "${ECHO_T}assuming not on target machine" >&6
12634         # Force usage of our own snprintf, since we cannot test foreign snprintf
12635         SNPRINTF='snprintf.o'
12636         INT64_FORMAT='"%lld"'
12637
12638 else
12639   cat >conftest.$ac_ext <<_ACEOF
12640 #line $LINENO "configure"
12641 #include "confdefs.h"
12642 #include <stdio.h>
12643 typedef long long int int64;
12644 #define INT64_FORMAT "%lld"
12645
12646 int64 a = 20000001;
12647 int64 b = 40000005;
12648
12649 int does_int64_snprintf_work()
12650 {
12651   int64 c;
12652   char buf[100];
12653
12654   if (sizeof(int64) != 8)
12655     return 0;                   /* doesn't look like the right size */
12656
12657   c = a * b;
12658   snprintf(buf, 100, INT64_FORMAT, c);
12659   if (strcmp(buf, "800000140000005") != 0)
12660     return 0;                   /* either multiply or snprintf is busted */
12661   return 1;
12662 }
12663 main() {
12664   exit(! does_int64_snprintf_work());
12665 }
12666 _ACEOF
12667 rm -f conftest$ac_exeext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669   (eval $ac_link) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678    echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6
12680           INT64_FORMAT='"%lld"'
12681
12682 else
12683   echo "$as_me: program exited with status $ac_status" >&5
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ( exit $ac_status )
12687  echo "$as_me:$LINENO: result: no" >&5
12688 echo "${ECHO_T}no" >&6
12689     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12690 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12691     if test "$cross_compiling" = yes; then
12692    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12693 echo "${ECHO_T}assuming not on target machine" >&6
12694         # Force usage of our own snprintf, since we cannot test foreign snprintf
12695         SNPRINTF='snprintf.o'
12696         INT64_FORMAT='"%lld"'
12697
12698 else
12699   cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702 #include <stdio.h>
12703 typedef long long int int64;
12704 #define INT64_FORMAT "%qd"
12705
12706 int64 a = 20000001;
12707 int64 b = 40000005;
12708
12709 int does_int64_snprintf_work()
12710 {
12711   int64 c;
12712   char buf[100];
12713
12714   if (sizeof(int64) != 8)
12715     return 0;     /* doesn't look like the right size */
12716
12717   c = a * b;
12718   snprintf(buf, 100, INT64_FORMAT, c);
12719   if (strcmp(buf, "800000140000005") != 0)
12720     return 0;     /* either multiply or snprintf is busted */
12721   return 1;
12722 }
12723 main() {
12724   exit(! does_int64_snprintf_work());
12725 }
12726 _ACEOF
12727 rm -f conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729   (eval $ac_link) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734   (eval $ac_try) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; }; then
12738    echo "$as_me:$LINENO: result: yes" >&5
12739 echo "${ECHO_T}yes" >&6
12740     INT64_FORMAT='"%qd"'
12741
12742 else
12743   echo "$as_me: program exited with status $ac_status" >&5
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 ( exit $ac_status )
12747  echo "$as_me:$LINENO: result: no" >&5
12748 echo "${ECHO_T}no" >&6
12749         # Force usage of our own snprintf, since system snprintf is broken
12750         SNPRINTF='snprintf.o'
12751         INT64_FORMAT='"%lld"'
12752
12753 fi
12754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 fi
12757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12758 fi
12759   else
12760     # here if we previously decided we needed to use our own snprintf
12761     INT64_FORMAT='"%lld"'
12762   fi
12763 else
12764   # Here if we are not using 'long long int' at all
12765   INT64_FORMAT='"%ld"'
12766 fi
12767
12768
12769 cat >>confdefs.h <<_ACEOF
12770 #define INT64_FORMAT $INT64_FORMAT
12771 _ACEOF
12772
12773
12774
12775
12776
12777 for ac_func in strtoll strtoq
12778 do
12779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12780 echo "$as_me:$LINENO: checking for $ac_func" >&5
12781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12782 if eval "test \"\${$as_ac_var+set}\" = set"; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 #include "confdefs.h"
12788 /* System header to define __stub macros and hopefully few prototypes,
12789     which can conflict with char $ac_func (); below.  */
12790 #include <assert.h>
12791 /* Override any gcc2 internal prototype to avoid an error.  */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 /* We use char because int might match the return type of a gcc2
12796    builtin and then its argument prototype would still apply.  */
12797 char $ac_func ();
12798 char (*f) ();
12799
12800 #ifdef F77_DUMMY_MAIN
12801 #  ifdef __cplusplus
12802      extern "C"
12803 #  endif
12804    int F77_DUMMY_MAIN() { return 1; }
12805 #endif
12806 int
12807 main ()
12808 {
12809 /* The GNU C library defines this for functions which it implements
12810     to always fail with ENOSYS.  Some functions are actually named
12811     something starting with __ and the normal name is an alias.  */
12812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12813 choke me
12814 #else
12815 f = $ac_func;
12816 #endif
12817
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824   (eval $ac_link) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -s conftest$ac_exeext'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; }; then
12834   eval "$as_ac_var=yes"
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 eval "$as_ac_var=no"
12839 fi
12840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12841 fi
12842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844 if test `eval echo '${'$as_ac_var'}'` = yes; then
12845   cat >>confdefs.h <<_ACEOF
12846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 _ACEOF
12848  break
12849 fi
12850 done
12851
12852
12853
12854 for ac_func in strtoull strtouq
12855 do
12856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12857 echo "$as_me:$LINENO: checking for $ac_func" >&5
12858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12859 if eval "test \"\${$as_ac_var+set}\" = set"; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   cat >conftest.$ac_ext <<_ACEOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12865 /* System header to define __stub macros and hopefully few prototypes,
12866     which can conflict with char $ac_func (); below.  */
12867 #include <assert.h>
12868 /* Override any gcc2 internal prototype to avoid an error.  */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 /* We use char because int might match the return type of a gcc2
12873    builtin and then its argument prototype would still apply.  */
12874 char $ac_func ();
12875 char (*f) ();
12876
12877 #ifdef F77_DUMMY_MAIN
12878 #  ifdef __cplusplus
12879      extern "C"
12880 #  endif
12881    int F77_DUMMY_MAIN() { return 1; }
12882 #endif
12883 int
12884 main ()
12885 {
12886 /* The GNU C library defines this for functions which it implements
12887     to always fail with ENOSYS.  Some functions are actually named
12888     something starting with __ and the normal name is an alias.  */
12889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12890 choke me
12891 #else
12892 f = $ac_func;
12893 #endif
12894
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901   (eval $ac_link) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -s conftest$ac_exeext'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   eval "$as_ac_var=yes"
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 eval "$as_ac_var=no"
12916 fi
12917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12918 fi
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922   cat >>confdefs.h <<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12924 _ACEOF
12925  break
12926 fi
12927 done
12928
12929
12930 # Check for one of atexit() or on_exit()
12931
12932 for ac_func in atexit
12933 do
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938   echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940   cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 /* System header to define __stub macros and hopefully few prototypes,
12944     which can conflict with char $ac_func (); below.  */
12945 #include <assert.h>
12946 /* Override any gcc2 internal prototype to avoid an error.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 /* We use char because int might match the return type of a gcc2
12951    builtin and then its argument prototype would still apply.  */
12952 char $ac_func ();
12953 char (*f) ();
12954
12955 #ifdef F77_DUMMY_MAIN
12956 #  ifdef __cplusplus
12957      extern "C"
12958 #  endif
12959    int F77_DUMMY_MAIN() { return 1; }
12960 #endif
12961 int
12962 main ()
12963 {
12964 /* The GNU C library defines this for functions which it implements
12965     to always fail with ENOSYS.  Some functions are actually named
12966     something starting with __ and the normal name is an alias.  */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 f = $ac_func;
12971 #endif
12972
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979   (eval $ac_link) 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -s conftest$ac_exeext'
12984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985   (eval $ac_try) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }; }; then
12989   eval "$as_ac_var=yes"
12990 else
12991   echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 eval "$as_ac_var=no"
12994 fi
12995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12999 if test `eval echo '${'$as_ac_var'}'` = yes; then
13000   cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13002 _ACEOF
13003
13004 else
13005
13006 for ac_func in on_exit
13007 do
13008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 echo "$as_me:$LINENO: checking for $ac_func" >&5
13010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_var+set}\" = set"; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
13016 #include "confdefs.h"
13017 /* System header to define __stub macros and hopefully few prototypes,
13018     which can conflict with char $ac_func (); below.  */
13019 #include <assert.h>
13020 /* Override any gcc2 internal prototype to avoid an error.  */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 /* We use char because int might match the return type of a gcc2
13025    builtin and then its argument prototype would still apply.  */
13026 char $ac_func ();
13027 char (*f) ();
13028
13029 #ifdef F77_DUMMY_MAIN
13030 #  ifdef __cplusplus
13031      extern "C"
13032 #  endif
13033    int F77_DUMMY_MAIN() { return 1; }
13034 #endif
13035 int
13036 main ()
13037 {
13038 /* The GNU C library defines this for functions which it implements
13039     to always fail with ENOSYS.  Some functions are actually named
13040     something starting with __ and the normal name is an alias.  */
13041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13042 choke me
13043 #else
13044 f = $ac_func;
13045 #endif
13046
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053   (eval $ac_link) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); } &&
13057          { ac_try='test -s conftest$ac_exeext'
13058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059   (eval $ac_try) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   eval "$as_ac_var=yes"
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 cat conftest.$ac_ext >&5
13067 eval "$as_ac_var=no"
13068 fi
13069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13070 fi
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13073 if test `eval echo '${'$as_ac_var'}'` = yes; then
13074   cat >>confdefs.h <<_ACEOF
13075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076 _ACEOF
13077
13078 else
13079   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13080 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13081    { (exit 1); exit 1; }; }
13082 fi
13083 done
13084
13085 fi
13086 done
13087
13088
13089
13090 echo "$as_me:$LINENO: checking for unsigned long" >&5
13091 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13092 if test "${ac_cv_type_unsigned_long+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 #include "confdefs.h"
13098 $ac_includes_default
13099 #ifdef F77_DUMMY_MAIN
13100 #  ifdef __cplusplus
13101      extern "C"
13102 #  endif
13103    int F77_DUMMY_MAIN() { return 1; }
13104 #endif
13105 int
13106 main ()
13107 {
13108 if ((unsigned long *) 0)
13109   return 0;
13110 if (sizeof (unsigned long))
13111   return 0;
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_cv_type_unsigned_long=yes
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13132 ac_cv_type_unsigned_long=no
13133 fi
13134 rm -f conftest.$ac_objext conftest.$ac_ext
13135 fi
13136 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13137 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13138
13139 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13140 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13141 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   if test "$ac_cv_type_unsigned_long" = yes; then
13145   # The cast to unsigned long works around a bug in the HP C Compiler
13146   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13147   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13148   # This bug is HP SR number 8606223364.
13149   if test "$cross_compiling" = yes; then
13150   # Depending upon the size, compute the lo and hi bounds.
13151 cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 $ac_includes_default
13155 #ifdef F77_DUMMY_MAIN
13156 #  ifdef __cplusplus
13157      extern "C"
13158 #  endif
13159    int F77_DUMMY_MAIN() { return 1; }
13160 #endif
13161 int
13162 main ()
13163 {
13164 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13165 test_array [0] = 0
13166
13167   ;
13168   return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173   (eval $ac_compile) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); } &&
13177          { ac_try='test -s conftest.$ac_objext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   ac_lo=0 ac_mid=0
13184   while :; do
13185     cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188 $ac_includes_default
13189 #ifdef F77_DUMMY_MAIN
13190 #  ifdef __cplusplus
13191      extern "C"
13192 #  endif
13193    int F77_DUMMY_MAIN() { return 1; }
13194 #endif
13195 int
13196 main ()
13197 {
13198 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13199 test_array [0] = 0
13200
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207   (eval $ac_compile) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -s conftest.$ac_objext'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; }; then
13217   ac_hi=$ac_mid; break
13218 else
13219   echo "$as_me: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 ac_lo=`expr $ac_mid + 1`
13222                     if test $ac_lo -le $ac_mid; then
13223                       ac_lo= ac_hi=
13224                       break
13225                     fi
13226                     ac_mid=`expr 2 '*' $ac_mid + 1`
13227 fi
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13229   done
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13235 #include "confdefs.h"
13236 $ac_includes_default
13237 #ifdef F77_DUMMY_MAIN
13238 #  ifdef __cplusplus
13239      extern "C"
13240 #  endif
13241    int F77_DUMMY_MAIN() { return 1; }
13242 #endif
13243 int
13244 main ()
13245 {
13246 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13247 test_array [0] = 0
13248
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255   (eval $ac_compile) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -s conftest.$ac_objext'
13260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261   (eval $ac_try) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; }; then
13265   ac_hi=-1 ac_mid=-1
13266   while :; do
13267     cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 #include "confdefs.h"
13270 $ac_includes_default
13271 #ifdef F77_DUMMY_MAIN
13272 #  ifdef __cplusplus
13273      extern "C"
13274 #  endif
13275    int F77_DUMMY_MAIN() { return 1; }
13276 #endif
13277 int
13278 main ()
13279 {
13280 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13281 test_array [0] = 0
13282
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 rm -f conftest.$ac_objext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289   (eval $ac_compile) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -s conftest.$ac_objext'
13294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295   (eval $ac_try) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299   ac_lo=$ac_mid; break
13300 else
13301   echo "$as_me: failed program was:" >&5
13302 cat conftest.$ac_ext >&5
13303 ac_hi=`expr '(' $ac_mid ')' - 1`
13304                        if test $ac_mid -le $ac_hi; then
13305                          ac_lo= ac_hi=
13306                          break
13307                        fi
13308                        ac_mid=`expr 2 '*' $ac_mid`
13309 fi
13310 rm -f conftest.$ac_objext conftest.$ac_ext
13311   done
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 ac_lo= ac_hi=
13316 fi
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 # Binary search between lo and hi bounds.
13321 while test "x$ac_lo" != "x$ac_hi"; do
13322   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13323   cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 #include "confdefs.h"
13326 $ac_includes_default
13327 #ifdef F77_DUMMY_MAIN
13328 #  ifdef __cplusplus
13329      extern "C"
13330 #  endif
13331    int F77_DUMMY_MAIN() { return 1; }
13332 #endif
13333 int
13334 main ()
13335 {
13336 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13337 test_array [0] = 0
13338
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345   (eval $ac_compile) 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } &&
13349          { ac_try='test -s conftest.$ac_objext'
13350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351   (eval $ac_try) 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; }; then
13355   ac_hi=$ac_mid
13356 else
13357   echo "$as_me: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13359 ac_lo=`expr '(' $ac_mid ')' + 1`
13360 fi
13361 rm -f conftest.$ac_objext conftest.$ac_ext
13362 done
13363 case $ac_lo in
13364 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13365 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13366 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13367    { (exit 1); exit 1; }; } ;;
13368 esac
13369 else
13370   if test "$cross_compiling" = yes; then
13371   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13372 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13373    { (exit 1); exit 1; }; }
13374 else
13375   cat >conftest.$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13378 $ac_includes_default
13379 long longval () { return (long) (sizeof (unsigned long)); }
13380 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13381 #include <stdio.h>
13382 #include <stdlib.h>
13383 #ifdef F77_DUMMY_MAIN
13384 #  ifdef __cplusplus
13385      extern "C"
13386 #  endif
13387    int F77_DUMMY_MAIN() { return 1; }
13388 #endif
13389 int
13390 main ()
13391 {
13392
13393   FILE *f = fopen ("conftest.val", "w");
13394   if (! f)
13395     exit (1);
13396   if (((long) (sizeof (unsigned long))) < 0)
13397     {
13398       long i = longval ();
13399       if (i != ((long) (sizeof (unsigned long))))
13400         exit (1);
13401       fprintf (f, "%ld\n", i);
13402     }
13403   else
13404     {
13405       unsigned long i = ulongval ();
13406       if (i != ((long) (sizeof (unsigned long))))
13407         exit (1);
13408       fprintf (f, "%lu\n", i);
13409     }
13410   exit (ferror (f) || fclose (f) != 0);
13411
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest$ac_exeext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418   (eval $ac_link) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13428 else
13429   echo "$as_me: program exited with status $ac_status" >&5
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ( exit $ac_status )
13433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13434 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13435    { (exit 1); exit 1; }; }
13436 fi
13437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 fi
13440 rm -f conftest.val
13441 else
13442   ac_cv_sizeof_unsigned_long=0
13443 fi
13444 fi
13445 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13446 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13447 cat >>confdefs.h <<_ACEOF
13448 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13449 _ACEOF
13450
13451
13452
13453 cat >>confdefs.h <<_ACEOF
13454 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13455 _ACEOF
13456
13457
13458 # Determine memory alignment requirements for the basic C data types.
13459
13460 echo "$as_me:$LINENO: checking for short" >&5
13461 echo $ECHO_N "checking for short... $ECHO_C" >&6
13462 if test "${ac_cv_type_short+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13468 $ac_includes_default
13469 #ifdef F77_DUMMY_MAIN
13470 #  ifdef __cplusplus
13471      extern "C"
13472 #  endif
13473    int F77_DUMMY_MAIN() { return 1; }
13474 #endif
13475 int
13476 main ()
13477 {
13478 if ((short *) 0)
13479   return 0;
13480 if (sizeof (short))
13481   return 0;
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488   (eval $ac_compile) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -s conftest.$ac_objext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_cv_type_short=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 ac_cv_type_short=no
13503 fi
13504 rm -f conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13507 echo "${ECHO_T}$ac_cv_type_short" >&6
13508
13509 echo "$as_me:$LINENO: checking alignment of short" >&5
13510 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13511 if test "${pgac_cv_alignof_short+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   if test "$ac_cv_type_short" = yes; then
13515   if test "$cross_compiling" = yes; then
13516   # Depending upon the size, compute the lo and hi bounds.
13517 cat >conftest.$ac_ext <<_ACEOF
13518 #line $LINENO "configure"
13519 #include "confdefs.h"
13520 $ac_includes_default
13521 struct { char filler; short field; } pgac_struct;
13522 #ifdef F77_DUMMY_MAIN
13523 #  ifdef __cplusplus
13524      extern "C"
13525 #  endif
13526    int F77_DUMMY_MAIN() { return 1; }
13527 #endif
13528 int
13529 main ()
13530 {
13531 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13532 test_array [0] = 0
13533
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -s conftest.$ac_objext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_lo=0 ac_mid=0
13551   while :; do
13552     cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13555 $ac_includes_default
13556 struct { char filler; short field; } pgac_struct;
13557 #ifdef F77_DUMMY_MAIN
13558 #  ifdef __cplusplus
13559      extern "C"
13560 #  endif
13561    int F77_DUMMY_MAIN() { return 1; }
13562 #endif
13563 int
13564 main ()
13565 {
13566 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13567 test_array [0] = 0
13568
13569   ;
13570   return 0;
13571 }
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575   (eval $ac_compile) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -s conftest.$ac_objext'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; }; then
13585   ac_hi=$ac_mid; break
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 ac_lo=`expr $ac_mid + 1`
13590                     if test $ac_lo -le $ac_mid; then
13591                       ac_lo= ac_hi=
13592                       break
13593                     fi
13594                     ac_mid=`expr 2 '*' $ac_mid + 1`
13595 fi
13596 rm -f conftest.$ac_objext conftest.$ac_ext
13597   done
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 struct { char filler; short field; } pgac_struct;
13606 #ifdef F77_DUMMY_MAIN
13607 #  ifdef __cplusplus
13608      extern "C"
13609 #  endif
13610    int F77_DUMMY_MAIN() { return 1; }
13611 #endif
13612 int
13613 main ()
13614 {
13615 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13616 test_array [0] = 0
13617
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624   (eval $ac_compile) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -s conftest.$ac_objext'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_hi=-1 ac_mid=-1
13635   while :; do
13636     cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 $ac_includes_default
13640 struct { char filler; short field; } pgac_struct;
13641 #ifdef F77_DUMMY_MAIN
13642 #  ifdef __cplusplus
13643      extern "C"
13644 #  endif
13645    int F77_DUMMY_MAIN() { return 1; }
13646 #endif
13647 int
13648 main ()
13649 {
13650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13651 test_array [0] = 0
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659   (eval $ac_compile) 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -s conftest.$ac_objext'
13664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665   (eval $ac_try) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }; }; then
13669   ac_lo=$ac_mid; break
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 ac_hi=`expr '(' $ac_mid ')' - 1`
13674                        if test $ac_mid -le $ac_hi; then
13675                          ac_lo= ac_hi=
13676                          break
13677                        fi
13678                        ac_mid=`expr 2 '*' $ac_mid`
13679 fi
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681   done
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 ac_lo= ac_hi=
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 rm -f conftest.$ac_objext conftest.$ac_ext
13690 # Binary search between lo and hi bounds.
13691 while test "x$ac_lo" != "x$ac_hi"; do
13692   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13693   cat >conftest.$ac_ext <<_ACEOF
13694 #line $LINENO "configure"
13695 #include "confdefs.h"
13696 $ac_includes_default
13697 struct { char filler; short field; } pgac_struct;
13698 #ifdef F77_DUMMY_MAIN
13699 #  ifdef __cplusplus
13700      extern "C"
13701 #  endif
13702    int F77_DUMMY_MAIN() { return 1; }
13703 #endif
13704 int
13705 main ()
13706 {
13707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13708 test_array [0] = 0
13709
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716   (eval $ac_compile) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -s conftest.$ac_objext'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_hi=$ac_mid
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 ac_lo=`expr '(' $ac_mid ')' + 1`
13731 fi
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13733 done
13734 case $ac_lo in
13735 ?*) pgac_cv_alignof_short=$ac_lo;;
13736 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13737 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13738    { (exit 1); exit 1; }; } ;;
13739 esac
13740 else
13741   if test "$cross_compiling" = yes; then
13742   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13743 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13744    { (exit 1); exit 1; }; }
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 #include "confdefs.h"
13749 $ac_includes_default
13750 struct { char filler; short field; } pgac_struct;
13751 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13752 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13753 #include <stdio.h>
13754 #include <stdlib.h>
13755 #ifdef F77_DUMMY_MAIN
13756 #  ifdef __cplusplus
13757      extern "C"
13758 #  endif
13759    int F77_DUMMY_MAIN() { return 1; }
13760 #endif
13761 int
13762 main ()
13763 {
13764
13765   FILE *f = fopen ("conftest.val", "w");
13766   if (! f)
13767     exit (1);
13768   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13769     {
13770       long i = longval ();
13771       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13772         exit (1);
13773       fprintf (f, "%ld\n", i);
13774     }
13775   else
13776     {
13777       unsigned long i = ulongval ();
13778       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13779         exit (1);
13780       fprintf (f, "%lu\n", i);
13781     }
13782   exit (ferror (f) || fclose (f) != 0);
13783
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790   (eval $ac_link) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   pgac_cv_alignof_short=`cat conftest.val`
13800 else
13801   echo "$as_me: program exited with status $ac_status" >&5
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 ( exit $ac_status )
13805 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13806 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13807    { (exit 1); exit 1; }; }
13808 fi
13809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810 fi
13811 fi
13812 rm -f conftest.val
13813 else
13814   pgac_cv_alignof_short=0
13815 fi
13816 fi
13817 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13818 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13819 cat >>confdefs.h <<_ACEOF
13820 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13821 _ACEOF
13822
13823
13824 echo "$as_me:$LINENO: checking for int" >&5
13825 echo $ECHO_N "checking for int... $ECHO_C" >&6
13826 if test "${ac_cv_type_int+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 #include "confdefs.h"
13832 $ac_includes_default
13833 #ifdef F77_DUMMY_MAIN
13834 #  ifdef __cplusplus
13835      extern "C"
13836 #  endif
13837    int F77_DUMMY_MAIN() { return 1; }
13838 #endif
13839 int
13840 main ()
13841 {
13842 if ((int *) 0)
13843   return 0;
13844 if (sizeof (int))
13845   return 0;
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852   (eval $ac_compile) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -s conftest.$ac_objext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_type_int=yes
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 ac_cv_type_int=no
13867 fi
13868 rm -f conftest.$ac_objext conftest.$ac_ext
13869 fi
13870 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13871 echo "${ECHO_T}$ac_cv_type_int" >&6
13872
13873 echo "$as_me:$LINENO: checking alignment of int" >&5
13874 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13875 if test "${pgac_cv_alignof_int+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   if test "$ac_cv_type_int" = yes; then
13879   if test "$cross_compiling" = yes; then
13880   # Depending upon the size, compute the lo and hi bounds.
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 #include "confdefs.h"
13884 $ac_includes_default
13885 struct { char filler; int field; } pgac_struct;
13886 #ifdef F77_DUMMY_MAIN
13887 #  ifdef __cplusplus
13888      extern "C"
13889 #  endif
13890    int F77_DUMMY_MAIN() { return 1; }
13891 #endif
13892 int
13893 main ()
13894 {
13895 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13896 test_array [0] = 0
13897
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904   (eval $ac_compile) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); } &&
13908          { ac_try='test -s conftest.$ac_objext'
13909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910   (eval $ac_try) 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; }; then
13914   ac_lo=0 ac_mid=0
13915   while :; do
13916     cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 struct { char filler; int field; } pgac_struct;
13921 #ifdef F77_DUMMY_MAIN
13922 #  ifdef __cplusplus
13923      extern "C"
13924 #  endif
13925    int F77_DUMMY_MAIN() { return 1; }
13926 #endif
13927 int
13928 main ()
13929 {
13930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13931 test_array [0] = 0
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -s conftest.$ac_objext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_hi=$ac_mid; break
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 ac_lo=`expr $ac_mid + 1`
13954                     if test $ac_lo -le $ac_mid; then
13955                       ac_lo= ac_hi=
13956                       break
13957                     fi
13958                     ac_mid=`expr 2 '*' $ac_mid + 1`
13959 fi
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13961   done
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 $ac_includes_default
13969 struct { char filler; int field; } pgac_struct;
13970 #ifdef F77_DUMMY_MAIN
13971 #  ifdef __cplusplus
13972      extern "C"
13973 #  endif
13974    int F77_DUMMY_MAIN() { return 1; }
13975 #endif
13976 int
13977 main ()
13978 {
13979 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13980 test_array [0] = 0
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988   (eval $ac_compile) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -s conftest.$ac_objext'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998   ac_hi=-1 ac_mid=-1
13999   while :; do
14000     cat >conftest.$ac_ext <<_ACEOF
14001 #line $LINENO "configure"
14002 #include "confdefs.h"
14003 $ac_includes_default
14004 struct { char filler; int field; } pgac_struct;
14005 #ifdef F77_DUMMY_MAIN
14006 #  ifdef __cplusplus
14007      extern "C"
14008 #  endif
14009    int F77_DUMMY_MAIN() { return 1; }
14010 #endif
14011 int
14012 main ()
14013 {
14014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14015 test_array [0] = 0
14016
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023   (eval $ac_compile) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -s conftest.$ac_objext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_lo=$ac_mid; break
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 ac_hi=`expr '(' $ac_mid ')' - 1`
14038                        if test $ac_mid -le $ac_hi; then
14039                          ac_lo= ac_hi=
14040                          break
14041                        fi
14042                        ac_mid=`expr 2 '*' $ac_mid`
14043 fi
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045   done
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 ac_lo= ac_hi=
14050 fi
14051 rm -f conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 rm -f conftest.$ac_objext conftest.$ac_ext
14054 # Binary search between lo and hi bounds.
14055 while test "x$ac_lo" != "x$ac_hi"; do
14056   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14057   cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14060 $ac_includes_default
14061 struct { char filler; int field; } pgac_struct;
14062 #ifdef F77_DUMMY_MAIN
14063 #  ifdef __cplusplus
14064      extern "C"
14065 #  endif
14066    int F77_DUMMY_MAIN() { return 1; }
14067 #endif
14068 int
14069 main ()
14070 {
14071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14072 test_array [0] = 0
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -s conftest.$ac_objext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090   ac_hi=$ac_mid
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 ac_lo=`expr '(' $ac_mid ')' + 1`
14095 fi
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14097 done
14098 case $ac_lo in
14099 ?*) pgac_cv_alignof_int=$ac_lo;;
14100 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14101 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14102    { (exit 1); exit 1; }; } ;;
14103 esac
14104 else
14105   if test "$cross_compiling" = yes; then
14106   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14107 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14108    { (exit 1); exit 1; }; }
14109 else
14110   cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14113 $ac_includes_default
14114 struct { char filler; int field; } pgac_struct;
14115 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14116 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14117 #include <stdio.h>
14118 #include <stdlib.h>
14119 #ifdef F77_DUMMY_MAIN
14120 #  ifdef __cplusplus
14121      extern "C"
14122 #  endif
14123    int F77_DUMMY_MAIN() { return 1; }
14124 #endif
14125 int
14126 main ()
14127 {
14128
14129   FILE *f = fopen ("conftest.val", "w");
14130   if (! f)
14131     exit (1);
14132   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14133     {
14134       long i = longval ();
14135       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14136         exit (1);
14137       fprintf (f, "%ld\n", i);
14138     }
14139   else
14140     {
14141       unsigned long i = ulongval ();
14142       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14143         exit (1);
14144       fprintf (f, "%lu\n", i);
14145     }
14146   exit (ferror (f) || fclose (f) != 0);
14147
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest$ac_exeext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154   (eval $ac_link) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163   pgac_cv_alignof_int=`cat conftest.val`
14164 else
14165   echo "$as_me: program exited with status $ac_status" >&5
14166 echo "$as_me: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 ( exit $ac_status )
14169 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14170 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14171    { (exit 1); exit 1; }; }
14172 fi
14173 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14174 fi
14175 fi
14176 rm -f conftest.val
14177 else
14178   pgac_cv_alignof_int=0
14179 fi
14180 fi
14181 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14182 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14183 cat >>confdefs.h <<_ACEOF
14184 #define ALIGNOF_INT $pgac_cv_alignof_int
14185 _ACEOF
14186
14187
14188 echo "$as_me:$LINENO: checking for long" >&5
14189 echo $ECHO_N "checking for long... $ECHO_C" >&6
14190 if test "${ac_cv_type_long+set}" = set; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14195 #include "confdefs.h"
14196 $ac_includes_default
14197 #ifdef F77_DUMMY_MAIN
14198 #  ifdef __cplusplus
14199      extern "C"
14200 #  endif
14201    int F77_DUMMY_MAIN() { return 1; }
14202 #endif
14203 int
14204 main ()
14205 {
14206 if ((long *) 0)
14207   return 0;
14208 if (sizeof (long))
14209   return 0;
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -s conftest.$ac_objext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   ac_cv_type_long=yes
14227 else
14228   echo "$as_me: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14230 ac_cv_type_long=no
14231 fi
14232 rm -f conftest.$ac_objext conftest.$ac_ext
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14235 echo "${ECHO_T}$ac_cv_type_long" >&6
14236
14237 echo "$as_me:$LINENO: checking alignment of long" >&5
14238 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14239 if test "${pgac_cv_alignof_long+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   if test "$ac_cv_type_long" = yes; then
14243   if test "$cross_compiling" = yes; then
14244   # Depending upon the size, compute the lo and hi bounds.
14245 cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 #include "confdefs.h"
14248 $ac_includes_default
14249 struct { char filler; long field; } pgac_struct;
14250 #ifdef F77_DUMMY_MAIN
14251 #  ifdef __cplusplus
14252      extern "C"
14253 #  endif
14254    int F77_DUMMY_MAIN() { return 1; }
14255 #endif
14256 int
14257 main ()
14258 {
14259 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14260 test_array [0] = 0
14261
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -s conftest.$ac_objext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_lo=0 ac_mid=0
14279   while :; do
14280     cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 #include "confdefs.h"
14283 $ac_includes_default
14284 struct { char filler; long field; } pgac_struct;
14285 #ifdef F77_DUMMY_MAIN
14286 #  ifdef __cplusplus
14287      extern "C"
14288 #  endif
14289    int F77_DUMMY_MAIN() { return 1; }
14290 #endif
14291 int
14292 main ()
14293 {
14294 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14295 test_array [0] = 0
14296
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303   (eval $ac_compile) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } &&
14307          { ac_try='test -s conftest.$ac_objext'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_hi=$ac_mid; break
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 cat conftest.$ac_ext >&5
14317 ac_lo=`expr $ac_mid + 1`
14318                     if test $ac_lo -le $ac_mid; then
14319                       ac_lo= ac_hi=
14320                       break
14321                     fi
14322                     ac_mid=`expr 2 '*' $ac_mid + 1`
14323 fi
14324 rm -f conftest.$ac_objext conftest.$ac_ext
14325   done
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; long field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 #  ifdef __cplusplus
14336      extern "C"
14337 #  endif
14338    int F77_DUMMY_MAIN() { return 1; }
14339 #endif
14340 int
14341 main ()
14342 {
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14344 test_array [0] = 0
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_hi=-1 ac_mid=-1
14363   while :; do
14364     cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; long field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 #  ifdef __cplusplus
14371      extern "C"
14372 #  endif
14373    int F77_DUMMY_MAIN() { return 1; }
14374 #endif
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_lo=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_hi=`expr '(' $ac_mid ')' - 1`
14402                        if test $ac_mid -le $ac_hi; then
14403                          ac_lo= ac_hi=
14404                          break
14405                        fi
14406                        ac_mid=`expr 2 '*' $ac_mid`
14407 fi
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14409   done
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 ac_lo= ac_hi=
14414 fi
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 # Binary search between lo and hi bounds.
14419 while test "x$ac_lo" != "x$ac_hi"; do
14420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14421   cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14423 #include "confdefs.h"
14424 $ac_includes_default
14425 struct { char filler; long field; } pgac_struct;
14426 #ifdef F77_DUMMY_MAIN
14427 #  ifdef __cplusplus
14428      extern "C"
14429 #  endif
14430    int F77_DUMMY_MAIN() { return 1; }
14431 #endif
14432 int
14433 main ()
14434 {
14435 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14436 test_array [0] = 0
14437
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444   (eval $ac_compile) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_hi=$ac_mid
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14458 ac_lo=`expr '(' $ac_mid ')' + 1`
14459 fi
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14461 done
14462 case $ac_lo in
14463 ?*) pgac_cv_alignof_long=$ac_lo;;
14464 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14465 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14466    { (exit 1); exit 1; }; } ;;
14467 esac
14468 else
14469   if test "$cross_compiling" = yes; then
14470   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14471 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14472    { (exit 1); exit 1; }; }
14473 else
14474   cat >conftest.$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14476 #include "confdefs.h"
14477 $ac_includes_default
14478 struct { char filler; long field; } pgac_struct;
14479 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14480 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14481 #include <stdio.h>
14482 #include <stdlib.h>
14483 #ifdef F77_DUMMY_MAIN
14484 #  ifdef __cplusplus
14485      extern "C"
14486 #  endif
14487    int F77_DUMMY_MAIN() { return 1; }
14488 #endif
14489 int
14490 main ()
14491 {
14492
14493   FILE *f = fopen ("conftest.val", "w");
14494   if (! f)
14495     exit (1);
14496   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14497     {
14498       long i = longval ();
14499       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14500         exit (1);
14501       fprintf (f, "%ld\n", i);
14502     }
14503   else
14504     {
14505       unsigned long i = ulongval ();
14506       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14507         exit (1);
14508       fprintf (f, "%lu\n", i);
14509     }
14510   exit (ferror (f) || fclose (f) != 0);
14511
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518   (eval $ac_link) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; }; then
14527   pgac_cv_alignof_long=`cat conftest.val`
14528 else
14529   echo "$as_me: program exited with status $ac_status" >&5
14530 echo "$as_me: failed program was:" >&5
14531 cat conftest.$ac_ext >&5
14532 ( exit $ac_status )
14533 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14534 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14535    { (exit 1); exit 1; }; }
14536 fi
14537 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 fi
14540 rm -f conftest.val
14541 else
14542   pgac_cv_alignof_long=0
14543 fi
14544 fi
14545 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14546 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14547 cat >>confdefs.h <<_ACEOF
14548 #define ALIGNOF_LONG $pgac_cv_alignof_long
14549 _ACEOF
14550
14551
14552 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14553   echo "$as_me:$LINENO: checking for long long int" >&5
14554 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14555 if test "${ac_cv_type_long_long_int+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 #ifdef F77_DUMMY_MAIN
14563 #  ifdef __cplusplus
14564      extern "C"
14565 #  endif
14566    int F77_DUMMY_MAIN() { return 1; }
14567 #endif
14568 int
14569 main ()
14570 {
14571 if ((long long int *) 0)
14572   return 0;
14573 if (sizeof (long long int))
14574   return 0;
14575   ;
14576   return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581   (eval $ac_compile) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -s conftest.$ac_objext'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; }; then
14591   ac_cv_type_long_long_int=yes
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14595 ac_cv_type_long_long_int=no
14596 fi
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14600 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14601
14602 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14603 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14604 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14605   echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607   if test "$ac_cv_type_long_long_int" = yes; then
14608   if test "$cross_compiling" = yes; then
14609   # Depending upon the size, compute the lo and hi bounds.
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 #include "confdefs.h"
14613 $ac_includes_default
14614 struct { char filler; long long int field; } pgac_struct;
14615 #ifdef F77_DUMMY_MAIN
14616 #  ifdef __cplusplus
14617      extern "C"
14618 #  endif
14619    int F77_DUMMY_MAIN() { return 1; }
14620 #endif
14621 int
14622 main ()
14623 {
14624 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14625 test_array [0] = 0
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633   (eval $ac_compile) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -s conftest.$ac_objext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   ac_lo=0 ac_mid=0
14644   while :; do
14645     cat >conftest.$ac_ext <<_ACEOF
14646 #line $LINENO "configure"
14647 #include "confdefs.h"
14648 $ac_includes_default
14649 struct { char filler; long long int field; } pgac_struct;
14650 #ifdef F77_DUMMY_MAIN
14651 #  ifdef __cplusplus
14652      extern "C"
14653 #  endif
14654    int F77_DUMMY_MAIN() { return 1; }
14655 #endif
14656 int
14657 main ()
14658 {
14659 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14660 test_array [0] = 0
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668   (eval $ac_compile) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -s conftest.$ac_objext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   ac_hi=$ac_mid; break
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 ac_lo=`expr $ac_mid + 1`
14683                     if test $ac_lo -le $ac_mid; then
14684                       ac_lo= ac_hi=
14685                       break
14686                     fi
14687                     ac_mid=`expr 2 '*' $ac_mid + 1`
14688 fi
14689 rm -f conftest.$ac_objext conftest.$ac_ext
14690   done
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long long int field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 #  ifdef __cplusplus
14701      extern "C"
14702 #  endif
14703    int F77_DUMMY_MAIN() { return 1; }
14704 #endif
14705 int
14706 main ()
14707 {
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14709 test_array [0] = 0
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727   ac_hi=-1 ac_mid=-1
14728   while :; do
14729     cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732 $ac_includes_default
14733 struct { char filler; long long int field; } pgac_struct;
14734 #ifdef F77_DUMMY_MAIN
14735 #  ifdef __cplusplus
14736      extern "C"
14737 #  endif
14738    int F77_DUMMY_MAIN() { return 1; }
14739 #endif
14740 int
14741 main ()
14742 {
14743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14744 test_array [0] = 0
14745
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_lo=$ac_mid; break
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 ac_hi=`expr '(' $ac_mid ')' - 1`
14767                        if test $ac_mid -le $ac_hi; then
14768                          ac_lo= ac_hi=
14769                          break
14770                        fi
14771                        ac_mid=`expr 2 '*' $ac_mid`
14772 fi
14773 rm -f conftest.$ac_objext conftest.$ac_ext
14774   done
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 ac_lo= ac_hi=
14779 fi
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781 fi
14782 rm -f conftest.$ac_objext conftest.$ac_ext
14783 # Binary search between lo and hi bounds.
14784 while test "x$ac_lo" != "x$ac_hi"; do
14785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14786   cat >conftest.$ac_ext <<_ACEOF
14787 #line $LINENO "configure"
14788 #include "confdefs.h"
14789 $ac_includes_default
14790 struct { char filler; long long int field; } pgac_struct;
14791 #ifdef F77_DUMMY_MAIN
14792 #  ifdef __cplusplus
14793      extern "C"
14794 #  endif
14795    int F77_DUMMY_MAIN() { return 1; }
14796 #endif
14797 int
14798 main ()
14799 {
14800 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14801 test_array [0] = 0
14802
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809   (eval $ac_compile) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -s conftest.$ac_objext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_hi=$ac_mid
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 ac_lo=`expr '(' $ac_mid ')' + 1`
14824 fi
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14826 done
14827 case $ac_lo in
14828 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14829 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14830 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14831    { (exit 1); exit 1; }; } ;;
14832 esac
14833 else
14834   if test "$cross_compiling" = yes; then
14835   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14836 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14837    { (exit 1); exit 1; }; }
14838 else
14839   cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14841 #include "confdefs.h"
14842 $ac_includes_default
14843 struct { char filler; long long int field; } pgac_struct;
14844 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14845 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14846 #include <stdio.h>
14847 #include <stdlib.h>
14848 #ifdef F77_DUMMY_MAIN
14849 #  ifdef __cplusplus
14850      extern "C"
14851 #  endif
14852    int F77_DUMMY_MAIN() { return 1; }
14853 #endif
14854 int
14855 main ()
14856 {
14857
14858   FILE *f = fopen ("conftest.val", "w");
14859   if (! f)
14860     exit (1);
14861   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14862     {
14863       long i = longval ();
14864       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14865         exit (1);
14866       fprintf (f, "%ld\n", i);
14867     }
14868   else
14869     {
14870       unsigned long i = ulongval ();
14871       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14872         exit (1);
14873       fprintf (f, "%lu\n", i);
14874     }
14875   exit (ferror (f) || fclose (f) != 0);
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest$ac_exeext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14883   (eval $ac_link) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; }; then
14892   pgac_cv_alignof_long_long_int=`cat conftest.val`
14893 else
14894   echo "$as_me: program exited with status $ac_status" >&5
14895 echo "$as_me: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14897 ( exit $ac_status )
14898 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14899 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14900    { (exit 1); exit 1; }; }
14901 fi
14902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 fi
14905 rm -f conftest.val
14906 else
14907   pgac_cv_alignof_long_long_int=0
14908 fi
14909 fi
14910 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14911 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14912 cat >>confdefs.h <<_ACEOF
14913 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14914 _ACEOF
14915
14916
14917 fi
14918 echo "$as_me:$LINENO: checking for double" >&5
14919 echo $ECHO_N "checking for double... $ECHO_C" >&6
14920 if test "${ac_cv_type_double+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 #include "confdefs.h"
14926 $ac_includes_default
14927 #ifdef F77_DUMMY_MAIN
14928 #  ifdef __cplusplus
14929      extern "C"
14930 #  endif
14931    int F77_DUMMY_MAIN() { return 1; }
14932 #endif
14933 int
14934 main ()
14935 {
14936 if ((double *) 0)
14937   return 0;
14938 if (sizeof (double))
14939   return 0;
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946   (eval $ac_compile) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_cv_type_double=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 ac_cv_type_double=no
14961 fi
14962 rm -f conftest.$ac_objext conftest.$ac_ext
14963 fi
14964 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14965 echo "${ECHO_T}$ac_cv_type_double" >&6
14966
14967 echo "$as_me:$LINENO: checking alignment of double" >&5
14968 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14969 if test "${pgac_cv_alignof_double+set}" = set; then
14970   echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972   if test "$ac_cv_type_double" = yes; then
14973   if test "$cross_compiling" = yes; then
14974   # Depending upon the size, compute the lo and hi bounds.
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 #include "confdefs.h"
14978 $ac_includes_default
14979 struct { char filler; double field; } pgac_struct;
14980 #ifdef F77_DUMMY_MAIN
14981 #  ifdef __cplusplus
14982      extern "C"
14983 #  endif
14984    int F77_DUMMY_MAIN() { return 1; }
14985 #endif
14986 int
14987 main ()
14988 {
14989 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14990 test_array [0] = 0
14991
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -s conftest.$ac_objext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_lo=0 ac_mid=0
15009   while :; do
15010     cat >conftest.$ac_ext <<_ACEOF
15011 #line $LINENO "configure"
15012 #include "confdefs.h"
15013 $ac_includes_default
15014 struct { char filler; double field; } pgac_struct;
15015 #ifdef F77_DUMMY_MAIN
15016 #  ifdef __cplusplus
15017      extern "C"
15018 #  endif
15019    int F77_DUMMY_MAIN() { return 1; }
15020 #endif
15021 int
15022 main ()
15023 {
15024 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15025 test_array [0] = 0
15026
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033   (eval $ac_compile) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } &&
15037          { ac_try='test -s conftest.$ac_objext'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; }; then
15043   ac_hi=$ac_mid; break
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 cat conftest.$ac_ext >&5
15047 ac_lo=`expr $ac_mid + 1`
15048                     if test $ac_lo -le $ac_mid; then
15049                       ac_lo= ac_hi=
15050                       break
15051                     fi
15052                     ac_mid=`expr 2 '*' $ac_mid + 1`
15053 fi
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15055   done
15056 else
15057   echo "$as_me: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; double field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 #  ifdef __cplusplus
15066      extern "C"
15067 #  endif
15068    int F77_DUMMY_MAIN() { return 1; }
15069 #endif
15070 int
15071 main ()
15072 {
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15074 test_array [0] = 0
15075
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082   (eval $ac_compile) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } &&
15086          { ac_try='test -s conftest.$ac_objext'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; }; then
15092   ac_hi=-1 ac_mid=-1
15093   while :; do
15094     cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15097 $ac_includes_default
15098 struct { char filler; double field; } pgac_struct;
15099 #ifdef F77_DUMMY_MAIN
15100 #  ifdef __cplusplus
15101      extern "C"
15102 #  endif
15103    int F77_DUMMY_MAIN() { return 1; }
15104 #endif
15105 int
15106 main ()
15107 {
15108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15109 test_array [0] = 0
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117   (eval $ac_compile) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } &&
15121          { ac_try='test -s conftest.$ac_objext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_lo=$ac_mid; break
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 cat conftest.$ac_ext >&5
15131 ac_hi=`expr '(' $ac_mid ')' - 1`
15132                        if test $ac_mid -le $ac_hi; then
15133                          ac_lo= ac_hi=
15134                          break
15135                        fi
15136                        ac_mid=`expr 2 '*' $ac_mid`
15137 fi
15138 rm -f conftest.$ac_objext conftest.$ac_ext
15139   done
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 ac_lo= ac_hi=
15144 fi
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146 fi
15147 rm -f conftest.$ac_objext conftest.$ac_ext
15148 # Binary search between lo and hi bounds.
15149 while test "x$ac_lo" != "x$ac_hi"; do
15150   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15151   cat >conftest.$ac_ext <<_ACEOF
15152 #line $LINENO "configure"
15153 #include "confdefs.h"
15154 $ac_includes_default
15155 struct { char filler; double field; } pgac_struct;
15156 #ifdef F77_DUMMY_MAIN
15157 #  ifdef __cplusplus
15158      extern "C"
15159 #  endif
15160    int F77_DUMMY_MAIN() { return 1; }
15161 #endif
15162 int
15163 main ()
15164 {
15165 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15166 test_array [0] = 0
15167
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174   (eval $ac_compile) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } &&
15178          { ac_try='test -s conftest.$ac_objext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_hi=$ac_mid
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 ac_lo=`expr '(' $ac_mid ')' + 1`
15189 fi
15190 rm -f conftest.$ac_objext conftest.$ac_ext
15191 done
15192 case $ac_lo in
15193 ?*) pgac_cv_alignof_double=$ac_lo;;
15194 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15195 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15196    { (exit 1); exit 1; }; } ;;
15197 esac
15198 else
15199   if test "$cross_compiling" = yes; then
15200   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15201 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15202    { (exit 1); exit 1; }; }
15203 else
15204   cat >conftest.$ac_ext <<_ACEOF
15205 #line $LINENO "configure"
15206 #include "confdefs.h"
15207 $ac_includes_default
15208 struct { char filler; double field; } pgac_struct;
15209 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15210 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15211 #include <stdio.h>
15212 #include <stdlib.h>
15213 #ifdef F77_DUMMY_MAIN
15214 #  ifdef __cplusplus
15215      extern "C"
15216 #  endif
15217    int F77_DUMMY_MAIN() { return 1; }
15218 #endif
15219 int
15220 main ()
15221 {
15222
15223   FILE *f = fopen ("conftest.val", "w");
15224   if (! f)
15225     exit (1);
15226   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15227     {
15228       long i = longval ();
15229       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15230         exit (1);
15231       fprintf (f, "%ld\n", i);
15232     }
15233   else
15234     {
15235       unsigned long i = ulongval ();
15236       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15237         exit (1);
15238       fprintf (f, "%lu\n", i);
15239     }
15240   exit (ferror (f) || fclose (f) != 0);
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248   (eval $ac_link) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   pgac_cv_alignof_double=`cat conftest.val`
15258 else
15259   echo "$as_me: program exited with status $ac_status" >&5
15260 echo "$as_me: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 ( exit $ac_status )
15263 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15264 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15265    { (exit 1); exit 1; }; }
15266 fi
15267 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15268 fi
15269 fi
15270 rm -f conftest.val
15271 else
15272   pgac_cv_alignof_double=0
15273 fi
15274 fi
15275 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15276 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15277 cat >>confdefs.h <<_ACEOF
15278 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15279 _ACEOF
15280
15281
15282
15283 # Compute maximum alignment of any basic type.
15284 # We assume long's alignment is at least as strong as char, short, or int;
15285 # but we must check long long (if it exists) and double.
15286
15287 MAX_ALIGNOF=$pgac_cv_alignof_long
15288 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15289   MAX_ALIGNOF=$pgac_cv_alignof_double
15290 fi
15291 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15292   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15293 fi
15294
15295 cat >>confdefs.h <<_ACEOF
15296 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15297 _ACEOF
15298
15299
15300
15301 # Some platforms predefine the types int8, int16, etc.  Only check
15302 # a (hopefully) representative subset.
15303 echo "$as_me:$LINENO: checking for int8" >&5
15304 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15305 if test "${ac_cv_type_int8+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15311 #include <stdio.h>
15312 #ifdef HAVE_SUPPORTDEFS_H
15313 #include <SupportDefs.h>
15314 #endif
15315
15316 #ifdef F77_DUMMY_MAIN
15317 #  ifdef __cplusplus
15318      extern "C"
15319 #  endif
15320    int F77_DUMMY_MAIN() { return 1; }
15321 #endif
15322 int
15323 main ()
15324 {
15325 if ((int8 *) 0)
15326   return 0;
15327 if (sizeof (int8))
15328   return 0;
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335   (eval $ac_compile) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } &&
15339          { ac_try='test -s conftest.$ac_objext'
15340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341   (eval $ac_try) 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; }; then
15345   ac_cv_type_int8=yes
15346 else
15347   echo "$as_me: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15349 ac_cv_type_int8=no
15350 fi
15351 rm -f conftest.$ac_objext conftest.$ac_ext
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15354 echo "${ECHO_T}$ac_cv_type_int8" >&6
15355 if test $ac_cv_type_int8 = yes; then
15356
15357 cat >>confdefs.h <<_ACEOF
15358 #define HAVE_INT8 1
15359 _ACEOF
15360
15361
15362 fi
15363 echo "$as_me:$LINENO: checking for uint8" >&5
15364 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15365 if test "${ac_cv_type_uint8+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 #line $LINENO "configure"
15370 #include "confdefs.h"
15371 #include <stdio.h>
15372 #ifdef HAVE_SUPPORTDEFS_H
15373 #include <SupportDefs.h>
15374 #endif
15375
15376 #ifdef F77_DUMMY_MAIN
15377 #  ifdef __cplusplus
15378      extern "C"
15379 #  endif
15380    int F77_DUMMY_MAIN() { return 1; }
15381 #endif
15382 int
15383 main ()
15384 {
15385 if ((uint8 *) 0)
15386   return 0;
15387 if (sizeof (uint8))
15388   return 0;
15389   ;
15390   return 0;
15391 }
15392 _ACEOF
15393 rm -f conftest.$ac_objext
15394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395   (eval $ac_compile) 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -s conftest.$ac_objext'
15400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401   (eval $ac_try) 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; }; then
15405   ac_cv_type_uint8=yes
15406 else
15407   echo "$as_me: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15409 ac_cv_type_uint8=no
15410 fi
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15412 fi
15413 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15414 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15415 if test $ac_cv_type_uint8 = yes; then
15416
15417 cat >>confdefs.h <<_ACEOF
15418 #define HAVE_UINT8 1
15419 _ACEOF
15420
15421
15422 fi
15423 echo "$as_me:$LINENO: checking for int64" >&5
15424 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15425 if test "${ac_cv_type_int64+set}" = set; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428   cat >conftest.$ac_ext <<_ACEOF
15429 #line $LINENO "configure"
15430 #include "confdefs.h"
15431 #include <stdio.h>
15432 #ifdef HAVE_SUPPORTDEFS_H
15433 #include <SupportDefs.h>
15434 #endif
15435
15436 #ifdef F77_DUMMY_MAIN
15437 #  ifdef __cplusplus
15438      extern "C"
15439 #  endif
15440    int F77_DUMMY_MAIN() { return 1; }
15441 #endif
15442 int
15443 main ()
15444 {
15445 if ((int64 *) 0)
15446   return 0;
15447 if (sizeof (int64))
15448   return 0;
15449   ;
15450   return 0;
15451 }
15452 _ACEOF
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455   (eval $ac_compile) 2>&5
15456   ac_status=$?
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } &&
15459          { ac_try='test -s conftest.$ac_objext'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; }; then
15465   ac_cv_type_int64=yes
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 ac_cv_type_int64=no
15470 fi
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15472 fi
15473 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15474 echo "${ECHO_T}$ac_cv_type_int64" >&6
15475 if test $ac_cv_type_int64 = yes; then
15476
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_INT64 1
15479 _ACEOF
15480
15481
15482 fi
15483 echo "$as_me:$LINENO: checking for uint64" >&5
15484 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15485 if test "${ac_cv_type_uint64+set}" = set; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488   cat >conftest.$ac_ext <<_ACEOF
15489 #line $LINENO "configure"
15490 #include "confdefs.h"
15491 #include <stdio.h>
15492 #ifdef HAVE_SUPPORTDEFS_H
15493 #include <SupportDefs.h>
15494 #endif
15495
15496 #ifdef F77_DUMMY_MAIN
15497 #  ifdef __cplusplus
15498      extern "C"
15499 #  endif
15500    int F77_DUMMY_MAIN() { return 1; }
15501 #endif
15502 int
15503 main ()
15504 {
15505 if ((uint64 *) 0)
15506   return 0;
15507 if (sizeof (uint64))
15508   return 0;
15509   ;
15510   return 0;
15511 }
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515   (eval $ac_compile) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; }; then
15525   ac_cv_type_uint64=yes
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15529 ac_cv_type_uint64=no
15530 fi
15531 rm -f conftest.$ac_objext conftest.$ac_ext
15532 fi
15533 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15534 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15535 if test $ac_cv_type_uint64 = yes; then
15536
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_UINT64 1
15539 _ACEOF
15540
15541
15542 fi
15543
15544
15545 # We also check for sig_atomic_t, which *should* be defined per ANSI
15546 # C, but is missing on some old platforms.
15547 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15548 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15549 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 #include "confdefs.h"
15555 #include <signal.h>
15556
15557 #ifdef F77_DUMMY_MAIN
15558 #  ifdef __cplusplus
15559      extern "C"
15560 #  endif
15561    int F77_DUMMY_MAIN() { return 1; }
15562 #endif
15563 int
15564 main ()
15565 {
15566 if ((sig_atomic_t *) 0)
15567   return 0;
15568 if (sizeof (sig_atomic_t))
15569   return 0;
15570   ;
15571   return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576   (eval $ac_compile) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -s conftest.$ac_objext'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586   ac_cv_type_sig_atomic_t=yes
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 ac_cv_type_sig_atomic_t=no
15591 fi
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15595 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15596 if test $ac_cv_type_sig_atomic_t = yes; then
15597
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_SIG_ATOMIC_T 1
15600 _ACEOF
15601
15602
15603 fi
15604
15605
15606
15607 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15608 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15609 if test "${pgac_cv_func_posix_signals+set}" = set; then
15610   echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612   cat >conftest.$ac_ext <<_ACEOF
15613 #line $LINENO "configure"
15614 #include "confdefs.h"
15615 #include <signal.h>
15616
15617 #ifdef F77_DUMMY_MAIN
15618 #  ifdef __cplusplus
15619      extern "C"
15620 #  endif
15621    int F77_DUMMY_MAIN() { return 1; }
15622 #endif
15623 int
15624 main ()
15625 {
15626 struct sigaction act, oact;
15627 sigemptyset(&act.sa_mask);
15628 act.sa_flags = SA_RESTART;
15629 sigaction(0, &act, &oact);
15630   ;
15631   return 0;
15632 }
15633 _ACEOF
15634 rm -f conftest.$ac_objext conftest$ac_exeext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636   (eval $ac_link) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } &&
15640          { ac_try='test -s conftest$ac_exeext'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; }; then
15646   pgac_cv_func_posix_signals=yes
15647 else
15648   echo "$as_me: failed program was:" >&5
15649 cat conftest.$ac_ext >&5
15650 pgac_cv_func_posix_signals=no
15651 fi
15652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15653 fi
15654 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15655 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15656 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15657
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_POSIX_SIGNALS
15660 _ACEOF
15661
15662 fi
15663 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15664
15665
15666
15667 # Select semaphore implementation type.
15668 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15669
15670 cat >>confdefs.h <<\_ACEOF
15671 #define USE_NAMED_POSIX_SEMAPHORES 1
15672 _ACEOF
15673
15674   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15675 else
15676   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15677
15678 cat >>confdefs.h <<\_ACEOF
15679 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15680 _ACEOF
15681
15682     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15683   else
15684
15685 cat >>confdefs.h <<\_ACEOF
15686 #define USE_SYSV_SEMAPHORES 1
15687 _ACEOF
15688
15689     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15690   fi
15691 fi
15692
15693
15694 # Select shared-memory implementation type.
15695
15696 cat >>confdefs.h <<\_ACEOF
15697 #define USE_SYSV_SHARED_MEMORY 1
15698 _ACEOF
15699
15700 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15701
15702
15703 if test "$enable_nls" = yes ; then
15704
15705   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15706 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15707 if test "${ac_cv_search_gettext+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   ac_func_search_save_LIBS=$LIBS
15711 ac_cv_search_gettext=no
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15714 #include "confdefs.h"
15715
15716 /* Override any gcc2 internal prototype to avoid an error.  */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 /* We use char because int might match the return type of a gcc2
15721    builtin and then its argument prototype would still apply.  */
15722 char gettext ();
15723 #ifdef F77_DUMMY_MAIN
15724 #  ifdef __cplusplus
15725      extern "C"
15726 #  endif
15727    int F77_DUMMY_MAIN() { return 1; }
15728 #endif
15729 int
15730 main ()
15731 {
15732 gettext ();
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749   ac_cv_search_gettext="none required"
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15753 fi
15754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15755 if test "$ac_cv_search_gettext" = no; then
15756   for ac_lib in intl; do
15757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15758     cat >conftest.$ac_ext <<_ACEOF
15759 #line $LINENO "configure"
15760 #include "confdefs.h"
15761
15762 /* Override any gcc2 internal prototype to avoid an error.  */
15763 #ifdef __cplusplus
15764 extern "C"
15765 #endif
15766 /* We use char because int might match the return type of a gcc2
15767    builtin and then its argument prototype would still apply.  */
15768 char gettext ();
15769 #ifdef F77_DUMMY_MAIN
15770 #  ifdef __cplusplus
15771      extern "C"
15772 #  endif
15773    int F77_DUMMY_MAIN() { return 1; }
15774 #endif
15775 int
15776 main ()
15777 {
15778 gettext ();
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785   (eval $ac_link) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } &&
15789          { ac_try='test -s conftest$ac_exeext'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; }; then
15795   ac_cv_search_gettext="-l$ac_lib"
15796 break
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15800 fi
15801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15802   done
15803 fi
15804 LIBS=$ac_func_search_save_LIBS
15805 fi
15806 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15807 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15808 if test "$ac_cv_search_gettext" != no; then
15809   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15810
15811 else
15812   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15813 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15814    { (exit 1); exit 1; }; }
15815 fi
15816
15817   if test "${ac_cv_header_libintl_h+set}" = set; then
15818   echo "$as_me:$LINENO: checking for libintl.h" >&5
15819 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15820 if test "${ac_cv_header_libintl_h+set}" = set; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
15826   # Is the header compilable?
15827 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15828 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15832 $ac_includes_default
15833 #include <libintl.h>
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837   (eval $ac_compile) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -s conftest.$ac_objext'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_header_compiler=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 ac_header_compiler=no
15852 fi
15853 rm -f conftest.$ac_objext conftest.$ac_ext
15854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15855 echo "${ECHO_T}$ac_header_compiler" >&6
15856
15857 # Is the header present?
15858 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15859 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15862 #include "confdefs.h"
15863 #include <libintl.h>
15864 _ACEOF
15865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15867   ac_status=$?
15868   egrep -v '^ *\+' conftest.er1 >conftest.err
15869   rm -f conftest.er1
15870   cat conftest.err >&5
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } >/dev/null; then
15873   if test -s conftest.err; then
15874     ac_cpp_err=$ac_c_preproc_warn_flag
15875   else
15876     ac_cpp_err=
15877   fi
15878 else
15879   ac_cpp_err=yes
15880 fi
15881 if test -z "$ac_cpp_err"; then
15882   ac_header_preproc=yes
15883 else
15884   echo "$as_me: failed program was:" >&5
15885   cat conftest.$ac_ext >&5
15886   ac_header_preproc=no
15887 fi
15888 rm -f conftest.err conftest.$ac_ext
15889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15890 echo "${ECHO_T}$ac_header_preproc" >&6
15891
15892 # So?  What about this header?
15893 case $ac_header_compiler:$ac_header_preproc in
15894   yes:no )
15895     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15896 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15898 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15899   no:yes )
15900     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15905 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15906 esac
15907 echo "$as_me:$LINENO: checking for libintl.h" >&5
15908 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15909 if test "${ac_cv_header_libintl_h+set}" = set; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   ac_cv_header_libintl_h=$ac_header_preproc
15913 fi
15914 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15915 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15916
15917 fi
15918 if test $ac_cv_header_libintl_h = yes; then
15919   :
15920 else
15921   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15922 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15923    { (exit 1); exit 1; }; }
15924 fi
15925
15926
15927   for ac_prog in msgfmt
15928 do
15929   # Extract the first word of "$ac_prog", so it can be a program name with args.
15930 set dummy $ac_prog; ac_word=$2
15931 echo "$as_me:$LINENO: checking for $ac_word" >&5
15932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15933 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15934   echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936   if test -n "$MSGFMT"; then
15937   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15938 else
15939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15941 do
15942   IFS=$as_save_IFS
15943   test -z "$as_dir" && as_dir=.
15944   for ac_exec_ext in '' $ac_executable_extensions; do
15945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946     ac_cv_prog_MSGFMT="$ac_prog"
15947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15948     break 2
15949   fi
15950 done
15951 done
15952
15953 fi
15954 fi
15955 MSGFMT=$ac_cv_prog_MSGFMT
15956 if test -n "$MSGFMT"; then
15957   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15958 echo "${ECHO_T}$MSGFMT" >&6
15959 else
15960   echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15962 fi
15963
15964   test -n "$MSGFMT" && break
15965 done
15966
15967   if test -z "$MSGFMT"; then
15968     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15969 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15970    { (exit 1); exit 1; }; }
15971   fi
15972   for ac_prog in msgmerge
15973 do
15974   # Extract the first word of "$ac_prog", so it can be a program name with args.
15975 set dummy $ac_prog; ac_word=$2
15976 echo "$as_me:$LINENO: checking for $ac_word" >&5
15977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15978 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981   if test -n "$MSGMERGE"; then
15982   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15983 else
15984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15986 do
15987   IFS=$as_save_IFS
15988   test -z "$as_dir" && as_dir=.
15989   for ac_exec_ext in '' $ac_executable_extensions; do
15990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15991     ac_cv_prog_MSGMERGE="$ac_prog"
15992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15993     break 2
15994   fi
15995 done
15996 done
15997
15998 fi
15999 fi
16000 MSGMERGE=$ac_cv_prog_MSGMERGE
16001 if test -n "$MSGMERGE"; then
16002   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16003 echo "${ECHO_T}$MSGMERGE" >&6
16004 else
16005   echo "$as_me:$LINENO: result: no" >&5
16006 echo "${ECHO_T}no" >&6
16007 fi
16008
16009   test -n "$MSGMERGE" && break
16010 done
16011
16012   for ac_prog in xgettext
16013 do
16014   # Extract the first word of "$ac_prog", so it can be a program name with args.
16015 set dummy $ac_prog; ac_word=$2
16016 echo "$as_me:$LINENO: checking for $ac_word" >&5
16017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16018 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   if test -n "$XGETTEXT"; then
16022   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16023 else
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025 for as_dir in $PATH
16026 do
16027   IFS=$as_save_IFS
16028   test -z "$as_dir" && as_dir=.
16029   for ac_exec_ext in '' $ac_executable_extensions; do
16030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031     ac_cv_prog_XGETTEXT="$ac_prog"
16032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16033     break 2
16034   fi
16035 done
16036 done
16037
16038 fi
16039 fi
16040 XGETTEXT=$ac_cv_prog_XGETTEXT
16041 if test -n "$XGETTEXT"; then
16042   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16043 echo "${ECHO_T}$XGETTEXT" >&6
16044 else
16045   echo "$as_me:$LINENO: result: no" >&5
16046 echo "${ECHO_T}no" >&6
16047 fi
16048
16049   test -n "$XGETTEXT" && break
16050 done
16051
16052
16053   # Note: share/locale is always the default, independent of $datadir
16054   localedir='${prefix}/share/locale'
16055   if test x"$prefix" = x"NONE"; then
16056     exp_localedir="$ac_default_prefix/share/locale"
16057   else
16058     exp_localedir="$prefix/share/locale"
16059   fi
16060
16061
16062
16063 cat >>confdefs.h <<_ACEOF
16064 #define LOCALEDIR "$exp_localedir"
16065 _ACEOF
16066
16067
16068 fi
16069
16070 if test "$with_CXX" = yes; then
16071
16072
16073 ac_ext=cc
16074 ac_cpp='$CXXCPP $CPPFLAGS'
16075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16078
16079 if test "${ac_cv_header_string+set}" = set; then
16080   echo "$as_me:$LINENO: checking for string" >&5
16081 echo $ECHO_N "checking for string... $ECHO_C" >&6
16082 if test "${ac_cv_header_string+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 fi
16085 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16086 echo "${ECHO_T}$ac_cv_header_string" >&6
16087 else
16088   # Is the header compilable?
16089 echo "$as_me:$LINENO: checking string usability" >&5
16090 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line $LINENO "configure"
16093 #include "confdefs.h"
16094 $ac_includes_default
16095 #include <string>
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099   (eval $ac_compile) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_header_compiler=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_header_compiler=no
16114 fi
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16117 echo "${ECHO_T}$ac_header_compiler" >&6
16118
16119 # Is the header present?
16120 echo "$as_me:$LINENO: checking string presence" >&5
16121 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16122 cat >conftest.$ac_ext <<_ACEOF
16123 #line $LINENO "configure"
16124 #include "confdefs.h"
16125 #include <string>
16126 _ACEOF
16127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16129   ac_status=$?
16130   egrep -v '^ *\+' conftest.er1 >conftest.err
16131   rm -f conftest.er1
16132   cat conftest.err >&5
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } >/dev/null; then
16135   if test -s conftest.err; then
16136     ac_cpp_err=$ac_cxx_preproc_warn_flag
16137   else
16138     ac_cpp_err=
16139   fi
16140 else
16141   ac_cpp_err=yes
16142 fi
16143 if test -z "$ac_cpp_err"; then
16144   ac_header_preproc=yes
16145 else
16146   echo "$as_me: failed program was:" >&5
16147   cat conftest.$ac_ext >&5
16148   ac_header_preproc=no
16149 fi
16150 rm -f conftest.err conftest.$ac_ext
16151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16152 echo "${ECHO_T}$ac_header_preproc" >&6
16153
16154 # So?  What about this header?
16155 case $ac_header_compiler:$ac_header_preproc in
16156   yes:no )
16157     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16158 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16160 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16161   no:yes )
16162     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16163 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16164     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16165 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16167 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16168 esac
16169 echo "$as_me:$LINENO: checking for string" >&5
16170 echo $ECHO_N "checking for string... $ECHO_C" >&6
16171 if test "${ac_cv_header_string+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   ac_cv_header_string=$ac_header_preproc
16175 fi
16176 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16177 echo "${ECHO_T}$ac_cv_header_string" >&6
16178
16179 fi
16180 if test $ac_cv_header_string = yes; then
16181
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_CXX_STRING_HEADER 1
16184 _ACEOF
16185
16186 else
16187   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16188 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16189 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16190   echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192   cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 #include <stdio.h>
16196 #include <stdlib.h>
16197 #include <string.h>
16198
16199 #ifdef F77_DUMMY_MAIN
16200 #  ifdef __cplusplus
16201      extern "C"
16202 #  endif
16203    int F77_DUMMY_MAIN() { return 1; }
16204 #endif
16205 int
16206 main ()
16207 {
16208 string foo = "test"
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } &&
16219          { ac_try='test -s conftest.$ac_objext'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }; then
16225   pgac_cv_class_string_in_string_h=yes
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 pgac_cv_class_string_in_string_h=no
16230 fi
16231 rm -f conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16234 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16235
16236   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16237     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16238 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16239    { (exit 1); exit 1; }; }
16240   fi
16241
16242 fi
16243
16244
16245 ac_ext=c
16246 ac_cpp='$CPP $CPPFLAGS'
16247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16250
16251
16252 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16253 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16254 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257
16258 ac_ext=cc
16259 ac_cpp='$CXXCPP $CPPFLAGS'
16260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16263
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16266 #include "confdefs.h"
16267 #include <stdio.h>
16268 #include <stdlib.h>
16269 #ifdef HAVE_CXX_STRING_HEADER
16270 #include <string>
16271 #endif
16272 using namespace std;
16273
16274 #ifdef F77_DUMMY_MAIN
16275 #  ifdef __cplusplus
16276      extern "C"
16277 #  endif
16278    int F77_DUMMY_MAIN() { return 1; }
16279 #endif
16280 int
16281 main ()
16282 {
16283
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 rm -f conftest.$ac_objext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290   (eval $ac_compile) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -s conftest.$ac_objext'
16295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296   (eval $ac_try) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   pgac_cv_cxx_namespace_std=yes
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16304 pgac_cv_cxx_namespace_std=no
16305 fi
16306 rm -f conftest.$ac_objext conftest.$ac_ext
16307 ac_ext=c
16308 ac_cpp='$CPP $CPPFLAGS'
16309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16312
16313 fi
16314 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16315 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16316
16317 if test $pgac_cv_cxx_namespace_std = yes ; then
16318
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_NAMESPACE_STD 1
16321 _ACEOF
16322
16323 fi
16324 fi
16325
16326
16327 # Check for Tcl configuration script tclConfig.sh
16328 if test "$with_tcl" = yes; then
16329     for ac_prog in tclsh tcl
16330 do
16331   # Extract the first word of "$ac_prog", so it can be a program name with args.
16332 set dummy $ac_prog; ac_word=$2
16333 echo "$as_me:$LINENO: checking for $ac_word" >&5
16334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16335 if test "${ac_cv_path_TCLSH+set}" = set; then
16336   echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338   case $TCLSH in
16339   [\\/]* | ?:[\\/]*)
16340   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16341   ;;
16342   *)
16343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in $PATH
16345 do
16346   IFS=$as_save_IFS
16347   test -z "$as_dir" && as_dir=.
16348   for ac_exec_ext in '' $ac_executable_extensions; do
16349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16350     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16352     break 2
16353   fi
16354 done
16355 done
16356
16357   ;;
16358 esac
16359 fi
16360 TCLSH=$ac_cv_path_TCLSH
16361
16362 if test -n "$TCLSH"; then
16363   echo "$as_me:$LINENO: result: $TCLSH" >&5
16364 echo "${ECHO_T}$TCLSH" >&6
16365 else
16366   echo "$as_me:$LINENO: result: no" >&5
16367 echo "${ECHO_T}no" >&6
16368 fi
16369
16370   test -n "$TCLSH" && break
16371 done
16372
16373 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16374 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16375 # Let user override test
16376 if test -z "$TCL_CONFIG_SH"; then
16377     pgac_test_dirs="$with_tclconfig"
16378
16379     set X $pgac_test_dirs; shift
16380     if test $# -eq 0; then
16381         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16382 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16383    { (exit 1); exit 1; }; }
16384         set X `echo 'puts $auto_path' | $TCLSH`; shift
16385     fi
16386
16387     for pgac_dir do
16388         if test -r "$pgac_dir/tclConfig.sh"; then
16389             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16390             break
16391         fi
16392     done
16393 fi
16394
16395 if test -z "$TCL_CONFIG_SH"; then
16396     echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6
16398     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16399 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16400    { (exit 1); exit 1; }; }
16401 else
16402     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16403 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16404 fi
16405
16406
16407
16408 fi
16409
16410 # Check for Tk configuration script tkConfig.sh
16411 if test "$with_tk" = yes; then
16412     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16413 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16414 # Let user override test
16415 if test -z "$TK_CONFIG_SH"; then
16416     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16417
16418     set X $pgac_test_dirs; shift
16419     if test $# -eq 0; then
16420         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16421 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16422    { (exit 1); exit 1; }; }
16423         set X `echo 'puts $auto_path' | $TCLSH`; shift
16424     fi
16425
16426     for pgac_dir do
16427         if test -r "$pgac_dir/tkConfig.sh"; then
16428             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16429             break
16430         fi
16431     done
16432 fi
16433
16434 if test -z "$TK_CONFIG_SH"; then
16435     echo "$as_me:$LINENO: result: no" >&5
16436 echo "${ECHO_T}no" >&6
16437     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16438 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16439    { (exit 1); exit 1; }; }
16440 else
16441     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16442 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16443 fi
16444
16445
16446
16447 fi
16448
16449
16450 #
16451 # Check for DocBook and tools
16452 #
16453 for ac_prog in onsgmls nsgmls
16454 do
16455   # Extract the first word of "$ac_prog", so it can be a program name with args.
16456 set dummy $ac_prog; ac_word=$2
16457 echo "$as_me:$LINENO: checking for $ac_word" >&5
16458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16459 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   if test -n "$NSGMLS"; then
16463   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16464 else
16465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16466 for as_dir in $PATH
16467 do
16468   IFS=$as_save_IFS
16469   test -z "$as_dir" && as_dir=.
16470   for ac_exec_ext in '' $ac_executable_extensions; do
16471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16472     ac_cv_prog_NSGMLS="$ac_prog"
16473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16474     break 2
16475   fi
16476 done
16477 done
16478
16479 fi
16480 fi
16481 NSGMLS=$ac_cv_prog_NSGMLS
16482 if test -n "$NSGMLS"; then
16483   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16484 echo "${ECHO_T}$NSGMLS" >&6
16485 else
16486   echo "$as_me:$LINENO: result: no" >&5
16487 echo "${ECHO_T}no" >&6
16488 fi
16489
16490   test -n "$NSGMLS" && break
16491 done
16492
16493 for ac_prog in openjade jade
16494 do
16495   # Extract the first word of "$ac_prog", so it can be a program name with args.
16496 set dummy $ac_prog; ac_word=$2
16497 echo "$as_me:$LINENO: checking for $ac_word" >&5
16498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16499 if test "${ac_cv_prog_JADE+set}" = set; then
16500   echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502   if test -n "$JADE"; then
16503   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16504 else
16505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in $PATH
16507 do
16508   IFS=$as_save_IFS
16509   test -z "$as_dir" && as_dir=.
16510   for ac_exec_ext in '' $ac_executable_extensions; do
16511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16512     ac_cv_prog_JADE="$ac_prog"
16513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16514     break 2
16515   fi
16516 done
16517 done
16518
16519 fi
16520 fi
16521 JADE=$ac_cv_prog_JADE
16522 if test -n "$JADE"; then
16523   echo "$as_me:$LINENO: result: $JADE" >&5
16524 echo "${ECHO_T}$JADE" >&6
16525 else
16526   echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6
16528 fi
16529
16530   test -n "$JADE" && break
16531 done
16532
16533
16534 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16535 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16536 if test "${pgac_cv_check_docbook+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539   cat >conftest.sgml <<EOF
16540 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16541 <book>
16542  <title>test</title>
16543  <chapter>
16544   <title>random</title>
16545    <sect1>
16546     <title>testsect</title>
16547     <para>text</para>
16548   </sect1>
16549  </chapter>
16550 </book>
16551 EOF
16552
16553 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16554 if test $? -eq 0; then
16555   pgac_cv_check_docbook=yes
16556 else
16557   pgac_cv_check_docbook=no
16558 fi
16559 rm -f conftest.sgml
16560 fi
16561 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16562 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16563
16564 have_docbook=$pgac_cv_check_docbook
16565
16566
16567 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16568 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16569 if test "${pgac_cv_path_stylesheets+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   if test -n "$DOCBOOKSTYLE"; then
16573   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16574 else
16575   for pgac_prefix in /usr /usr/local /opt; do
16576     for pgac_infix in share lib; do
16577       for pgac_postfix in \
16578         sgml/stylesheets/nwalsh-modular \
16579         sgml/stylesheets/docbook \
16580         sgml/docbook/dsssl/modular \
16581         sgml/docbook/dsssl-stylesheets
16582       do
16583         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16584         if test -r "$pgac_candidate/html/docbook.dsl" \
16585            && test -r "$pgac_candidate/print/docbook.dsl"
16586         then
16587           pgac_cv_path_stylesheets=$pgac_candidate
16588           break 3
16589         fi
16590       done
16591     done
16592   done
16593 fi
16594 fi
16595
16596 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16597
16598 if test -n "$DOCBOOKSTYLE"; then
16599   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16600 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16601 else
16602   echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6
16604 fi
16605 if test -n "$DOCBOOKSTYLE"; then
16606   for ac_prog in collateindex.pl
16607 do
16608   # Extract the first word of "$ac_prog", so it can be a program name with args.
16609 set dummy $ac_prog; ac_word=$2
16610 echo "$as_me:$LINENO: checking for $ac_word" >&5
16611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16612 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   case $COLLATEINDEX in
16616   [\\/]* | ?:[\\/]*)
16617   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16618   ;;
16619   *)
16620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $DOCBOOKSTYLE/bin $PATH
16622 do
16623   IFS=$as_save_IFS
16624   test -z "$as_dir" && as_dir=.
16625   for ac_exec_ext in '' $ac_executable_extensions; do
16626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16629     break 2
16630   fi
16631 done
16632 done
16633
16634   ;;
16635 esac
16636 fi
16637 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16638
16639 if test -n "$COLLATEINDEX"; then
16640   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16641 echo "${ECHO_T}$COLLATEINDEX" >&6
16642 else
16643   echo "$as_me:$LINENO: result: no" >&5
16644 echo "${ECHO_T}no" >&6
16645 fi
16646
16647   test -n "$COLLATEINDEX" && break
16648 done
16649
16650 else
16651   for ac_prog in collateindex.pl
16652 do
16653   # Extract the first word of "$ac_prog", so it can be a program name with args.
16654 set dummy $ac_prog; ac_word=$2
16655 echo "$as_me:$LINENO: checking for $ac_word" >&5
16656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16657 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16658   echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660   case $COLLATEINDEX in
16661   [\\/]* | ?:[\\/]*)
16662   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16663   ;;
16664   *)
16665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16667 do
16668   IFS=$as_save_IFS
16669   test -z "$as_dir" && as_dir=.
16670   for ac_exec_ext in '' $ac_executable_extensions; do
16671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16674     break 2
16675   fi
16676 done
16677 done
16678
16679   ;;
16680 esac
16681 fi
16682 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16683
16684 if test -n "$COLLATEINDEX"; then
16685   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16686 echo "${ECHO_T}$COLLATEINDEX" >&6
16687 else
16688   echo "$as_me:$LINENO: result: no" >&5
16689 echo "${ECHO_T}no" >&6
16690 fi
16691
16692   test -n "$COLLATEINDEX" && break
16693 done
16694
16695 fi
16696 for ac_prog in sgmlspl
16697 do
16698   # Extract the first word of "$ac_prog", so it can be a program name with args.
16699 set dummy $ac_prog; ac_word=$2
16700 echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16702 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   if test -n "$SGMLSPL"; then
16706   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16707 else
16708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16709 for as_dir in $PATH
16710 do
16711   IFS=$as_save_IFS
16712   test -z "$as_dir" && as_dir=.
16713   for ac_exec_ext in '' $ac_executable_extensions; do
16714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16715     ac_cv_prog_SGMLSPL="$ac_prog"
16716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16717     break 2
16718   fi
16719 done
16720 done
16721
16722 fi
16723 fi
16724 SGMLSPL=$ac_cv_prog_SGMLSPL
16725 if test -n "$SGMLSPL"; then
16726   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16727 echo "${ECHO_T}$SGMLSPL" >&6
16728 else
16729   echo "$as_me:$LINENO: result: no" >&5
16730 echo "${ECHO_T}no" >&6
16731 fi
16732
16733   test -n "$SGMLSPL" && break
16734 done
16735
16736
16737
16738 # prepare build tree if outside source tree
16739 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16740 # Note 2: /bin/pwd might be better than shell's built-in at getting
16741 #         a symlink-free name.
16742 if test "$no_create" != yes; then
16743   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16744     :
16745   else
16746     vpath_build=yes
16747
16748     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16749     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16750     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16751       || { { echo "$as_me:$LINENO: error: failed" >&5
16752 echo "$as_me: error: failed" >&2;}
16753    { (exit 1); exit 1; }; }
16754     echo "$as_me:$LINENO: result: done" >&5
16755 echo "${ECHO_T}done" >&6
16756   fi
16757 fi
16758
16759
16760 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16761
16762
16763 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
16764
16765
16766 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16767
16768
16769 cat >confcache <<\_ACEOF
16770 # This file is a shell script that caches the results of configure
16771 # tests run on this system so they can be shared between configure
16772 # scripts and configure runs, see configure's option --config-cache.
16773 # It is not useful on other systems.  If it contains results you don't
16774 # want to keep, you may remove or edit it.
16775 #
16776 # config.status only pays attention to the cache file if you give it
16777 # the --recheck option to rerun configure.
16778 #
16779 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16781 # following values.
16782
16783 _ACEOF
16784
16785 # The following way of writing the cache mishandles newlines in values,
16786 # but we know of no workaround that is simple, portable, and efficient.
16787 # So, don't put newlines in cache variables' values.
16788 # Ultrix sh set writes to stderr and can't be redirected directly,
16789 # and sets the high bit in the cache file unless we assign to the vars.
16790 {
16791   (set) 2>&1 |
16792     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16793     *ac_space=\ *)
16794       # `set' does not quote correctly, so add quotes (double-quote
16795       # substitution turns \\\\ into \\, and sed turns \\ into \).
16796       sed -n \
16797         "s/'/'\\\\''/g;
16798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799       ;;
16800     *)
16801       # `set' quotes correctly as required by POSIX, so do not add quotes.
16802       sed -n \
16803         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16804       ;;
16805     esac;
16806 } |
16807   sed '
16808      t clear
16809      : clear
16810      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811      t end
16812      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813      : end' >>confcache
16814 if cmp -s $cache_file confcache; then :; else
16815   if test -w $cache_file; then
16816     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817     cat confcache >$cache_file
16818   else
16819     echo "not updating unwritable cache $cache_file"
16820   fi
16821 fi
16822 rm -f confcache
16823
16824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825 # Let make expand exec_prefix.
16826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16827
16828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830 # trailing colons and then remove the whole line if VPATH becomes empty
16831 # (actually we leave an empty line to preserve line numbers).
16832 if test "x$srcdir" = x.; then
16833   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16834 s/:*\$(srcdir):*/:/;
16835 s/:*\${srcdir}:*/:/;
16836 s/:*@srcdir@:*/:/;
16837 s/^\([^=]*=[    ]*\):*/\1/;
16838 s/:*$//;
16839 s/^[^=]*=[      ]*$//;
16840 }'
16841 fi
16842
16843 DEFS=-DHAVE_CONFIG_H
16844
16845
16846 : ${CONFIG_STATUS=./config.status}
16847 ac_clean_files_save=$ac_clean_files
16848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851 cat >$CONFIG_STATUS <<_ACEOF
16852 #! $SHELL
16853 # Generated by $as_me.
16854 # Run this file to recreate the current configuration.
16855 # Compiler output produced by configure, useful for debugging
16856 # configure, is in config.log if it exists.
16857
16858 debug=false
16859 SHELL=\${CONFIG_SHELL-$SHELL}
16860 _ACEOF
16861
16862 cat >>$CONFIG_STATUS <<\_ACEOF
16863
16864 ## --------------------- ##
16865 ## M4sh Initialization.  ##
16866 ## --------------------- ##
16867
16868 # Be Bourne compatible
16869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16870   emulate sh
16871   NULLCMD=:
16872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16873   set -o posix
16874 fi
16875
16876 # NLS nuisances.
16877 # Support unset when possible.
16878 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16879   as_unset=unset
16880 else
16881   as_unset=false
16882 fi
16883
16884 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16885     { $as_unset LANG || test "${LANG+set}" != set; } ||
16886       { LANG=C; export LANG; }
16887 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16888     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16889       { LC_ALL=C; export LC_ALL; }
16890 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16891     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16892       { LC_TIME=C; export LC_TIME; }
16893 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16894     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16895       { LC_CTYPE=C; export LC_CTYPE; }
16896 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16897     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16898       { LANGUAGE=C; export LANGUAGE; }
16899 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16900     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16901       { LC_COLLATE=C; export LC_COLLATE; }
16902 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16903     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16904       { LC_NUMERIC=C; export LC_NUMERIC; }
16905 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16906     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16907       { LC_MESSAGES=C; export LC_MESSAGES; }
16908
16909
16910 # Name of the executable.
16911 as_me=`(basename "$0") 2>/dev/null ||
16912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913          X"$0" : 'X\(//\)$' \| \
16914          X"$0" : 'X\(/\)$' \| \
16915          .     : '\(.\)' 2>/dev/null ||
16916 echo X/"$0" |
16917     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918           /^X\/\(\/\/\)$/{ s//\1/; q; }
16919           /^X\/\(\/\).*/{ s//\1/; q; }
16920           s/.*/./; q'`
16921
16922 # PATH needs CR, and LINENO needs CR and PATH.
16923 # Avoid depending upon Character Ranges.
16924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927 as_cr_digits='0123456789'
16928 as_cr_alnum=$as_cr_Letters$as_cr_digits
16929
16930 # The user is always right.
16931 if test "${PATH_SEPARATOR+set}" != set; then
16932   echo "#! /bin/sh" >conftest.sh
16933   echo  "exit 0"   >>conftest.sh
16934   chmod +x conftest.sh
16935   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16936     PATH_SEPARATOR=';'
16937   else
16938     PATH_SEPARATOR=:
16939   fi
16940   rm -f conftest.sh
16941 fi
16942
16943
16944   as_lineno_1=$LINENO
16945   as_lineno_2=$LINENO
16946   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16947   test "x$as_lineno_1" != "x$as_lineno_2" &&
16948   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16949   # Find who we are.  Look in the path if we contain no path at all
16950   # relative or not.
16951   case $0 in
16952     *[\\/]* ) as_myself=$0 ;;
16953     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16955 do
16956   IFS=$as_save_IFS
16957   test -z "$as_dir" && as_dir=.
16958   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16959 done
16960
16961        ;;
16962   esac
16963   # We did not find ourselves, most probably we were run as `sh COMMAND'
16964   # in which case we are not to be found in the path.
16965   if test "x$as_myself" = x; then
16966     as_myself=$0
16967   fi
16968   if test ! -f "$as_myself"; then
16969     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971    { (exit 1); exit 1; }; }
16972   fi
16973   case $CONFIG_SHELL in
16974   '')
16975     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16977 do
16978   IFS=$as_save_IFS
16979   test -z "$as_dir" && as_dir=.
16980   for as_base in sh bash ksh sh5; do
16981          case $as_dir in
16982          /*)
16983            if ("$as_dir/$as_base" -c '
16984   as_lineno_1=$LINENO
16985   as_lineno_2=$LINENO
16986   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16987   test "x$as_lineno_1" != "x$as_lineno_2" &&
16988   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16989              CONFIG_SHELL=$as_dir/$as_base
16990              export CONFIG_SHELL
16991              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16992            fi;;
16993          esac
16994        done
16995 done
16996 ;;
16997   esac
16998
16999   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17000   # uniformly replaced by the line number.  The first 'sed' inserts a
17001   # line-number line before each line; the second 'sed' does the real
17002   # work.  The second script uses 'N' to pair each line-number line
17003   # with the numbered line, and appends trailing '-' during
17004   # substitution so that $LINENO is not a special case at line end.
17005   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17007   sed '=' <$as_myself |
17008     sed '
17009       N
17010       s,$,-,
17011       : loop
17012       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17013       t loop
17014       s,-$,,
17015       s,^['$as_cr_digits']*\n,,
17016     ' >$as_me.lineno &&
17017   chmod +x $as_me.lineno ||
17018     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17019 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020    { (exit 1); exit 1; }; }
17021
17022   # Don't try to exec as it changes $[0], causing all sort of problems
17023   # (the dirname of $[0] is not the place where we might find the
17024   # original and so on.  Autoconf is especially sensible to this).
17025   . ./$as_me.lineno
17026   # Exit status is that of the last command.
17027   exit
17028 }
17029
17030
17031 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032   *c*,-n*) ECHO_N= ECHO_C='
17033 ' ECHO_T='      ' ;;
17034   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17036 esac
17037
17038 if expr a : '\(a\)' >/dev/null 2>&1; then
17039   as_expr=expr
17040 else
17041   as_expr=false
17042 fi
17043
17044 rm -f conf$$ conf$$.exe conf$$.file
17045 echo >conf$$.file
17046 if ln -s conf$$.file conf$$ 2>/dev/null; then
17047   # We could just check for DJGPP; but this test a) works b) is more generic
17048   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17049   if test -f conf$$.exe; then
17050     # Don't use ln at all; we don't have any links
17051     as_ln_s='cp -p'
17052   else
17053     as_ln_s='ln -s'
17054   fi
17055 elif ln conf$$.file conf$$ 2>/dev/null; then
17056   as_ln_s=ln
17057 else
17058   as_ln_s='cp -p'
17059 fi
17060 rm -f conf$$ conf$$.exe conf$$.file
17061
17062 as_executable_p="test -f"
17063
17064 # Sed expression to map a string onto a valid CPP name.
17065 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17066
17067 # Sed expression to map a string onto a valid variable name.
17068 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17069
17070
17071 # IFS
17072 # We need space, tab and new line, in precisely that order.
17073 as_nl='
17074 '
17075 IFS="   $as_nl"
17076
17077 # CDPATH.
17078 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17079
17080 exec 6>&1
17081
17082 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17083 # report actual input values of CONFIG_FILES etc. instead of their
17084 # values after options handling.  Logging --version etc. is OK.
17085 exec 5>>config.log
17086 {
17087   echo
17088   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17089 ## Running $as_me. ##
17090 _ASBOX
17091 } >&5
17092 cat >&5 <<_CSEOF
17093
17094 This file was extended by PostgreSQL $as_me 7.3devel, which was
17095 generated by GNU Autoconf 2.53.  Invocation command line was
17096
17097   CONFIG_FILES    = $CONFIG_FILES
17098   CONFIG_HEADERS  = $CONFIG_HEADERS
17099   CONFIG_LINKS    = $CONFIG_LINKS
17100   CONFIG_COMMANDS = $CONFIG_COMMANDS
17101   $ $0 $@
17102
17103 _CSEOF
17104 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17105 echo >&5
17106 _ACEOF
17107
17108 # Files that config.status was made for.
17109 if test -n "$ac_config_files"; then
17110   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17111 fi
17112
17113 if test -n "$ac_config_headers"; then
17114   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17115 fi
17116
17117 if test -n "$ac_config_links"; then
17118   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17119 fi
17120
17121 if test -n "$ac_config_commands"; then
17122   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17123 fi
17124
17125 cat >>$CONFIG_STATUS <<\_ACEOF
17126
17127 ac_cs_usage="\
17128 \`$as_me' instantiates files from templates according to the
17129 current configuration.
17130
17131 Usage: $0 [OPTIONS] [FILE]...
17132
17133   -h, --help       print this help, then exit
17134   -V, --version    print version number, then exit
17135   -d, --debug      don't remove temporary files
17136       --recheck    update $as_me by reconfiguring in the same conditions
17137   --file=FILE[:TEMPLATE]
17138                    instantiate the configuration file FILE
17139   --header=FILE[:TEMPLATE]
17140                    instantiate the configuration header FILE
17141
17142 Configuration files:
17143 $config_files
17144
17145 Configuration headers:
17146 $config_headers
17147
17148 Configuration links:
17149 $config_links
17150
17151 Report bugs to <bug-autoconf@gnu.org>."
17152 _ACEOF
17153
17154 cat >>$CONFIG_STATUS <<_ACEOF
17155 ac_cs_version="\\
17156 PostgreSQL config.status 7.3devel
17157 configured by $0, generated by GNU Autoconf 2.53,
17158   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17159
17160 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17161 Free Software Foundation, Inc.
17162 This config.status script is free software; the Free Software Foundation
17163 gives unlimited permission to copy, distribute and modify it."
17164 srcdir=$srcdir
17165 _ACEOF
17166
17167 cat >>$CONFIG_STATUS <<\_ACEOF
17168 # If no file are specified by the user, then we need to provide default
17169 # value.  By we need to know if files were specified by the user.
17170 ac_need_defaults=:
17171 while test $# != 0
17172 do
17173   case $1 in
17174   --*=*)
17175     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17176     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17177     shift
17178     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17179     shift
17180     ;;
17181   -*);;
17182   *) # This is not an option, so the user has probably given explicit
17183      # arguments.
17184      ac_need_defaults=false;;
17185   esac
17186
17187   case $1 in
17188   # Handling of the options.
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<_ACEOF
17191   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17192     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17193     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17194 _ACEOF
17195 cat >>$CONFIG_STATUS <<\_ACEOF
17196   --version | --vers* | -V )
17197     echo "$ac_cs_version"; exit 0 ;;
17198   --he | --h)
17199     # Conflict between --help and --header
17200     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17201 Try \`$0 --help' for more information." >&5
17202 echo "$as_me: error: ambiguous option: $1
17203 Try \`$0 --help' for more information." >&2;}
17204    { (exit 1); exit 1; }; };;
17205   --help | --hel | -h )
17206     echo "$ac_cs_usage"; exit 0 ;;
17207   --debug | --d* | -d )
17208     debug=: ;;
17209   --file | --fil | --fi | --f )
17210     shift
17211     CONFIG_FILES="$CONFIG_FILES $1"
17212     ac_need_defaults=false;;
17213   --header | --heade | --head | --hea )
17214     shift
17215     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17216     ac_need_defaults=false;;
17217
17218   # This is an error.
17219   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17220 Try \`$0 --help' for more information." >&5
17221 echo "$as_me: error: unrecognized option: $1
17222 Try \`$0 --help' for more information." >&2;}
17223    { (exit 1); exit 1; }; } ;;
17224
17225   *) ac_config_targets="$ac_config_targets $1" ;;
17226
17227   esac
17228   shift
17229 done
17230
17231 _ACEOF
17232
17233
17234
17235
17236
17237 cat >>$CONFIG_STATUS <<\_ACEOF
17238 for ac_config_target in $ac_config_targets
17239 do
17240   case "$ac_config_target" in
17241   # Handling of arguments.
17242   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17243   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17244   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17245   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17246   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17247   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17248   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17249   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17250   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17251   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17252   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17254    { (exit 1); exit 1; }; };;
17255   esac
17256 done
17257
17258 # If the user did not use the arguments to specify the items to instantiate,
17259 # then the envvar interface is used.  Set only those that are not.
17260 # We use the long form for the default assignment because of an extremely
17261 # bizarre bug on SunOS 4.1.3.
17262 if $ac_need_defaults; then
17263   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17264   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17265   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17266 fi
17267
17268 # Create a temporary directory, and hook for its removal unless debugging.
17269 $debug ||
17270 {
17271   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17272   trap '{ (exit 1); exit 1; }' 1 2 13 15
17273 }
17274
17275 # Create a (secure) tmp directory for tmp files.
17276 : ${TMPDIR=/tmp}
17277 {
17278   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17279   test -n "$tmp" && test -d "$tmp"
17280 }  ||
17281 {
17282   tmp=$TMPDIR/cs$$-$RANDOM
17283   (umask 077 && mkdir $tmp)
17284 } ||
17285 {
17286    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17287    { (exit 1); exit 1; }
17288 }
17289
17290 _ACEOF
17291
17292 cat >>$CONFIG_STATUS <<_ACEOF
17293
17294 #
17295 # CONFIG_FILES section.
17296 #
17297
17298 # No need to generate the scripts if there are no CONFIG_FILES.
17299 # This happens for instance when ./config.status config.h
17300 if test -n "\$CONFIG_FILES"; then
17301   # Protect against being on the right side of a sed subst in config.status.
17302   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17303    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17304 s,@SHELL@,$SHELL,;t t
17305 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17306 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17307 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17308 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17309 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17310 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17311 s,@exec_prefix@,$exec_prefix,;t t
17312 s,@prefix@,$prefix,;t t
17313 s,@program_transform_name@,$program_transform_name,;t t
17314 s,@bindir@,$bindir,;t t
17315 s,@sbindir@,$sbindir,;t t
17316 s,@libexecdir@,$libexecdir,;t t
17317 s,@datadir@,$datadir,;t t
17318 s,@sysconfdir@,$sysconfdir,;t t
17319 s,@sharedstatedir@,$sharedstatedir,;t t
17320 s,@localstatedir@,$localstatedir,;t t
17321 s,@libdir@,$libdir,;t t
17322 s,@includedir@,$includedir,;t t
17323 s,@oldincludedir@,$oldincludedir,;t t
17324 s,@infodir@,$infodir,;t t
17325 s,@mandir@,$mandir,;t t
17326 s,@build_alias@,$build_alias,;t t
17327 s,@host_alias@,$host_alias,;t t
17328 s,@target_alias@,$target_alias,;t t
17329 s,@DEFS@,$DEFS,;t t
17330 s,@ECHO_C@,$ECHO_C,;t t
17331 s,@ECHO_N@,$ECHO_N,;t t
17332 s,@ECHO_T@,$ECHO_T,;t t
17333 s,@LIBS@,$LIBS,;t t
17334 s,@docdir@,$docdir,;t t
17335 s,@configure_args@,$configure_args,;t t
17336 s,@build@,$build,;t t
17337 s,@build_cpu@,$build_cpu,;t t
17338 s,@build_vendor@,$build_vendor,;t t
17339 s,@build_os@,$build_os,;t t
17340 s,@host@,$host,;t t
17341 s,@host_cpu@,$host_cpu,;t t
17342 s,@host_vendor@,$host_vendor,;t t
17343 s,@host_os@,$host_os,;t t
17344 s,@PORTNAME@,$PORTNAME,;t t
17345 s,@TAS@,$TAS,;t t
17346 s,@MULTIBYTE@,$MULTIBYTE,;t t
17347 s,@enable_nls@,$enable_nls,;t t
17348 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17349 s,@default_port@,$default_port,;t t
17350 s,@enable_shared@,$enable_shared,;t t
17351 s,@enable_rpath@,$enable_rpath,;t t
17352 s,@enable_debug@,$enable_debug,;t t
17353 s,@CC@,$CC,;t t
17354 s,@CFLAGS@,$CFLAGS,;t t
17355 s,@LDFLAGS@,$LDFLAGS,;t t
17356 s,@CPPFLAGS@,$CPPFLAGS,;t t
17357 s,@ac_ct_CC@,$ac_ct_CC,;t t
17358 s,@EXEEXT@,$EXEEXT,;t t
17359 s,@OBJEXT@,$OBJEXT,;t t
17360 s,@CPP@,$CPP,;t t
17361 s,@GCC@,$GCC,;t t
17362 s,@autodepend@,$autodepend,;t t
17363 s,@INCLUDES@,$INCLUDES,;t t
17364 s,@with_tcl@,$with_tcl,;t t
17365 s,@with_tk@,$with_tk,;t t
17366 s,@with_perl@,$with_perl,;t t
17367 s,@with_python@,$with_python,;t t
17368 s,@ANT@,$ANT,;t t
17369 s,@with_java@,$with_java,;t t
17370 s,@with_krb4@,$with_krb4,;t t
17371 s,@with_krb5@,$with_krb5,;t t
17372 s,@krb_srvtab@,$krb_srvtab,;t t
17373 s,@with_pam@,$with_pam,;t t
17374 s,@with_openssl@,$with_openssl,;t t
17375 s,@enable_odbc@,$enable_odbc,;t t
17376 s,@with_unixodbc@,$with_unixodbc,;t t
17377 s,@with_iodbc@,$with_iodbc,;t t
17378 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17379 s,@ELF_SYS@,$ELF_SYS,;t t
17380 s,@CXX@,$CXX,;t t
17381 s,@CXXFLAGS@,$CXXFLAGS,;t t
17382 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17383 s,@CXXCPP@,$CXXCPP,;t t
17384 s,@with_CXX@,$with_CXX,;t t
17385 s,@GXX@,$GXX,;t t
17386 s,@AWK@,$AWK,;t t
17387 s,@FLEX@,$FLEX,;t t
17388 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17389 s,@LN_S@,$LN_S,;t t
17390 s,@LD@,$LD,;t t
17391 s,@with_gnu_ld@,$with_gnu_ld,;t t
17392 s,@ld_R_works@,$ld_R_works,;t t
17393 s,@RANLIB@,$RANLIB,;t t
17394 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17395 s,@LORDER@,$LORDER,;t t
17396 s,@TAR@,$TAR,;t t
17397 s,@STRIP@,$STRIP,;t t
17398 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17399 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17400 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17401 s,@YACC@,$YACC,;t t
17402 s,@YFLAGS@,$YFLAGS,;t t
17403 s,@WISH@,$WISH,;t t
17404 s,@PERL@,$PERL,;t t
17405 s,@perl_installsitearch@,$perl_installsitearch,;t t
17406 s,@perl_installsitelib@,$perl_installsitelib,;t t
17407 s,@perl_installman3dir@,$perl_installman3dir,;t t
17408 s,@PYTHON@,$PYTHON,;t t
17409 s,@python_version@,$python_version,;t t
17410 s,@python_prefix@,$python_prefix,;t t
17411 s,@python_execprefix@,$python_execprefix,;t t
17412 s,@python_configdir@,$python_configdir,;t t
17413 s,@python_moduledir@,$python_moduledir,;t t
17414 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17415 s,@python_includespec@,$python_includespec,;t t
17416 s,@python_libspec@,$python_libspec,;t t
17417 s,@MEMCMP@,$MEMCMP,;t t
17418 s,@SNPRINTF@,$SNPRINTF,;t t
17419 s,@ISINF@,$ISINF,;t t
17420 s,@GETRUSAGE@,$GETRUSAGE,;t t
17421 s,@SRANDOM@,$SRANDOM,;t t
17422 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17423 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17424 s,@INET_ATON@,$INET_ATON,;t t
17425 s,@STRERROR@,$STRERROR,;t t
17426 s,@STRDUP@,$STRDUP,;t t
17427 s,@STRTOL@,$STRTOL,;t t
17428 s,@STRTOUL@,$STRTOUL,;t t
17429 s,@STRCASECMP@,$STRCASECMP,;t t
17430 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17431 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17432 s,@MSGFMT@,$MSGFMT,;t t
17433 s,@MSGMERGE@,$MSGMERGE,;t t
17434 s,@XGETTEXT@,$XGETTEXT,;t t
17435 s,@localedir@,$localedir,;t t
17436 s,@TCLSH@,$TCLSH,;t t
17437 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17438 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17439 s,@NSGMLS@,$NSGMLS,;t t
17440 s,@JADE@,$JADE,;t t
17441 s,@have_docbook@,$have_docbook,;t t
17442 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17443 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17444 s,@SGMLSPL@,$SGMLSPL,;t t
17445 s,@vpath_build@,$vpath_build,;t t
17446 CEOF
17447
17448 _ACEOF
17449
17450   cat >>$CONFIG_STATUS <<\_ACEOF
17451   # Split the substitutions into bite-sized pieces for seds with
17452   # small command number limits, like on Digital OSF/1 and HP-UX.
17453   ac_max_sed_lines=48
17454   ac_sed_frag=1 # Number of current file.
17455   ac_beg=1 # First line for current file.
17456   ac_end=$ac_max_sed_lines # Line after last line for current file.
17457   ac_more_lines=:
17458   ac_sed_cmds=
17459   while $ac_more_lines; do
17460     if test $ac_beg -gt 1; then
17461       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17462     else
17463       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17464     fi
17465     if test ! -s $tmp/subs.frag; then
17466       ac_more_lines=false
17467     else
17468       # The purpose of the label and of the branching condition is to
17469       # speed up the sed processing (if there are no `@' at all, there
17470       # is no need to browse any of the substitutions).
17471       # These are the two extra sed commands mentioned above.
17472       (echo ':t
17473   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17474       if test -z "$ac_sed_cmds"; then
17475         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17476       else
17477         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17478       fi
17479       ac_sed_frag=`expr $ac_sed_frag + 1`
17480       ac_beg=$ac_end
17481       ac_end=`expr $ac_end + $ac_max_sed_lines`
17482     fi
17483   done
17484   if test -z "$ac_sed_cmds"; then
17485     ac_sed_cmds=cat
17486   fi
17487 fi # test -n "$CONFIG_FILES"
17488
17489 _ACEOF
17490 cat >>$CONFIG_STATUS <<\_ACEOF
17491 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17492   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17493   case $ac_file in
17494   - | *:- | *:-:* ) # input from stdin
17495         cat >$tmp/stdin
17496         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17497         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17498   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17499         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17500   * )   ac_file_in=$ac_file.in ;;
17501   esac
17502
17503   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17504   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17506          X"$ac_file" : 'X\(//\)[^/]' \| \
17507          X"$ac_file" : 'X\(//\)$' \| \
17508          X"$ac_file" : 'X\(/\)' \| \
17509          .     : '\(.\)' 2>/dev/null ||
17510 echo X"$ac_file" |
17511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17512           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17513           /^X\(\/\/\)$/{ s//\1/; q; }
17514           /^X\(\/\).*/{ s//\1/; q; }
17515           s/.*/./; q'`
17516   { case "$ac_dir" in
17517   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17518   *)                      as_incr_dir=.;;
17519 esac
17520 as_dummy="$ac_dir"
17521 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17522   case $as_mkdir_dir in
17523     # Skip DOS drivespec
17524     ?:) as_incr_dir=$as_mkdir_dir ;;
17525     *)
17526       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17527       test -d "$as_incr_dir" ||
17528         mkdir "$as_incr_dir" ||
17529         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17530 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17531    { (exit 1); exit 1; }; }
17532     ;;
17533   esac
17534 done; }
17535
17536   ac_builddir=.
17537
17538 if test "$ac_dir" != .; then
17539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17540   # A "../" for each directory in $ac_dir_suffix.
17541   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17542 else
17543   ac_dir_suffix= ac_top_builddir=
17544 fi
17545
17546 case $srcdir in
17547   .)  # No --srcdir option.  We are building in place.
17548     ac_srcdir=.
17549     if test -z "$ac_top_builddir"; then
17550        ac_top_srcdir=.
17551     else
17552        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17553     fi ;;
17554   [\\/]* | ?:[\\/]* )  # Absolute path.
17555     ac_srcdir=$srcdir$ac_dir_suffix;
17556     ac_top_srcdir=$srcdir ;;
17557   *) # Relative path.
17558     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17559     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17560 esac
17561 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17562 # absolute.
17563 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17564 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17565 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17566 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17567
17568
17569
17570   if test x"$ac_file" != x-; then
17571     { echo "$as_me:$LINENO: creating $ac_file" >&5
17572 echo "$as_me: creating $ac_file" >&6;}
17573     rm -f "$ac_file"
17574   fi
17575   # Let's still pretend it is `configure' which instantiates (i.e., don't
17576   # use $as_me), people would be surprised to read:
17577   #    /* config.h.  Generated by config.status.  */
17578   if test x"$ac_file" = x-; then
17579     configure_input=
17580   else
17581     configure_input="$ac_file.  "
17582   fi
17583   configure_input=$configure_input"Generated from `echo $ac_file_in |
17584                                      sed 's,.*/,,'` by configure."
17585
17586   # First look for the input files in the build tree, otherwise in the
17587   # src tree.
17588   ac_file_inputs=`IFS=:
17589     for f in $ac_file_in; do
17590       case $f in
17591       -) echo $tmp/stdin ;;
17592       [\\/$]*)
17593          # Absolute (can't be DOS-style, as IFS=:)
17594          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17595 echo "$as_me: error: cannot find input file: $f" >&2;}
17596    { (exit 1); exit 1; }; }
17597          echo $f;;
17598       *) # Relative
17599          if test -f "$f"; then
17600            # Build tree
17601            echo $f
17602          elif test -f "$srcdir/$f"; then
17603            # Source tree
17604            echo $srcdir/$f
17605          else
17606            # /dev/null tree
17607            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17608 echo "$as_me: error: cannot find input file: $f" >&2;}
17609    { (exit 1); exit 1; }; }
17610          fi;;
17611       esac
17612     done` || { (exit 1); exit 1; }
17613 _ACEOF
17614 cat >>$CONFIG_STATUS <<_ACEOF
17615   sed "$ac_vpsub
17616 $extrasub
17617 _ACEOF
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619 :t
17620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17621 s,@configure_input@,$configure_input,;t t
17622 s,@srcdir@,$ac_srcdir,;t t
17623 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17624 s,@top_srcdir@,$ac_top_srcdir,;t t
17625 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17626 s,@builddir@,$ac_builddir,;t t
17627 s,@abs_builddir@,$ac_abs_builddir,;t t
17628 s,@top_builddir@,$ac_top_builddir,;t t
17629 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17630 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17631   rm -f $tmp/stdin
17632   if test x"$ac_file" != x-; then
17633     mv $tmp/out $ac_file
17634   else
17635     cat $tmp/out
17636     rm -f $tmp/out
17637   fi
17638
17639 done
17640 _ACEOF
17641 cat >>$CONFIG_STATUS <<\_ACEOF
17642
17643 #
17644 # CONFIG_HEADER section.
17645 #
17646
17647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17649 #
17650 # ac_d sets the value in "#define NAME VALUE" lines.
17651 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17652 ac_dB='[        ].*$,\1#\2'
17653 ac_dC=' '
17654 ac_dD=',;t'
17655 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17656 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17657 ac_uB='$,\1#\2define\3'
17658 ac_uC=' '
17659 ac_uD=',;t'
17660
17661 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17662   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17663   case $ac_file in
17664   - | *:- | *:-:* ) # input from stdin
17665         cat >$tmp/stdin
17666         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17669         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17670   * )   ac_file_in=$ac_file.in ;;
17671   esac
17672
17673   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17674 echo "$as_me: creating $ac_file" >&6;}
17675
17676   # First look for the input files in the build tree, otherwise in the
17677   # src tree.
17678   ac_file_inputs=`IFS=:
17679     for f in $ac_file_in; do
17680       case $f in
17681       -) echo $tmp/stdin ;;
17682       [\\/$]*)
17683          # Absolute (can't be DOS-style, as IFS=:)
17684          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17685 echo "$as_me: error: cannot find input file: $f" >&2;}
17686    { (exit 1); exit 1; }; }
17687          echo $f;;
17688       *) # Relative
17689          if test -f "$f"; then
17690            # Build tree
17691            echo $f
17692          elif test -f "$srcdir/$f"; then
17693            # Source tree
17694            echo $srcdir/$f
17695          else
17696            # /dev/null tree
17697            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17698 echo "$as_me: error: cannot find input file: $f" >&2;}
17699    { (exit 1); exit 1; }; }
17700          fi;;
17701       esac
17702     done` || { (exit 1); exit 1; }
17703   # Remove the trailing spaces.
17704   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17705
17706 _ACEOF
17707
17708 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17709 # `conftest.undefs', that substitutes the proper values into
17710 # config.h.in to produce config.h.  The first handles `#define'
17711 # templates, and the second `#undef' templates.
17712 # And first: Protect against being on the right side of a sed subst in
17713 # config.status.  Protect against being in an unquoted here document
17714 # in config.status.
17715 rm -f conftest.defines conftest.undefs
17716 # Using a here document instead of a string reduces the quoting nightmare.
17717 # Putting comments in sed scripts is not portable.
17718 #
17719 # `end' is used to avoid that the second main sed command (meant for
17720 # 0-ary CPP macros) applies to n-ary macro definitions.
17721 # See the Autoconf documentation for `clear'.
17722 cat >confdef2sed.sed <<\_ACEOF
17723 s/[\\&,]/\\&/g
17724 s,[\\$`],\\&,g
17725 t clear
17726 : clear
17727 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17728 t end
17729 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17730 : end
17731 _ACEOF
17732 # If some macros were called several times there might be several times
17733 # the same #defines, which is useless.  Nevertheless, we may not want to
17734 # sort them, since we want the *last* AC-DEFINE to be honored.
17735 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17736 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17737 rm -f confdef2sed.sed
17738
17739 # This sed command replaces #undef with comments.  This is necessary, for
17740 # example, in the case of _POSIX_SOURCE, which is predefined and required
17741 # on some systems where configure will not decide to define it.
17742 cat >>conftest.undefs <<\_ACEOF
17743 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17744 _ACEOF
17745
17746 # Break up conftest.defines because some shells have a limit on the size
17747 # of here documents, and old seds have small limits too (100 cmds).
17748 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17749 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17750 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17751 echo '  :' >>$CONFIG_STATUS
17752 rm -f conftest.tail
17753 while grep . conftest.defines >/dev/null
17754 do
17755   # Write a limited-size here document to $tmp/defines.sed.
17756   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17757   # Speed up: don't consider the non `#define' lines.
17758   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17759   # Work around the forget-to-reset-the-flag bug.
17760   echo 't clr' >>$CONFIG_STATUS
17761   echo ': clr' >>$CONFIG_STATUS
17762   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17763   echo 'CEOF
17764   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17765   rm -f $tmp/in
17766   mv $tmp/out $tmp/in
17767 ' >>$CONFIG_STATUS
17768   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17769   rm -f conftest.defines
17770   mv conftest.tail conftest.defines
17771 done
17772 rm -f conftest.defines
17773 echo '  fi # egrep' >>$CONFIG_STATUS
17774 echo >>$CONFIG_STATUS
17775
17776 # Break up conftest.undefs because some shells have a limit on the size
17777 # of here documents, and old seds have small limits too (100 cmds).
17778 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17779 rm -f conftest.tail
17780 while grep . conftest.undefs >/dev/null
17781 do
17782   # Write a limited-size here document to $tmp/undefs.sed.
17783   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17784   # Speed up: don't consider the non `#undef'
17785   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17786   # Work around the forget-to-reset-the-flag bug.
17787   echo 't clr' >>$CONFIG_STATUS
17788   echo ': clr' >>$CONFIG_STATUS
17789   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17790   echo 'CEOF
17791   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17792   rm -f $tmp/in
17793   mv $tmp/out $tmp/in
17794 ' >>$CONFIG_STATUS
17795   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17796   rm -f conftest.undefs
17797   mv conftest.tail conftest.undefs
17798 done
17799 rm -f conftest.undefs
17800
17801 cat >>$CONFIG_STATUS <<\_ACEOF
17802   # Let's still pretend it is `configure' which instantiates (i.e., don't
17803   # use $as_me), people would be surprised to read:
17804   #    /* config.h.  Generated by config.status.  */
17805   if test x"$ac_file" = x-; then
17806     echo "/* Generated by configure.  */" >$tmp/config.h
17807   else
17808     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17809   fi
17810   cat $tmp/in >>$tmp/config.h
17811   rm -f $tmp/in
17812   if test x"$ac_file" != x-; then
17813     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17814       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17815 echo "$as_me: $ac_file is unchanged" >&6;}
17816     else
17817       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819          X"$ac_file" : 'X\(//\)[^/]' \| \
17820          X"$ac_file" : 'X\(//\)$' \| \
17821          X"$ac_file" : 'X\(/\)' \| \
17822          .     : '\(.\)' 2>/dev/null ||
17823 echo X"$ac_file" |
17824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17825           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17826           /^X\(\/\/\)$/{ s//\1/; q; }
17827           /^X\(\/\).*/{ s//\1/; q; }
17828           s/.*/./; q'`
17829       { case "$ac_dir" in
17830   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17831   *)                      as_incr_dir=.;;
17832 esac
17833 as_dummy="$ac_dir"
17834 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17835   case $as_mkdir_dir in
17836     # Skip DOS drivespec
17837     ?:) as_incr_dir=$as_mkdir_dir ;;
17838     *)
17839       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17840       test -d "$as_incr_dir" ||
17841         mkdir "$as_incr_dir" ||
17842         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17843 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17844    { (exit 1); exit 1; }; }
17845     ;;
17846   esac
17847 done; }
17848
17849       rm -f $ac_file
17850       mv $tmp/config.h $ac_file
17851     fi
17852   else
17853     cat $tmp/config.h
17854     rm -f $tmp/config.h
17855   fi
17856   # Run the commands associated with the file.
17857   case $ac_file in
17858     src/include/pg_config.h )
17859 # Update timestamp for pg_config.h (see Makefile.global)
17860 echo >src/include/stamp-h
17861  ;;
17862   esac
17863 done
17864 _ACEOF
17865 cat >>$CONFIG_STATUS <<\_ACEOF
17866
17867 #
17868 # CONFIG_LINKS section.
17869 #
17870
17871 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17872   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17873   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17874
17875   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17876 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17877
17878   if test ! -r $srcdir/$ac_source; then
17879     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17880 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17881    { (exit 1); exit 1; }; }
17882   fi
17883   rm -f $ac_dest
17884
17885   # Make relative symlinks.
17886   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17888          X"$ac_dest" : 'X\(//\)[^/]' \| \
17889          X"$ac_dest" : 'X\(//\)$' \| \
17890          X"$ac_dest" : 'X\(/\)' \| \
17891          .     : '\(.\)' 2>/dev/null ||
17892 echo X"$ac_dest" |
17893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17894           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17895           /^X\(\/\/\)$/{ s//\1/; q; }
17896           /^X\(\/\).*/{ s//\1/; q; }
17897           s/.*/./; q'`
17898   { case "$ac_dest_dir" in
17899   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17900   *)                      as_incr_dir=.;;
17901 esac
17902 as_dummy="$ac_dest_dir"
17903 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17904   case $as_mkdir_dir in
17905     # Skip DOS drivespec
17906     ?:) as_incr_dir=$as_mkdir_dir ;;
17907     *)
17908       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17909       test -d "$as_incr_dir" ||
17910         mkdir "$as_incr_dir" ||
17911         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17912 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17913    { (exit 1); exit 1; }; }
17914     ;;
17915   esac
17916 done; }
17917
17918   ac_builddir=.
17919
17920 if test "$ac_dest_dir" != .; then
17921   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17922   # A "../" for each directory in $ac_dir_suffix.
17923   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17924 else
17925   ac_dir_suffix= ac_top_builddir=
17926 fi
17927
17928 case $srcdir in
17929   .)  # No --srcdir option.  We are building in place.
17930     ac_srcdir=.
17931     if test -z "$ac_top_builddir"; then
17932        ac_top_srcdir=.
17933     else
17934        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17935     fi ;;
17936   [\\/]* | ?:[\\/]* )  # Absolute path.
17937     ac_srcdir=$srcdir$ac_dir_suffix;
17938     ac_top_srcdir=$srcdir ;;
17939   *) # Relative path.
17940     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17941     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17942 esac
17943 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17944 # absolute.
17945 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17946 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17947 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17948 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17949
17950
17951   case $srcdir in
17952   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17953       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17954   esac
17955
17956   # Make a symlink if possible; otherwise try a hard link.
17957   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17958     ln $srcdir/$ac_source $ac_dest ||
17959     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17960 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17961    { (exit 1); exit 1; }; }
17962 done
17963 _ACEOF
17964
17965 cat >>$CONFIG_STATUS <<\_ACEOF
17966
17967 { (exit 0); exit 0; }
17968 _ACEOF
17969 chmod +x $CONFIG_STATUS
17970 ac_clean_files=$ac_clean_files_save
17971
17972
17973 # configure is writing to config.log, and then calls config.status.
17974 # config.status does its own redirection, appending to config.log.
17975 # Unfortunately, on DOS this fails, as config.log is still kept open
17976 # by configure, so config.status won't be able to write to it; its
17977 # output is simply discarded.  So we exec the FD to /dev/null,
17978 # effectively closing config.log, so it can be properly (re)opened and
17979 # appended to by config.status.  When coming back to configure, we
17980 # need to make the FD available again.
17981 if test "$no_create" != yes; then
17982   ac_cs_success=:
17983   exec 5>/dev/null
17984   $SHELL $CONFIG_STATUS || ac_cs_success=false
17985   exec 5>>config.log
17986   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17987   # would make configure fail if this is the last instruction.
17988   $ac_cs_success || { (exit 1); exit 1; }
17989 fi
17990