]> granicus.if.org Git - postgresql/blob - configure
Remove src/test/regress/sql: plpgsql-nsp-testing.sql per Joe Conway.
[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.3b1.
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.3b1'
262 PACKAGE_STRING='PostgreSQL 7.3b1'
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_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.3b1 to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.3b1:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable single-byte recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-maxbackends=N    set default maximum number of connections 32
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python interface module
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.3b1
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2002 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.3b1, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=win ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397   netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399  openbsd*) template=openbsd ;;
1400      osf*) template=osf ;;
1401      qnx*) template=qnx4 ;;
1402      sco*) template=sco ;;
1403  solaris*) template=solaris ;;
1404    sunos*) template=sunos4 ;;
1405  sysv4.2*)
1406         case $host_vendor in
1407           univel) template=univel ;;
1408         esac ;;
1409    sysv4*) template=svr4 ;;
1410    sysv5*) template=unixware ;;
1411   ultrix*) template=ultrix4 ;;
1412 esac
1413
1414   if test x"$template" = x"" ; then
1415     { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1420
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this.  Include the above 'checking host system type...'
1423 line.
1424 *******************************************************************
1425 " >&5
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1431
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this.  Include the above 'checking host system type...'
1434 line.
1435 *******************************************************************
1436 " >&2;}
1437    { (exit 1); exit 1; }; }
1438   fi
1439
1440
1441 fi;
1442
1443
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1446
1447 PORTNAME=$template
1448
1449
1450 # Pick right test-and-set (TAS) code.  Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1453 case $host in
1454   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1455   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1457   *)                need_tas=no;  tas_file=dummy.s ;;
1458 esac
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1460
1461
1462 if test "$need_tas" = yes ; then
1463   TAS=tas.o
1464 fi
1465
1466
1467
1468
1469 ##
1470 ## Command line options
1471 ##
1472
1473
1474 #
1475 # Add non-standard directories to the include path
1476 #
1477
1478
1479
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482   withval="$with_includes"
1483
1484   case $withval in
1485     yes)
1486       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488    { (exit 1); exit 1; }; }
1489       ;;
1490     no)
1491       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493    { (exit 1); exit 1; }; }
1494       ;;
1495     *)
1496
1497       ;;
1498   esac
1499
1500 fi;
1501
1502
1503
1504 #
1505 # Add non-standard directories to the library search path
1506 #
1507
1508
1509
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512   withval="$with_libraries"
1513
1514   case $withval in
1515     yes)
1516       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518    { (exit 1); exit 1; }; }
1519       ;;
1520     no)
1521       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523    { (exit 1); exit 1; }; }
1524       ;;
1525     *)
1526       LIBRARY_DIRS=$withval
1527       ;;
1528   esac
1529
1530 fi;
1531
1532
1533
1534
1535
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538   withval="$with_libs"
1539
1540   case $withval in
1541     yes)
1542       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544    { (exit 1); exit 1; }; }
1545       ;;
1546     no)
1547       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549    { (exit 1); exit 1; }; }
1550       ;;
1551     *)
1552       LIBRARY_DIRS=$withval
1553       ;;
1554   esac
1555
1556 fi;
1557
1558
1559
1560 #
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1562 #
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1565
1566
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569   enableval="$enable_integer_datetimes"
1570
1571   case $enableval in
1572     yes)
1573
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1576 _ACEOF
1577
1578       ;;
1579     no)
1580       :
1581       ;;
1582     *)
1583       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585    { (exit 1); exit 1; }; }
1586       ;;
1587   esac
1588
1589 else
1590   enable_integer_datetimes=no
1591
1592 fi;
1593
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1596
1597
1598 # Character set recode (--enable-recode)
1599 #
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1602
1603
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606   enableval="$enable_recode"
1607
1608   case $enableval in
1609     yes)
1610
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1613 _ACEOF
1614
1615       ;;
1616     no)
1617       :
1618       ;;
1619     *)
1620       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622    { (exit 1); exit 1; }; }
1623       ;;
1624   esac
1625
1626 else
1627   enable_recode=no
1628
1629 fi;
1630
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1633
1634
1635 #
1636 # NLS
1637 #
1638 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1639 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1640
1641
1642 # Check whether --enable-nls or --disable-nls was given.
1643 if test "${enable_nls+set}" = set; then
1644   enableval="$enable_nls"
1645
1646   case $enableval in
1647     yes)
1648       :
1649       ;;
1650     no)
1651       :
1652       ;;
1653     *)
1654       enable_nls=yes
1655 WANTED_LANGUAGES=$enableval
1656       ;;
1657   esac
1658
1659 else
1660   enable_nls=no
1661 fi;
1662
1663
1664 if test "$enable_nls" = yes; then
1665
1666 cat >>confdefs.h <<\_ACEOF
1667 #define ENABLE_NLS 1
1668 _ACEOF
1669
1670 fi
1671
1672 echo "$as_me:$LINENO: result: $enable_nls" >&5
1673 echo "${ECHO_T}$enable_nls" >&6
1674
1675
1676
1677 #
1678 # Default port number (--with-pgport), default 5432
1679 #
1680 echo "$as_me:$LINENO: checking for default port number" >&5
1681 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1682
1683
1684
1685 # Check whether --with-pgport or --without-pgport was given.
1686 if test "${with_pgport+set}" = set; then
1687   withval="$with_pgport"
1688
1689   case $withval in
1690     yes)
1691       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1692 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1693    { (exit 1); exit 1; }; }
1694       ;;
1695     no)
1696       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1697 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1698    { (exit 1); exit 1; }; }
1699       ;;
1700     *)
1701       default_port=$withval
1702       ;;
1703   esac
1704
1705 else
1706   default_port=5432
1707 fi;
1708
1709 echo "$as_me:$LINENO: result: $default_port" >&5
1710 echo "${ECHO_T}$default_port" >&6
1711 # Need both of these because some places want an integer and some a string
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define DEF_PGPORT ${default_port}
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define DEF_PGPORT_STR "${default_port}"
1720 _ACEOF
1721
1722
1723
1724 #
1725 # Maximum number of allowed connections (--with-maxbackends), default 32
1726 #
1727 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1728 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1729
1730
1731
1732 # Check whether --with-maxbackends or --without-maxbackends was given.
1733 if test "${with_maxbackends+set}" = set; then
1734   withval="$with_maxbackends"
1735
1736   case $withval in
1737     yes)
1738       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1739 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1740    { (exit 1); exit 1; }; }
1741       ;;
1742     no)
1743       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1744 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1745    { (exit 1); exit 1; }; }
1746       ;;
1747     *)
1748
1749       ;;
1750   esac
1751
1752 else
1753   with_maxbackends=32
1754 fi;
1755
1756 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1757 echo "${ECHO_T}$with_maxbackends" >&6
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define DEF_MAXBACKENDS $with_maxbackends
1761 _ACEOF
1762
1763
1764
1765 #
1766 # Option to disable shared libraries
1767 #
1768
1769
1770 # Check whether --enable-shared or --disable-shared was given.
1771 if test "${enable_shared+set}" = set; then
1772   enableval="$enable_shared"
1773
1774   case $enableval in
1775     yes)
1776       :
1777       ;;
1778     no)
1779       :
1780       ;;
1781     *)
1782       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1783 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1784    { (exit 1); exit 1; }; }
1785       ;;
1786   esac
1787
1788 else
1789   enable_shared=yes
1790
1791 fi;
1792
1793
1794
1795 #
1796 # '-rpath'-like feature can be disabled
1797 #
1798
1799
1800 # Check whether --enable-rpath or --disable-rpath was given.
1801 if test "${enable_rpath+set}" = set; then
1802   enableval="$enable_rpath"
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-rpath option" >&5
1813 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_rpath=yes
1820
1821 fi;
1822
1823
1824
1825
1826 #
1827 # --enable-debug adds -g to compiler flags
1828 #
1829
1830
1831 # Check whether --enable-debug or --disable-debug was given.
1832 if test "${enable_debug+set}" = set; then
1833   enableval="$enable_debug"
1834
1835   case $enableval in
1836     yes)
1837       :
1838       ;;
1839     no)
1840       :
1841       ;;
1842     *)
1843       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1844 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1845    { (exit 1); exit 1; }; }
1846       ;;
1847   esac
1848
1849 else
1850   enable_debug=no
1851
1852 fi;
1853
1854
1855
1856 #
1857 # C compiler
1858 #
1859
1860 # For historical reasons you can also use --with-CC to specify the C compiler
1861 # to use, although the standard way to do this is to set the CC environment
1862 # variable.
1863
1864
1865
1866 # Check whether --with-CC or --without-CC was given.
1867 if test "${with_CC+set}" = set; then
1868   withval="$with_CC"
1869
1870   case $withval in
1871     yes)
1872       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1873 echo "$as_me: error: argument required for --with-CC option" >&2;}
1874    { (exit 1); exit 1; }; }
1875       ;;
1876     no)
1877       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1878 echo "$as_me: error: argument required for --with-CC option" >&2;}
1879    { (exit 1); exit 1; }; }
1880       ;;
1881     *)
1882       CC=$with_CC
1883       ;;
1884   esac
1885
1886 fi;
1887
1888
1889 case $template in
1890   aix) pgac_cc_list="gcc xlc";;
1891  irix) pgac_cc_list="cc";; # no gcc
1892     *) pgac_cc_list="gcc cc";;
1893 esac
1894
1895 ac_ext=c
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901   for ac_prog in $pgac_cc_list
1902   do
1903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CC"; then
1911   ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931   echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938     test -n "$CC" && break
1939   done
1940 fi
1941 if test -z "$CC"; then
1942   ac_ct_CC=$CC
1943   for ac_prog in $pgac_cc_list
1944 do
1945   # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950   echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952   if test -n "$ac_ct_CC"; then
1953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958   IFS=$as_save_IFS
1959   test -z "$as_dir" && as_dir=.
1960   for ac_exec_ext in '' $ac_executable_extensions; do
1961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962     ac_cv_prog_ac_ct_CC="$ac_prog"
1963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964     break 2
1965   fi
1966 done
1967 done
1968
1969 fi
1970 fi
1971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978 fi
1979
1980   test -n "$ac_ct_CC" && break
1981 done
1982
1983   CC=$ac_ct_CC
1984 fi
1985
1986
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1989    { (exit 1); exit 1; }; }
1990
1991 # Provide some information about the compiler.
1992 echo "$as_me:$LINENO:" \
1993      "checking for C compiler version" >&5
1994 ac_compiler=`set X $ac_compile; echo $2`
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1996   (eval $ac_compiler --version </dev/null >&5) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2001   (eval $ac_compiler -v </dev/null >&5) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2006   (eval $ac_compiler -V </dev/null >&5) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }
2010
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 #include "confdefs.h"
2014
2015 #ifdef F77_DUMMY_MAIN
2016 #  ifdef __cplusplus
2017      extern "C"
2018 #  endif
2019    int F77_DUMMY_MAIN() { return 1; }
2020 #endif
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 ac_clean_files_save=$ac_clean_files
2030 ac_clean_files="$ac_clean_files a.out a.exe"
2031 # Try to create an executable without -o first, disregard a.out.
2032 # It will help us diagnose broken compilers, and finding out an intuition
2033 # of exeext.
2034 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038   (eval $ac_link_default) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   # Find the output, starting from the most likely.  This scheme is
2043 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044 # resort.
2045
2046 # Be careful to initialize this variable, since it used to be cached.
2047 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 ac_cv_exeext=
2049 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050                 ls a.out conftest 2>/dev/null;
2051                 ls a.* conftest.* 2>/dev/null`; do
2052   case $ac_file in
2053     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2054     a.out ) # We found the default executable, but exeext='' is most
2055             # certainly right.
2056             break;;
2057     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2059           export ac_cv_exeext
2060           break;;
2061     * ) break;;
2062   esac
2063 done
2064 else
2065   echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068 echo "$as_me: error: C compiler cannot create executables" >&2;}
2069    { (exit 77); exit 77; }; }
2070 fi
2071
2072 ac_exeext=$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_file" >&5
2074 echo "${ECHO_T}$ac_file" >&6
2075
2076 # Check the compiler produces executables we can run.  If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081 # If not cross compiling, check that we can run a simple program.
2082 if test "$cross_compiling" != yes; then
2083   if { ac_try='./$ac_file'
2084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085   (eval $ac_try) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; }; then
2089     cross_compiling=no
2090   else
2091     if test "$cross_compiling" = maybe; then
2092         cross_compiling=yes
2093     else
2094         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'." >&5
2096 echo "$as_me: error: cannot run C compiled programs.
2097 If you meant to cross compile, use \`--host'." >&2;}
2098    { (exit 1); exit 1; }; }
2099     fi
2100   fi
2101 fi
2102 echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6
2104
2105 rm -f a.out a.exe conftest$ac_cv_exeext
2106 ac_clean_files=$ac_clean_files_save
2107 # Check the compiler produces executables we can run.  If not, either
2108 # the compiler is broken, or we cross compile.
2109 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112 echo "${ECHO_T}$cross_compiling" >&6
2113
2114 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117   (eval $ac_link) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; then
2121   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2123 # work properly (i.e., refer to `conftest.exe'), while it won't with
2124 # `rm'.
2125 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2126   case $ac_file in
2127     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2137    { (exit 1); exit 1; }; }
2138 fi
2139
2140 rm -f conftest$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2143
2144 rm -f conftest.$ac_ext
2145 EXEEXT=$ac_cv_exeext
2146 ac_exeext=$EXEEXT
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   cat >conftest.$ac_ext <<_ACEOF
2153 #line $LINENO "configure"
2154 #include "confdefs.h"
2155
2156 #ifdef F77_DUMMY_MAIN
2157 #  ifdef __cplusplus
2158      extern "C"
2159 #  endif
2160    int F77_DUMMY_MAIN() { return 1; }
2161 #endif
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   cat >conftest.$ac_ext <<_ACEOF
2203 #line $LINENO "configure"
2204 #include "confdefs.h"
2205
2206 #ifdef F77_DUMMY_MAIN
2207 #  ifdef __cplusplus
2208      extern "C"
2209 #  endif
2210    int F77_DUMMY_MAIN() { return 1; }
2211 #endif
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   ac_compiler_gnu=yes
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 ac_compiler_gnu=no
2240 fi
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2243
2244 fi
2245 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247 GCC=`test $ac_compiler_gnu = yes && echo yes`
2248 ac_test_CFLAGS=${CFLAGS+set}
2249 ac_save_CFLAGS=$CFLAGS
2250 CFLAGS="-g"
2251 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253 if test "${ac_cv_prog_cc_g+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2259
2260 #ifdef F77_DUMMY_MAIN
2261 #  ifdef __cplusplus
2262      extern "C"
2263 #  endif
2264    int F77_DUMMY_MAIN() { return 1; }
2265 #endif
2266 int
2267 main ()
2268 {
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   ac_cv_prog_cc_g=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 ac_cv_prog_cc_g=no
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2296 if test "$ac_test_CFLAGS" = set; then
2297   CFLAGS=$ac_save_CFLAGS
2298 elif test $ac_cv_prog_cc_g = yes; then
2299   if test "$GCC" = yes; then
2300     CFLAGS="-g -O2"
2301   else
2302     CFLAGS="-g"
2303   fi
2304 else
2305   if test "$GCC" = yes; then
2306     CFLAGS="-O2"
2307   else
2308     CFLAGS=
2309   fi
2310 fi
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   for ac_declaration in \
2333    ''\
2334    '#include <stdlib.h>' \
2335    'extern "C" void std::exit (int) throw (); using std::exit;' \
2336    'extern "C" void std::exit (int); using std::exit;' \
2337    'extern "C" void exit (int) throw ();' \
2338    'extern "C" void exit (int);' \
2339    'void exit (int);'
2340 do
2341   cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2344 #include <stdlib.h>
2345 $ac_declaration
2346 #ifdef F77_DUMMY_MAIN
2347 #  ifdef __cplusplus
2348      extern "C"
2349 #  endif
2350    int F77_DUMMY_MAIN() { return 1; }
2351 #endif
2352 int
2353 main ()
2354 {
2355 exit (42);
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -s conftest.$ac_objext'
2367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368   (eval $ac_try) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }; }; then
2372   :
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 continue
2377 fi
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379   cat >conftest.$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2382 $ac_declaration
2383 #ifdef F77_DUMMY_MAIN
2384 #  ifdef __cplusplus
2385      extern "C"
2386 #  endif
2387    int F77_DUMMY_MAIN() { return 1; }
2388 #endif
2389 int
2390 main ()
2391 {
2392 exit (42);
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   break
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 fi
2414 rm -f conftest.$ac_objext conftest.$ac_ext
2415 done
2416 rm -f conftest*
2417 if test -n "$ac_declaration"; then
2418   echo '#ifdef __cplusplus' >>confdefs.h
2419   echo $ac_declaration      >>confdefs.h
2420   echo '#endif'             >>confdefs.h
2421 fi
2422
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 fi
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 # Read the template
2435 . "$srcdir/src/template/$template" || exit
2436
2437 if test "$ac_env_CFLAGS_set" = set; then
2438   CFLAGS=$ac_env_CFLAGS_value
2439 fi
2440 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2441   CFLAGS="$CFLAGS -g"
2442 fi
2443 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2444 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2445 # Check if the compiler still works with the template settings
2446 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2447 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2448
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #line $LINENO "configure"
2451 #include "confdefs.h"
2452
2453 #ifdef F77_DUMMY_MAIN
2454 #  ifdef __cplusplus
2455      extern "C"
2456 #  endif
2457    int F77_DUMMY_MAIN() { return 1; }
2458 #endif
2459 int
2460 main ()
2461 {
2462 return 0;
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469   (eval $ac_link) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } &&
2473          { ac_try='test -s conftest$ac_exeext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2487 echo "$as_me: error: cannot proceed" >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498 # On Suns, sometimes $CPP names a directory.
2499 if test -n "$CPP" && test -d "$CPP"; then
2500   CPP=
2501 fi
2502 if test -z "$CPP"; then
2503   if test "${ac_cv_prog_CPP+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506       # Double quotes because CPP needs to be expanded
2507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2508     do
2509       ac_preproc_ok=false
2510 for ac_c_preproc_warn_flag in '' yes
2511 do
2512   # Use a header file that comes with gcc, so configuring glibc
2513   # with a fresh cross-compiler works.
2514   # On the NeXT, cc -E runs the code through the compiler's parser,
2515   # not just through cpp. "Syntax error" is here to catch this case.
2516   cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 #include "confdefs.h"
2519 #include <assert.h>
2520                      Syntax error
2521 _ACEOF
2522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524   ac_status=$?
2525   egrep -v '^ *\+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } >/dev/null; then
2530   if test -s conftest.err; then
2531     ac_cpp_err=$ac_c_preproc_warn_flag
2532   else
2533     ac_cpp_err=
2534   fi
2535 else
2536   ac_cpp_err=yes
2537 fi
2538 if test -z "$ac_cpp_err"; then
2539   :
2540 else
2541   echo "$as_me: failed program was:" >&5
2542   cat conftest.$ac_ext >&5
2543   # Broken: fails on valid input.
2544 continue
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548   # OK, works on sane cases.  Now check whether non-existent headers
2549   # can be detected and how.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <ac_nonexistent.h>
2554 _ACEOF
2555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2557   ac_status=$?
2558   egrep -v '^ *\+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } >/dev/null; then
2563   if test -s conftest.err; then
2564     ac_cpp_err=$ac_c_preproc_warn_flag
2565   else
2566     ac_cpp_err=
2567   fi
2568 else
2569   ac_cpp_err=yes
2570 fi
2571 if test -z "$ac_cpp_err"; then
2572   # Broken: success on invalid input.
2573 continue
2574 else
2575   echo "$as_me: failed program was:" >&5
2576   cat conftest.$ac_ext >&5
2577   # Passes both tests.
2578 ac_preproc_ok=:
2579 break
2580 fi
2581 rm -f conftest.err conftest.$ac_ext
2582
2583 done
2584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2585 rm -f conftest.err conftest.$ac_ext
2586 if $ac_preproc_ok; then
2587   break
2588 fi
2589
2590     done
2591     ac_cv_prog_CPP=$CPP
2592
2593 fi
2594   CPP=$ac_cv_prog_CPP
2595 else
2596   ac_cv_prog_CPP=$CPP
2597 fi
2598 echo "$as_me:$LINENO: result: $CPP" >&5
2599 echo "${ECHO_T}$CPP" >&6
2600 ac_preproc_ok=false
2601 for ac_c_preproc_warn_flag in '' yes
2602 do
2603   # Use a header file that comes with gcc, so configuring glibc
2604   # with a fresh cross-compiler works.
2605   # On the NeXT, cc -E runs the code through the compiler's parser,
2606   # not just through cpp. "Syntax error" is here to catch this case.
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 #include "confdefs.h"
2610 #include <assert.h>
2611                      Syntax error
2612 _ACEOF
2613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2615   ac_status=$?
2616   egrep -v '^ *\+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } >/dev/null; then
2621   if test -s conftest.err; then
2622     ac_cpp_err=$ac_c_preproc_warn_flag
2623   else
2624     ac_cpp_err=
2625   fi
2626 else
2627   ac_cpp_err=yes
2628 fi
2629 if test -z "$ac_cpp_err"; then
2630   :
2631 else
2632   echo "$as_me: failed program was:" >&5
2633   cat conftest.$ac_ext >&5
2634   # Broken: fails on valid input.
2635 continue
2636 fi
2637 rm -f conftest.err conftest.$ac_ext
2638
2639   # OK, works on sane cases.  Now check whether non-existent headers
2640   # can be detected and how.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <ac_nonexistent.h>
2645 _ACEOF
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2648   ac_status=$?
2649   egrep -v '^ *\+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } >/dev/null; then
2654   if test -s conftest.err; then
2655     ac_cpp_err=$ac_c_preproc_warn_flag
2656   else
2657     ac_cpp_err=
2658   fi
2659 else
2660   ac_cpp_err=yes
2661 fi
2662 if test -z "$ac_cpp_err"; then
2663   # Broken: success on invalid input.
2664 continue
2665 else
2666   echo "$as_me: failed program was:" >&5
2667   cat conftest.$ac_ext >&5
2668   # Passes both tests.
2669 ac_preproc_ok=:
2670 break
2671 fi
2672 rm -f conftest.err conftest.$ac_ext
2673
2674 done
2675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2676 rm -f conftest.err conftest.$ac_ext
2677 if $ac_preproc_ok; then
2678   :
2679 else
2680   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693 # Create compiler version string
2694 if test x"$GCC" = x"yes" ; then
2695   cc_string="GCC `${CC} --version | sed q`"
2696 else
2697   cc_string=$CC
2698 fi
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2702 _ACEOF
2703
2704
2705
2706 #
2707 # Automatic dependency tracking
2708 #
2709
2710
2711 # Check whether --enable-depend or --disable-depend was given.
2712 if test "${enable_depend+set}" = set; then
2713   enableval="$enable_depend"
2714
2715   case $enableval in
2716     yes)
2717       autodepend=yes
2718       ;;
2719     no)
2720       :
2721       ;;
2722     *)
2723       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2724 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2725    { (exit 1); exit 1; }; }
2726       ;;
2727   esac
2728
2729 else
2730   enable_depend=no
2731
2732 fi;
2733
2734
2735
2736
2737 #
2738 # Enable assert checks
2739 #
2740
2741
2742 # Check whether --enable-cassert or --disable-cassert was given.
2743 if test "${enable_cassert+set}" = set; then
2744   enableval="$enable_cassert"
2745
2746   case $enableval in
2747     yes)
2748
2749 cat >>confdefs.h <<\_ACEOF
2750 #define USE_ASSERT_CHECKING 1
2751 _ACEOF
2752
2753       ;;
2754     no)
2755       :
2756       ;;
2757     *)
2758       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2759 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2760    { (exit 1); exit 1; }; }
2761       ;;
2762   esac
2763
2764 else
2765   enable_cassert=no
2766
2767 fi;
2768
2769
2770
2771 #
2772 # Include directories
2773 #
2774 ac_save_IFS=$IFS
2775 IFS="${IFS}:"
2776 # SRCH_INC comes from the template file
2777 for dir in $with_includes $SRCH_INC; do
2778   if test -d "$dir"; then
2779     INCLUDES="$INCLUDES -I$dir"
2780   else
2781     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2782 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2783   fi
2784 done
2785 IFS=$ac_save_IFS
2786
2787
2788
2789 #
2790 # Library directories
2791 #
2792 ac_save_IFS=$IFS
2793 IFS="${IFS}:"
2794 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2795 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2796   if test -d "$dir"; then
2797     LIBDIRS="$LIBDIRS -L$dir"
2798   else
2799     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2800 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2801   fi
2802 done
2803 IFS=$ac_save_IFS
2804
2805
2806 #
2807 # Tcl/Tk
2808 #
2809 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2810 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2811
2812
2813
2814 # Check whether --with-tcl or --without-tcl was given.
2815 if test "${with_tcl+set}" = set; then
2816   withval="$with_tcl"
2817
2818   case $withval in
2819     yes)
2820       :
2821       ;;
2822     no)
2823       :
2824       ;;
2825     *)
2826       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2827 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2828    { (exit 1); exit 1; }; }
2829       ;;
2830   esac
2831
2832 else
2833   with_tcl=no
2834
2835 fi;
2836
2837 echo "$as_me:$LINENO: result: $with_tcl" >&5
2838 echo "${ECHO_T}$with_tcl" >&6
2839
2840
2841 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2842 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2843 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2844 if test "$with_tcl" = yes; then
2845
2846
2847
2848 # Check whether --with-tk or --without-tk was given.
2849 if test "${with_tk+set}" = set; then
2850   withval="$with_tk"
2851
2852   case $withval in
2853     yes)
2854       :
2855       ;;
2856     no)
2857       :
2858       ;;
2859     *)
2860       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2861 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2862    { (exit 1); exit 1; }; }
2863       ;;
2864   esac
2865
2866 else
2867   with_tk=yes
2868
2869 fi;
2870
2871 else
2872   with_tk=no
2873 fi
2874 echo "$as_me:$LINENO: result: $with_tk" >&5
2875 echo "${ECHO_T}$with_tk" >&6
2876
2877
2878
2879 # We see if the path to the Tcl/Tk configuration scripts is specified.
2880 # This will override the use of tclsh to find the paths to search.
2881
2882
2883
2884
2885 # Check whether --with-tclconfig or --without-tclconfig was given.
2886 if test "${with_tclconfig+set}" = set; then
2887   withval="$with_tclconfig"
2888
2889   case $withval in
2890     yes)
2891       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2893    { (exit 1); exit 1; }; }
2894       ;;
2895     no)
2896       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2897 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2898    { (exit 1); exit 1; }; }
2899       ;;
2900     *)
2901
2902       ;;
2903   esac
2904
2905 fi;
2906
2907
2908 # We see if the path to the Tk configuration scripts is specified.
2909 # This will override the use of tclsh to find the paths to search.
2910
2911
2912
2913
2914 # Check whether --with-tkconfig or --without-tkconfig was given.
2915 if test "${with_tkconfig+set}" = set; then
2916   withval="$with_tkconfig"
2917
2918   case $withval in
2919     yes)
2920       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2921 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2922    { (exit 1); exit 1; }; }
2923       ;;
2924     no)
2925       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2927    { (exit 1); exit 1; }; }
2928       ;;
2929     *)
2930
2931       ;;
2932   esac
2933
2934 fi;
2935
2936
2937 #
2938 # Optionally build Perl modules (PL/Perl)
2939 #
2940 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2941 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2942
2943
2944
2945 # Check whether --with-perl or --without-perl was given.
2946 if test "${with_perl+set}" = set; then
2947   withval="$with_perl"
2948
2949   case $withval in
2950     yes)
2951       :
2952       ;;
2953     no)
2954       :
2955       ;;
2956     *)
2957       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2958 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961   esac
2962
2963 else
2964   with_perl=no
2965
2966 fi;
2967
2968 echo "$as_me:$LINENO: result: $with_perl" >&5
2969 echo "${ECHO_T}$with_perl" >&6
2970
2971
2972 #
2973 # Optionally build Python interface module
2974 #
2975 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2976 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2977
2978
2979
2980 # Check whether --with-python or --without-python was given.
2981 if test "${with_python+set}" = set; then
2982   withval="$with_python"
2983
2984   case $withval in
2985     yes)
2986       :
2987       ;;
2988     no)
2989       :
2990       ;;
2991     *)
2992       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
2993 echo "$as_me: error: no argument expected for --with-python option" >&2;}
2994    { (exit 1); exit 1; }; }
2995       ;;
2996   esac
2997
2998 else
2999   with_python=no
3000
3001 fi;
3002
3003 echo "$as_me:$LINENO: result: $with_python" >&5
3004 echo "${ECHO_T}$with_python" >&6
3005
3006
3007 #
3008 # Optionally build the Java/JDBC tools
3009 #
3010 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3011 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3012
3013
3014
3015 # Check whether --with-java or --without-java was given.
3016 if test "${with_java+set}" = set; then
3017   withval="$with_java"
3018
3019   case $withval in
3020     yes)
3021       echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3023
3024   for ac_prog in jakarta-ant ant ant.sh ant.bat
3025 do
3026   # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3030 if test "${ac_cv_path_ANT+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   case $ANT in
3034   [\\/]* | ?:[\\/]*)
3035   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3036   ;;
3037   *)
3038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051
3052   ;;
3053 esac
3054 fi
3055 ANT=$ac_cv_path_ANT
3056
3057 if test -n "$ANT"; then
3058   echo "$as_me:$LINENO: result: $ANT" >&5
3059 echo "${ECHO_T}$ANT" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065   test -n "$ANT" && break
3066 done
3067
3068
3069   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3070 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3071 if test "${pgac_cv_prog_ant_works+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074
3075     cat > conftest.java << EOF
3076 public class conftest {
3077     int testmethod(int a, int b) {
3078         return a + b;
3079     }
3080 }
3081 EOF
3082
3083     cat > conftest.xml << EOF
3084 <project name="conftest" default="conftest">
3085  <target name="conftest">
3086   <javac srcdir="." includes="conftest.java">
3087   </javac>
3088  </target>
3089 </project>
3090 EOF
3091
3092     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3093     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3094   (eval $pgac_cmd) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }
3098     pgac_save_status=$?
3099     if test $? = 0 && test -f ./conftest.class ; then
3100       pgac_cv_prog_ant_works=yes
3101     else
3102       echo "configure: failed java program was:" >&5
3103       cat conftest.java >&5
3104       echo "configure: failed build file was:" >&5
3105       cat conftest.xml >&5
3106       pgac_cv_prog_ant_works=no
3107     fi
3108
3109     rm -f conftest* core core.* *.core
3110
3111 fi
3112 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3113 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3114
3115   if test "$pgac_cv_prog_ant_works" != yes; then
3116     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3117 echo "$as_me: error: ant does not work" >&2;}
3118    { (exit 1); exit 1; }; }
3119   fi
3120
3121
3122 if test -z "$ANT"; then
3123   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3124 If you have Ant already installed, see config.log for details on the failure." >&5
3125 echo "$as_me: error: Ant is required to build Java components
3126 If you have Ant already installed, see config.log for details on the failure." >&2;}
3127    { (exit 1); exit 1; }; }
3128 fi
3129 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3130   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3131 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134       ;;
3135     no)
3136       echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138       ;;
3139     *)
3140       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3141 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3142    { (exit 1); exit 1; }; }
3143       ;;
3144   esac
3145
3146 else
3147   with_java=no
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 fi;
3151
3152
3153
3154
3155 #
3156 # Kerberos 4
3157 #
3158 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3159 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3160
3161
3162
3163 # Check whether --with-krb4 or --without-krb4 was given.
3164 if test "${with_krb4+set}" = set; then
3165   withval="$with_krb4"
3166
3167   case $withval in
3168     yes)
3169       krb4_prefix=/usr/athena
3170       ;;
3171     no)
3172       :
3173       ;;
3174     *)
3175       with_krb4=yes
3176 krb4_prefix=$withval
3177       ;;
3178   esac
3179
3180 else
3181   with_krb4=no
3182 fi;
3183
3184
3185 if test "$with_krb4" = yes; then
3186
3187   echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6
3189
3190 cat >>confdefs.h <<\_ACEOF
3191 #define KRB4 1
3192 _ACEOF
3193
3194
3195   if test -d "$krb4_prefix/include"; then
3196     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3197   fi
3198   if test -d "$krb4_prefix/lib"; then
3199     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3200   fi
3201
3202   krb_srvtab="/etc/srvtab"
3203
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209
3210
3211
3212
3213 #
3214 # Kerberos 5
3215 #
3216 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3217 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3218
3219
3220
3221 # Check whether --with-krb5 or --without-krb5 was given.
3222 if test "${with_krb5+set}" = set; then
3223   withval="$with_krb5"
3224
3225   case $withval in
3226     yes)
3227       krb5_prefix=/usr/athena
3228       ;;
3229     no)
3230       :
3231       ;;
3232     *)
3233       with_krb5=yes
3234 krb5_prefix=$withval
3235       ;;
3236   esac
3237
3238 else
3239   with_krb5=no
3240 fi;
3241
3242
3243 if test "$with_krb5" = yes; then
3244
3245   echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3247
3248 cat >>confdefs.h <<\_ACEOF
3249 #define KRB5 1
3250 _ACEOF
3251
3252
3253   if test -d "$krb5_prefix/include"; then
3254     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3255   fi
3256   if test -d "$krb5_prefix/lib"; then
3257     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3258   fi
3259
3260   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3261
3262 else
3263   echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265 fi
3266
3267
3268
3269
3270
3271 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3272 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3273   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3274 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3275    { (exit 1); exit 1; }; }
3276 fi
3277
3278
3279
3280
3281 #
3282 # Kerberos configuration parameters
3283 #
3284
3285
3286
3287 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3288 if test "${with_krb_srvnam+set}" = set; then
3289   withval="$with_krb_srvnam"
3290
3291   case $withval in
3292     yes)
3293       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3294 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3295    { (exit 1); exit 1; }; }
3296       ;;
3297     no)
3298       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3299 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3300    { (exit 1); exit 1; }; }
3301       ;;
3302     *)
3303
3304       ;;
3305   esac
3306
3307 else
3308   with_krb_srvnam="postgres"
3309 fi;
3310
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3314 _ACEOF
3315
3316
3317
3318 #
3319 # PAM
3320 #
3321 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3322 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3323
3324
3325
3326 # Check whether --with-pam or --without-pam was given.
3327 if test "${with_pam+set}" = set; then
3328   withval="$with_pam"
3329
3330   case $withval in
3331     yes)
3332
3333 cat >>confdefs.h <<\_ACEOF
3334 #define USE_PAM 1
3335 _ACEOF
3336
3337       ;;
3338     no)
3339       :
3340       ;;
3341     *)
3342       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3343 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3344    { (exit 1); exit 1; }; }
3345       ;;
3346   esac
3347
3348 else
3349   with_pam=no
3350
3351 fi;
3352
3353 echo "$as_me:$LINENO: result: $with_pam" >&5
3354 echo "${ECHO_T}$with_pam" >&6
3355
3356
3357
3358 #
3359 # OpenSSL
3360 #
3361
3362
3363
3364 # Check whether --with-openssl or --without-openssl was given.
3365 if test "${with_openssl+set}" = set; then
3366   withval="$with_openssl"
3367
3368   case $withval in
3369     yes)
3370       openssl_prefix=/usr/local/ssl
3371       ;;
3372     no)
3373       :
3374       ;;
3375     *)
3376       with_openssl=yes
3377 openssl_prefix=$withval
3378       ;;
3379   esac
3380
3381 else
3382   with_openssl=no
3383 fi;
3384
3385
3386 if test "$with_openssl" = yes; then
3387
3388   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3389 echo "${ECHO_T}building with OpenSSL support" >&6
3390
3391 cat >>confdefs.h <<\_ACEOF
3392 #define USE_SSL 1
3393 _ACEOF
3394
3395
3396   if test -d "${openssl_prefix}/include" ; then
3397     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3398   fi
3399   if test -d "${openssl_prefix}/lib" ; then
3400     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3401   fi
3402
3403 fi
3404
3405
3406
3407
3408
3409 #
3410 # Readline
3411 #
3412
3413
3414
3415 # Check whether --with-readline or --without-readline was given.
3416 if test "${with_readline+set}" = set; then
3417   withval="$with_readline"
3418
3419   case $withval in
3420     yes)
3421       :
3422       ;;
3423     no)
3424       :
3425       ;;
3426     *)
3427       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3428 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3429    { (exit 1); exit 1; }; }
3430       ;;
3431   esac
3432
3433 else
3434   with_readline=yes
3435
3436 fi;
3437
3438
3439 #
3440 # Zlib
3441 #
3442
3443
3444
3445 # Check whether --with-zlib or --without-zlib was given.
3446 if test "${with_zlib+set}" = set; then
3447   withval="$with_zlib"
3448
3449   case $withval in
3450     yes)
3451       :
3452       ;;
3453     no)
3454       :
3455       ;;
3456     *)
3457       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3458 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3459    { (exit 1); exit 1; }; }
3460       ;;
3461   esac
3462
3463 else
3464   with_zlib=yes
3465
3466 fi;
3467
3468
3469
3470
3471 # Assume system is ELF if it predefines __ELF__ as 1,
3472 # otherwise believe host_os based default.
3473 case $host_os in
3474     freebsd1*|freebsd2*) elf=no;;
3475     freebsd3*|freebsd4*) elf=yes;;
3476 esac
3477
3478
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3482 #if __ELF__
3483   yes
3484 #endif
3485
3486 _ACEOF
3487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3488   egrep "yes" >/dev/null 2>&1; then
3489   ELF_SYS=true
3490 else
3491   if test "X$elf" = "Xyes" ; then
3492   ELF_SYS=true
3493 else
3494   ELF_SYS=
3495 fi
3496 fi
3497 rm -f conftest*
3498
3499
3500
3501
3502
3503 CPPFLAGS="$CPPFLAGS $INCLUDES"
3504 LDFLAGS="$LDFLAGS $LIBDIRS"
3505
3506 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3507 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3508 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3509 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3510
3511
3512 for ac_prog in gawk mawk nawk awk
3513 do
3514   # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518 if test "${ac_cv_prog_AWK+set}" = set; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   if test -n "$AWK"; then
3522   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527   IFS=$as_save_IFS
3528   test -z "$as_dir" && as_dir=.
3529   for ac_exec_ext in '' $ac_executable_extensions; do
3530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531     ac_cv_prog_AWK="$ac_prog"
3532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533     break 2
3534   fi
3535 done
3536 done
3537
3538 fi
3539 fi
3540 AWK=$ac_cv_prog_AWK
3541 if test -n "$AWK"; then
3542   echo "$as_me:$LINENO: result: $AWK" >&5
3543 echo "${ECHO_T}$AWK" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549   test -n "$AWK" && break
3550 done
3551
3552 echo "$as_me:$LINENO: checking for flex" >&5
3553 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3554 if test "${pgac_cv_path_flex+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   # Let the user override the test
3558 if test -n "$FLEX"; then
3559   pgac_cv_path_flex=$FLEX
3560 else
3561   pgac_save_IFS=$IFS
3562   IFS=:
3563   for pgac_dir in $PATH; do
3564     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3565       pgac_dir=`pwd`
3566     fi
3567     for pgac_prog in flex lex; do
3568       pgac_candidate="$pgac_dir/$pgac_prog"
3569       if test -f "$pgac_candidate" \
3570         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3571       then
3572         echo '%%'  > conftest.l
3573         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3574           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3575             pgac_broken_flex=$pgac_candidate
3576             continue
3577           fi
3578
3579           pgac_cv_path_flex=$pgac_candidate
3580           break 2
3581         fi
3582       fi
3583     done
3584   done
3585   IFS=$pgac_save_IFS
3586   rm -f conftest.l
3587   : ${pgac_cv_path_flex=no}
3588 fi
3589
3590 fi
3591 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3592 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3593 if test x"$pgac_cv_path_flex" = x"no"; then
3594   if test -n "$pgac_broken_flex"; then
3595     { echo "$as_me:$LINENO: WARNING:
3596 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3597 *** should get version 2.5.4 or later." >&5
3598 echo "$as_me: WARNING:
3599 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3600 *** should get version 2.5.4 or later." >&2;}
3601   fi
3602
3603   { echo "$as_me:$LINENO: WARNING:
3604 *** Without Flex you will not be able to build PostgreSQL from CVS or
3605 *** change any of the scanner definition files.  You can obtain Flex from
3606 *** a GNU mirror site.  (If you are using the official distribution of
3607 *** PostgreSQL then you do not need to worry about this because the Flex
3608 *** output is pre-generated.)" >&5
3609 echo "$as_me: WARNING:
3610 *** Without Flex you will not be able to build PostgreSQL from CVS or
3611 *** change any of the scanner definition files.  You can obtain Flex from
3612 *** a GNU mirror site.  (If you are using the official distribution of
3613 *** PostgreSQL then you do not need to worry about this because the Flex
3614 *** output is pre-generated.)" >&2;}
3615 fi
3616
3617 if test x"$pgac_cv_path_flex" = x"no"; then
3618   FLEX=
3619 else
3620   FLEX=$pgac_cv_path_flex
3621 fi
3622
3623
3624
3625
3626 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3627 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3628 LN_S=$as_ln_s
3629 if test "$LN_S" = "ln -s"; then
3630   echo "$as_me:$LINENO: result: yes" >&5
3631 echo "${ECHO_T}yes" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3634 echo "${ECHO_T}no, using $LN_S" >&6
3635 fi
3636
3637
3638 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3639 if test "${with_gnu_ld+set}" = set; then
3640   withval="$with_gnu_ld"
3641   test "$withval" = no || with_gnu_ld=yes
3642 else
3643   with_gnu_ld=no
3644 fi;
3645 ac_prog=ld
3646 if test "$GCC" = yes; then
3647   # Check if gcc -print-prog-name=ld gives a path.
3648   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3649 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3650   case $host in
3651   *-*-mingw*)
3652     # gcc leaves a trailing carriage return which upsets mingw
3653     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3654   *)
3655     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3656   esac
3657   case "$ac_prog" in
3658     # Accept absolute paths.
3659     [\\/]* | [A-Za-z]:[\\/]*)
3660       re_direlt='/[^/][^/]*/\.\./'
3661       # Canonicalize the path of ld
3662       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3663       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3664         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3665       done
3666       test -z "$LD" && LD="$ac_prog"
3667       ;;
3668   "")
3669     # If it fails, then pretend we aren't using GCC.
3670     ac_prog=ld
3671     ;;
3672   *)
3673     # If it is relative, then search for the first ld in PATH.
3674     with_gnu_ld=unknown
3675     ;;
3676   esac
3677 elif test "$with_gnu_ld" = yes; then
3678   echo "$as_me:$LINENO: checking for GNU ld" >&5
3679 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3680 else
3681   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3682 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3683 fi
3684 if test "${ac_cv_path_LD+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   if test -z "$LD"; then
3688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3689   for ac_dir in $PATH; do
3690     test -z "$ac_dir" && ac_dir=.
3691     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3692       ac_cv_path_LD="$ac_dir/$ac_prog"
3693       # Check to see if the program is GNU ld.  I'd rather use --version,
3694       # but apparently some GNU ld's only accept -v.
3695       # Break only if it was the GNU/non-GNU ld that we prefer.
3696       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3697         test "$with_gnu_ld" != no && break
3698       else
3699         test "$with_gnu_ld" != yes && break
3700       fi
3701     fi
3702   done
3703   IFS="$ac_save_ifs"
3704 else
3705   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3706 fi
3707 fi
3708
3709 LD="$ac_cv_path_LD"
3710 if test -n "$LD"; then
3711   echo "$as_me:$LINENO: result: $LD" >&5
3712 echo "${ECHO_T}$LD" >&6
3713 else
3714   echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3716 fi
3717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3719    { (exit 1); exit 1; }; }
3720 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3722 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3726 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3727   ac_cv_prog_gnu_ld=yes
3728 else
3729   ac_cv_prog_gnu_ld=no
3730 fi
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3733 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3734 with_gnu_ld=$ac_cv_prog_gnu_ld
3735
3736
3737
3738
3739 case $host_os in sysv5*)
3740   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3741 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3742 if test "${pgac_cv_prog_ld_R+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745
3746     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3747     cat >conftest.$ac_ext <<_ACEOF
3748 #line $LINENO "configure"
3749 #include "confdefs.h"
3750
3751 #ifdef F77_DUMMY_MAIN
3752 #  ifdef __cplusplus
3753      extern "C"
3754 #  endif
3755    int F77_DUMMY_MAIN() { return 1; }
3756 #endif
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.$ac_objext conftest$ac_exeext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767   (eval $ac_link) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } &&
3771          { ac_try='test -s conftest$ac_exeext'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; }; then
3777   pgac_cv_prog_ld_R=yes
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 pgac_cv_prog_ld_R=no
3782 fi
3783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3784     LDFLAGS=$pgac_save_LDFLAGS
3785
3786 fi
3787 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3788 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3789   ld_R_works=$pgac_cv_prog_ld_R
3790
3791 esac
3792 if test -n "$ac_tool_prefix"; then
3793   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_RANLIB+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   if test -n "$RANLIB"; then
3801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808   for ac_exec_ext in '' $ac_executable_extensions; do
3809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815 done
3816
3817 fi
3818 fi
3819 RANLIB=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821   echo "$as_me:$LINENO: result: $RANLIB" >&5
3822 echo "${ECHO_T}$RANLIB" >&6
3823 else
3824   echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3826 fi
3827
3828 fi
3829 if test -z "$ac_cv_prog_RANLIB"; then
3830   ac_ct_RANLIB=$RANLIB
3831   # Extract the first word of "ranlib", so it can be a program name with args.
3832 set dummy ranlib; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if test -n "$ac_ct_RANLIB"; then
3839   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     ac_cv_prog_ac_ct_RANLIB="ranlib"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854
3855   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3856 fi
3857 fi
3858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3859 if test -n "$ac_ct_RANLIB"; then
3860   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3861 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3862 else
3863   echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865 fi
3866
3867   RANLIB=$ac_ct_RANLIB
3868 else
3869   RANLIB="$ac_cv_prog_RANLIB"
3870 fi
3871
3872 for ac_prog in lorder
3873 do
3874   # Extract the first word of "$ac_prog", so it can be a program name with args.
3875 set dummy $ac_prog; ac_word=$2
3876 echo "$as_me:$LINENO: checking for $ac_word" >&5
3877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878 if test "${ac_cv_prog_LORDER+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   if test -n "$LORDER"; then
3882   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889   for ac_exec_ext in '' $ac_executable_extensions; do
3890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891     ac_cv_prog_LORDER="$ac_prog"
3892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893     break 2
3894   fi
3895 done
3896 done
3897
3898 fi
3899 fi
3900 LORDER=$ac_cv_prog_LORDER
3901 if test -n "$LORDER"; then
3902   echo "$as_me:$LINENO: result: $LORDER" >&5
3903 echo "${ECHO_T}$LORDER" >&6
3904 else
3905   echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909   test -n "$LORDER" && break
3910 done
3911
3912 # Extract the first word of "tar", so it can be a program name with args.
3913 set dummy tar; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_path_TAR+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   case $TAR in
3920   [\\/]* | ?:[\\/]*)
3921   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3922   ;;
3923   *)
3924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927   IFS=$as_save_IFS
3928   test -z "$as_dir" && as_dir=.
3929   for ac_exec_ext in '' $ac_executable_extensions; do
3930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933     break 2
3934   fi
3935 done
3936 done
3937
3938   ;;
3939 esac
3940 fi
3941 TAR=$ac_cv_path_TAR
3942
3943 if test -n "$TAR"; then
3944   echo "$as_me:$LINENO: result: $TAR" >&5
3945 echo "${ECHO_T}$TAR" >&6
3946 else
3947   echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951
3952   if test -n "$ac_tool_prefix"; then
3953   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}strip; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_prog_STRIP+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   if test -n "$STRIP"; then
3961   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975 done
3976
3977 fi
3978 fi
3979 STRIP=$ac_cv_prog_STRIP
3980 if test -n "$STRIP"; then
3981   echo "$as_me:$LINENO: result: $STRIP" >&5
3982 echo "${ECHO_T}$STRIP" >&6
3983 else
3984   echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3986 fi
3987
3988 fi
3989 if test -z "$ac_cv_prog_STRIP"; then
3990   ac_ct_STRIP=$STRIP
3991   # Extract the first word of "strip", so it can be a program name with args.
3992 set dummy strip; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   if test -n "$ac_ct_STRIP"; then
3999   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_prog_ac_ct_STRIP="strip"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4016 fi
4017 fi
4018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4019 if test -n "$ac_ct_STRIP"; then
4020   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4021 echo "${ECHO_T}$ac_ct_STRIP" >&6
4022 else
4023   echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4025 fi
4026
4027   STRIP=$ac_ct_STRIP
4028 else
4029   STRIP="$ac_cv_prog_STRIP"
4030 fi
4031
4032
4033   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4034 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4035   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4036     STRIP_STATIC_LIB="$STRIP -x"
4037     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4038     echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4040   else
4041     STRIP_STATIC_LIB=:
4042     STRIP_SHARED_LIB=:
4043     echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6
4045   fi
4046
4047
4048
4049
4050 for ac_prog in 'bison -y'
4051 do
4052   # Extract the first word of "$ac_prog", so it can be a program name with args.
4053 set dummy $ac_prog; ac_word=$2
4054 echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4056 if test "${ac_cv_prog_YACC+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   if test -n "$YACC"; then
4060   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067   for ac_exec_ext in '' $ac_executable_extensions; do
4068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069     ac_cv_prog_YACC="$ac_prog"
4070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071     break 2
4072   fi
4073 done
4074 done
4075
4076 fi
4077 fi
4078 YACC=$ac_cv_prog_YACC
4079 if test -n "$YACC"; then
4080   echo "$as_me:$LINENO: result: $YACC" >&5
4081 echo "${ECHO_T}$YACC" >&6
4082 else
4083   echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4085 fi
4086
4087   test -n "$YACC" && break
4088 done
4089
4090 if test -z "$YACC"; then
4091   { echo "$as_me:$LINENO: WARNING:
4092 *** Without Bison you will not be able to build PostgreSQL from CVS or
4093 *** change any of the parser definition files.  You can obtain Bison from
4094 *** a GNU mirror site.  (If you are using the official distribution of
4095 *** PostgreSQL then you do not need to worry about this because the Bison
4096 *** output is pre-generated.)  To use a different yacc program (possible,
4097 *** but not recommended), set the environment variable YACC before running
4098 *** 'configure'." >&5
4099 echo "$as_me: WARNING:
4100 *** Without Bison you will not be able to build PostgreSQL from CVS or
4101 *** change any of the parser definition files.  You can obtain Bison from
4102 *** a GNU mirror site.  (If you are using the official distribution of
4103 *** PostgreSQL then you do not need to worry about this because the Bison
4104 *** output is pre-generated.)  To use a different yacc program (possible,
4105 *** but not recommended), set the environment variable YACC before running
4106 *** 'configure'." >&2;}
4107 fi
4108
4109
4110 # Extract the first word of "perl", so it can be a program name with args.
4111 set dummy perl; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_PERL+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   case $PERL in
4118   [\\/]* | ?:[\\/]*)
4119   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4120   ;;
4121   *)
4122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135
4136   ;;
4137 esac
4138 fi
4139 PERL=$ac_cv_path_PERL
4140
4141 if test -n "$PERL"; then
4142   echo "$as_me:$LINENO: result: $PERL" >&5
4143 echo "${ECHO_T}$PERL" >&6
4144 else
4145   echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149 if test "$with_perl" = yes; then
4150
4151 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4152 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4153 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4154 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4155 echo "${ECHO_T}$perl_archlibexp" >&6
4156 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4157 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4158 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4159 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4160 echo "${ECHO_T}$perl_privlibexp" >&6
4161 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4162 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4163 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4164 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4165 echo "${ECHO_T}$perl_useshrplib" >&6
4166
4167 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4168 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4169 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4170 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4171 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4172 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4173 echo "${ECHO_T}$perl_embed_ldflags" >&6
4174 fi
4175
4176 if test "$with_python" = yes; then
4177   # Extract the first word of "python", so it can be a program name with args.
4178 set dummy python; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_PYTHON+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   case $PYTHON in
4185   [\\/]* | ?:[\\/]*)
4186   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4187   ;;
4188   *)
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194   for ac_exec_ext in '' $ac_executable_extensions; do
4195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201 done
4202
4203   ;;
4204 esac
4205 fi
4206 PYTHON=$ac_cv_path_PYTHON
4207
4208 if test -n "$PYTHON"; then
4209   echo "$as_me:$LINENO: result: $PYTHON" >&5
4210 echo "${ECHO_T}$PYTHON" >&6
4211 else
4212   echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4214 fi
4215
4216 if test x"$PYTHON" = x""; then
4217   { { echo "$as_me:$LINENO: error: Python not found" >&5
4218 echo "$as_me: error: Python not found" >&2;}
4219    { (exit 1); exit 1; }; }
4220 fi
4221
4222
4223 echo "$as_me:$LINENO: checking Python installation directories" >&5
4224 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4225 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4226 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4227 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4228 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4229 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4230 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4231 python_includespec="-I${python_prefix}/include/python${python_version}"
4232 if test "$python_prefix" != "$python_execprefix"; then
4233   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4234 fi
4235
4236 # This should be enough of a message.
4237 if test "$python_prefix" != "$python_execprefix"; then
4238   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4239 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4240 else
4241   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4242 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4243 fi
4244
4245
4246
4247
4248
4249 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4250 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4251
4252 if test ! -f "$python_configdir/Makefile"; then
4253   echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4256 echo "$as_me: error: Python Makefile not found" >&2;}
4257    { (exit 1); exit 1; }; }
4258 fi
4259
4260 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4261 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4262 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4263 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4264 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4265
4266 pgac_tab="      " # tab character
4267 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"`
4268
4269 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4270 echo "${ECHO_T}${python_libspec}" >&6
4271
4272
4273 fi
4274
4275
4276 ##
4277 ## Libraries
4278 ##
4279
4280 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4281 then
4282
4283 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4284 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4285 if test "${ac_cv_lib_bsd_main+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   ac_check_lib_save_LIBS=$LIBS
4289 LIBS="-lbsd  $LIBS"
4290 cat >conftest.$ac_ext <<_ACEOF
4291 #line $LINENO "configure"
4292 #include "confdefs.h"
4293
4294
4295 #ifdef F77_DUMMY_MAIN
4296 #  ifdef __cplusplus
4297      extern "C"
4298 #  endif
4299    int F77_DUMMY_MAIN() { return 1; }
4300 #endif
4301 int
4302 main ()
4303 {
4304 main ();
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311   (eval $ac_link) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } &&
4315          { ac_try='test -s conftest$ac_exeext'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; }; then
4321   ac_cv_lib_bsd_main=yes
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4325 ac_cv_lib_bsd_main=no
4326 fi
4327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4331 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4332 if test $ac_cv_lib_bsd_main = yes; then
4333   cat >>confdefs.h <<_ACEOF
4334 #define HAVE_LIBBSD 1
4335 _ACEOF
4336
4337   LIBS="-lbsd $LIBS"
4338
4339 fi
4340
4341 fi
4342
4343 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4344 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4345 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   ac_check_lib_save_LIBS=$LIBS
4349 LIBS="-lutil  $LIBS"
4350 cat >conftest.$ac_ext <<_ACEOF
4351 #line $LINENO "configure"
4352 #include "confdefs.h"
4353
4354 /* Override any gcc2 internal prototype to avoid an error.  */
4355 #ifdef __cplusplus
4356 extern "C"
4357 #endif
4358 /* We use char because int might match the return type of a gcc2
4359    builtin and then its argument prototype would still apply.  */
4360 char setproctitle ();
4361 #ifdef F77_DUMMY_MAIN
4362 #  ifdef __cplusplus
4363      extern "C"
4364 #  endif
4365    int F77_DUMMY_MAIN() { return 1; }
4366 #endif
4367 int
4368 main ()
4369 {
4370 setproctitle ();
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377   (eval $ac_link) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } &&
4381          { ac_try='test -s conftest$ac_exeext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   ac_cv_lib_util_setproctitle=yes
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 ac_cv_lib_util_setproctitle=no
4392 fi
4393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4395 fi
4396 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4397 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4398 if test $ac_cv_lib_util_setproctitle = yes; then
4399   cat >>confdefs.h <<_ACEOF
4400 #define HAVE_LIBUTIL 1
4401 _ACEOF
4402
4403   LIBS="-lutil $LIBS"
4404
4405 fi
4406
4407
4408 echo "$as_me:$LINENO: checking for main in -lm" >&5
4409 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4410 if test "${ac_cv_lib_m_main+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   ac_check_lib_save_LIBS=$LIBS
4414 LIBS="-lm  $LIBS"
4415 cat >conftest.$ac_ext <<_ACEOF
4416 #line $LINENO "configure"
4417 #include "confdefs.h"
4418
4419
4420 #ifdef F77_DUMMY_MAIN
4421 #  ifdef __cplusplus
4422      extern "C"
4423 #  endif
4424    int F77_DUMMY_MAIN() { return 1; }
4425 #endif
4426 int
4427 main ()
4428 {
4429 main ();
4430   ;
4431   return 0;
4432 }
4433 _ACEOF
4434 rm -f conftest.$ac_objext conftest$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436   (eval $ac_link) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } &&
4440          { ac_try='test -s conftest$ac_exeext'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   ac_cv_lib_m_main=yes
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 ac_cv_lib_m_main=no
4451 fi
4452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4453 LIBS=$ac_check_lib_save_LIBS
4454 fi
4455 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4456 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4457 if test $ac_cv_lib_m_main = yes; then
4458   cat >>confdefs.h <<_ACEOF
4459 #define HAVE_LIBM 1
4460 _ACEOF
4461
4462   LIBS="-lm $LIBS"
4463
4464 fi
4465
4466
4467 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4468 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4469 if test "${ac_cv_lib_dl_main+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   ac_check_lib_save_LIBS=$LIBS
4473 LIBS="-ldl  $LIBS"
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line $LINENO "configure"
4476 #include "confdefs.h"
4477
4478
4479 #ifdef F77_DUMMY_MAIN
4480 #  ifdef __cplusplus
4481      extern "C"
4482 #  endif
4483    int F77_DUMMY_MAIN() { return 1; }
4484 #endif
4485 int
4486 main ()
4487 {
4488 main ();
4489   ;
4490   return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495   (eval $ac_link) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } &&
4499          { ac_try='test -s conftest$ac_exeext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   ac_cv_lib_dl_main=yes
4506 else
4507   echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 ac_cv_lib_dl_main=no
4510 fi
4511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4513 fi
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4515 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4516 if test $ac_cv_lib_dl_main = yes; then
4517   cat >>confdefs.h <<_ACEOF
4518 #define HAVE_LIBDL 1
4519 _ACEOF
4520
4521   LIBS="-ldl $LIBS"
4522
4523 fi
4524
4525
4526 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4527 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4528 if test "${ac_cv_lib_nsl_main+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lnsl  $LIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4536
4537
4538 #ifdef F77_DUMMY_MAIN
4539 #  ifdef __cplusplus
4540      extern "C"
4541 #  endif
4542    int F77_DUMMY_MAIN() { return 1; }
4543 #endif
4544 int
4545 main ()
4546 {
4547 main ();
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext conftest$ac_exeext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554   (eval $ac_link) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } &&
4558          { ac_try='test -s conftest$ac_exeext'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564   ac_cv_lib_nsl_main=yes
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 ac_cv_lib_nsl_main=no
4569 fi
4570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4571 LIBS=$ac_check_lib_save_LIBS
4572 fi
4573 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4574 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4575 if test $ac_cv_lib_nsl_main = yes; then
4576   cat >>confdefs.h <<_ACEOF
4577 #define HAVE_LIBNSL 1
4578 _ACEOF
4579
4580   LIBS="-lnsl $LIBS"
4581
4582 fi
4583
4584
4585 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4586 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4587 if test "${ac_cv_lib_socket_main+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   ac_check_lib_save_LIBS=$LIBS
4591 LIBS="-lsocket  $LIBS"
4592 cat >conftest.$ac_ext <<_ACEOF
4593 #line $LINENO "configure"
4594 #include "confdefs.h"
4595
4596
4597 #ifdef F77_DUMMY_MAIN
4598 #  ifdef __cplusplus
4599      extern "C"
4600 #  endif
4601    int F77_DUMMY_MAIN() { return 1; }
4602 #endif
4603 int
4604 main ()
4605 {
4606 main ();
4607   ;
4608   return 0;
4609 }
4610 _ACEOF
4611 rm -f conftest.$ac_objext conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613   (eval $ac_link) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } &&
4617          { ac_try='test -s conftest$ac_exeext'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; }; then
4623   ac_cv_lib_socket_main=yes
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 ac_cv_lib_socket_main=no
4628 fi
4629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630 LIBS=$ac_check_lib_save_LIBS
4631 fi
4632 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4633 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4634 if test $ac_cv_lib_socket_main = yes; then
4635   cat >>confdefs.h <<_ACEOF
4636 #define HAVE_LIBSOCKET 1
4637 _ACEOF
4638
4639   LIBS="-lsocket $LIBS"
4640
4641 fi
4642
4643
4644 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4645 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4646 if test "${ac_cv_lib_ipc_main+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   ac_check_lib_save_LIBS=$LIBS
4650 LIBS="-lipc  $LIBS"
4651 cat >conftest.$ac_ext <<_ACEOF
4652 #line $LINENO "configure"
4653 #include "confdefs.h"
4654
4655
4656 #ifdef F77_DUMMY_MAIN
4657 #  ifdef __cplusplus
4658      extern "C"
4659 #  endif
4660    int F77_DUMMY_MAIN() { return 1; }
4661 #endif
4662 int
4663 main ()
4664 {
4665 main ();
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672   (eval $ac_link) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -s conftest$ac_exeext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_cv_lib_ipc_main=yes
4683 else
4684   echo "$as_me: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 ac_cv_lib_ipc_main=no
4687 fi
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4689 LIBS=$ac_check_lib_save_LIBS
4690 fi
4691 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4692 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4693 if test $ac_cv_lib_ipc_main = yes; then
4694   cat >>confdefs.h <<_ACEOF
4695 #define HAVE_LIBIPC 1
4696 _ACEOF
4697
4698   LIBS="-lipc $LIBS"
4699
4700 fi
4701
4702
4703 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4704 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4705 if test "${ac_cv_lib_IPC_main+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   ac_check_lib_save_LIBS=$LIBS
4709 LIBS="-lIPC  $LIBS"
4710 cat >conftest.$ac_ext <<_ACEOF
4711 #line $LINENO "configure"
4712 #include "confdefs.h"
4713
4714
4715 #ifdef F77_DUMMY_MAIN
4716 #  ifdef __cplusplus
4717      extern "C"
4718 #  endif
4719    int F77_DUMMY_MAIN() { return 1; }
4720 #endif
4721 int
4722 main ()
4723 {
4724 main ();
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext conftest$ac_exeext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731   (eval $ac_link) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } &&
4735          { ac_try='test -s conftest$ac_exeext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_lib_IPC_main=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4745 ac_cv_lib_IPC_main=no
4746 fi
4747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4748 LIBS=$ac_check_lib_save_LIBS
4749 fi
4750 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4751 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4752 if test $ac_cv_lib_IPC_main = yes; then
4753   cat >>confdefs.h <<_ACEOF
4754 #define HAVE_LIBIPC 1
4755 _ACEOF
4756
4757   LIBS="-lIPC $LIBS"
4758
4759 fi
4760
4761
4762 echo "$as_me:$LINENO: checking for main in -llc" >&5
4763 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4764 if test "${ac_cv_lib_lc_main+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-llc  $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772
4773
4774 #ifdef F77_DUMMY_MAIN
4775 #  ifdef __cplusplus
4776      extern "C"
4777 #  endif
4778    int F77_DUMMY_MAIN() { return 1; }
4779 #endif
4780 int
4781 main ()
4782 {
4783 main ();
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790   (eval $ac_link) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -s conftest$ac_exeext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   ac_cv_lib_lc_main=yes
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 ac_cv_lib_lc_main=no
4805 fi
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 LIBS=$ac_check_lib_save_LIBS
4808 fi
4809 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4810 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4811 if test $ac_cv_lib_lc_main = yes; then
4812   cat >>confdefs.h <<_ACEOF
4813 #define HAVE_LIBLC 1
4814 _ACEOF
4815
4816   LIBS="-llc $LIBS"
4817
4818 fi
4819
4820
4821 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4822 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4823 if test "${ac_cv_lib_dld_main+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   ac_check_lib_save_LIBS=$LIBS
4827 LIBS="-ldld  $LIBS"
4828 cat >conftest.$ac_ext <<_ACEOF
4829 #line $LINENO "configure"
4830 #include "confdefs.h"
4831
4832
4833 #ifdef F77_DUMMY_MAIN
4834 #  ifdef __cplusplus
4835      extern "C"
4836 #  endif
4837    int F77_DUMMY_MAIN() { return 1; }
4838 #endif
4839 int
4840 main ()
4841 {
4842 main ();
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4849   (eval $ac_link) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } &&
4853          { ac_try='test -s conftest$ac_exeext'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; }; then
4859   ac_cv_lib_dld_main=yes
4860 else
4861   echo "$as_me: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 ac_cv_lib_dld_main=no
4864 fi
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4867 fi
4868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4869 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4870 if test $ac_cv_lib_dld_main = yes; then
4871   cat >>confdefs.h <<_ACEOF
4872 #define HAVE_LIBDLD 1
4873 _ACEOF
4874
4875   LIBS="-ldld $LIBS"
4876
4877 fi
4878
4879
4880 echo "$as_me:$LINENO: checking for main in -lld" >&5
4881 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4882 if test "${ac_cv_lib_ld_main+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   ac_check_lib_save_LIBS=$LIBS
4886 LIBS="-lld  $LIBS"
4887 cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4889 #include "confdefs.h"
4890
4891
4892 #ifdef F77_DUMMY_MAIN
4893 #  ifdef __cplusplus
4894      extern "C"
4895 #  endif
4896    int F77_DUMMY_MAIN() { return 1; }
4897 #endif
4898 int
4899 main ()
4900 {
4901 main ();
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908   (eval $ac_link) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } &&
4912          { ac_try='test -s conftest$ac_exeext'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; }; then
4918   ac_cv_lib_ld_main=yes
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 ac_cv_lib_ld_main=no
4923 fi
4924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4925 LIBS=$ac_check_lib_save_LIBS
4926 fi
4927 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4928 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4929 if test $ac_cv_lib_ld_main = yes; then
4930   cat >>confdefs.h <<_ACEOF
4931 #define HAVE_LIBLD 1
4932 _ACEOF
4933
4934   LIBS="-lld $LIBS"
4935
4936 fi
4937
4938
4939 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4940 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4941 if test "${ac_cv_lib_compat_main+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   ac_check_lib_save_LIBS=$LIBS
4945 LIBS="-lcompat  $LIBS"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 #include "confdefs.h"
4949
4950
4951 #ifdef F77_DUMMY_MAIN
4952 #  ifdef __cplusplus
4953      extern "C"
4954 #  endif
4955    int F77_DUMMY_MAIN() { return 1; }
4956 #endif
4957 int
4958 main ()
4959 {
4960 main ();
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967   (eval $ac_link) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } &&
4971          { ac_try='test -s conftest$ac_exeext'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; }; then
4977   ac_cv_lib_compat_main=yes
4978 else
4979   echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_lib_compat_main=no
4982 fi
4983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4984 LIBS=$ac_check_lib_save_LIBS
4985 fi
4986 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4987 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4988 if test $ac_cv_lib_compat_main = yes; then
4989   cat >>confdefs.h <<_ACEOF
4990 #define HAVE_LIBCOMPAT 1
4991 _ACEOF
4992
4993   LIBS="-lcompat $LIBS"
4994
4995 fi
4996
4997
4998 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4999 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5000 if test "${ac_cv_lib_BSD_main+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-lBSD  $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 #include "confdefs.h"
5008
5009
5010 #ifdef F77_DUMMY_MAIN
5011 #  ifdef __cplusplus
5012      extern "C"
5013 #  endif
5014    int F77_DUMMY_MAIN() { return 1; }
5015 #endif
5016 int
5017 main ()
5018 {
5019 main ();
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026   (eval $ac_link) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); } &&
5030          { ac_try='test -s conftest$ac_exeext'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   ac_cv_lib_BSD_main=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5040 ac_cv_lib_BSD_main=no
5041 fi
5042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5043 LIBS=$ac_check_lib_save_LIBS
5044 fi
5045 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5046 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5047 if test $ac_cv_lib_BSD_main = yes; then
5048   cat >>confdefs.h <<_ACEOF
5049 #define HAVE_LIBBSD 1
5050 _ACEOF
5051
5052   LIBS="-lBSD $LIBS"
5053
5054 fi
5055
5056
5057 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5058 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5059 if test "${ac_cv_lib_gen_main+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   ac_check_lib_save_LIBS=$LIBS
5063 LIBS="-lgen  $LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5065 #line $LINENO "configure"
5066 #include "confdefs.h"
5067
5068
5069 #ifdef F77_DUMMY_MAIN
5070 #  ifdef __cplusplus
5071      extern "C"
5072 #  endif
5073    int F77_DUMMY_MAIN() { return 1; }
5074 #endif
5075 int
5076 main ()
5077 {
5078 main ();
5079   ;
5080   return 0;
5081 }
5082 _ACEOF
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085   (eval $ac_link) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } &&
5089          { ac_try='test -s conftest$ac_exeext'
5090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091   (eval $ac_try) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); }; }; then
5095   ac_cv_lib_gen_main=yes
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 ac_cv_lib_gen_main=no
5100 fi
5101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5102 LIBS=$ac_check_lib_save_LIBS
5103 fi
5104 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5105 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5106 if test $ac_cv_lib_gen_main = yes; then
5107   cat >>confdefs.h <<_ACEOF
5108 #define HAVE_LIBGEN 1
5109 _ACEOF
5110
5111   LIBS="-lgen $LIBS"
5112
5113 fi
5114
5115
5116 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5117 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5118 if test "${ac_cv_lib_PW_main+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121   ac_check_lib_save_LIBS=$LIBS
5122 LIBS="-lPW  $LIBS"
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 #include "confdefs.h"
5126
5127
5128 #ifdef F77_DUMMY_MAIN
5129 #  ifdef __cplusplus
5130      extern "C"
5131 #  endif
5132    int F77_DUMMY_MAIN() { return 1; }
5133 #endif
5134 int
5135 main ()
5136 {
5137 main ();
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest.$ac_objext conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144   (eval $ac_link) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } &&
5148          { ac_try='test -s conftest$ac_exeext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   ac_cv_lib_PW_main=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5158 ac_cv_lib_PW_main=no
5159 fi
5160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5164 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5165 if test $ac_cv_lib_PW_main = yes; then
5166   cat >>confdefs.h <<_ACEOF
5167 #define HAVE_LIBPW 1
5168 _ACEOF
5169
5170   LIBS="-lPW $LIBS"
5171
5172 fi
5173
5174
5175 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5176 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5177 if test "${ac_cv_lib_resolv_main+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-lresolv  $LIBS"
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 #include "confdefs.h"
5185
5186
5187 #ifdef F77_DUMMY_MAIN
5188 #  ifdef __cplusplus
5189      extern "C"
5190 #  endif
5191    int F77_DUMMY_MAIN() { return 1; }
5192 #endif
5193 int
5194 main ()
5195 {
5196 main ();
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203   (eval $ac_link) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -s conftest$ac_exeext'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; }; then
5213   ac_cv_lib_resolv_main=yes
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5217 ac_cv_lib_resolv_main=no
5218 fi
5219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5220 LIBS=$ac_check_lib_save_LIBS
5221 fi
5222 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5223 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5224 if test $ac_cv_lib_resolv_main = yes; then
5225   cat >>confdefs.h <<_ACEOF
5226 #define HAVE_LIBRESOLV 1
5227 _ACEOF
5228
5229   LIBS="-lresolv $LIBS"
5230
5231 fi
5232
5233 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5234 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5235 if test "${ac_cv_search_getopt_long+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   ac_func_search_save_LIBS=$LIBS
5239 ac_cv_search_getopt_long=no
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243
5244 /* Override any gcc2 internal prototype to avoid an error.  */
5245 #ifdef __cplusplus
5246 extern "C"
5247 #endif
5248 /* We use char because int might match the return type of a gcc2
5249    builtin and then its argument prototype would still apply.  */
5250 char getopt_long ();
5251 #ifdef F77_DUMMY_MAIN
5252 #  ifdef __cplusplus
5253      extern "C"
5254 #  endif
5255    int F77_DUMMY_MAIN() { return 1; }
5256 #endif
5257 int
5258 main ()
5259 {
5260 getopt_long ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267   (eval $ac_link) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } &&
5271          { ac_try='test -s conftest$ac_exeext'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; }; then
5277   ac_cv_search_getopt_long="none required"
5278 else
5279   echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 fi
5282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5283 if test "$ac_cv_search_getopt_long" = no; then
5284   for ac_lib in getopt gnugetopt; do
5285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5286     cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 #include "confdefs.h"
5289
5290 /* Override any gcc2 internal prototype to avoid an error.  */
5291 #ifdef __cplusplus
5292 extern "C"
5293 #endif
5294 /* We use char because int might match the return type of a gcc2
5295    builtin and then its argument prototype would still apply.  */
5296 char getopt_long ();
5297 #ifdef F77_DUMMY_MAIN
5298 #  ifdef __cplusplus
5299      extern "C"
5300 #  endif
5301    int F77_DUMMY_MAIN() { return 1; }
5302 #endif
5303 int
5304 main ()
5305 {
5306 getopt_long ();
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313   (eval $ac_link) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -s conftest$ac_exeext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_cv_search_getopt_long="-l$ac_lib"
5324 break
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 fi
5329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330   done
5331 fi
5332 LIBS=$ac_func_search_save_LIBS
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5335 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5336 if test "$ac_cv_search_getopt_long" != no; then
5337   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5338
5339 fi
5340
5341 # QNX:
5342
5343 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5344 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5345 if test "${ac_cv_lib_unix_main+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-lunix  $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 #line $LINENO "configure"
5352 #include "confdefs.h"
5353
5354
5355 #ifdef F77_DUMMY_MAIN
5356 #  ifdef __cplusplus
5357      extern "C"
5358 #  endif
5359    int F77_DUMMY_MAIN() { return 1; }
5360 #endif
5361 int
5362 main ()
5363 {
5364 main ();
5365   ;
5366   return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5371   (eval $ac_link) 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } &&
5375          { ac_try='test -s conftest$ac_exeext'
5376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377   (eval $ac_try) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); }; }; then
5381   ac_cv_lib_unix_main=yes
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5385 ac_cv_lib_unix_main=no
5386 fi
5387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5391 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5392 if test $ac_cv_lib_unix_main = yes; then
5393   cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBUNIX 1
5395 _ACEOF
5396
5397   LIBS="-lunix $LIBS"
5398
5399 fi
5400
5401 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5402 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5403 if test "${ac_cv_search_crypt+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   ac_func_search_save_LIBS=$LIBS
5407 ac_cv_search_crypt=no
5408 cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5411
5412 /* Override any gcc2 internal prototype to avoid an error.  */
5413 #ifdef __cplusplus
5414 extern "C"
5415 #endif
5416 /* We use char because int might match the return type of a gcc2
5417    builtin and then its argument prototype would still apply.  */
5418 char crypt ();
5419 #ifdef F77_DUMMY_MAIN
5420 #  ifdef __cplusplus
5421      extern "C"
5422 #  endif
5423    int F77_DUMMY_MAIN() { return 1; }
5424 #endif
5425 int
5426 main ()
5427 {
5428 crypt ();
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435   (eval $ac_link) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -s conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   ac_cv_search_crypt="none required"
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5449 fi
5450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 if test "$ac_cv_search_crypt" = no; then
5452   for ac_lib in crypt; do
5453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5454     cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 #include "confdefs.h"
5457
5458 /* Override any gcc2 internal prototype to avoid an error.  */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 /* We use char because int might match the return type of a gcc2
5463    builtin and then its argument prototype would still apply.  */
5464 char crypt ();
5465 #ifdef F77_DUMMY_MAIN
5466 #  ifdef __cplusplus
5467      extern "C"
5468 #  endif
5469    int F77_DUMMY_MAIN() { return 1; }
5470 #endif
5471 int
5472 main ()
5473 {
5474 crypt ();
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481   (eval $ac_link) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } &&
5485          { ac_try='test -s conftest$ac_exeext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_search_crypt="-l$ac_lib"
5492 break
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 fi
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498   done
5499 fi
5500 LIBS=$ac_func_search_save_LIBS
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5503 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5504 if test "$ac_cv_search_crypt" != no; then
5505   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5506
5507 fi
5508
5509 # BeOS:
5510
5511 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5512 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5513 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-lbind  $LIBS"
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521
5522 /* Override any gcc2 internal prototype to avoid an error.  */
5523 #ifdef __cplusplus
5524 extern "C"
5525 #endif
5526 /* We use char because int might match the return type of a gcc2
5527    builtin and then its argument prototype would still apply.  */
5528 char __inet_ntoa ();
5529 #ifdef F77_DUMMY_MAIN
5530 #  ifdef __cplusplus
5531      extern "C"
5532 #  endif
5533    int F77_DUMMY_MAIN() { return 1; }
5534 #endif
5535 int
5536 main ()
5537 {
5538 __inet_ntoa ();
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545   (eval $ac_link) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -s conftest$ac_exeext'
5550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; }; then
5555   ac_cv_lib_bind___inet_ntoa=yes
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_bind___inet_ntoa=no
5560 fi
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5563 fi
5564 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5565 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5566 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5567   cat >>confdefs.h <<_ACEOF
5568 #define HAVE_LIBBIND 1
5569 _ACEOF
5570
5571   LIBS="-lbind $LIBS"
5572
5573 fi
5574
5575 # Solaris:
5576 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5577 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5578 if test "${ac_cv_search_fdatasync+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_func_search_save_LIBS=$LIBS
5582 ac_cv_search_fdatasync=no
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586
5587 /* Override any gcc2 internal prototype to avoid an error.  */
5588 #ifdef __cplusplus
5589 extern "C"
5590 #endif
5591 /* We use char because int might match the return type of a gcc2
5592    builtin and then its argument prototype would still apply.  */
5593 char fdatasync ();
5594 #ifdef F77_DUMMY_MAIN
5595 #  ifdef __cplusplus
5596      extern "C"
5597 #  endif
5598    int F77_DUMMY_MAIN() { return 1; }
5599 #endif
5600 int
5601 main ()
5602 {
5603 fdatasync ();
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610   (eval $ac_link) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -s conftest$ac_exeext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_search_fdatasync="none required"
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 fi
5625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 if test "$ac_cv_search_fdatasync" = no; then
5627   for ac_lib in rt posix4; do
5628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5629     cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5631 #include "confdefs.h"
5632
5633 /* Override any gcc2 internal prototype to avoid an error.  */
5634 #ifdef __cplusplus
5635 extern "C"
5636 #endif
5637 /* We use char because int might match the return type of a gcc2
5638    builtin and then its argument prototype would still apply.  */
5639 char fdatasync ();
5640 #ifdef F77_DUMMY_MAIN
5641 #  ifdef __cplusplus
5642      extern "C"
5643 #  endif
5644    int F77_DUMMY_MAIN() { return 1; }
5645 #endif
5646 int
5647 main ()
5648 {
5649 fdatasync ();
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656   (eval $ac_link) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -s conftest$ac_exeext'
5661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662   (eval $ac_try) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; }; then
5666   ac_cv_search_fdatasync="-l$ac_lib"
5667 break
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 fi
5672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673   done
5674 fi
5675 LIBS=$ac_func_search_save_LIBS
5676 fi
5677 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5678 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5679 if test "$ac_cv_search_fdatasync" != no; then
5680   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5681
5682 fi
5683
5684 # Cygwin:
5685
5686 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5687 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5688 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   ac_check_lib_save_LIBS=$LIBS
5692 LIBS="-lcygipc  $LIBS"
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line $LINENO "configure"
5695 #include "confdefs.h"
5696
5697 /* Override any gcc2 internal prototype to avoid an error.  */
5698 #ifdef __cplusplus
5699 extern "C"
5700 #endif
5701 /* We use char because int might match the return type of a gcc2
5702    builtin and then its argument prototype would still apply.  */
5703 char shmget ();
5704 #ifdef F77_DUMMY_MAIN
5705 #  ifdef __cplusplus
5706      extern "C"
5707 #  endif
5708    int F77_DUMMY_MAIN() { return 1; }
5709 #endif
5710 int
5711 main ()
5712 {
5713 shmget ();
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720   (eval $ac_link) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -s conftest$ac_exeext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   ac_cv_lib_cygipc_shmget=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 ac_cv_lib_cygipc_shmget=no
5735 fi
5736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5737 LIBS=$ac_check_lib_save_LIBS
5738 fi
5739 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5740 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5741 if test $ac_cv_lib_cygipc_shmget = yes; then
5742   cat >>confdefs.h <<_ACEOF
5743 #define HAVE_LIBCYGIPC 1
5744 _ACEOF
5745
5746   LIBS="-lcygipc $LIBS"
5747
5748 fi
5749
5750
5751 if test "$with_readline" = yes; then
5752
5753 echo "$as_me:$LINENO: checking for readline" >&5
5754 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5755
5756 if test "${pgac_cv_check_readline+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   pgac_cv_check_readline=no
5760 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5761   for pgac_rllib in -lreadline -ledit ; do
5762     pgac_save_LIBS=$LIBS
5763     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5764     cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5767
5768 /* Override any gcc2 internal prototype to avoid an error.  */
5769 #ifdef __cplusplus
5770 extern "C"
5771 #endif
5772 /* We use char because int might match the return type of a gcc2
5773    builtin and then its argument prototype would still apply.  */
5774 char readline ();
5775 #ifdef F77_DUMMY_MAIN
5776 #  ifdef __cplusplus
5777      extern "C"
5778 #  endif
5779    int F77_DUMMY_MAIN() { return 1; }
5780 #endif
5781 int
5782 main ()
5783 {
5784 readline ();
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801
5802       # NetBSD and OpenBSD have a broken linker that does not
5803       # recognize dependent libraries
5804       case $host_os in netbsd* | openbsd* )
5805         case $pgac_lib in
5806           *curses*) ;;
5807           *) pgac_lib=" -lcurses" ;;
5808         esac
5809       esac
5810
5811       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5812       break 2
5813
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 fi
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819     LIBS=$pgac_save_LIBS
5820   done
5821 done
5822 LIBS=$pgac_save_LIBS
5823
5824 fi
5825
5826 if test "$pgac_cv_check_readline" != no ; then
5827
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_LIBREADLINE 1
5830 _ACEOF
5831
5832   LIBS="$pgac_cv_check_readline $LIBS"
5833   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5834 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5835 else
5836   echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838 fi
5839   if test x"$pgac_cv_check_readline" = x"no"; then
5840     { { echo "$as_me:$LINENO: error: readline library not found
5841 If you have readline already installed, see config.log for details on the
5842 failure.  It is possible the compiler isn't looking in the proper directory.
5843 Use --without-readline to disable readline support." >&5
5844 echo "$as_me: error: readline library not found
5845 If you have readline already installed, see config.log for details on the
5846 failure.  It is possible the compiler isn't looking in the proper directory.
5847 Use --without-readline to disable readline support." >&2;}
5848    { (exit 1); exit 1; }; }
5849   fi
5850 fi
5851
5852 if test "$with_zlib" = yes; then
5853
5854 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5855 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5856 if test "${ac_cv_lib_z_inflate+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   ac_check_lib_save_LIBS=$LIBS
5860 LIBS="-lz  $LIBS"
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5864
5865 /* Override any gcc2 internal prototype to avoid an error.  */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 /* We use char because int might match the return type of a gcc2
5870    builtin and then its argument prototype would still apply.  */
5871 char inflate ();
5872 #ifdef F77_DUMMY_MAIN
5873 #  ifdef __cplusplus
5874      extern "C"
5875 #  endif
5876    int F77_DUMMY_MAIN() { return 1; }
5877 #endif
5878 int
5879 main ()
5880 {
5881 inflate ();
5882   ;
5883   return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888   (eval $ac_link) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -s conftest$ac_exeext'
5893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894   (eval $ac_try) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898   ac_cv_lib_z_inflate=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5902 ac_cv_lib_z_inflate=no
5903 fi
5904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5906 fi
5907 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5908 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5909 if test $ac_cv_lib_z_inflate = yes; then
5910   cat >>confdefs.h <<_ACEOF
5911 #define HAVE_LIBZ 1
5912 _ACEOF
5913
5914   LIBS="-lz $LIBS"
5915
5916 else
5917   { { echo "$as_me:$LINENO: error: zlib library not found
5918 If you have zlib already installed, see config.log for details on the
5919 failure.  It is possible the compiler isn't looking in the proper directory.
5920 Use --without-zlib to disable zlib support." >&5
5921 echo "$as_me: error: zlib library not found
5922 If you have zlib already installed, see config.log for details on the
5923 failure.  It is possible the compiler isn't looking in the proper directory.
5924 Use --without-zlib to disable zlib support." >&2;}
5925    { (exit 1); exit 1; }; }
5926 fi
5927
5928 fi
5929
5930 if test "$with_krb4" = yes ; then
5931
5932 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5933 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5934 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   ac_check_lib_save_LIBS=$LIBS
5938 LIBS="-ldes  $LIBS"
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5942
5943 /* Override any gcc2 internal prototype to avoid an error.  */
5944 #ifdef __cplusplus
5945 extern "C"
5946 #endif
5947 /* We use char because int might match the return type of a gcc2
5948    builtin and then its argument prototype would still apply.  */
5949 char des_encrypt ();
5950 #ifdef F77_DUMMY_MAIN
5951 #  ifdef __cplusplus
5952      extern "C"
5953 #  endif
5954    int F77_DUMMY_MAIN() { return 1; }
5955 #endif
5956 int
5957 main ()
5958 {
5959 des_encrypt ();
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966   (eval $ac_link) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } &&
5970          { ac_try='test -s conftest$ac_exeext'
5971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972   (eval $ac_try) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; }; then
5976   ac_cv_lib_des_des_encrypt=yes
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5980 ac_cv_lib_des_des_encrypt=no
5981 fi
5982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5983 LIBS=$ac_check_lib_save_LIBS
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5986 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5987 if test $ac_cv_lib_des_des_encrypt = yes; then
5988   cat >>confdefs.h <<_ACEOF
5989 #define HAVE_LIBDES 1
5990 _ACEOF
5991
5992   LIBS="-ldes $LIBS"
5993
5994 else
5995   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5996 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5997    { (exit 1); exit 1; }; }
5998 fi
5999
6000
6001 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6002 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6003 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   ac_check_lib_save_LIBS=$LIBS
6007 LIBS="-lkrb  $LIBS"
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 #include "confdefs.h"
6011
6012 /* Override any gcc2 internal prototype to avoid an error.  */
6013 #ifdef __cplusplus
6014 extern "C"
6015 #endif
6016 /* We use char because int might match the return type of a gcc2
6017    builtin and then its argument prototype would still apply.  */
6018 char krb_sendauth ();
6019 #ifdef F77_DUMMY_MAIN
6020 #  ifdef __cplusplus
6021      extern "C"
6022 #  endif
6023    int F77_DUMMY_MAIN() { return 1; }
6024 #endif
6025 int
6026 main ()
6027 {
6028 krb_sendauth ();
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035   (eval $ac_link) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); } &&
6039          { ac_try='test -s conftest$ac_exeext'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; }; then
6045   ac_cv_lib_krb_krb_sendauth=yes
6046 else
6047   echo "$as_me: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 ac_cv_lib_krb_krb_sendauth=no
6050 fi
6051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6053 fi
6054 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6055 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6056 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6057   cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LIBKRB 1
6059 _ACEOF
6060
6061   LIBS="-lkrb $LIBS"
6062
6063 else
6064   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6065 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6066    { (exit 1); exit 1; }; }
6067 fi
6068
6069 fi
6070
6071 if test "$with_krb5" = yes ; then
6072   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6073 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6074 if test "${ac_cv_search_com_err+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   ac_func_search_save_LIBS=$LIBS
6078 ac_cv_search_com_err=no
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 #include "confdefs.h"
6082
6083 /* Override any gcc2 internal prototype to avoid an error.  */
6084 #ifdef __cplusplus
6085 extern "C"
6086 #endif
6087 /* We use char because int might match the return type of a gcc2
6088    builtin and then its argument prototype would still apply.  */
6089 char com_err ();
6090 #ifdef F77_DUMMY_MAIN
6091 #  ifdef __cplusplus
6092      extern "C"
6093 #  endif
6094    int F77_DUMMY_MAIN() { return 1; }
6095 #endif
6096 int
6097 main ()
6098 {
6099 com_err ();
6100   ;
6101   return 0;
6102 }
6103 _ACEOF
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106   (eval $ac_link) 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } &&
6110          { ac_try='test -s conftest$ac_exeext'
6111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112   (eval $ac_try) 2>&5
6113   ac_status=$?
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); }; }; then
6116   ac_cv_search_com_err="none required"
6117 else
6118   echo "$as_me: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 fi
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 if test "$ac_cv_search_com_err" = no; then
6123   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6125     cat >conftest.$ac_ext <<_ACEOF
6126 #line $LINENO "configure"
6127 #include "confdefs.h"
6128
6129 /* Override any gcc2 internal prototype to avoid an error.  */
6130 #ifdef __cplusplus
6131 extern "C"
6132 #endif
6133 /* We use char because int might match the return type of a gcc2
6134    builtin and then its argument prototype would still apply.  */
6135 char com_err ();
6136 #ifdef F77_DUMMY_MAIN
6137 #  ifdef __cplusplus
6138      extern "C"
6139 #  endif
6140    int F77_DUMMY_MAIN() { return 1; }
6141 #endif
6142 int
6143 main ()
6144 {
6145 com_err ();
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152   (eval $ac_link) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } &&
6156          { ac_try='test -s conftest$ac_exeext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   ac_cv_search_com_err="-l$ac_lib"
6163 break
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 fi
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169   done
6170 fi
6171 LIBS=$ac_func_search_save_LIBS
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6174 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6175 if test "$ac_cv_search_com_err" != no; then
6176   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6177
6178 else
6179   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6180 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6181    { (exit 1); exit 1; }; }
6182 fi
6183
6184   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6185 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6186 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   ac_func_search_save_LIBS=$LIBS
6190 ac_cv_search_krb5_encrypt=no
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6194
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 /* We use char because int might match the return type of a gcc2
6200    builtin and then its argument prototype would still apply.  */
6201 char krb5_encrypt ();
6202 #ifdef F77_DUMMY_MAIN
6203 #  ifdef __cplusplus
6204      extern "C"
6205 #  endif
6206    int F77_DUMMY_MAIN() { return 1; }
6207 #endif
6208 int
6209 main ()
6210 {
6211 krb5_encrypt ();
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218   (eval $ac_link) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -s conftest$ac_exeext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_search_krb5_encrypt="none required"
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 fi
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_krb5_encrypt" = no; then
6235   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6237     cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6240
6241 /* Override any gcc2 internal prototype to avoid an error.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 /* We use char because int might match the return type of a gcc2
6246    builtin and then its argument prototype would still apply.  */
6247 char krb5_encrypt ();
6248 #ifdef F77_DUMMY_MAIN
6249 #  ifdef __cplusplus
6250      extern "C"
6251 #  endif
6252    int F77_DUMMY_MAIN() { return 1; }
6253 #endif
6254 int
6255 main ()
6256 {
6257 krb5_encrypt ();
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264   (eval $ac_link) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -s conftest$ac_exeext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_cv_search_krb5_encrypt="-l$ac_lib"
6275 break
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281   done
6282 fi
6283 LIBS=$ac_func_search_save_LIBS
6284 fi
6285 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6286 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6287 if test "$ac_cv_search_krb5_encrypt" != no; then
6288   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6289
6290 else
6291   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6292 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6293    { (exit 1); exit 1; }; }
6294 fi
6295
6296   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6297 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6298 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   ac_func_search_save_LIBS=$LIBS
6302 ac_cv_search_krb5_sendauth=no
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line $LINENO "configure"
6305 #include "confdefs.h"
6306
6307 /* Override any gcc2 internal prototype to avoid an error.  */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 /* We use char because int might match the return type of a gcc2
6312    builtin and then its argument prototype would still apply.  */
6313 char krb5_sendauth ();
6314 #ifdef F77_DUMMY_MAIN
6315 #  ifdef __cplusplus
6316      extern "C"
6317 #  endif
6318    int F77_DUMMY_MAIN() { return 1; }
6319 #endif
6320 int
6321 main ()
6322 {
6323 krb5_sendauth ();
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330   (eval $ac_link) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } &&
6334          { ac_try='test -s conftest$ac_exeext'
6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336   (eval $ac_try) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; }; then
6340   ac_cv_search_krb5_sendauth="none required"
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 fi
6345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 if test "$ac_cv_search_krb5_sendauth" = no; then
6347   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6349     cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358    builtin and then its argument prototype would still apply.  */
6359 char krb5_sendauth ();
6360 #ifdef F77_DUMMY_MAIN
6361 #  ifdef __cplusplus
6362      extern "C"
6363 #  endif
6364    int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6366 int
6367 main ()
6368 {
6369 krb5_sendauth ();
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest$ac_exeext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_search_krb5_sendauth="-l$ac_lib"
6387 break
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 fi
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393   done
6394 fi
6395 LIBS=$ac_func_search_save_LIBS
6396 fi
6397 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6398 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6399 if test "$ac_cv_search_krb5_sendauth" != no; then
6400   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6401
6402 else
6403   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6404 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6405    { (exit 1); exit 1; }; }
6406 fi
6407
6408 fi
6409
6410 if test "$with_openssl" = yes ; then
6411
6412 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6413 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6414 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-lcrypto  $LIBS"
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6421 #include "confdefs.h"
6422
6423 /* Override any gcc2 internal prototype to avoid an error.  */
6424 #ifdef __cplusplus
6425 extern "C"
6426 #endif
6427 /* We use char because int might match the return type of a gcc2
6428    builtin and then its argument prototype would still apply.  */
6429 char CRYPTO_new_ex_data ();
6430 #ifdef F77_DUMMY_MAIN
6431 #  ifdef __cplusplus
6432      extern "C"
6433 #  endif
6434    int F77_DUMMY_MAIN() { return 1; }
6435 #endif
6436 int
6437 main ()
6438 {
6439 CRYPTO_new_ex_data ();
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446   (eval $ac_link) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } &&
6450          { ac_try='test -s conftest$ac_exeext'
6451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452   (eval $ac_try) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; }; then
6456   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6461 fi
6462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6464 fi
6465 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6466 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6467 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6468   cat >>confdefs.h <<_ACEOF
6469 #define HAVE_LIBCRYPTO 1
6470 _ACEOF
6471
6472   LIBS="-lcrypto $LIBS"
6473
6474 else
6475   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6476 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6477    { (exit 1); exit 1; }; }
6478 fi
6479
6480
6481 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6482 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6483 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   ac_check_lib_save_LIBS=$LIBS
6487 LIBS="-lssl  $LIBS"
6488 cat >conftest.$ac_ext <<_ACEOF
6489 #line $LINENO "configure"
6490 #include "confdefs.h"
6491
6492 /* Override any gcc2 internal prototype to avoid an error.  */
6493 #ifdef __cplusplus
6494 extern "C"
6495 #endif
6496 /* We use char because int might match the return type of a gcc2
6497    builtin and then its argument prototype would still apply.  */
6498 char SSL_library_init ();
6499 #ifdef F77_DUMMY_MAIN
6500 #  ifdef __cplusplus
6501      extern "C"
6502 #  endif
6503    int F77_DUMMY_MAIN() { return 1; }
6504 #endif
6505 int
6506 main ()
6507 {
6508 SSL_library_init ();
6509   ;
6510   return 0;
6511 }
6512 _ACEOF
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515   (eval $ac_link) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } &&
6519          { ac_try='test -s conftest$ac_exeext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_cv_lib_ssl_SSL_library_init=yes
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 ac_cv_lib_ssl_SSL_library_init=no
6530 fi
6531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6532 LIBS=$ac_check_lib_save_LIBS
6533 fi
6534 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6535 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6536 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6537   cat >>confdefs.h <<_ACEOF
6538 #define HAVE_LIBSSL 1
6539 _ACEOF
6540
6541   LIBS="-lssl $LIBS"
6542
6543 else
6544   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6545 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6546    { (exit 1); exit 1; }; }
6547 fi
6548
6549 fi
6550
6551 if test "$with_pam" = yes ; then
6552
6553 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6554 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6555 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   ac_check_lib_save_LIBS=$LIBS
6559 LIBS="-lpam  $LIBS"
6560 cat >conftest.$ac_ext <<_ACEOF
6561 #line $LINENO "configure"
6562 #include "confdefs.h"
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char pam_start ();
6571 #ifdef F77_DUMMY_MAIN
6572 #  ifdef __cplusplus
6573      extern "C"
6574 #  endif
6575    int F77_DUMMY_MAIN() { return 1; }
6576 #endif
6577 int
6578 main ()
6579 {
6580 pam_start ();
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587   (eval $ac_link) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } &&
6591          { ac_try='test -s conftest$ac_exeext'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; }; then
6597   ac_cv_lib_pam_pam_start=yes
6598 else
6599   echo "$as_me: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 ac_cv_lib_pam_pam_start=no
6602 fi
6603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$ac_check_lib_save_LIBS
6605 fi
6606 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6607 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6608 if test $ac_cv_lib_pam_pam_start = yes; then
6609   cat >>confdefs.h <<_ACEOF
6610 #define HAVE_LIBPAM 1
6611 _ACEOF
6612
6613   LIBS="-lpam $LIBS"
6614
6615 else
6616   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6617 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6618    { (exit 1); exit 1; }; }
6619 fi
6620
6621 fi
6622
6623
6624 ##
6625 ## Header files
6626 ##
6627
6628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6630 if test "${ac_cv_header_stdc+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   cat >conftest.$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6636 #include <stdlib.h>
6637 #include <stdarg.h>
6638 #include <string.h>
6639 #include <float.h>
6640
6641 _ACEOF
6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6644   ac_status=$?
6645   egrep -v '^ *\+' conftest.er1 >conftest.err
6646   rm -f conftest.er1
6647   cat conftest.err >&5
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); } >/dev/null; then
6650   if test -s conftest.err; then
6651     ac_cpp_err=$ac_c_preproc_warn_flag
6652   else
6653     ac_cpp_err=
6654   fi
6655 else
6656   ac_cpp_err=yes
6657 fi
6658 if test -z "$ac_cpp_err"; then
6659   ac_cv_header_stdc=yes
6660 else
6661   echo "$as_me: failed program was:" >&5
6662   cat conftest.$ac_ext >&5
6663   ac_cv_header_stdc=no
6664 fi
6665 rm -f conftest.err conftest.$ac_ext
6666
6667 if test $ac_cv_header_stdc = yes; then
6668   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6669   cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6672 #include <string.h>
6673
6674 _ACEOF
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676   egrep "memchr" >/dev/null 2>&1; then
6677   :
6678 else
6679   ac_cv_header_stdc=no
6680 fi
6681 rm -f conftest*
6682
6683 fi
6684
6685 if test $ac_cv_header_stdc = yes; then
6686   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6687   cat >conftest.$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6689 #include "confdefs.h"
6690 #include <stdlib.h>
6691
6692 _ACEOF
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694   egrep "free" >/dev/null 2>&1; then
6695   :
6696 else
6697   ac_cv_header_stdc=no
6698 fi
6699 rm -f conftest*
6700
6701 fi
6702
6703 if test $ac_cv_header_stdc = yes; then
6704   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6705   if test "$cross_compiling" = yes; then
6706   :
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 #include "confdefs.h"
6711 #include <ctype.h>
6712 #if ((' ' & 0x0FF) == 0x020)
6713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6715 #else
6716 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6717                      || ('j' <= (c) && (c) <= 'r') \
6718                      || ('s' <= (c) && (c) <= 'z'))
6719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6720 #endif
6721
6722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6723 int
6724 main ()
6725 {
6726   int i;
6727   for (i = 0; i < 256; i++)
6728     if (XOR (islower (i), ISLOWER (i))
6729         || toupper (i) != TOUPPER (i))
6730       exit(2);
6731   exit (0);
6732 }
6733 _ACEOF
6734 rm -f conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736   (eval $ac_link) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; }; then
6745   :
6746 else
6747   echo "$as_me: program exited with status $ac_status" >&5
6748 echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 ( exit $ac_status )
6751 ac_cv_header_stdc=no
6752 fi
6753 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6754 fi
6755 fi
6756 fi
6757 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6758 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6759 if test $ac_cv_header_stdc = yes; then
6760
6761 cat >>confdefs.h <<\_ACEOF
6762 #define STDC_HEADERS 1
6763 _ACEOF
6764
6765 fi
6766
6767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6778                   inttypes.h stdint.h unistd.h
6779 do
6780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
6782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6789 $ac_includes_default
6790
6791 #include <$ac_header>
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795   (eval $ac_compile) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest.$ac_objext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   eval "$as_ac_Header=yes"
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 eval "$as_ac_Header=no"
6810 fi
6811 rm -f conftest.$ac_objext conftest.$ac_ext
6812 fi
6813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6816   cat >>confdefs.h <<_ACEOF
6817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6818 _ACEOF
6819
6820 fi
6821
6822 done
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 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
6844 do
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847   echo "$as_me:$LINENO: checking for $ac_header" >&5
6848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 fi
6852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6854 else
6855   # Is the header compilable?
6856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line $LINENO "configure"
6860 #include "confdefs.h"
6861 $ac_includes_default
6862 #include <$ac_header>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866   (eval $ac_compile) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest.$ac_objext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_header_compiler=yes
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 ac_header_compiler=no
6881 fi
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6884 echo "${ECHO_T}$ac_header_compiler" >&6
6885
6886 # Is the header present?
6887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892 #include <$ac_header>
6893 _ACEOF
6894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6896   ac_status=$?
6897   egrep -v '^ *\+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } >/dev/null; then
6902   if test -s conftest.err; then
6903     ac_cpp_err=$ac_c_preproc_warn_flag
6904   else
6905     ac_cpp_err=
6906   fi
6907 else
6908   ac_cpp_err=yes
6909 fi
6910 if test -z "$ac_cpp_err"; then
6911   ac_header_preproc=yes
6912 else
6913   echo "$as_me: failed program was:" >&5
6914   cat conftest.$ac_ext >&5
6915   ac_header_preproc=no
6916 fi
6917 rm -f conftest.err conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6919 echo "${ECHO_T}$ac_header_preproc" >&6
6920
6921 # So?  What about this header?
6922 case $ac_header_compiler:$ac_header_preproc in
6923   yes:no )
6924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6928   no:yes )
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6931     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6935 esac
6936 echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   eval "$as_ac_Header=$ac_header_preproc"
6942 fi
6943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945
6946 fi
6947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6948   cat >>confdefs.h <<_ACEOF
6949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6950 _ACEOF
6951
6952 fi
6953
6954 done
6955
6956
6957 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6958 # netinet/in.h is included first.
6959
6960 for ac_header in netinet/in.h
6961 do
6962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964   echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 fi
6969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6971 else
6972   # Is the header compilable?
6973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6975 cat >conftest.$ac_ext <<_ACEOF
6976 #line $LINENO "configure"
6977 #include "confdefs.h"
6978 $ac_includes_default
6979 #include <$ac_header>
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983   (eval $ac_compile) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -s conftest.$ac_objext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_header_compiler=yes
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ac_header_compiler=no
6998 fi
6999 rm -f conftest.$ac_objext conftest.$ac_ext
7000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7001 echo "${ECHO_T}$ac_header_compiler" >&6
7002
7003 # Is the header present?
7004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009 #include <$ac_header>
7010 _ACEOF
7011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7013   ac_status=$?
7014   egrep -v '^ *\+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } >/dev/null; then
7019   if test -s conftest.err; then
7020     ac_cpp_err=$ac_c_preproc_warn_flag
7021   else
7022     ac_cpp_err=
7023   fi
7024 else
7025   ac_cpp_err=yes
7026 fi
7027 if test -z "$ac_cpp_err"; then
7028   ac_header_preproc=yes
7029 else
7030   echo "$as_me: failed program was:" >&5
7031   cat conftest.$ac_ext >&5
7032   ac_header_preproc=no
7033 fi
7034 rm -f conftest.err conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7036 echo "${ECHO_T}$ac_header_preproc" >&6
7037
7038 # So?  What about this header?
7039 case $ac_header_compiler:$ac_header_preproc in
7040   yes:no )
7041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7045   no:yes )
7046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7048     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7052 esac
7053 echo "$as_me:$LINENO: checking for $ac_header" >&5
7054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   eval "$as_ac_Header=$ac_header_preproc"
7059 fi
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062
7063 fi
7064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7065   cat >>confdefs.h <<_ACEOF
7066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7067 _ACEOF
7068
7069 fi
7070
7071 done
7072
7073
7074 for ac_header in netinet/tcp.h
7075 do
7076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7084 #include "confdefs.h"
7085 $ac_includes_default
7086 #ifdef HAVE_NETINET_IN_H
7087 #include <netinet/in.h>
7088 #endif
7089
7090
7091 #include <$ac_header>
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095   (eval $ac_compile) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } &&
7099          { ac_try='test -s conftest.$ac_objext'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   eval "$as_ac_Header=yes"
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 cat conftest.$ac_ext >&5
7109 eval "$as_ac_Header=no"
7110 fi
7111 rm -f conftest.$ac_objext conftest.$ac_ext
7112 fi
7113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116   cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 _ACEOF
7119
7120 fi
7121
7122 done
7123
7124
7125 if test "$with_readline" = yes; then
7126
7127 for ac_header in readline/readline.h
7128 do
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131   echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 fi
7136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138 else
7139   # Is the header compilable?
7140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7144 #include "confdefs.h"
7145 $ac_includes_default
7146 #include <$ac_header>
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); } &&
7154          { ac_try='test -s conftest.$ac_objext'
7155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156   (eval $ac_try) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); }; }; then
7160   ac_header_compiler=yes
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 ac_header_compiler=no
7165 fi
7166 rm -f conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7168 echo "${ECHO_T}$ac_header_compiler" >&6
7169
7170 # Is the header present?
7171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 #include "confdefs.h"
7176 #include <$ac_header>
7177 _ACEOF
7178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7180   ac_status=$?
7181   egrep -v '^ *\+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } >/dev/null; then
7186   if test -s conftest.err; then
7187     ac_cpp_err=$ac_c_preproc_warn_flag
7188   else
7189     ac_cpp_err=
7190   fi
7191 else
7192   ac_cpp_err=yes
7193 fi
7194 if test -z "$ac_cpp_err"; then
7195   ac_header_preproc=yes
7196 else
7197   echo "$as_me: failed program was:" >&5
7198   cat conftest.$ac_ext >&5
7199   ac_header_preproc=no
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7203 echo "${ECHO_T}$ac_header_preproc" >&6
7204
7205 # So?  What about this header?
7206 case $ac_header_compiler:$ac_header_preproc in
7207   yes:no )
7208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7212   no:yes )
7213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7215     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7219 esac
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   eval "$as_ac_Header=$ac_header_preproc"
7226 fi
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7229
7230 fi
7231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7232   cat >>confdefs.h <<_ACEOF
7233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 _ACEOF
7235
7236 else
7237
7238 for ac_header in readline.h
7239 do
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242   echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 fi
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7249 else
7250   # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 #include "confdefs.h"
7256 $ac_includes_default
7257 #include <$ac_header>
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261   (eval $ac_compile) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } &&
7265          { ac_try='test -s conftest.$ac_objext'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; }; then
7271   ac_header_compiler=yes
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 ac_header_compiler=no
7276 fi
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6
7280
7281 # Is the header present?
7282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 #include <$ac_header>
7288 _ACEOF
7289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7291   ac_status=$?
7292   egrep -v '^ *\+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } >/dev/null; then
7297   if test -s conftest.err; then
7298     ac_cpp_err=$ac_c_preproc_warn_flag
7299   else
7300     ac_cpp_err=
7301   fi
7302 else
7303   ac_cpp_err=yes
7304 fi
7305 if test -z "$ac_cpp_err"; then
7306   ac_header_preproc=yes
7307 else
7308   echo "$as_me: failed program was:" >&5
7309   cat conftest.$ac_ext >&5
7310   ac_header_preproc=no
7311 fi
7312 rm -f conftest.err conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7314 echo "${ECHO_T}$ac_header_preproc" >&6
7315
7316 # So?  What about this header?
7317 case $ac_header_compiler:$ac_header_preproc in
7318   yes:no )
7319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7323   no:yes )
7324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7326     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7330 esac
7331 echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   eval "$as_ac_Header=$ac_header_preproc"
7337 fi
7338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7340
7341 fi
7342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7343   cat >>confdefs.h <<_ACEOF
7344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345 _ACEOF
7346
7347 else
7348   { { echo "$as_me:$LINENO: error: readline header not found
7349 If you have readline already installed, see config.log for details on the
7350 failure.  It is possible the compiler isn't looking in the proper directory.
7351 Use --without-readline to disable readline support." >&5
7352 echo "$as_me: error: readline header not found
7353 If you have readline already installed, see config.log for details on the
7354 failure.  It is possible the compiler isn't looking in the proper directory.
7355 Use --without-readline to disable readline support." >&2;}
7356    { (exit 1); exit 1; }; }
7357 fi
7358
7359 done
7360
7361 fi
7362
7363 done
7364
7365
7366 for ac_header in readline/history.h
7367 do
7368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370   echo "$as_me:$LINENO: checking for $ac_header" >&5
7371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 fi
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7377 else
7378   # Is the header compilable?
7379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 $ac_includes_default
7385 #include <$ac_header>
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389   (eval $ac_compile) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); } &&
7393          { ac_try='test -s conftest.$ac_objext'
7394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395   (eval $ac_try) 2>&5
7396   ac_status=$?
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); }; }; then
7399   ac_header_compiler=yes
7400 else
7401   echo "$as_me: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7403 ac_header_compiler=no
7404 fi
7405 rm -f conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7407 echo "${ECHO_T}$ac_header_compiler" >&6
7408
7409 # Is the header present?
7410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 #include <$ac_header>
7416 _ACEOF
7417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7419   ac_status=$?
7420   egrep -v '^ *\+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } >/dev/null; then
7425   if test -s conftest.err; then
7426     ac_cpp_err=$ac_c_preproc_warn_flag
7427   else
7428     ac_cpp_err=
7429   fi
7430 else
7431   ac_cpp_err=yes
7432 fi
7433 if test -z "$ac_cpp_err"; then
7434   ac_header_preproc=yes
7435 else
7436   echo "$as_me: failed program was:" >&5
7437   cat conftest.$ac_ext >&5
7438   ac_header_preproc=no
7439 fi
7440 rm -f conftest.err conftest.$ac_ext
7441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7442 echo "${ECHO_T}$ac_header_preproc" >&6
7443
7444 # So?  What about this header?
7445 case $ac_header_compiler:$ac_header_preproc in
7446   yes:no )
7447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7451   no:yes )
7452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7454     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7458 esac
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   eval "$as_ac_Header=$ac_header_preproc"
7465 fi
7466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7468
7469 fi
7470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7471   cat >>confdefs.h <<_ACEOF
7472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7473 _ACEOF
7474
7475 else
7476
7477 for ac_header in history.h
7478 do
7479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481   echo "$as_me:$LINENO: checking for $ac_header" >&5
7482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 fi
7486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7488 else
7489   # Is the header compilable?
7490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495 $ac_includes_default
7496 #include <$ac_header>
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500   (eval $ac_compile) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); } &&
7504          { ac_try='test -s conftest.$ac_objext'
7505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506   (eval $ac_try) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); }; }; then
7510   ac_header_compiler=yes
7511 else
7512   echo "$as_me: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 ac_header_compiler=no
7515 fi
7516 rm -f conftest.$ac_objext conftest.$ac_ext
7517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7518 echo "${ECHO_T}$ac_header_compiler" >&6
7519
7520 # Is the header present?
7521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7523 cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 #include "confdefs.h"
7526 #include <$ac_header>
7527 _ACEOF
7528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7530   ac_status=$?
7531   egrep -v '^ *\+' conftest.er1 >conftest.err
7532   rm -f conftest.er1
7533   cat conftest.err >&5
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); } >/dev/null; then
7536   if test -s conftest.err; then
7537     ac_cpp_err=$ac_c_preproc_warn_flag
7538   else
7539     ac_cpp_err=
7540   fi
7541 else
7542   ac_cpp_err=yes
7543 fi
7544 if test -z "$ac_cpp_err"; then
7545   ac_header_preproc=yes
7546 else
7547   echo "$as_me: failed program was:" >&5
7548   cat conftest.$ac_ext >&5
7549   ac_header_preproc=no
7550 fi
7551 rm -f conftest.err conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7553 echo "${ECHO_T}$ac_header_preproc" >&6
7554
7555 # So?  What about this header?
7556 case $ac_header_compiler:$ac_header_preproc in
7557   yes:no )
7558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7562   no:yes )
7563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7565     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7569 esac
7570 echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   eval "$as_ac_Header=$ac_header_preproc"
7576 fi
7577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7579
7580 fi
7581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7582   cat >>confdefs.h <<_ACEOF
7583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7584 _ACEOF
7585
7586 else
7587   { { echo "$as_me:$LINENO: error: history header not found
7588 If you have readline already installed, see config.log for details on the
7589 failure.  It is possible the compiler isn't looking in the proper directory.
7590 Use --without-readline to disable readline support." >&5
7591 echo "$as_me: error: history header not found
7592 If you have readline already installed, see config.log for details on the
7593 failure.  It is possible the compiler isn't looking in the proper directory.
7594 Use --without-readline to disable readline support." >&2;}
7595    { (exit 1); exit 1; }; }
7596 fi
7597
7598 done
7599
7600 fi
7601
7602 done
7603
7604 fi
7605
7606 if test "$with_zlib" = yes; then
7607   if test "${ac_cv_header_zlib_h+set}" = set; then
7608   echo "$as_me:$LINENO: checking for zlib.h" >&5
7609 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7610 if test "${ac_cv_header_zlib_h+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 fi
7613 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7614 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7615 else
7616   # Is the header compilable?
7617 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7618 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7621 #include "confdefs.h"
7622 $ac_includes_default
7623 #include <zlib.h>
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627   (eval $ac_compile) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -s conftest.$ac_objext'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_header_compiler=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 ac_header_compiler=no
7642 fi
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7645 echo "${ECHO_T}$ac_header_compiler" >&6
7646
7647 # Is the header present?
7648 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7649 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7650 cat >conftest.$ac_ext <<_ACEOF
7651 #line $LINENO "configure"
7652 #include "confdefs.h"
7653 #include <zlib.h>
7654 _ACEOF
7655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7657   ac_status=$?
7658   egrep -v '^ *\+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } >/dev/null; then
7663   if test -s conftest.err; then
7664     ac_cpp_err=$ac_c_preproc_warn_flag
7665   else
7666     ac_cpp_err=
7667   fi
7668 else
7669   ac_cpp_err=yes
7670 fi
7671 if test -z "$ac_cpp_err"; then
7672   ac_header_preproc=yes
7673 else
7674   echo "$as_me: failed program was:" >&5
7675   cat conftest.$ac_ext >&5
7676   ac_header_preproc=no
7677 fi
7678 rm -f conftest.err conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680 echo "${ECHO_T}$ac_header_preproc" >&6
7681
7682 # So?  What about this header?
7683 case $ac_header_compiler:$ac_header_preproc in
7684   yes:no )
7685     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7686 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7688 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7689   no:yes )
7690     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7691 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7692     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7693 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7694     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7696 esac
7697 echo "$as_me:$LINENO: checking for zlib.h" >&5
7698 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7699 if test "${ac_cv_header_zlib_h+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   ac_cv_header_zlib_h=$ac_header_preproc
7703 fi
7704 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7705 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7706
7707 fi
7708 if test $ac_cv_header_zlib_h = yes; then
7709   :
7710 else
7711   { { echo "$as_me:$LINENO: error: zlib header not found
7712 If you have readline already installed, see config.log for details on the
7713 failure.  It is possible the compiler isn't looking in the proper directory.
7714 Use --without-zlib to disable zlib support." >&5
7715 echo "$as_me: error: zlib header not found
7716 If you have readline already installed, see config.log for details on the
7717 failure.  It is possible the compiler isn't looking in the proper directory.
7718 Use --without-zlib to disable zlib support." >&2;}
7719    { (exit 1); exit 1; }; }
7720 fi
7721
7722
7723 fi
7724
7725 if test "$with_krb4" = yes ; then
7726   if test "${ac_cv_header_krb_h+set}" = set; then
7727   echo "$as_me:$LINENO: checking for krb.h" >&5
7728 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7729 if test "${ac_cv_header_krb_h+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 fi
7732 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7733 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7734 else
7735   # Is the header compilable?
7736 echo "$as_me:$LINENO: checking krb.h usability" >&5
7737 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7739 #line $LINENO "configure"
7740 #include "confdefs.h"
7741 $ac_includes_default
7742 #include <krb.h>
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746   (eval $ac_compile) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -s conftest.$ac_objext'
7751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752   (eval $ac_try) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }; }; then
7756   ac_header_compiler=yes
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 ac_header_compiler=no
7761 fi
7762 rm -f conftest.$ac_objext conftest.$ac_ext
7763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7764 echo "${ECHO_T}$ac_header_compiler" >&6
7765
7766 # Is the header present?
7767 echo "$as_me:$LINENO: checking krb.h presence" >&5
7768 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 #include <krb.h>
7773 _ACEOF
7774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7776   ac_status=$?
7777   egrep -v '^ *\+' conftest.er1 >conftest.err
7778   rm -f conftest.er1
7779   cat conftest.err >&5
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); } >/dev/null; then
7782   if test -s conftest.err; then
7783     ac_cpp_err=$ac_c_preproc_warn_flag
7784   else
7785     ac_cpp_err=
7786   fi
7787 else
7788   ac_cpp_err=yes
7789 fi
7790 if test -z "$ac_cpp_err"; then
7791   ac_header_preproc=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794   cat conftest.$ac_ext >&5
7795   ac_header_preproc=no
7796 fi
7797 rm -f conftest.err conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7799 echo "${ECHO_T}$ac_header_preproc" >&6
7800
7801 # So?  What about this header?
7802 case $ac_header_compiler:$ac_header_preproc in
7803   yes:no )
7804     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7805 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7806     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7807 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7808   no:yes )
7809     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7810 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7811     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7812 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7813     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7814 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7815 esac
7816 echo "$as_me:$LINENO: checking for krb.h" >&5
7817 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7818 if test "${ac_cv_header_krb_h+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   ac_cv_header_krb_h=$ac_header_preproc
7822 fi
7823 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7824 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7825
7826 fi
7827 if test $ac_cv_header_krb_h = yes; then
7828   :
7829 else
7830   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7831 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7832    { (exit 1); exit 1; }; }
7833 fi
7834
7835
7836 fi
7837
7838 if test "$with_krb5" = yes ; then
7839   if test "${ac_cv_header_krb5_h+set}" = set; then
7840   echo "$as_me:$LINENO: checking for krb5.h" >&5
7841 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7842 if test "${ac_cv_header_krb5_h+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7846 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7847 else
7848   # Is the header compilable?
7849 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7850 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7851 cat >conftest.$ac_ext <<_ACEOF
7852 #line $LINENO "configure"
7853 #include "confdefs.h"
7854 $ac_includes_default
7855 #include <krb5.h>
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7859   (eval $ac_compile) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); } &&
7863          { ac_try='test -s conftest.$ac_objext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   ac_header_compiler=yes
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 ac_header_compiler=no
7874 fi
7875 rm -f conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7877 echo "${ECHO_T}$ac_header_compiler" >&6
7878
7879 # Is the header present?
7880 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7881 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7884 #include "confdefs.h"
7885 #include <krb5.h>
7886 _ACEOF
7887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7889   ac_status=$?
7890   egrep -v '^ *\+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } >/dev/null; then
7895   if test -s conftest.err; then
7896     ac_cpp_err=$ac_c_preproc_warn_flag
7897   else
7898     ac_cpp_err=
7899   fi
7900 else
7901   ac_cpp_err=yes
7902 fi
7903 if test -z "$ac_cpp_err"; then
7904   ac_header_preproc=yes
7905 else
7906   echo "$as_me: failed program was:" >&5
7907   cat conftest.$ac_ext >&5
7908   ac_header_preproc=no
7909 fi
7910 rm -f conftest.err conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7912 echo "${ECHO_T}$ac_header_preproc" >&6
7913
7914 # So?  What about this header?
7915 case $ac_header_compiler:$ac_header_preproc in
7916   yes:no )
7917     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7918 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7919     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7920 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7921   no:yes )
7922     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7923 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7924     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7925 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7926     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7927 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7928 esac
7929 echo "$as_me:$LINENO: checking for krb5.h" >&5
7930 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7931 if test "${ac_cv_header_krb5_h+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   ac_cv_header_krb5_h=$ac_header_preproc
7935 fi
7936 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7937 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7938
7939 fi
7940 if test $ac_cv_header_krb5_h = yes; then
7941   :
7942 else
7943   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7944 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7945    { (exit 1); exit 1; }; }
7946 fi
7947
7948
7949   if test "${ac_cv_header_com_err_h+set}" = set; then
7950   echo "$as_me:$LINENO: checking for com_err.h" >&5
7951 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7952 if test "${ac_cv_header_com_err_h+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 fi
7955 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7956 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7957 else
7958   # Is the header compilable?
7959 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7960 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line $LINENO "configure"
7963 #include "confdefs.h"
7964 $ac_includes_default
7965 #include <com_err.h>
7966 _ACEOF
7967 rm -f conftest.$ac_objext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969   (eval $ac_compile) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } &&
7973          { ac_try='test -s conftest.$ac_objext'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   ac_header_compiler=yes
7980 else
7981   echo "$as_me: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_header_compiler=no
7984 fi
7985 rm -f conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987 echo "${ECHO_T}$ac_header_compiler" >&6
7988
7989 # Is the header present?
7990 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7991 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7994 #include "confdefs.h"
7995 #include <com_err.h>
7996 _ACEOF
7997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7999   ac_status=$?
8000   egrep -v '^ *\+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } >/dev/null; then
8005   if test -s conftest.err; then
8006     ac_cpp_err=$ac_c_preproc_warn_flag
8007   else
8008     ac_cpp_err=
8009   fi
8010 else
8011   ac_cpp_err=yes
8012 fi
8013 if test -z "$ac_cpp_err"; then
8014   ac_header_preproc=yes
8015 else
8016   echo "$as_me: failed program was:" >&5
8017   cat conftest.$ac_ext >&5
8018   ac_header_preproc=no
8019 fi
8020 rm -f conftest.err conftest.$ac_ext
8021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8022 echo "${ECHO_T}$ac_header_preproc" >&6
8023
8024 # So?  What about this header?
8025 case $ac_header_compiler:$ac_header_preproc in
8026   yes:no )
8027     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8028 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8029     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8030 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8031   no:yes )
8032     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8033 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8034     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8035 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8036     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8037 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8038 esac
8039 echo "$as_me:$LINENO: checking for com_err.h" >&5
8040 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8041 if test "${ac_cv_header_com_err_h+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   ac_cv_header_com_err_h=$ac_header_preproc
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8047 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8048
8049 fi
8050 if test $ac_cv_header_com_err_h = yes; then
8051   :
8052 else
8053   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8054 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8055    { (exit 1); exit 1; }; }
8056 fi
8057
8058
8059 fi
8060
8061 if test "$with_openssl" = yes ; then
8062   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8063   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8064 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8065 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 fi
8068 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8069 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8070 else
8071   # Is the header compilable?
8072 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8073 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 #line $LINENO "configure"
8076 #include "confdefs.h"
8077 $ac_includes_default
8078 #include <openssl/ssl.h>
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082   (eval $ac_compile) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -s conftest.$ac_objext'
8087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088   (eval $ac_try) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   ac_header_compiler=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8096 ac_header_compiler=no
8097 fi
8098 rm -f conftest.$ac_objext conftest.$ac_ext
8099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8100 echo "${ECHO_T}$ac_header_compiler" >&6
8101
8102 # Is the header present?
8103 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8104 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 #include "confdefs.h"
8108 #include <openssl/ssl.h>
8109 _ACEOF
8110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112   ac_status=$?
8113   egrep -v '^ *\+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } >/dev/null; then
8118   if test -s conftest.err; then
8119     ac_cpp_err=$ac_c_preproc_warn_flag
8120   else
8121     ac_cpp_err=
8122   fi
8123 else
8124   ac_cpp_err=yes
8125 fi
8126 if test -z "$ac_cpp_err"; then
8127   ac_header_preproc=yes
8128 else
8129   echo "$as_me: failed program was:" >&5
8130   cat conftest.$ac_ext >&5
8131   ac_header_preproc=no
8132 fi
8133 rm -f conftest.err conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8135 echo "${ECHO_T}$ac_header_preproc" >&6
8136
8137 # So?  What about this header?
8138 case $ac_header_compiler:$ac_header_preproc in
8139   yes:no )
8140     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8141 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8142     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8143 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8144   no:yes )
8145     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8146 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8147     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8148 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8149     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8150 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8151 esac
8152 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8153 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8154 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8158 fi
8159 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8160 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8161
8162 fi
8163 if test $ac_cv_header_openssl_ssl_h = yes; then
8164   :
8165 else
8166   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8167 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8168    { (exit 1); exit 1; }; }
8169 fi
8170
8171
8172   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8173   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8174 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8175 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 fi
8178 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8179 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8180 else
8181   # Is the header compilable?
8182 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8183 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8184 cat >conftest.$ac_ext <<_ACEOF
8185 #line $LINENO "configure"
8186 #include "confdefs.h"
8187 $ac_includes_default
8188 #include <openssl/err.h>
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192   (eval $ac_compile) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } &&
8196          { ac_try='test -s conftest.$ac_objext'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   ac_header_compiler=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 ac_header_compiler=no
8207 fi
8208 rm -f conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8210 echo "${ECHO_T}$ac_header_compiler" >&6
8211
8212 # Is the header present?
8213 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8214 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line $LINENO "configure"
8217 #include "confdefs.h"
8218 #include <openssl/err.h>
8219 _ACEOF
8220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8222   ac_status=$?
8223   egrep -v '^ *\+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } >/dev/null; then
8228   if test -s conftest.err; then
8229     ac_cpp_err=$ac_c_preproc_warn_flag
8230   else
8231     ac_cpp_err=
8232   fi
8233 else
8234   ac_cpp_err=yes
8235 fi
8236 if test -z "$ac_cpp_err"; then
8237   ac_header_preproc=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240   cat conftest.$ac_ext >&5
8241   ac_header_preproc=no
8242 fi
8243 rm -f conftest.err conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8245 echo "${ECHO_T}$ac_header_preproc" >&6
8246
8247 # So?  What about this header?
8248 case $ac_header_compiler:$ac_header_preproc in
8249   yes:no )
8250     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8251 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8252     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8253 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8254   no:yes )
8255     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8257     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8261 esac
8262 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8263 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8264 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   ac_cv_header_openssl_err_h=$ac_header_preproc
8268 fi
8269 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8270 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8271
8272 fi
8273 if test $ac_cv_header_openssl_err_h = yes; then
8274   :
8275 else
8276   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8277 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8278    { (exit 1); exit 1; }; }
8279 fi
8280
8281
8282 fi
8283
8284 if test "$with_pam" = yes ; then
8285   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8286   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8287 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8288 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8289   echo $ECHO_N "(cached) $ECHO_C" >&6
8290 fi
8291 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8292 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8293 else
8294   # Is the header compilable?
8295 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8296 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8297 cat >conftest.$ac_ext <<_ACEOF
8298 #line $LINENO "configure"
8299 #include "confdefs.h"
8300 $ac_includes_default
8301 #include <security/pam_appl.h>
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305   (eval $ac_compile) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -s conftest.$ac_objext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315   ac_header_compiler=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_header_compiler=no
8320 fi
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8323 echo "${ECHO_T}$ac_header_compiler" >&6
8324
8325 # Is the header present?
8326 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8327 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 #include "confdefs.h"
8331 #include <security/pam_appl.h>
8332 _ACEOF
8333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8335   ac_status=$?
8336   egrep -v '^ *\+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } >/dev/null; then
8341   if test -s conftest.err; then
8342     ac_cpp_err=$ac_c_preproc_warn_flag
8343   else
8344     ac_cpp_err=
8345   fi
8346 else
8347   ac_cpp_err=yes
8348 fi
8349 if test -z "$ac_cpp_err"; then
8350   ac_header_preproc=yes
8351 else
8352   echo "$as_me: failed program was:" >&5
8353   cat conftest.$ac_ext >&5
8354   ac_header_preproc=no
8355 fi
8356 rm -f conftest.err conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6
8359
8360 # So?  What about this header?
8361 case $ac_header_compiler:$ac_header_preproc in
8362   yes:no )
8363     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8367   no:yes )
8368     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8369 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8370     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8371 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8372     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8373 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8374 esac
8375 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8376 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8377 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   ac_cv_header_security_pam_appl_h=$ac_header_preproc
8381 fi
8382 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8383 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8384
8385 fi
8386 if test $ac_cv_header_security_pam_appl_h = yes; then
8387   :
8388 else
8389   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8390 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8391    { (exit 1); exit 1; }; }
8392 fi
8393
8394
8395 fi
8396
8397
8398 ##
8399 ## Types, structures, compiler characteristics
8400 ##
8401
8402
8403 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8404 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8405 if test "${ac_cv_c_const+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8411
8412 #ifdef F77_DUMMY_MAIN
8413 #  ifdef __cplusplus
8414      extern "C"
8415 #  endif
8416    int F77_DUMMY_MAIN() { return 1; }
8417 #endif
8418 int
8419 main ()
8420 {
8421 /* FIXME: Include the comments suggested by Paul. */
8422 #ifndef __cplusplus
8423   /* Ultrix mips cc rejects this.  */
8424   typedef int charset[2];
8425   const charset x;
8426   /* SunOS 4.1.1 cc rejects this.  */
8427   char const *const *ccp;
8428   char **p;
8429   /* NEC SVR4.0.2 mips cc rejects this.  */
8430   struct point {int x, y;};
8431   static struct point const zero = {0,0};
8432   /* AIX XL C 1.02.0.0 rejects this.
8433      It does not let you subtract one const X* pointer from another in
8434      an arm of an if-expression whose if-part is not a constant
8435      expression */
8436   const char *g = "string";
8437   ccp = &g + (g ? g-g : 0);
8438   /* HPUX 7.0 cc rejects these. */
8439   ++ccp;
8440   p = (char**) ccp;
8441   ccp = (char const *const *) p;
8442   { /* SCO 3.2v4 cc rejects this.  */
8443     char *t;
8444     char const *s = 0 ? (char *) 0 : (char const *) 0;
8445
8446     *t++ = 0;
8447   }
8448   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8449     int x[] = {25, 17};
8450     const int *foo = &x[0];
8451     ++foo;
8452   }
8453   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8454     typedef const int *iptr;
8455     iptr p = 0;
8456     ++p;
8457   }
8458   { /* AIX XL C 1.02.0.0 rejects this saying
8459        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8460     struct s { int j; const int *ap[3]; };
8461     struct s *b; b->j = 5;
8462   }
8463   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8464     const int foo = 10;
8465   }
8466 #endif
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474   (eval $ac_compile) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -s conftest.$ac_objext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_c_const=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8488 ac_cv_c_const=no
8489 fi
8490 rm -f conftest.$ac_objext conftest.$ac_ext
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8493 echo "${ECHO_T}$ac_cv_c_const" >&6
8494 if test $ac_cv_c_const = no; then
8495
8496 cat >>confdefs.h <<\_ACEOF
8497 #define const
8498 _ACEOF
8499
8500 fi
8501
8502 echo "$as_me:$LINENO: checking for inline" >&5
8503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8504 if test "${ac_cv_c_inline+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   ac_cv_c_inline=no
8508 for ac_kw in inline __inline__ __inline; do
8509   cat >conftest.$ac_ext <<_ACEOF
8510 #line $LINENO "configure"
8511 #include "confdefs.h"
8512 #ifndef __cplusplus
8513 static $ac_kw int static_foo () {return 0; }
8514 $ac_kw int foo () {return 0; }
8515 #endif
8516
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520   (eval $ac_compile) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -s conftest.$ac_objext'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; }; then
8530   ac_cv_c_inline=$ac_kw; break
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 fi
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8536 done
8537
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8540 echo "${ECHO_T}$ac_cv_c_inline" >&6
8541 case $ac_cv_c_inline in
8542   inline | yes) ;;
8543   no)
8544 cat >>confdefs.h <<\_ACEOF
8545 #define inline
8546 _ACEOF
8547  ;;
8548   *)  cat >>confdefs.h <<_ACEOF
8549 #define inline $ac_cv_c_inline
8550 _ACEOF
8551  ;;
8552 esac
8553
8554 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8555 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8556 if test "${ac_cv_c_stringize+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 #include "confdefs.h"
8562 #define x(y) #y
8563
8564 char *s = x(teststring);
8565 _ACEOF
8566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8567   egrep "#teststring" >/dev/null 2>&1; then
8568   ac_cv_c_stringize=no
8569 else
8570   ac_cv_c_stringize=yes
8571 fi
8572 rm -f conftest*
8573
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8576 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8577 if test $ac_cv_c_stringize = yes; then
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_STRINGIZE 1
8581 _ACEOF
8582
8583 fi
8584
8585 echo "$as_me:$LINENO: checking for signed types" >&5
8586 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8587 if test "${pgac_cv_c_signed+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 #include "confdefs.h"
8593
8594 #ifdef F77_DUMMY_MAIN
8595 #  ifdef __cplusplus
8596      extern "C"
8597 #  endif
8598    int F77_DUMMY_MAIN() { return 1; }
8599 #endif
8600 int
8601 main ()
8602 {
8603 signed char c; signed short s; signed int i;
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610   (eval $ac_compile) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } &&
8614          { ac_try='test -s conftest.$ac_objext'
8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616   (eval $ac_try) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; }; then
8620   pgac_cv_c_signed=yes
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8624 pgac_cv_c_signed=no
8625 fi
8626 rm -f conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8629 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8630 if test x"$pgac_cv_c_signed" = xno ; then
8631
8632 cat >>confdefs.h <<\_ACEOF
8633 #define signed
8634 _ACEOF
8635
8636 fi
8637 echo "$as_me:$LINENO: checking for working volatile" >&5
8638 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8639 if test "${ac_cv_c_volatile+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8645
8646 #ifdef F77_DUMMY_MAIN
8647 #  ifdef __cplusplus
8648      extern "C"
8649 #  endif
8650    int F77_DUMMY_MAIN() { return 1; }
8651 #endif
8652 int
8653 main ()
8654 {
8655
8656 volatile int x;
8657 int * volatile y;
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664   (eval $ac_compile) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -s conftest.$ac_objext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_c_volatile=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 ac_cv_c_volatile=no
8679 fi
8680 rm -f conftest.$ac_objext conftest.$ac_ext
8681 fi
8682 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8683 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8684 if test $ac_cv_c_volatile = no; then
8685
8686 cat >>confdefs.h <<\_ACEOF
8687 #define volatile
8688 _ACEOF
8689
8690 fi
8691
8692 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8694 if test "${ac_cv_struct_tm+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 #include "confdefs.h"
8700 #include <sys/types.h>
8701 #include <time.h>
8702
8703 #ifdef F77_DUMMY_MAIN
8704 #  ifdef __cplusplus
8705      extern "C"
8706 #  endif
8707    int F77_DUMMY_MAIN() { return 1; }
8708 #endif
8709 int
8710 main ()
8711 {
8712 struct tm *tp; tp->tm_sec;
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719   (eval $ac_compile) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -s conftest.$ac_objext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_struct_tm=time.h
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 ac_cv_struct_tm=sys/time.h
8734 fi
8735 rm -f conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8738 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8739 if test $ac_cv_struct_tm = sys/time.h; then
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define TM_IN_SYS_TIME 1
8743 _ACEOF
8744
8745 fi
8746
8747 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8748 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8749 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8754 #include "confdefs.h"
8755 #include <sys/types.h>
8756 #include <$ac_cv_struct_tm>
8757
8758
8759 #ifdef F77_DUMMY_MAIN
8760 #  ifdef __cplusplus
8761      extern "C"
8762 #  endif
8763    int F77_DUMMY_MAIN() { return 1; }
8764 #endif
8765 int
8766 main ()
8767 {
8768 static struct tm ac_aggr;
8769 if (ac_aggr.tm_zone)
8770 return 0;
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777   (eval $ac_compile) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_cv_member_struct_tm_tm_zone=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 ac_cv_member_struct_tm_tm_zone=no
8792 fi
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8796 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8797 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8798
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_STRUCT_TM_TM_ZONE 1
8801 _ACEOF
8802
8803
8804 fi
8805
8806 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8807
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_TM_ZONE 1
8810 _ACEOF
8811
8812 else
8813   echo "$as_me:$LINENO: checking for tzname" >&5
8814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8815 if test "${ac_cv_var_tzname+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   cat >conftest.$ac_ext <<_ACEOF
8819 #line $LINENO "configure"
8820 #include "confdefs.h"
8821 #include <time.h>
8822 #ifndef tzname /* For SGI.  */
8823 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8824 #endif
8825
8826 #ifdef F77_DUMMY_MAIN
8827 #  ifdef __cplusplus
8828      extern "C"
8829 #  endif
8830    int F77_DUMMY_MAIN() { return 1; }
8831 #endif
8832 int
8833 main ()
8834 {
8835 atoi(*tzname);
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -s conftest$ac_exeext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_var_tzname=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8856 ac_cv_var_tzname=no
8857 fi
8858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8859 fi
8860 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8861 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8862   if test $ac_cv_var_tzname = yes; then
8863
8864 cat >>confdefs.h <<\_ACEOF
8865 #define HAVE_TZNAME 1
8866 _ACEOF
8867
8868   fi
8869 fi
8870
8871 echo "$as_me:$LINENO: checking for union semun" >&5
8872 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8873 if test "${ac_cv_type_union_semun+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 #include "confdefs.h"
8879 #include <sys/types.h>
8880 #include <sys/ipc.h>
8881 #include <sys/sem.h>
8882
8883 #ifdef F77_DUMMY_MAIN
8884 #  ifdef __cplusplus
8885      extern "C"
8886 #  endif
8887    int F77_DUMMY_MAIN() { return 1; }
8888 #endif
8889 int
8890 main ()
8891 {
8892 if ((union semun *) 0)
8893   return 0;
8894 if (sizeof (union semun))
8895   return 0;
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902   (eval $ac_compile) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); } &&
8906          { ac_try='test -s conftest.$ac_objext'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   ac_cv_type_union_semun=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 ac_cv_type_union_semun=no
8917 fi
8918 rm -f conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8921 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8922 if test $ac_cv_type_union_semun = yes; then
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_UNION_SEMUN 1
8926 _ACEOF
8927
8928
8929 fi
8930
8931 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8932 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8933 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   cat >conftest.$ac_ext <<_ACEOF
8937 #line $LINENO "configure"
8938 #include "confdefs.h"
8939 #include <sys/types.h>
8940 #ifdef HAVE_SYS_UN_H
8941 #include <sys/un.h>
8942 #endif
8943
8944
8945 #ifdef F77_DUMMY_MAIN
8946 #  ifdef __cplusplus
8947      extern "C"
8948 #  endif
8949    int F77_DUMMY_MAIN() { return 1; }
8950 #endif
8951 int
8952 main ()
8953 {
8954 if ((struct sockaddr_un *) 0)
8955   return 0;
8956 if (sizeof (struct sockaddr_un))
8957   return 0;
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -s conftest.$ac_objext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_type_struct_sockaddr_un=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_type_struct_sockaddr_un=no
8979 fi
8980 rm -f conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8983 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8984 if test $ac_cv_type_struct_sockaddr_un = yes; then
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_STRUCT_SOCKADDR_UN 1
8988 _ACEOF
8989
8990
8991 fi
8992
8993
8994 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8995 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8996 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8997   echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999   cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9002 #include <sys/param.h>
9003 #include <sys/socket.h>
9004 #include <sys/ucred.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 if ((struct cmsgcred *) 0)
9016   return 0;
9017 if (sizeof (struct cmsgcred))
9018   return 0;
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9025   (eval $ac_compile) 2>&5
9026   ac_status=$?
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -s conftest.$ac_objext'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; }; then
9035   ac_cv_type_struct_cmsgcred=yes
9036 else
9037   echo "$as_me: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 ac_cv_type_struct_cmsgcred=no
9040 fi
9041 rm -f conftest.$ac_objext conftest.$ac_ext
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9044 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9045 if test $ac_cv_type_struct_cmsgcred = yes; then
9046
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_STRUCT_CMSGCRED 1
9049 _ACEOF
9050
9051
9052 fi
9053 echo "$as_me:$LINENO: checking for struct fcred" >&5
9054 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9055 if test "${ac_cv_type_struct_fcred+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9061 #include <sys/param.h>
9062 #include <sys/socket.h>
9063 #include <sys/ucred.h>
9064
9065 #ifdef F77_DUMMY_MAIN
9066 #  ifdef __cplusplus
9067      extern "C"
9068 #  endif
9069    int F77_DUMMY_MAIN() { return 1; }
9070 #endif
9071 int
9072 main ()
9073 {
9074 if ((struct fcred *) 0)
9075   return 0;
9076 if (sizeof (struct fcred))
9077   return 0;
9078   ;
9079   return 0;
9080 }
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084   (eval $ac_compile) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } &&
9088          { ac_try='test -s conftest.$ac_objext'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; }; then
9094   ac_cv_type_struct_fcred=yes
9095 else
9096   echo "$as_me: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 ac_cv_type_struct_fcred=no
9099 fi
9100 rm -f conftest.$ac_objext conftest.$ac_ext
9101 fi
9102 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9103 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9104 if test $ac_cv_type_struct_fcred = yes; then
9105
9106 cat >>confdefs.h <<_ACEOF
9107 #define HAVE_STRUCT_FCRED 1
9108 _ACEOF
9109
9110
9111 fi
9112 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9113 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9114 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9119 #include "confdefs.h"
9120 #include <sys/param.h>
9121 #include <sys/socket.h>
9122 #include <sys/ucred.h>
9123
9124 #ifdef F77_DUMMY_MAIN
9125 #  ifdef __cplusplus
9126      extern "C"
9127 #  endif
9128    int F77_DUMMY_MAIN() { return 1; }
9129 #endif
9130 int
9131 main ()
9132 {
9133 if ((struct sockcred *) 0)
9134   return 0;
9135 if (sizeof (struct sockcred))
9136   return 0;
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 rm -f conftest.$ac_objext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9143   (eval $ac_compile) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); } &&
9147          { ac_try='test -s conftest.$ac_objext'
9148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149   (eval $ac_try) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }; }; then
9153   ac_cv_type_struct_sockcred=yes
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 ac_cv_type_struct_sockcred=no
9158 fi
9159 rm -f conftest.$ac_objext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9162 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9163 if test $ac_cv_type_struct_sockcred = yes; then
9164
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_STRUCT_SOCKCRED 1
9167 _ACEOF
9168
9169
9170 fi
9171
9172
9173 if test "$with_zlib" = yes; then
9174   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9175   # did not).  While we could work around the lack of z_streamp, it
9176   # seems unwise to encourage people to use such old zlib versions...
9177   echo "$as_me:$LINENO: checking for z_streamp" >&5
9178 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9179 if test "${ac_cv_type_z_streamp+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 #include "confdefs.h"
9185 #include <zlib.h>
9186
9187 #ifdef F77_DUMMY_MAIN
9188 #  ifdef __cplusplus
9189      extern "C"
9190 #  endif
9191    int F77_DUMMY_MAIN() { return 1; }
9192 #endif
9193 int
9194 main ()
9195 {
9196 if ((z_streamp *) 0)
9197   return 0;
9198 if (sizeof (z_streamp))
9199   return 0;
9200   ;
9201   return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206   (eval $ac_compile) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); } &&
9210          { ac_try='test -s conftest.$ac_objext'
9211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212   (eval $ac_try) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); }; }; then
9216   ac_cv_type_z_streamp=yes
9217 else
9218   echo "$as_me: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9220 ac_cv_type_z_streamp=no
9221 fi
9222 rm -f conftest.$ac_objext conftest.$ac_ext
9223 fi
9224 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9225 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9226 if test $ac_cv_type_z_streamp = yes; then
9227   :
9228 else
9229   { { echo "$as_me:$LINENO: error: zlib version is too old
9230 Use --without-zlib to disable zlib support." >&5
9231 echo "$as_me: error: zlib version is too old
9232 Use --without-zlib to disable zlib support." >&2;}
9233    { (exit 1); exit 1; }; }
9234 fi
9235
9236 fi
9237
9238 if test "$with_krb5" = yes; then
9239 # Check for differences between MIT and Heimdal (KTH) releases
9240   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9241 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9242 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9248 #include <krb5.h>
9249
9250 #ifdef F77_DUMMY_MAIN
9251 #  ifdef __cplusplus
9252      extern "C"
9253 #  endif
9254    int F77_DUMMY_MAIN() { return 1; }
9255 #endif
9256 int
9257 main ()
9258 {
9259 static krb5_ticket ac_aggr;
9260 if (ac_aggr.enc_part2)
9261 return 0;
9262   ;
9263   return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268   (eval $ac_compile) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } &&
9272          { ac_try='test -s conftest.$ac_objext'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; }; then
9278   ac_cv_member_krb5_ticket_enc_part2=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 ac_cv_member_krb5_ticket_enc_part2=no
9283 fi
9284 rm -f conftest.$ac_objext conftest.$ac_ext
9285 fi
9286 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9287 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9288 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9289
9290 cat >>confdefs.h <<_ACEOF
9291 #define HAVE_KRB5_TICKET_ENC_PART2 1
9292 _ACEOF
9293
9294
9295 else
9296   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9297 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9298 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9304 #include <krb5.h>
9305
9306 #ifdef F77_DUMMY_MAIN
9307 #  ifdef __cplusplus
9308      extern "C"
9309 #  endif
9310    int F77_DUMMY_MAIN() { return 1; }
9311 #endif
9312 int
9313 main ()
9314 {
9315 static krb5_ticket ac_aggr;
9316 if (ac_aggr.client)
9317 return 0;
9318   ;
9319   return 0;
9320 }
9321 _ACEOF
9322 rm -f conftest.$ac_objext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324   (eval $ac_compile) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } &&
9328          { ac_try='test -s conftest.$ac_objext'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_cv_member_krb5_ticket_client=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9338 ac_cv_member_krb5_ticket_client=no
9339 fi
9340 rm -f conftest.$ac_objext conftest.$ac_ext
9341 fi
9342 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9343 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9344 if test $ac_cv_member_krb5_ticket_client = yes; then
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_KRB5_TICKET_CLIENT 1
9348 _ACEOF
9349
9350
9351 else
9352   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9353 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9354    { (exit 1); exit 1; }; }
9355 fi
9356
9357 fi
9358
9359   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9360 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9361 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 #include "confdefs.h"
9367 #include <krb5.h>
9368
9369 #ifdef F77_DUMMY_MAIN
9370 #  ifdef __cplusplus
9371      extern "C"
9372 #  endif
9373    int F77_DUMMY_MAIN() { return 1; }
9374 #endif
9375 int
9376 main ()
9377 {
9378 static krb5_error ac_aggr;
9379 if (ac_aggr.text.data)
9380 return 0;
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387   (eval $ac_compile) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } &&
9391          { ac_try='test -s conftest.$ac_objext'
9392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393   (eval $ac_try) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); }; }; then
9397   ac_cv_member_krb5_error_text_data=yes
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 ac_cv_member_krb5_error_text_data=no
9402 fi
9403 rm -f conftest.$ac_objext conftest.$ac_ext
9404 fi
9405 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9406 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9407 if test $ac_cv_member_krb5_error_text_data = yes; then
9408
9409 cat >>confdefs.h <<_ACEOF
9410 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9411 _ACEOF
9412
9413
9414 else
9415   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9416 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9417 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   cat >conftest.$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 #include "confdefs.h"
9423 #include <krb5.h>
9424
9425 #ifdef F77_DUMMY_MAIN
9426 #  ifdef __cplusplus
9427      extern "C"
9428 #  endif
9429    int F77_DUMMY_MAIN() { return 1; }
9430 #endif
9431 int
9432 main ()
9433 {
9434 static krb5_error ac_aggr;
9435 if (ac_aggr.e_data)
9436 return 0;
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443   (eval $ac_compile) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -s conftest.$ac_objext'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; }; then
9453   ac_cv_member_krb5_error_e_data=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 ac_cv_member_krb5_error_e_data=no
9458 fi
9459 rm -f conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9462 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9463 if test $ac_cv_member_krb5_error_e_data = yes; then
9464
9465 cat >>confdefs.h <<_ACEOF
9466 #define HAVE_KRB5_ERROR_E_DATA 1
9467 _ACEOF
9468
9469
9470 else
9471   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9472 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9473    { (exit 1); exit 1; }; }
9474 fi
9475
9476 fi
9477
9478 fi
9479
9480
9481 ##
9482 ## Functions, global variables
9483 ##
9484
9485 echo "$as_me:$LINENO: checking for int timezone" >&5
9486 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9487 if test "${pgac_cv_var_int_timezone+set}" = set; then
9488   echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490   cat >conftest.$ac_ext <<_ACEOF
9491 #line $LINENO "configure"
9492 #include "confdefs.h"
9493 #include <time.h>
9494 int res;
9495 #ifdef F77_DUMMY_MAIN
9496 #  ifdef __cplusplus
9497      extern "C"
9498 #  endif
9499    int F77_DUMMY_MAIN() { return 1; }
9500 #endif
9501 int
9502 main ()
9503 {
9504 res = timezone / 60;
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511   (eval $ac_link) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } &&
9515          { ac_try='test -s conftest$ac_exeext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   pgac_cv_var_int_timezone=yes
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 pgac_cv_var_int_timezone=no
9526 fi
9527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9528 fi
9529 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9530 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9531 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9532
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_INT_TIMEZONE
9535 _ACEOF
9536
9537 fi
9538 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9539 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9540  if test "${ac_cv_func_accept_arg1+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543    if test "${ac_cv_func_accept_arg2+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546     if test "${ac_cv_func_accept_arg3+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9550      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9551       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9552        cat >conftest.$ac_ext <<_ACEOF
9553 #line $LINENO "configure"
9554 #include "confdefs.h"
9555 #ifdef HAVE_SYS_TYPES_H
9556 #include <sys/types.h>
9557 #endif
9558 #ifdef HAVE_SYS_SOCKET_H
9559 #include <sys/socket.h>
9560 #endif
9561 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9562 #ifdef F77_DUMMY_MAIN
9563 #  ifdef __cplusplus
9564      extern "C"
9565 #  endif
9566    int F77_DUMMY_MAIN() { return 1; }
9567 #endif
9568 int
9569 main ()
9570 {
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578   (eval $ac_compile) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -s conftest.$ac_objext'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }; then
9588   ac_not_found=no; break 3
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ac_not_found=yes
9593 fi
9594 rm -f conftest.$ac_objext conftest.$ac_ext
9595       done
9596      done
9597     done
9598     if test "$ac_not_found" = yes; then
9599       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9600 echo "$as_me: error: could not determine argument types" >&2;}
9601    { (exit 1); exit 1; }; }
9602     fi
9603     if test "$ac_cv_func_accept_arg3" = "void"; then
9604       ac_cv_func_accept_arg3=int
9605     fi
9606
9607 fi
9608
9609 fi
9610
9611 fi
9612  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9613 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9614
9615 cat >>confdefs.h <<_ACEOF
9616 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9617 _ACEOF
9618
9619
9620 cat >>confdefs.h <<_ACEOF
9621 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9622 _ACEOF
9623
9624
9625 cat >>confdefs.h <<_ACEOF
9626 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9627 _ACEOF
9628
9629
9630 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9631 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9632 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9633   echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635   cat >conftest.$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9638 #include <sys/time.h>
9639 #ifdef F77_DUMMY_MAIN
9640 #  ifdef __cplusplus
9641      extern "C"
9642 #  endif
9643    int F77_DUMMY_MAIN() { return 1; }
9644 #endif
9645 int
9646 main ()
9647 {
9648 struct timeval *tp;
9649 struct timezone *tzp;
9650 gettimeofday(tp,tzp);
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657   (eval $ac_compile) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -s conftest.$ac_objext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   pgac_cv_func_gettimeofday_1arg=no
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 pgac_cv_func_gettimeofday_1arg=yes
9672 fi
9673 rm -f conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9676 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9677 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9678
9679 cat >>confdefs.h <<\_ACEOF
9680 #define GETTIMEOFDAY_1ARG
9681 _ACEOF
9682
9683 fi
9684
9685 # SunOS doesn't handle negative byte comparisons properly with +/- return
9686 echo "$as_me:$LINENO: checking for working memcmp" >&5
9687 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9688 if test "${ac_cv_func_memcmp_working+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   if test "$cross_compiling" = yes; then
9692   ac_cv_func_memcmp_working=no
9693 else
9694   cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 #include "confdefs.h"
9697
9698 #ifdef F77_DUMMY_MAIN
9699 #  ifdef __cplusplus
9700      extern "C"
9701 #  endif
9702    int F77_DUMMY_MAIN() { return 1; }
9703 #endif
9704 int
9705 main ()
9706 {
9707
9708   /* Some versions of memcmp are not 8-bit clean.  */
9709   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9710   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9711     exit (1);
9712
9713   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9714      or more and with at least one buffer not starting on a 4-byte boundary.
9715      William Lewis provided this test program.   */
9716   {
9717     char foo[21];
9718     char bar[21];
9719     int i;
9720     for (i = 0; i < 4; i++)
9721       {
9722         char *a = foo + i;
9723         char *b = bar + i;
9724         strcpy (a, "--------01111111");
9725         strcpy (b, "--------10000000");
9726         if (memcmp (a, b, 16) >= 0)
9727           exit (1);
9728       }
9729     exit (0);
9730   }
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738   (eval $ac_link) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_memcmp_working=yes
9748 else
9749   echo "$as_me: program exited with status $ac_status" >&5
9750 echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9752 ( exit $ac_status )
9753 ac_cv_func_memcmp_working=no
9754 fi
9755 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 fi
9758 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9759 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9760 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9776 do
9777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 echo "$as_me:$LINENO: checking for $ac_func" >&5
9779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_var+set}\" = set"; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 #include "confdefs.h"
9786 /* System header to define __stub macros and hopefully few prototypes,
9787     which can conflict with char $ac_func (); below.  */
9788 #include <assert.h>
9789 /* Override any gcc2 internal prototype to avoid an error.  */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794    builtin and then its argument prototype would still apply.  */
9795 char $ac_func ();
9796 char (*f) ();
9797
9798 #ifdef F77_DUMMY_MAIN
9799 #  ifdef __cplusplus
9800      extern "C"
9801 #  endif
9802    int F77_DUMMY_MAIN() { return 1; }
9803 #endif
9804 int
9805 main ()
9806 {
9807 /* The GNU C library defines this for functions which it implements
9808     to always fail with ENOSYS.  Some functions are actually named
9809     something starting with __ and the normal name is an alias.  */
9810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9811 choke me
9812 #else
9813 f = $ac_func;
9814 #endif
9815
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   eval "$as_ac_var=yes"
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9836 eval "$as_ac_var=no"
9837 fi
9838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9839 fi
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9842 if test `eval echo '${'$as_ac_var'}'` = yes; then
9843   cat >>confdefs.h <<_ACEOF
9844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9845 _ACEOF
9846
9847 fi
9848 done
9849
9850
9851 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9852 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9853 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 #include <unistd.h>
9860
9861 #ifdef F77_DUMMY_MAIN
9862 #  ifdef __cplusplus
9863      extern "C"
9864 #  endif
9865    int F77_DUMMY_MAIN() { return 1; }
9866 #endif
9867 int
9868 main ()
9869 {
9870 #ifndef fdatasync
9871   char *p = (char *) fdatasync;
9872 #endif
9873
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880   (eval $ac_compile) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } &&
9884          { ac_try='test -s conftest.$ac_objext'
9885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886   (eval $ac_try) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; }; then
9890   ac_cv_have_decl_fdatasync=yes
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 ac_cv_have_decl_fdatasync=no
9895 fi
9896 rm -f conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9899 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9900 if test $ac_cv_have_decl_fdatasync = yes; then
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define HAVE_DECL_FDATASYNC 1
9904 _ACEOF
9905
9906
9907 else
9908   cat >>confdefs.h <<_ACEOF
9909 #define HAVE_DECL_FDATASYNC 0
9910 _ACEOF
9911
9912
9913 fi
9914
9915
9916
9917 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9918 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9919 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   cat >conftest.$ac_ext <<_ACEOF
9923 #line $LINENO "configure"
9924 #include "confdefs.h"
9925 #include <machine/vmparam.h>
9926 #include <sys/exec.h>
9927
9928 #ifdef F77_DUMMY_MAIN
9929 #  ifdef __cplusplus
9930      extern "C"
9931 #  endif
9932    int F77_DUMMY_MAIN() { return 1; }
9933 #endif
9934 int
9935 main ()
9936 {
9937 PS_STRINGS->ps_nargvstr = 1;
9938 PS_STRINGS->ps_argvstr = "foo";
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945   (eval $ac_link) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -s conftest$ac_exeext'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; }; then
9955   pgac_cv_var_PS_STRINGS=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 cat conftest.$ac_ext >&5
9959 pgac_cv_var_PS_STRINGS=no
9960 fi
9961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9964 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9965 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9966
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_PS_STRINGS
9969 _ACEOF
9970
9971 fi
9972
9973
9974 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9975 # is missing.  Yes, there are machines that have only one.  We may
9976 # also decide to use snprintf.c if snprintf() is present but does not
9977 # have working "long long int" support -- see below.
9978
9979 pgac_need_repl_snprintf=no
9980
9981 for ac_func in snprintf
9982 do
9983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9984 echo "$as_me:$LINENO: checking for $ac_func" >&5
9985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9986 if eval "test \"\${$as_ac_var+set}\" = set"; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   cat >conftest.$ac_ext <<_ACEOF
9990 #line $LINENO "configure"
9991 #include "confdefs.h"
9992 /* System header to define __stub macros and hopefully few prototypes,
9993     which can conflict with char $ac_func (); below.  */
9994 #include <assert.h>
9995 /* Override any gcc2 internal prototype to avoid an error.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 /* We use char because int might match the return type of a gcc2
10000    builtin and then its argument prototype would still apply.  */
10001 char $ac_func ();
10002 char (*f) ();
10003
10004 #ifdef F77_DUMMY_MAIN
10005 #  ifdef __cplusplus
10006      extern "C"
10007 #  endif
10008    int F77_DUMMY_MAIN() { return 1; }
10009 #endif
10010 int
10011 main ()
10012 {
10013 /* The GNU C library defines this for functions which it implements
10014     to always fail with ENOSYS.  Some functions are actually named
10015     something starting with __ and the normal name is an alias.  */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10017 choke me
10018 #else
10019 f = $ac_func;
10020 #endif
10021
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028   (eval $ac_link) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   eval "$as_ac_var=yes"
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 eval "$as_ac_var=no"
10043 fi
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 fi
10046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10048 if test `eval echo '${'$as_ac_var'}'` = yes; then
10049   cat >>confdefs.h <<_ACEOF
10050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10051 _ACEOF
10052
10053 else
10054   pgac_need_repl_snprintf=yes
10055 fi
10056 done
10057
10058
10059 for ac_func in vsnprintf
10060 do
10061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10062 echo "$as_me:$LINENO: checking for $ac_func" >&5
10063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_var+set}\" = set"; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10069 #include "confdefs.h"
10070 /* System header to define __stub macros and hopefully few prototypes,
10071     which can conflict with char $ac_func (); below.  */
10072 #include <assert.h>
10073 /* Override any gcc2 internal prototype to avoid an error.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 /* We use char because int might match the return type of a gcc2
10078    builtin and then its argument prototype would still apply.  */
10079 char $ac_func ();
10080 char (*f) ();
10081
10082 #ifdef F77_DUMMY_MAIN
10083 #  ifdef __cplusplus
10084      extern "C"
10085 #  endif
10086    int F77_DUMMY_MAIN() { return 1; }
10087 #endif
10088 int
10089 main ()
10090 {
10091 /* The GNU C library defines this for functions which it implements
10092     to always fail with ENOSYS.  Some functions are actually named
10093     something starting with __ and the normal name is an alias.  */
10094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10095 choke me
10096 #else
10097 f = $ac_func;
10098 #endif
10099
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -s conftest$ac_exeext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   eval "$as_ac_var=yes"
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 eval "$as_ac_var=no"
10121 fi
10122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10123 fi
10124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10126 if test `eval echo '${'$as_ac_var'}'` = yes; then
10127   cat >>confdefs.h <<_ACEOF
10128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10129 _ACEOF
10130
10131 else
10132   pgac_need_repl_snprintf=yes
10133 fi
10134 done
10135
10136
10137
10138 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10139 # include/c.h will provide declarations.  Note this is a separate test
10140 # from whether the functions exist in the C library --- there are
10141 # systems that have the functions but don't bother to declare them :-(
10142
10143 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10144 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10145 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 #include "confdefs.h"
10151 $ac_includes_default
10152 #ifdef F77_DUMMY_MAIN
10153 #  ifdef __cplusplus
10154      extern "C"
10155 #  endif
10156    int F77_DUMMY_MAIN() { return 1; }
10157 #endif
10158 int
10159 main ()
10160 {
10161 #ifndef snprintf
10162   char *p = (char *) snprintf;
10163 #endif
10164
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171   (eval $ac_compile) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -s conftest.$ac_objext'
10176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177   (eval $ac_try) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); }; }; then
10181   ac_cv_have_decl_snprintf=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 ac_cv_have_decl_snprintf=no
10186 fi
10187 rm -f conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10190 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10191 if test $ac_cv_have_decl_snprintf = yes; then
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_DECL_SNPRINTF 1
10195 _ACEOF
10196
10197
10198 else
10199   cat >>confdefs.h <<_ACEOF
10200 #define HAVE_DECL_SNPRINTF 0
10201 _ACEOF
10202
10203
10204 fi
10205 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10206 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10207 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10208   echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210   cat >conftest.$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10213 $ac_includes_default
10214 #ifdef F77_DUMMY_MAIN
10215 #  ifdef __cplusplus
10216      extern "C"
10217 #  endif
10218    int F77_DUMMY_MAIN() { return 1; }
10219 #endif
10220 int
10221 main ()
10222 {
10223 #ifndef vsnprintf
10224   char *p = (char *) vsnprintf;
10225 #endif
10226
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233   (eval $ac_compile) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -s conftest.$ac_objext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_have_decl_vsnprintf=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 ac_cv_have_decl_vsnprintf=no
10248 fi
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10250 fi
10251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10252 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10253 if test $ac_cv_have_decl_vsnprintf = yes; then
10254
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_DECL_VSNPRINTF 1
10257 _ACEOF
10258
10259
10260 else
10261   cat >>confdefs.h <<_ACEOF
10262 #define HAVE_DECL_VSNPRINTF 0
10263 _ACEOF
10264
10265
10266 fi
10267
10268
10269
10270
10271 # do this one the hard way in case isinf() is a macro
10272 echo "$as_me:$LINENO: checking for isinf" >&5
10273 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10274 if test "${ac_cv_func_isinf+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 #include <math.h>
10281
10282 #ifdef F77_DUMMY_MAIN
10283 #  ifdef __cplusplus
10284      extern "C"
10285 #  endif
10286    int F77_DUMMY_MAIN() { return 1; }
10287 #endif
10288 int
10289 main ()
10290 {
10291 double x = 0.0; int res = isinf(x);
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -s conftest$ac_exeext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_func_isinf=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 ac_cv_func_isinf=no
10313 fi
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 fi
10316 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10317 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10318
10319 if test $ac_cv_func_isinf = yes ; then
10320
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_ISINF 1
10323 _ACEOF
10324
10325 else
10326   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10327   # Look for a way to implement a substitute for isinf()
10328
10329
10330
10331
10332 for ac_func in fpclass fp_class fp_class_d class
10333 do
10334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335 echo "$as_me:$LINENO: checking for $ac_func" >&5
10336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10337 if eval "test \"\${$as_ac_var+set}\" = set"; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340   cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 #include "confdefs.h"
10343 /* System header to define __stub macros and hopefully few prototypes,
10344     which can conflict with char $ac_func (); below.  */
10345 #include <assert.h>
10346 /* Override any gcc2 internal prototype to avoid an error.  */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 /* We use char because int might match the return type of a gcc2
10351    builtin and then its argument prototype would still apply.  */
10352 char $ac_func ();
10353 char (*f) ();
10354
10355 #ifdef F77_DUMMY_MAIN
10356 #  ifdef __cplusplus
10357      extern "C"
10358 #  endif
10359    int F77_DUMMY_MAIN() { return 1; }
10360 #endif
10361 int
10362 main ()
10363 {
10364 /* The GNU C library defines this for functions which it implements
10365     to always fail with ENOSYS.  Some functions are actually named
10366     something starting with __ and the normal name is an alias.  */
10367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10368 choke me
10369 #else
10370 f = $ac_func;
10371 #endif
10372
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379   (eval $ac_link) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } &&
10383          { ac_try='test -s conftest$ac_exeext'
10384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385   (eval $ac_try) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; }; then
10389   eval "$as_ac_var=yes"
10390 else
10391   echo "$as_me: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 eval "$as_ac_var=no"
10394 fi
10395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10396 fi
10397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10399 if test `eval echo '${'$as_ac_var'}'` = yes; then
10400   cat >>confdefs.h <<_ACEOF
10401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10402 _ACEOF
10403  break
10404 fi
10405 done
10406
10407 fi
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10420 do
10421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_var+set}\" = set"; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   cat >conftest.$ac_ext <<_ACEOF
10428 #line $LINENO "configure"
10429 #include "confdefs.h"
10430 /* System header to define __stub macros and hopefully few prototypes,
10431     which can conflict with char $ac_func (); below.  */
10432 #include <assert.h>
10433 /* Override any gcc2 internal prototype to avoid an error.  */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 /* We use char because int might match the return type of a gcc2
10438    builtin and then its argument prototype would still apply.  */
10439 char $ac_func ();
10440 char (*f) ();
10441
10442 #ifdef F77_DUMMY_MAIN
10443 #  ifdef __cplusplus
10444      extern "C"
10445 #  endif
10446    int F77_DUMMY_MAIN() { return 1; }
10447 #endif
10448 int
10449 main ()
10450 {
10451 /* The GNU C library defines this for functions which it implements
10452     to always fail with ENOSYS.  Some functions are actually named
10453     something starting with __ and the normal name is an alias.  */
10454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10455 choke me
10456 #else
10457 f = $ac_func;
10458 #endif
10459
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -s conftest$ac_exeext'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; }; then
10476   eval "$as_ac_var=yes"
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 eval "$as_ac_var=no"
10481 fi
10482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10483 fi
10484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10486 if test `eval echo '${'$as_ac_var'}'` = yes; then
10487   cat >>confdefs.h <<_ACEOF
10488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10489 _ACEOF
10490
10491 else
10492   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10493 fi
10494 done
10495
10496
10497
10498 # Solaris has a very slow qsort in certain cases.
10499 case $host_os in
10500   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10501 esac
10502
10503 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10504 # this hackery with HPUXMATHLIB allows us to cope.
10505 HPUXMATHLIB=""
10506 case $host_cpu in
10507   hppa1.1)
10508         if test -r /lib/pa1.1/libm.a ; then
10509             HPUXMATHLIB="-L /lib/pa1.1 -lm"
10510         fi ;;
10511 esac
10512
10513
10514
10515 for ac_func in rint
10516 do
10517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518 echo "$as_me:$LINENO: checking for $ac_func" >&5
10519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_var+set}\" = set"; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   cat >conftest.$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10525 #include "confdefs.h"
10526 /* System header to define __stub macros and hopefully few prototypes,
10527     which can conflict with char $ac_func (); below.  */
10528 #include <assert.h>
10529 /* Override any gcc2 internal prototype to avoid an error.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 /* We use char because int might match the return type of a gcc2
10534    builtin and then its argument prototype would still apply.  */
10535 char $ac_func ();
10536 char (*f) ();
10537
10538 #ifdef F77_DUMMY_MAIN
10539 #  ifdef __cplusplus
10540      extern "C"
10541 #  endif
10542    int F77_DUMMY_MAIN() { return 1; }
10543 #endif
10544 int
10545 main ()
10546 {
10547 /* The GNU C library defines this for functions which it implements
10548     to always fail with ENOSYS.  Some functions are actually named
10549     something starting with __ and the normal name is an alias.  */
10550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10551 choke me
10552 #else
10553 f = $ac_func;
10554 #endif
10555
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562   (eval $ac_link) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -s conftest$ac_exeext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   eval "$as_ac_var=yes"
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10577 fi
10578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10579 fi
10580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583   cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585 _ACEOF
10586
10587 else
10588   echo "$as_me:$LINENO: checking for rint in -lm" >&5
10589 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10590 if test "${ac_cv_lib_m_rint+set}" = set; then
10591   echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593   ac_check_lib_save_LIBS=$LIBS
10594 LIBS="-lm $HPUXMATHLIB $LIBS"
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 #include "confdefs.h"
10598
10599 /* Override any gcc2 internal prototype to avoid an error.  */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 /* We use char because int might match the return type of a gcc2
10604    builtin and then its argument prototype would still apply.  */
10605 char rint ();
10606 #ifdef F77_DUMMY_MAIN
10607 #  ifdef __cplusplus
10608      extern "C"
10609 #  endif
10610    int F77_DUMMY_MAIN() { return 1; }
10611 #endif
10612 int
10613 main ()
10614 {
10615 rint ();
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622   (eval $ac_link) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -s conftest$ac_exeext'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_cv_lib_m_rint=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 ac_cv_lib_m_rint=no
10637 fi
10638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10640 fi
10641 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10642 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10643 if test $ac_cv_lib_m_rint = yes; then
10644   cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_RINT 1
10646 _ACEOF
10647
10648 fi
10649
10650 fi
10651 done
10652
10653
10654
10655 if test "$with_readline" = yes; then
10656   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10657 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line $LINENO "configure"
10660 #include "confdefs.h"
10661 #include <stdio.h>
10662 #ifdef HAVE_READLINE_READLINE_H
10663 # include <readline/readline.h>
10664 #elif defined(HAVE_READLINE_H)
10665 # include <readline.h>
10666 #endif
10667
10668 #ifdef F77_DUMMY_MAIN
10669 #  ifdef __cplusplus
10670      extern "C"
10671 #  endif
10672    int F77_DUMMY_MAIN() { return 1; }
10673 #endif
10674 int
10675 main ()
10676 {
10677 rl_completion_append_character = 'x';
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684   (eval $ac_link) 2>&5
10685   ac_status=$?
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } &&
10688          { ac_try='test -s conftest$ac_exeext'
10689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690   (eval $ac_try) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; }; then
10694   echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10696
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10699 _ACEOF
10700
10701 else
10702   echo "$as_me: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10706 fi
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10708
10709
10710 for ac_func in rl_completion_matches rl_filename_completion_function
10711 do
10712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 echo "$as_me:$LINENO: checking for $ac_func" >&5
10714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10715 if eval "test \"\${$as_ac_var+set}\" = set"; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 #include "confdefs.h"
10721 /* System header to define __stub macros and hopefully few prototypes,
10722     which can conflict with char $ac_func (); below.  */
10723 #include <assert.h>
10724 /* Override any gcc2 internal prototype to avoid an error.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729    builtin and then its argument prototype would still apply.  */
10730 char $ac_func ();
10731 char (*f) ();
10732
10733 #ifdef F77_DUMMY_MAIN
10734 #  ifdef __cplusplus
10735      extern "C"
10736 #  endif
10737    int F77_DUMMY_MAIN() { return 1; }
10738 #endif
10739 int
10740 main ()
10741 {
10742 /* The GNU C library defines this for functions which it implements
10743     to always fail with ENOSYS.  Some functions are actually named
10744     something starting with __ and the normal name is an alias.  */
10745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10746 choke me
10747 #else
10748 f = $ac_func;
10749 #endif
10750
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757   (eval $ac_link) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -s conftest$ac_exeext'
10762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763   (eval $ac_try) 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   eval "$as_ac_var=yes"
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 eval "$as_ac_var=no"
10772 fi
10773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10774 fi
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778   cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10780 _ACEOF
10781
10782 fi
10783 done
10784
10785 fi
10786
10787
10788 echo "$as_me:$LINENO: checking for finite" >&5
10789 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10792 #include "confdefs.h"
10793 #include <math.h>
10794 #ifdef F77_DUMMY_MAIN
10795 #  ifdef __cplusplus
10796      extern "C"
10797 #  endif
10798    int F77_DUMMY_MAIN() { return 1; }
10799 #endif
10800 int
10801 main ()
10802 {
10803 int dummy=finite(1.0);
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810   (eval $ac_link) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -s conftest$ac_exeext'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_FINITE 1
10823 _ACEOF
10824
10825 echo "$as_me:$LINENO: result: yes" >&5
10826 echo "${ECHO_T}yes" >&6
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6
10832 fi
10833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10834
10835 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10836 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10838 #line $LINENO "configure"
10839 #include "confdefs.h"
10840 #include <setjmp.h>
10841 #ifdef F77_DUMMY_MAIN
10842 #  ifdef __cplusplus
10843      extern "C"
10844 #  endif
10845    int F77_DUMMY_MAIN() { return 1; }
10846 #endif
10847 int
10848 main ()
10849 {
10850 sigjmp_buf x; sigsetjmp(x, 1);
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857   (eval $ac_link) 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } &&
10861          { ac_try='test -s conftest$ac_exeext'
10862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863   (eval $ac_try) 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; }; then
10867
10868 cat >>confdefs.h <<\_ACEOF
10869 #define HAVE_SIGSETJMP 1
10870 _ACEOF
10871
10872 echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10874 else
10875   echo "$as_me: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10879 fi
10880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10881
10882 echo "$as_me:$LINENO: checking for syslog" >&5
10883 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10884 if test "${ac_cv_func_syslog+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 #include "confdefs.h"
10890 /* System header to define __stub macros and hopefully few prototypes,
10891     which can conflict with char syslog (); below.  */
10892 #include <assert.h>
10893 /* Override any gcc2 internal prototype to avoid an error.  */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 /* We use char because int might match the return type of a gcc2
10898    builtin and then its argument prototype would still apply.  */
10899 char syslog ();
10900 char (*f) ();
10901
10902 #ifdef F77_DUMMY_MAIN
10903 #  ifdef __cplusplus
10904      extern "C"
10905 #  endif
10906    int F77_DUMMY_MAIN() { return 1; }
10907 #endif
10908 int
10909 main ()
10910 {
10911 /* The GNU C library defines this for functions which it implements
10912     to always fail with ENOSYS.  Some functions are actually named
10913     something starting with __ and the normal name is an alias.  */
10914 #if defined (__stub_syslog) || defined (__stub___syslog)
10915 choke me
10916 #else
10917 f = syslog;
10918 #endif
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926   (eval $ac_link) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -s conftest$ac_exeext'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   ac_cv_func_syslog=yes
10937 else
10938   echo "$as_me: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 ac_cv_func_syslog=no
10941 fi
10942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10943 fi
10944 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10945 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10946 if test $ac_cv_func_syslog = yes; then
10947   if test "${ac_cv_header_syslog_h+set}" = set; then
10948   echo "$as_me:$LINENO: checking for syslog.h" >&5
10949 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10950 if test "${ac_cv_header_syslog_h+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 fi
10953 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10954 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10955 else
10956   # Is the header compilable?
10957 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10958 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line $LINENO "configure"
10961 #include "confdefs.h"
10962 $ac_includes_default
10963 #include <syslog.h>
10964 _ACEOF
10965 rm -f conftest.$ac_objext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967   (eval $ac_compile) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } &&
10971          { ac_try='test -s conftest.$ac_objext'
10972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973   (eval $ac_try) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977   ac_header_compiler=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 ac_header_compiler=no
10982 fi
10983 rm -f conftest.$ac_objext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6
10986
10987 # Is the header present?
10988 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10989 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10993 #include <syslog.h>
10994 _ACEOF
10995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10997   ac_status=$?
10998   egrep -v '^ *\+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } >/dev/null; then
11003   if test -s conftest.err; then
11004     ac_cpp_err=$ac_c_preproc_warn_flag
11005   else
11006     ac_cpp_err=
11007   fi
11008 else
11009   ac_cpp_err=yes
11010 fi
11011 if test -z "$ac_cpp_err"; then
11012   ac_header_preproc=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015   cat conftest.$ac_ext >&5
11016   ac_header_preproc=no
11017 fi
11018 rm -f conftest.err conftest.$ac_ext
11019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 echo "${ECHO_T}$ac_header_preproc" >&6
11021
11022 # So?  What about this header?
11023 case $ac_header_compiler:$ac_header_preproc in
11024   yes:no )
11025     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11026 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11029   no:yes )
11030     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11034     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11035 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11036 esac
11037 echo "$as_me:$LINENO: checking for syslog.h" >&5
11038 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11039 if test "${ac_cv_header_syslog_h+set}" = set; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   ac_cv_header_syslog_h=$ac_header_preproc
11043 fi
11044 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11045 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11046
11047 fi
11048 if test $ac_cv_header_syslog_h = yes; then
11049   cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_SYSLOG 1
11051 _ACEOF
11052
11053 fi
11054
11055
11056 fi
11057
11058
11059 echo "$as_me:$LINENO: checking for optreset" >&5
11060 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11061 if test "${pgac_cv_var_int_optreset+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11066 #include "confdefs.h"
11067 #include <unistd.h>
11068 #ifdef F77_DUMMY_MAIN
11069 #  ifdef __cplusplus
11070      extern "C"
11071 #  endif
11072    int F77_DUMMY_MAIN() { return 1; }
11073 #endif
11074 int
11075 main ()
11076 {
11077 extern int optreset; optreset = 1;
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084   (eval $ac_link) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -s conftest$ac_exeext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   pgac_cv_var_int_optreset=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 pgac_cv_var_int_optreset=no
11099 fi
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11101 fi
11102 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11103 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11104 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_INT_OPTRESET 1
11108 _ACEOF
11109
11110 fi
11111
11112
11113
11114 for ac_func in strtoll strtoq
11115 do
11116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11117 echo "$as_me:$LINENO: checking for $ac_func" >&5
11118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11119 if eval "test \"\${$as_ac_var+set}\" = set"; then
11120   echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122   cat >conftest.$ac_ext <<_ACEOF
11123 #line $LINENO "configure"
11124 #include "confdefs.h"
11125 /* System header to define __stub macros and hopefully few prototypes,
11126     which can conflict with char $ac_func (); below.  */
11127 #include <assert.h>
11128 /* Override any gcc2 internal prototype to avoid an error.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 /* We use char because int might match the return type of a gcc2
11133    builtin and then its argument prototype would still apply.  */
11134 char $ac_func ();
11135 char (*f) ();
11136
11137 #ifdef F77_DUMMY_MAIN
11138 #  ifdef __cplusplus
11139      extern "C"
11140 #  endif
11141    int F77_DUMMY_MAIN() { return 1; }
11142 #endif
11143 int
11144 main ()
11145 {
11146 /* The GNU C library defines this for functions which it implements
11147     to always fail with ENOSYS.  Some functions are actually named
11148     something starting with __ and the normal name is an alias.  */
11149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11150 choke me
11151 #else
11152 f = $ac_func;
11153 #endif
11154
11155   ;
11156   return 0;
11157 }
11158 _ACEOF
11159 rm -f conftest.$ac_objext conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161   (eval $ac_link) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -s conftest$ac_exeext'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; }; then
11171   eval "$as_ac_var=yes"
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 eval "$as_ac_var=no"
11176 fi
11177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178 fi
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11182   cat >>confdefs.h <<_ACEOF
11183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11184 _ACEOF
11185  break
11186 fi
11187 done
11188
11189
11190
11191 for ac_func in strtoull strtouq
11192 do
11193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11194 echo "$as_me:$LINENO: checking for $ac_func" >&5
11195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11196 if eval "test \"\${$as_ac_var+set}\" = set"; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   cat >conftest.$ac_ext <<_ACEOF
11200 #line $LINENO "configure"
11201 #include "confdefs.h"
11202 /* System header to define __stub macros and hopefully few prototypes,
11203     which can conflict with char $ac_func (); below.  */
11204 #include <assert.h>
11205 /* Override any gcc2 internal prototype to avoid an error.  */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 /* We use char because int might match the return type of a gcc2
11210    builtin and then its argument prototype would still apply.  */
11211 char $ac_func ();
11212 char (*f) ();
11213
11214 #ifdef F77_DUMMY_MAIN
11215 #  ifdef __cplusplus
11216      extern "C"
11217 #  endif
11218    int F77_DUMMY_MAIN() { return 1; }
11219 #endif
11220 int
11221 main ()
11222 {
11223 /* The GNU C library defines this for functions which it implements
11224     to always fail with ENOSYS.  Some functions are actually named
11225     something starting with __ and the normal name is an alias.  */
11226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11227 choke me
11228 #else
11229 f = $ac_func;
11230 #endif
11231
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238   (eval $ac_link) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } &&
11242          { ac_try='test -s conftest$ac_exeext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   eval "$as_ac_var=yes"
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 eval "$as_ac_var=no"
11253 fi
11254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11255 fi
11256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11258 if test `eval echo '${'$as_ac_var'}'` = yes; then
11259   cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 _ACEOF
11262  break
11263 fi
11264 done
11265
11266
11267 # Check for one of atexit() or on_exit()
11268
11269 for ac_func in atexit
11270 do
11271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11272 echo "$as_me:$LINENO: checking for $ac_func" >&5
11273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11274 if eval "test \"\${$as_ac_var+set}\" = set"; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 #include "confdefs.h"
11280 /* System header to define __stub macros and hopefully few prototypes,
11281     which can conflict with char $ac_func (); below.  */
11282 #include <assert.h>
11283 /* Override any gcc2 internal prototype to avoid an error.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 /* We use char because int might match the return type of a gcc2
11288    builtin and then its argument prototype would still apply.  */
11289 char $ac_func ();
11290 char (*f) ();
11291
11292 #ifdef F77_DUMMY_MAIN
11293 #  ifdef __cplusplus
11294      extern "C"
11295 #  endif
11296    int F77_DUMMY_MAIN() { return 1; }
11297 #endif
11298 int
11299 main ()
11300 {
11301 /* The GNU C library defines this for functions which it implements
11302     to always fail with ENOSYS.  Some functions are actually named
11303     something starting with __ and the normal name is an alias.  */
11304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11305 choke me
11306 #else
11307 f = $ac_func;
11308 #endif
11309
11310   ;
11311   return 0;
11312 }
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316   (eval $ac_link) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } &&
11320          { ac_try='test -s conftest$ac_exeext'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; }; then
11326   eval "$as_ac_var=yes"
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 eval "$as_ac_var=no"
11331 fi
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11333 fi
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336 if test `eval echo '${'$as_ac_var'}'` = yes; then
11337   cat >>confdefs.h <<_ACEOF
11338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339 _ACEOF
11340
11341 else
11342
11343 for ac_func in on_exit
11344 do
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11348 if eval "test \"\${$as_ac_var+set}\" = set"; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355     which can conflict with char $ac_func (); below.  */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error.  */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 /* We use char because int might match the return type of a gcc2
11362    builtin and then its argument prototype would still apply.  */
11363 char $ac_func ();
11364 char (*f) ();
11365
11366 #ifdef F77_DUMMY_MAIN
11367 #  ifdef __cplusplus
11368      extern "C"
11369 #  endif
11370    int F77_DUMMY_MAIN() { return 1; }
11371 #endif
11372 int
11373 main ()
11374 {
11375 /* The GNU C library defines this for functions which it implements
11376     to always fail with ENOSYS.  Some functions are actually named
11377     something starting with __ and the normal name is an alias.  */
11378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11379 choke me
11380 #else
11381 f = $ac_func;
11382 #endif
11383
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390   (eval $ac_link) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } &&
11394          { ac_try='test -s conftest$ac_exeext'
11395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   eval "$as_ac_var=yes"
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 eval "$as_ac_var=no"
11405 fi
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 fi
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 else
11416   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11417 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11418    { (exit 1); exit 1; }; }
11419 fi
11420 done
11421
11422 fi
11423 done
11424
11425
11426 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11427 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11428 if test "${ac_cv_sys_largefile_source+set}" = set; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   while :; do
11432   ac_cv_sys_largefile_source=no
11433   cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11436 #include <stdio.h>
11437 #ifdef F77_DUMMY_MAIN
11438 #  ifdef __cplusplus
11439      extern "C"
11440 #  endif
11441    int F77_DUMMY_MAIN() { return 1; }
11442 #endif
11443 int
11444 main ()
11445 {
11446 return !fseeko;
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453   (eval $ac_compile) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -s conftest.$ac_objext'
11458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459   (eval $ac_try) 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); }; }; then
11463   break
11464 else
11465   echo "$as_me: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11467 fi
11468 rm -f conftest.$ac_objext conftest.$ac_ext
11469   cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 #define _LARGEFILE_SOURCE 1
11473 #include <stdio.h>
11474 #ifdef F77_DUMMY_MAIN
11475 #  ifdef __cplusplus
11476      extern "C"
11477 #  endif
11478    int F77_DUMMY_MAIN() { return 1; }
11479 #endif
11480 int
11481 main ()
11482 {
11483 return !fseeko;
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490   (eval $ac_compile) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } &&
11494          { ac_try='test -s conftest.$ac_objext'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; }; then
11500   ac_cv_sys_largefile_source=1; break
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 fi
11505 rm -f conftest.$ac_objext conftest.$ac_ext
11506   break
11507 done
11508 fi
11509 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11510 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11511 if test "$ac_cv_sys_largefile_source" != no; then
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11515 _ACEOF
11516
11517 fi
11518 rm -f conftest*
11519
11520 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11521 # in glibc 2.1.3, but that breaks too many other things.
11522 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11523 echo "$as_me:$LINENO: checking for fseeko" >&5
11524 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11525 if test "${ac_cv_func_fseeko+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528   cat >conftest.$ac_ext <<_ACEOF
11529 #line $LINENO "configure"
11530 #include "confdefs.h"
11531 #include <stdio.h>
11532 #ifdef F77_DUMMY_MAIN
11533 #  ifdef __cplusplus
11534      extern "C"
11535 #  endif
11536    int F77_DUMMY_MAIN() { return 1; }
11537 #endif
11538 int
11539 main ()
11540 {
11541 return fseeko && fseeko (stdin, 0, 0);
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548   (eval $ac_link) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } &&
11552          { ac_try='test -s conftest$ac_exeext'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_cv_func_fseeko=yes
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 ac_cv_func_fseeko=no
11563 fi
11564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11565 fi
11566 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11567 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11568 if test $ac_cv_func_fseeko = yes; then
11569
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_FSEEKO 1
11572 _ACEOF
11573
11574 fi
11575
11576
11577
11578 # This test makes sure that run tests work at all.  Sometimes a shared
11579 # library is found by the linker, but the runtime linker can't find it.
11580 # This check should come after all modifications of compiler or linker
11581 # variables, and before any other run tests.
11582 echo "$as_me:$LINENO: checking test program" >&5
11583 echo $ECHO_N "checking test program... $ECHO_C" >&6
11584 if test "$cross_compiling" = yes; then
11585   echo "$as_me:$LINENO: result: cross-compiling" >&5
11586 echo "${ECHO_T}cross-compiling" >&6
11587 else
11588   cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11590 #include "confdefs.h"
11591 int main() { return 0; }
11592 _ACEOF
11593 rm -f conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   echo "$as_me:$LINENO: result: ok" >&5
11605 echo "${ECHO_T}ok" >&6
11606 else
11607   echo "$as_me: program exited with status $ac_status" >&5
11608 echo "$as_me: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11610 ( exit $ac_status )
11611 echo "$as_me:$LINENO: result: failed" >&5
11612 echo "${ECHO_T}failed" >&6
11613 { { echo "$as_me:$LINENO: error:
11614 *** Could not execute a simple test program.  This may be a problem
11615 *** related to locating shared libraries.  Check the file 'config.log'
11616 *** for the exact reason." >&5
11617 echo "$as_me: error:
11618 *** Could not execute a simple test program.  This may be a problem
11619 *** related to locating shared libraries.  Check the file 'config.log'
11620 *** for the exact reason." >&2;}
11621    { (exit 1); exit 1; }; }
11622 fi
11623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11624 fi
11625
11626
11627
11628 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11629 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11630 if test "${pgac_cv_type_long_int_64+set}" = set; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   if test "$cross_compiling" = yes; then
11634   pgac_cv_type_long_int_64=no
11635 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11636 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11637 else
11638   cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11641 typedef long int int64;
11642
11643 /*
11644  * These are globals to discourage the compiler from folding all the
11645  * arithmetic tests down to compile-time constants.
11646  */
11647 int64 a = 20000001;
11648 int64 b = 40000005;
11649
11650 int does_int64_work()
11651 {
11652   int64 c,d;
11653
11654   if (sizeof(int64) != 8)
11655     return 0;                   /* definitely not the right size */
11656
11657   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11658   c = a * b;
11659   d = (c + b) / b;
11660   if (d != a+1)
11661     return 0;
11662   return 1;
11663 }
11664 main() {
11665   exit(! does_int64_work());
11666 }
11667 _ACEOF
11668 rm -f conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670   (eval $ac_link) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   pgac_cv_type_long_int_64=yes
11680 else
11681   echo "$as_me: program exited with status $ac_status" >&5
11682 echo "$as_me: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11684 ( exit $ac_status )
11685 pgac_cv_type_long_int_64=no
11686 fi
11687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11688 fi
11689 fi
11690 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11691 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11692
11693 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11694 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11695
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_LONG_INT_64
11698 _ACEOF
11699
11700 fi
11701
11702
11703 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11704   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11705 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11706 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   if test "$cross_compiling" = yes; then
11710   pgac_cv_type_long_long_int_64=no
11711 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11712 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11713 else
11714   cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717 typedef long long int int64;
11718
11719 /*
11720  * These are globals to discourage the compiler from folding all the
11721  * arithmetic tests down to compile-time constants.
11722  */
11723 int64 a = 20000001;
11724 int64 b = 40000005;
11725
11726 int does_int64_work()
11727 {
11728   int64 c,d;
11729
11730   if (sizeof(int64) != 8)
11731     return 0;                   /* definitely not the right size */
11732
11733   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11734   c = a * b;
11735   d = (c + b) / b;
11736   if (d != a+1)
11737     return 0;
11738   return 1;
11739 }
11740 main() {
11741   exit(! does_int64_work());
11742 }
11743 _ACEOF
11744 rm -f conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   pgac_cv_type_long_long_int_64=yes
11756 else
11757   echo "$as_me: program exited with status $ac_status" >&5
11758 echo "$as_me: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11760 ( exit $ac_status )
11761 pgac_cv_type_long_long_int_64=no
11762 fi
11763 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11764 fi
11765 fi
11766 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11767 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11768
11769 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11770 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11771
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_LONG_LONG_INT_64
11774 _ACEOF
11775
11776 fi
11777
11778 fi
11779
11780
11781
11782 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11783   cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 #include "confdefs.h"
11786
11787 #define INT64CONST(x)  x##LL
11788 long long int foo = INT64CONST(0x1234567890123456);
11789
11790 #ifdef F77_DUMMY_MAIN
11791 #  ifdef __cplusplus
11792      extern "C"
11793 #  endif
11794    int F77_DUMMY_MAIN() { return 1; }
11795 #endif
11796 int
11797 main ()
11798 {
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806   (eval $ac_compile) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -s conftest.$ac_objext'
11811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812   (eval $ac_try) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_LL_CONSTANTS 1
11819 _ACEOF
11820
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11824 fi
11825 rm -f conftest.$ac_objext conftest.$ac_ext
11826 fi
11827
11828
11829
11830 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11831   if test $pgac_need_repl_snprintf = no; then
11832     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11833 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11834     if test "$cross_compiling" = yes; then
11835    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11836 echo "${ECHO_T}cannot test (not on host machine)" >&6
11837         # Force usage of our own snprintf, since we cannot test foreign snprintf
11838         pgac_need_repl_snprintf=yes
11839         INT64_FORMAT='"%lld"'
11840
11841 else
11842   cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11844 #include "confdefs.h"
11845 #include <stdio.h>
11846 typedef long long int int64;
11847 #define INT64_FORMAT "%lld"
11848
11849 int64 a = 20000001;
11850 int64 b = 40000005;
11851
11852 int does_int64_snprintf_work()
11853 {
11854   int64 c;
11855   char buf[100];
11856
11857   if (sizeof(int64) != 8)
11858     return 0;                   /* doesn't look like the right size */
11859
11860   c = a * b;
11861   snprintf(buf, 100, INT64_FORMAT, c);
11862   if (strcmp(buf, "800000140000005") != 0)
11863     return 0;                   /* either multiply or snprintf is busted */
11864   return 1;
11865 }
11866 main() {
11867   exit(! does_int64_snprintf_work());
11868 }
11869 _ACEOF
11870 rm -f conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872   (eval $ac_link) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877   (eval $ac_try) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; }; then
11881    echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883           INT64_FORMAT='"%lld"'
11884
11885 else
11886   echo "$as_me: program exited with status $ac_status" >&5
11887 echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 ( exit $ac_status )
11890  echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6
11892     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11893 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11894     if test "$cross_compiling" = yes; then
11895    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11896 echo "${ECHO_T}cannot test (not on host machine)" >&6
11897         # Force usage of our own snprintf, since we cannot test foreign snprintf
11898         pgac_need_repl_snprintf=yes
11899         INT64_FORMAT='"%lld"'
11900
11901 else
11902   cat >conftest.$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11904 #include "confdefs.h"
11905 #include <stdio.h>
11906 typedef long long int int64;
11907 #define INT64_FORMAT "%qd"
11908
11909 int64 a = 20000001;
11910 int64 b = 40000005;
11911
11912 int does_int64_snprintf_work()
11913 {
11914   int64 c;
11915   char buf[100];
11916
11917   if (sizeof(int64) != 8)
11918     return 0;     /* doesn't look like the right size */
11919
11920   c = a * b;
11921   snprintf(buf, 100, INT64_FORMAT, c);
11922   if (strcmp(buf, "800000140000005") != 0)
11923     return 0;     /* either multiply or snprintf is busted */
11924   return 1;
11925 }
11926 main() {
11927   exit(! does_int64_snprintf_work());
11928 }
11929 _ACEOF
11930 rm -f conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; }; then
11941    echo "$as_me:$LINENO: result: yes" >&5
11942 echo "${ECHO_T}yes" >&6
11943     INT64_FORMAT='"%qd"'
11944
11945 else
11946   echo "$as_me: program exited with status $ac_status" >&5
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 ( exit $ac_status )
11950  echo "$as_me:$LINENO: result: no" >&5
11951 echo "${ECHO_T}no" >&6
11952         # Force usage of our own snprintf, since system snprintf is broken
11953         pgac_need_repl_snprintf=yes
11954         INT64_FORMAT='"%lld"'
11955
11956 fi
11957 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11958 fi
11959 fi
11960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11961 fi
11962   else
11963     # here if we previously decided we needed to use our own snprintf
11964     INT64_FORMAT='"%lld"'
11965   fi
11966 else
11967   # Here if we are not using 'long long int' at all
11968   INT64_FORMAT='"%ld"'
11969 fi
11970
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define INT64_FORMAT $INT64_FORMAT
11974 _ACEOF
11975
11976
11977 if test $pgac_need_repl_snprintf = yes; then
11978   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11979 fi
11980
11981
11982 echo "$as_me:$LINENO: checking for unsigned long" >&5
11983 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11984 if test "${ac_cv_type_unsigned_long+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 $ac_includes_default
11991 #ifdef F77_DUMMY_MAIN
11992 #  ifdef __cplusplus
11993      extern "C"
11994 #  endif
11995    int F77_DUMMY_MAIN() { return 1; }
11996 #endif
11997 int
11998 main ()
11999 {
12000 if ((unsigned long *) 0)
12001   return 0;
12002 if (sizeof (unsigned long))
12003   return 0;
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010   (eval $ac_compile) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest.$ac_objext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   ac_cv_type_unsigned_long=yes
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 ac_cv_type_unsigned_long=no
12025 fi
12026 rm -f conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12029 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12030
12031 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12032 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12033 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   if test "$ac_cv_type_unsigned_long" = yes; then
12037   # The cast to unsigned long works around a bug in the HP C Compiler
12038   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12039   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12040   # This bug is HP SR number 8606223364.
12041   if test "$cross_compiling" = yes; then
12042   # Depending upon the size, compute the lo and hi bounds.
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 #include "confdefs.h"
12046 $ac_includes_default
12047 #ifdef F77_DUMMY_MAIN
12048 #  ifdef __cplusplus
12049      extern "C"
12050 #  endif
12051    int F77_DUMMY_MAIN() { return 1; }
12052 #endif
12053 int
12054 main ()
12055 {
12056 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12057 test_array [0] = 0
12058
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065   (eval $ac_compile) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -s conftest.$ac_objext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_lo=0 ac_mid=0
12076   while :; do
12077     cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 #include "confdefs.h"
12080 $ac_includes_default
12081 #ifdef F77_DUMMY_MAIN
12082 #  ifdef __cplusplus
12083      extern "C"
12084 #  endif
12085    int F77_DUMMY_MAIN() { return 1; }
12086 #endif
12087 int
12088 main ()
12089 {
12090 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12091 test_array [0] = 0
12092
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 rm -f conftest.$ac_objext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12099   (eval $ac_compile) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); } &&
12103          { ac_try='test -s conftest.$ac_objext'
12104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105   (eval $ac_try) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; }; then
12109   ac_hi=$ac_mid; break
12110 else
12111   echo "$as_me: failed program was:" >&5
12112 cat conftest.$ac_ext >&5
12113 ac_lo=`expr $ac_mid + 1`
12114                     if test $ac_lo -le $ac_mid; then
12115                       ac_lo= ac_hi=
12116                       break
12117                     fi
12118                     ac_mid=`expr 2 '*' $ac_mid + 1`
12119 fi
12120 rm -f conftest.$ac_objext conftest.$ac_ext
12121   done
12122 else
12123   echo "$as_me: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12125 cat >conftest.$ac_ext <<_ACEOF
12126 #line $LINENO "configure"
12127 #include "confdefs.h"
12128 $ac_includes_default
12129 #ifdef F77_DUMMY_MAIN
12130 #  ifdef __cplusplus
12131      extern "C"
12132 #  endif
12133    int F77_DUMMY_MAIN() { return 1; }
12134 #endif
12135 int
12136 main ()
12137 {
12138 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12139 test_array [0] = 0
12140
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147   (eval $ac_compile) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } &&
12151          { ac_try='test -s conftest.$ac_objext'
12152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153   (eval $ac_try) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_hi=-1 ac_mid=-1
12158   while :; do
12159     cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 $ac_includes_default
12163 #ifdef F77_DUMMY_MAIN
12164 #  ifdef __cplusplus
12165      extern "C"
12166 #  endif
12167    int F77_DUMMY_MAIN() { return 1; }
12168 #endif
12169 int
12170 main ()
12171 {
12172 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12173 test_array [0] = 0
12174
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181   (eval $ac_compile) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -s conftest.$ac_objext'
12186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187   (eval $ac_try) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); }; }; then
12191   ac_lo=$ac_mid; break
12192 else
12193   echo "$as_me: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 ac_hi=`expr '(' $ac_mid ')' - 1`
12196                        if test $ac_mid -le $ac_hi; then
12197                          ac_lo= ac_hi=
12198                          break
12199                        fi
12200                        ac_mid=`expr 2 '*' $ac_mid`
12201 fi
12202 rm -f conftest.$ac_objext conftest.$ac_ext
12203   done
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 ac_lo= ac_hi=
12208 fi
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12210 fi
12211 rm -f conftest.$ac_objext conftest.$ac_ext
12212 # Binary search between lo and hi bounds.
12213 while test "x$ac_lo" != "x$ac_hi"; do
12214   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 $ac_includes_default
12219 #ifdef F77_DUMMY_MAIN
12220 #  ifdef __cplusplus
12221      extern "C"
12222 #  endif
12223    int F77_DUMMY_MAIN() { return 1; }
12224 #endif
12225 int
12226 main ()
12227 {
12228 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12229 test_array [0] = 0
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237   (eval $ac_compile) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } &&
12241          { ac_try='test -s conftest.$ac_objext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   ac_hi=$ac_mid
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 ac_lo=`expr '(' $ac_mid ')' + 1`
12252 fi
12253 rm -f conftest.$ac_objext conftest.$ac_ext
12254 done
12255 case $ac_lo in
12256 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12258 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12259    { (exit 1); exit 1; }; } ;;
12260 esac
12261 else
12262   if test "$cross_compiling" = yes; then
12263   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12264 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12265    { (exit 1); exit 1; }; }
12266 else
12267   cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270 $ac_includes_default
12271 long longval () { return (long) (sizeof (unsigned long)); }
12272 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12273 #include <stdio.h>
12274 #include <stdlib.h>
12275 #ifdef F77_DUMMY_MAIN
12276 #  ifdef __cplusplus
12277      extern "C"
12278 #  endif
12279    int F77_DUMMY_MAIN() { return 1; }
12280 #endif
12281 int
12282 main ()
12283 {
12284
12285   FILE *f = fopen ("conftest.val", "w");
12286   if (! f)
12287     exit (1);
12288   if (((long) (sizeof (unsigned long))) < 0)
12289     {
12290       long i = longval ();
12291       if (i != ((long) (sizeof (unsigned long))))
12292         exit (1);
12293       fprintf (f, "%ld\n", i);
12294     }
12295   else
12296     {
12297       unsigned long i = ulongval ();
12298       if (i != ((long) (sizeof (unsigned long))))
12299         exit (1);
12300       fprintf (f, "%lu\n", i);
12301     }
12302   exit (ferror (f) || fclose (f) != 0);
12303
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310   (eval $ac_link) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12320 else
12321   echo "$as_me: program exited with status $ac_status" >&5
12322 echo "$as_me: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 ( exit $ac_status )
12325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12326 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12327    { (exit 1); exit 1; }; }
12328 fi
12329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12330 fi
12331 fi
12332 rm -f conftest.val
12333 else
12334   ac_cv_sizeof_unsigned_long=0
12335 fi
12336 fi
12337 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12338 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12339 cat >>confdefs.h <<_ACEOF
12340 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12341 _ACEOF
12342
12343
12344
12345 cat >>confdefs.h <<_ACEOF
12346 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12347 _ACEOF
12348
12349
12350 # Determine memory alignment requirements for the basic C data types.
12351
12352 echo "$as_me:$LINENO: checking for short" >&5
12353 echo $ECHO_N "checking for short... $ECHO_C" >&6
12354 if test "${ac_cv_type_short+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   cat >conftest.$ac_ext <<_ACEOF
12358 #line $LINENO "configure"
12359 #include "confdefs.h"
12360 $ac_includes_default
12361 #ifdef F77_DUMMY_MAIN
12362 #  ifdef __cplusplus
12363      extern "C"
12364 #  endif
12365    int F77_DUMMY_MAIN() { return 1; }
12366 #endif
12367 int
12368 main ()
12369 {
12370 if ((short *) 0)
12371   return 0;
12372 if (sizeof (short))
12373   return 0;
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380   (eval $ac_compile) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } &&
12384          { ac_try='test -s conftest.$ac_objext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_type_short=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 ac_cv_type_short=no
12395 fi
12396 rm -f conftest.$ac_objext conftest.$ac_ext
12397 fi
12398 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12399 echo "${ECHO_T}$ac_cv_type_short" >&6
12400
12401 echo "$as_me:$LINENO: checking alignment of short" >&5
12402 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12403 if test "${pgac_cv_alignof_short+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   if test "$ac_cv_type_short" = yes; then
12407   if test "$cross_compiling" = yes; then
12408   # Depending upon the size, compute the lo and hi bounds.
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 $ac_includes_default
12413 struct { char filler; short field; } pgac_struct;
12414 #ifdef F77_DUMMY_MAIN
12415 #  ifdef __cplusplus
12416      extern "C"
12417 #  endif
12418    int F77_DUMMY_MAIN() { return 1; }
12419 #endif
12420 int
12421 main ()
12422 {
12423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12424 test_array [0] = 0
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432   (eval $ac_compile) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_lo=0 ac_mid=0
12443   while :; do
12444     cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12447 $ac_includes_default
12448 struct { char filler; short field; } pgac_struct;
12449 #ifdef F77_DUMMY_MAIN
12450 #  ifdef __cplusplus
12451      extern "C"
12452 #  endif
12453    int F77_DUMMY_MAIN() { return 1; }
12454 #endif
12455 int
12456 main ()
12457 {
12458 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12459 test_array [0] = 0
12460
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -s conftest.$ac_objext'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   ac_hi=$ac_mid; break
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ac_lo=`expr $ac_mid + 1`
12482                     if test $ac_lo -le $ac_mid; then
12483                       ac_lo= ac_hi=
12484                       break
12485                     fi
12486                     ac_mid=`expr 2 '*' $ac_mid + 1`
12487 fi
12488 rm -f conftest.$ac_objext conftest.$ac_ext
12489   done
12490 else
12491   echo "$as_me: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12493 cat >conftest.$ac_ext <<_ACEOF
12494 #line $LINENO "configure"
12495 #include "confdefs.h"
12496 $ac_includes_default
12497 struct { char filler; short field; } pgac_struct;
12498 #ifdef F77_DUMMY_MAIN
12499 #  ifdef __cplusplus
12500      extern "C"
12501 #  endif
12502    int F77_DUMMY_MAIN() { return 1; }
12503 #endif
12504 int
12505 main ()
12506 {
12507 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12508 test_array [0] = 0
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -s conftest.$ac_objext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_hi=-1 ac_mid=-1
12527   while :; do
12528     cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 #include "confdefs.h"
12531 $ac_includes_default
12532 struct { char filler; short field; } pgac_struct;
12533 #ifdef F77_DUMMY_MAIN
12534 #  ifdef __cplusplus
12535      extern "C"
12536 #  endif
12537    int F77_DUMMY_MAIN() { return 1; }
12538 #endif
12539 int
12540 main ()
12541 {
12542 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12543 test_array [0] = 0
12544
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551   (eval $ac_compile) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } &&
12555          { ac_try='test -s conftest.$ac_objext'
12556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557   (eval $ac_try) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   ac_lo=$ac_mid; break
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 ac_hi=`expr '(' $ac_mid ')' - 1`
12566                        if test $ac_mid -le $ac_hi; then
12567                          ac_lo= ac_hi=
12568                          break
12569                        fi
12570                        ac_mid=`expr 2 '*' $ac_mid`
12571 fi
12572 rm -f conftest.$ac_objext conftest.$ac_ext
12573   done
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 ac_lo= ac_hi=
12578 fi
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12580 fi
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 # Binary search between lo and hi bounds.
12583 while test "x$ac_lo" != "x$ac_hi"; do
12584   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12585   cat >conftest.$ac_ext <<_ACEOF
12586 #line $LINENO "configure"
12587 #include "confdefs.h"
12588 $ac_includes_default
12589 struct { char filler; short field; } pgac_struct;
12590 #ifdef F77_DUMMY_MAIN
12591 #  ifdef __cplusplus
12592      extern "C"
12593 #  endif
12594    int F77_DUMMY_MAIN() { return 1; }
12595 #endif
12596 int
12597 main ()
12598 {
12599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12600 test_array [0] = 0
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } &&
12612          { ac_try='test -s conftest.$ac_objext'
12613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614   (eval $ac_try) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   ac_hi=$ac_mid
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 ac_lo=`expr '(' $ac_mid ')' + 1`
12623 fi
12624 rm -f conftest.$ac_objext conftest.$ac_ext
12625 done
12626 case $ac_lo in
12627 ?*) pgac_cv_alignof_short=$ac_lo;;
12628 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12629 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12630    { (exit 1); exit 1; }; } ;;
12631 esac
12632 else
12633   if test "$cross_compiling" = yes; then
12634   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12635 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12636    { (exit 1); exit 1; }; }
12637 else
12638   cat >conftest.$ac_ext <<_ACEOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12641 $ac_includes_default
12642 struct { char filler; short field; } pgac_struct;
12643 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12644 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12645 #include <stdio.h>
12646 #include <stdlib.h>
12647 #ifdef F77_DUMMY_MAIN
12648 #  ifdef __cplusplus
12649      extern "C"
12650 #  endif
12651    int F77_DUMMY_MAIN() { return 1; }
12652 #endif
12653 int
12654 main ()
12655 {
12656
12657   FILE *f = fopen ("conftest.val", "w");
12658   if (! f)
12659     exit (1);
12660   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12661     {
12662       long i = longval ();
12663       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12664         exit (1);
12665       fprintf (f, "%ld\n", i);
12666     }
12667   else
12668     {
12669       unsigned long i = ulongval ();
12670       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12671         exit (1);
12672       fprintf (f, "%lu\n", i);
12673     }
12674   exit (ferror (f) || fclose (f) != 0);
12675
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 rm -f conftest$ac_exeext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682   (eval $ac_link) 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   pgac_cv_alignof_short=`cat conftest.val`
12692 else
12693   echo "$as_me: program exited with status $ac_status" >&5
12694 echo "$as_me: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 ( exit $ac_status )
12697 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12698 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12699    { (exit 1); exit 1; }; }
12700 fi
12701 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12702 fi
12703 fi
12704 rm -f conftest.val
12705 else
12706   pgac_cv_alignof_short=0
12707 fi
12708 fi
12709 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12710 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12711 cat >>confdefs.h <<_ACEOF
12712 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12713 _ACEOF
12714
12715
12716 echo "$as_me:$LINENO: checking for int" >&5
12717 echo $ECHO_N "checking for int... $ECHO_C" >&6
12718 if test "${ac_cv_type_int+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 $ac_includes_default
12725 #ifdef F77_DUMMY_MAIN
12726 #  ifdef __cplusplus
12727      extern "C"
12728 #  endif
12729    int F77_DUMMY_MAIN() { return 1; }
12730 #endif
12731 int
12732 main ()
12733 {
12734 if ((int *) 0)
12735   return 0;
12736 if (sizeof (int))
12737   return 0;
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744   (eval $ac_compile) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } &&
12748          { ac_try='test -s conftest.$ac_objext'
12749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750   (eval $ac_try) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; }; then
12754   ac_cv_type_int=yes
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12758 ac_cv_type_int=no
12759 fi
12760 rm -f conftest.$ac_objext conftest.$ac_ext
12761 fi
12762 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12763 echo "${ECHO_T}$ac_cv_type_int" >&6
12764
12765 echo "$as_me:$LINENO: checking alignment of int" >&5
12766 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12767 if test "${pgac_cv_alignof_int+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   if test "$ac_cv_type_int" = yes; then
12771   if test "$cross_compiling" = yes; then
12772   # Depending upon the size, compute the lo and hi bounds.
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 $ac_includes_default
12777 struct { char filler; int field; } pgac_struct;
12778 #ifdef F77_DUMMY_MAIN
12779 #  ifdef __cplusplus
12780      extern "C"
12781 #  endif
12782    int F77_DUMMY_MAIN() { return 1; }
12783 #endif
12784 int
12785 main ()
12786 {
12787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12788 test_array [0] = 0
12789
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796   (eval $ac_compile) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } &&
12800          { ac_try='test -s conftest.$ac_objext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_lo=0 ac_mid=0
12807   while :; do
12808     cat >conftest.$ac_ext <<_ACEOF
12809 #line $LINENO "configure"
12810 #include "confdefs.h"
12811 $ac_includes_default
12812 struct { char filler; int field; } pgac_struct;
12813 #ifdef F77_DUMMY_MAIN
12814 #  ifdef __cplusplus
12815      extern "C"
12816 #  endif
12817    int F77_DUMMY_MAIN() { return 1; }
12818 #endif
12819 int
12820 main ()
12821 {
12822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12823 test_array [0] = 0
12824
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831   (eval $ac_compile) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -s conftest.$ac_objext'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; }; then
12841   ac_hi=$ac_mid; break
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 ac_lo=`expr $ac_mid + 1`
12846                     if test $ac_lo -le $ac_mid; then
12847                       ac_lo= ac_hi=
12848                       break
12849                     fi
12850                     ac_mid=`expr 2 '*' $ac_mid + 1`
12851 fi
12852 rm -f conftest.$ac_objext conftest.$ac_ext
12853   done
12854 else
12855   echo "$as_me: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 $ac_includes_default
12861 struct { char filler; int field; } pgac_struct;
12862 #ifdef F77_DUMMY_MAIN
12863 #  ifdef __cplusplus
12864      extern "C"
12865 #  endif
12866    int F77_DUMMY_MAIN() { return 1; }
12867 #endif
12868 int
12869 main ()
12870 {
12871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12872 test_array [0] = 0
12873
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880   (eval $ac_compile) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -s conftest.$ac_objext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_hi=-1 ac_mid=-1
12891   while :; do
12892     cat >conftest.$ac_ext <<_ACEOF
12893 #line $LINENO "configure"
12894 #include "confdefs.h"
12895 $ac_includes_default
12896 struct { char filler; int field; } pgac_struct;
12897 #ifdef F77_DUMMY_MAIN
12898 #  ifdef __cplusplus
12899      extern "C"
12900 #  endif
12901    int F77_DUMMY_MAIN() { return 1; }
12902 #endif
12903 int
12904 main ()
12905 {
12906 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12907 test_array [0] = 0
12908
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915   (eval $ac_compile) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_lo=$ac_mid; break
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 ac_hi=`expr '(' $ac_mid ')' - 1`
12930                        if test $ac_mid -le $ac_hi; then
12931                          ac_lo= ac_hi=
12932                          break
12933                        fi
12934                        ac_mid=`expr 2 '*' $ac_mid`
12935 fi
12936 rm -f conftest.$ac_objext conftest.$ac_ext
12937   done
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12941 ac_lo= ac_hi=
12942 fi
12943 rm -f conftest.$ac_objext conftest.$ac_ext
12944 fi
12945 rm -f conftest.$ac_objext conftest.$ac_ext
12946 # Binary search between lo and hi bounds.
12947 while test "x$ac_lo" != "x$ac_hi"; do
12948   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12949   cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 #include "confdefs.h"
12952 $ac_includes_default
12953 struct { char filler; int field; } pgac_struct;
12954 #ifdef F77_DUMMY_MAIN
12955 #  ifdef __cplusplus
12956      extern "C"
12957 #  endif
12958    int F77_DUMMY_MAIN() { return 1; }
12959 #endif
12960 int
12961 main ()
12962 {
12963 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12964 test_array [0] = 0
12965
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12972   (eval $ac_compile) 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -s conftest.$ac_objext'
12977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978   (eval $ac_try) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); }; }; then
12982   ac_hi=$ac_mid
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 ac_lo=`expr '(' $ac_mid ')' + 1`
12987 fi
12988 rm -f conftest.$ac_objext conftest.$ac_ext
12989 done
12990 case $ac_lo in
12991 ?*) pgac_cv_alignof_int=$ac_lo;;
12992 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12993 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12994    { (exit 1); exit 1; }; } ;;
12995 esac
12996 else
12997   if test "$cross_compiling" = yes; then
12998   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12999 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13000    { (exit 1); exit 1; }; }
13001 else
13002   cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 $ac_includes_default
13006 struct { char filler; int field; } pgac_struct;
13007 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13008 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13009 #include <stdio.h>
13010 #include <stdlib.h>
13011 #ifdef F77_DUMMY_MAIN
13012 #  ifdef __cplusplus
13013      extern "C"
13014 #  endif
13015    int F77_DUMMY_MAIN() { return 1; }
13016 #endif
13017 int
13018 main ()
13019 {
13020
13021   FILE *f = fopen ("conftest.val", "w");
13022   if (! f)
13023     exit (1);
13024   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13025     {
13026       long i = longval ();
13027       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13028         exit (1);
13029       fprintf (f, "%ld\n", i);
13030     }
13031   else
13032     {
13033       unsigned long i = ulongval ();
13034       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13035         exit (1);
13036       fprintf (f, "%lu\n", i);
13037     }
13038   exit (ferror (f) || fclose (f) != 0);
13039
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046   (eval $ac_link) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   pgac_cv_alignof_int=`cat conftest.val`
13056 else
13057   echo "$as_me: program exited with status $ac_status" >&5
13058 echo "$as_me: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 ( exit $ac_status )
13061 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13062 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13063    { (exit 1); exit 1; }; }
13064 fi
13065 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13066 fi
13067 fi
13068 rm -f conftest.val
13069 else
13070   pgac_cv_alignof_int=0
13071 fi
13072 fi
13073 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13074 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13075 cat >>confdefs.h <<_ACEOF
13076 #define ALIGNOF_INT $pgac_cv_alignof_int
13077 _ACEOF
13078
13079
13080 echo "$as_me:$LINENO: checking for long" >&5
13081 echo $ECHO_N "checking for long... $ECHO_C" >&6
13082 if test "${ac_cv_type_long+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   cat >conftest.$ac_ext <<_ACEOF
13086 #line $LINENO "configure"
13087 #include "confdefs.h"
13088 $ac_includes_default
13089 #ifdef F77_DUMMY_MAIN
13090 #  ifdef __cplusplus
13091      extern "C"
13092 #  endif
13093    int F77_DUMMY_MAIN() { return 1; }
13094 #endif
13095 int
13096 main ()
13097 {
13098 if ((long *) 0)
13099   return 0;
13100 if (sizeof (long))
13101   return 0;
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -s conftest.$ac_objext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   ac_cv_type_long=yes
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 ac_cv_type_long=no
13123 fi
13124 rm -f conftest.$ac_objext conftest.$ac_ext
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13127 echo "${ECHO_T}$ac_cv_type_long" >&6
13128
13129 echo "$as_me:$LINENO: checking alignment of long" >&5
13130 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13131 if test "${pgac_cv_alignof_long+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   if test "$ac_cv_type_long" = yes; then
13135   if test "$cross_compiling" = yes; then
13136   # Depending upon the size, compute the lo and hi bounds.
13137 cat >conftest.$ac_ext <<_ACEOF
13138 #line $LINENO "configure"
13139 #include "confdefs.h"
13140 $ac_includes_default
13141 struct { char filler; long field; } pgac_struct;
13142 #ifdef F77_DUMMY_MAIN
13143 #  ifdef __cplusplus
13144      extern "C"
13145 #  endif
13146    int F77_DUMMY_MAIN() { return 1; }
13147 #endif
13148 int
13149 main ()
13150 {
13151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13152 test_array [0] = 0
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -s conftest.$ac_objext'
13165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166   (eval $ac_try) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_lo=0 ac_mid=0
13171   while :; do
13172     cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 #include "confdefs.h"
13175 $ac_includes_default
13176 struct { char filler; long field; } pgac_struct;
13177 #ifdef F77_DUMMY_MAIN
13178 #  ifdef __cplusplus
13179      extern "C"
13180 #  endif
13181    int F77_DUMMY_MAIN() { return 1; }
13182 #endif
13183 int
13184 main ()
13185 {
13186 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13187 test_array [0] = 0
13188
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195   (eval $ac_compile) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -s conftest.$ac_objext'
13200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201   (eval $ac_try) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; }; then
13205   ac_hi=$ac_mid; break
13206 else
13207   echo "$as_me: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13209 ac_lo=`expr $ac_mid + 1`
13210                     if test $ac_lo -le $ac_mid; then
13211                       ac_lo= ac_hi=
13212                       break
13213                     fi
13214                     ac_mid=`expr 2 '*' $ac_mid + 1`
13215 fi
13216 rm -f conftest.$ac_objext conftest.$ac_ext
13217   done
13218 else
13219   echo "$as_me: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 cat >conftest.$ac_ext <<_ACEOF
13222 #line $LINENO "configure"
13223 #include "confdefs.h"
13224 $ac_includes_default
13225 struct { char filler; long field; } pgac_struct;
13226 #ifdef F77_DUMMY_MAIN
13227 #  ifdef __cplusplus
13228      extern "C"
13229 #  endif
13230    int F77_DUMMY_MAIN() { return 1; }
13231 #endif
13232 int
13233 main ()
13234 {
13235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13236 test_array [0] = 0
13237
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244   (eval $ac_compile) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -s conftest.$ac_objext'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_hi=-1 ac_mid=-1
13255   while :; do
13256     cat >conftest.$ac_ext <<_ACEOF
13257 #line $LINENO "configure"
13258 #include "confdefs.h"
13259 $ac_includes_default
13260 struct { char filler; long field; } pgac_struct;
13261 #ifdef F77_DUMMY_MAIN
13262 #  ifdef __cplusplus
13263      extern "C"
13264 #  endif
13265    int F77_DUMMY_MAIN() { return 1; }
13266 #endif
13267 int
13268 main ()
13269 {
13270 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13271 test_array [0] = 0
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279   (eval $ac_compile) 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); } &&
13283          { ac_try='test -s conftest.$ac_objext'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   ac_lo=$ac_mid; break
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 ac_hi=`expr '(' $ac_mid ')' - 1`
13294                        if test $ac_mid -le $ac_hi; then
13295                          ac_lo= ac_hi=
13296                          break
13297                        fi
13298                        ac_mid=`expr 2 '*' $ac_mid`
13299 fi
13300 rm -f conftest.$ac_objext conftest.$ac_ext
13301   done
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 ac_lo= ac_hi=
13306 fi
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13308 fi
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13310 # Binary search between lo and hi bounds.
13311 while test "x$ac_lo" != "x$ac_hi"; do
13312   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13313   cat >conftest.$ac_ext <<_ACEOF
13314 #line $LINENO "configure"
13315 #include "confdefs.h"
13316 $ac_includes_default
13317 struct { char filler; long field; } pgac_struct;
13318 #ifdef F77_DUMMY_MAIN
13319 #  ifdef __cplusplus
13320      extern "C"
13321 #  endif
13322    int F77_DUMMY_MAIN() { return 1; }
13323 #endif
13324 int
13325 main ()
13326 {
13327 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13328 test_array [0] = 0
13329
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336   (eval $ac_compile) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } &&
13340          { ac_try='test -s conftest.$ac_objext'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   ac_hi=$ac_mid
13347 else
13348   echo "$as_me: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 fi
13352 rm -f conftest.$ac_objext conftest.$ac_ext
13353 done
13354 case $ac_lo in
13355 ?*) pgac_cv_alignof_long=$ac_lo;;
13356 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13357 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13358    { (exit 1); exit 1; }; } ;;
13359 esac
13360 else
13361   if test "$cross_compiling" = yes; then
13362   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13363 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13364    { (exit 1); exit 1; }; }
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 #include "confdefs.h"
13369 $ac_includes_default
13370 struct { char filler; long field; } pgac_struct;
13371 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13372 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13373 #include <stdio.h>
13374 #include <stdlib.h>
13375 #ifdef F77_DUMMY_MAIN
13376 #  ifdef __cplusplus
13377      extern "C"
13378 #  endif
13379    int F77_DUMMY_MAIN() { return 1; }
13380 #endif
13381 int
13382 main ()
13383 {
13384
13385   FILE *f = fopen ("conftest.val", "w");
13386   if (! f)
13387     exit (1);
13388   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13389     {
13390       long i = longval ();
13391       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13392         exit (1);
13393       fprintf (f, "%ld\n", i);
13394     }
13395   else
13396     {
13397       unsigned long i = ulongval ();
13398       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13399         exit (1);
13400       fprintf (f, "%lu\n", i);
13401     }
13402   exit (ferror (f) || fclose (f) != 0);
13403
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410   (eval $ac_link) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; }; then
13419   pgac_cv_alignof_long=`cat conftest.val`
13420 else
13421   echo "$as_me: program exited with status $ac_status" >&5
13422 echo "$as_me: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 ( exit $ac_status )
13425 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13426 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13427    { (exit 1); exit 1; }; }
13428 fi
13429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 fi
13432 rm -f conftest.val
13433 else
13434   pgac_cv_alignof_long=0
13435 fi
13436 fi
13437 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13438 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13439 cat >>confdefs.h <<_ACEOF
13440 #define ALIGNOF_LONG $pgac_cv_alignof_long
13441 _ACEOF
13442
13443
13444 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13445   echo "$as_me:$LINENO: checking for long long int" >&5
13446 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13447 if test "${ac_cv_type_long_long_int+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13452 #include "confdefs.h"
13453 $ac_includes_default
13454 #ifdef F77_DUMMY_MAIN
13455 #  ifdef __cplusplus
13456      extern "C"
13457 #  endif
13458    int F77_DUMMY_MAIN() { return 1; }
13459 #endif
13460 int
13461 main ()
13462 {
13463 if ((long long int *) 0)
13464   return 0;
13465 if (sizeof (long long int))
13466   return 0;
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473   (eval $ac_compile) 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } &&
13477          { ac_try='test -s conftest.$ac_objext'
13478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479   (eval $ac_try) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_type_long_long_int=yes
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 ac_cv_type_long_long_int=no
13488 fi
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13490 fi
13491 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13492 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13493
13494 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13495 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13496 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13497   echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499   if test "$ac_cv_type_long_long_int" = yes; then
13500   if test "$cross_compiling" = yes; then
13501   # Depending upon the size, compute the lo and hi bounds.
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 $ac_includes_default
13506 struct { char filler; long long int field; } pgac_struct;
13507 #ifdef F77_DUMMY_MAIN
13508 #  ifdef __cplusplus
13509      extern "C"
13510 #  endif
13511    int F77_DUMMY_MAIN() { return 1; }
13512 #endif
13513 int
13514 main ()
13515 {
13516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13517 test_array [0] = 0
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -s conftest.$ac_objext'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_lo=0 ac_mid=0
13536   while :; do
13537     cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13539 #include "confdefs.h"
13540 $ac_includes_default
13541 struct { char filler; long long int field; } pgac_struct;
13542 #ifdef F77_DUMMY_MAIN
13543 #  ifdef __cplusplus
13544      extern "C"
13545 #  endif
13546    int F77_DUMMY_MAIN() { return 1; }
13547 #endif
13548 int
13549 main ()
13550 {
13551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13552 test_array [0] = 0
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560   (eval $ac_compile) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -s conftest.$ac_objext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   ac_hi=$ac_mid; break
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 ac_lo=`expr $ac_mid + 1`
13575                     if test $ac_lo -le $ac_mid; then
13576                       ac_lo= ac_hi=
13577                       break
13578                     fi
13579                     ac_mid=`expr 2 '*' $ac_mid + 1`
13580 fi
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13582   done
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 #include "confdefs.h"
13589 $ac_includes_default
13590 struct { char filler; long long int field; } pgac_struct;
13591 #ifdef F77_DUMMY_MAIN
13592 #  ifdef __cplusplus
13593      extern "C"
13594 #  endif
13595    int F77_DUMMY_MAIN() { return 1; }
13596 #endif
13597 int
13598 main ()
13599 {
13600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13601 test_array [0] = 0
13602
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609   (eval $ac_compile) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -s conftest.$ac_objext'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619   ac_hi=-1 ac_mid=-1
13620   while :; do
13621     cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 $ac_includes_default
13625 struct { char filler; long long int field; } pgac_struct;
13626 #ifdef F77_DUMMY_MAIN
13627 #  ifdef __cplusplus
13628      extern "C"
13629 #  endif
13630    int F77_DUMMY_MAIN() { return 1; }
13631 #endif
13632 int
13633 main ()
13634 {
13635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13636 test_array [0] = 0
13637
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644   (eval $ac_compile) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } &&
13648          { ac_try='test -s conftest.$ac_objext'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_lo=$ac_mid; break
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 ac_hi=`expr '(' $ac_mid ')' - 1`
13659                        if test $ac_mid -le $ac_hi; then
13660                          ac_lo= ac_hi=
13661                          break
13662                        fi
13663                        ac_mid=`expr 2 '*' $ac_mid`
13664 fi
13665 rm -f conftest.$ac_objext conftest.$ac_ext
13666   done
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 cat conftest.$ac_ext >&5
13670 ac_lo= ac_hi=
13671 fi
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 fi
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13675 # Binary search between lo and hi bounds.
13676 while test "x$ac_lo" != "x$ac_hi"; do
13677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13678   cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13681 $ac_includes_default
13682 struct { char filler; long long int field; } pgac_struct;
13683 #ifdef F77_DUMMY_MAIN
13684 #  ifdef __cplusplus
13685      extern "C"
13686 #  endif
13687    int F77_DUMMY_MAIN() { return 1; }
13688 #endif
13689 int
13690 main ()
13691 {
13692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13693 test_array [0] = 0
13694
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701   (eval $ac_compile) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -s conftest.$ac_objext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711   ac_hi=$ac_mid
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 ac_lo=`expr '(' $ac_mid ')' + 1`
13716 fi
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13718 done
13719 case $ac_lo in
13720 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13721 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13722 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13723    { (exit 1); exit 1; }; } ;;
13724 esac
13725 else
13726   if test "$cross_compiling" = yes; then
13727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13728 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13729    { (exit 1); exit 1; }; }
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13734 $ac_includes_default
13735 struct { char filler; long long int field; } pgac_struct;
13736 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13737 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13738 #include <stdio.h>
13739 #include <stdlib.h>
13740 #ifdef F77_DUMMY_MAIN
13741 #  ifdef __cplusplus
13742      extern "C"
13743 #  endif
13744    int F77_DUMMY_MAIN() { return 1; }
13745 #endif
13746 int
13747 main ()
13748 {
13749
13750   FILE *f = fopen ("conftest.val", "w");
13751   if (! f)
13752     exit (1);
13753   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13754     {
13755       long i = longval ();
13756       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13757         exit (1);
13758       fprintf (f, "%ld\n", i);
13759     }
13760   else
13761     {
13762       unsigned long i = ulongval ();
13763       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13764         exit (1);
13765       fprintf (f, "%lu\n", i);
13766     }
13767   exit (ferror (f) || fclose (f) != 0);
13768
13769   ;
13770   return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775   (eval $ac_link) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   pgac_cv_alignof_long_long_int=`cat conftest.val`
13785 else
13786   echo "$as_me: program exited with status $ac_status" >&5
13787 echo "$as_me: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 ( exit $ac_status )
13790 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13791 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13792    { (exit 1); exit 1; }; }
13793 fi
13794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13795 fi
13796 fi
13797 rm -f conftest.val
13798 else
13799   pgac_cv_alignof_long_long_int=0
13800 fi
13801 fi
13802 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13803 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13804 cat >>confdefs.h <<_ACEOF
13805 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13806 _ACEOF
13807
13808
13809 fi
13810 echo "$as_me:$LINENO: checking for double" >&5
13811 echo $ECHO_N "checking for double... $ECHO_C" >&6
13812 if test "${ac_cv_type_double+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 #include "confdefs.h"
13818 $ac_includes_default
13819 #ifdef F77_DUMMY_MAIN
13820 #  ifdef __cplusplus
13821      extern "C"
13822 #  endif
13823    int F77_DUMMY_MAIN() { return 1; }
13824 #endif
13825 int
13826 main ()
13827 {
13828 if ((double *) 0)
13829   return 0;
13830 if (sizeof (double))
13831   return 0;
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -s conftest.$ac_objext'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   ac_cv_type_double=yes
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 ac_cv_type_double=no
13853 fi
13854 rm -f conftest.$ac_objext conftest.$ac_ext
13855 fi
13856 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13857 echo "${ECHO_T}$ac_cv_type_double" >&6
13858
13859 echo "$as_me:$LINENO: checking alignment of double" >&5
13860 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13861 if test "${pgac_cv_alignof_double+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864   if test "$ac_cv_type_double" = yes; then
13865   if test "$cross_compiling" = yes; then
13866   # Depending upon the size, compute the lo and hi bounds.
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; double field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 #  ifdef __cplusplus
13874      extern "C"
13875 #  endif
13876    int F77_DUMMY_MAIN() { return 1; }
13877 #endif
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13882 test_array [0] = 0
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_lo=0 ac_mid=0
13901   while :; do
13902     cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 #include "confdefs.h"
13905 $ac_includes_default
13906 struct { char filler; double field; } pgac_struct;
13907 #ifdef F77_DUMMY_MAIN
13908 #  ifdef __cplusplus
13909      extern "C"
13910 #  endif
13911    int F77_DUMMY_MAIN() { return 1; }
13912 #endif
13913 int
13914 main ()
13915 {
13916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13917 test_array [0] = 0
13918
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925   (eval $ac_compile) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } &&
13929          { ac_try='test -s conftest.$ac_objext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   ac_hi=$ac_mid; break
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 ac_lo=`expr $ac_mid + 1`
13940                     if test $ac_lo -le $ac_mid; then
13941                       ac_lo= ac_hi=
13942                       break
13943                     fi
13944                     ac_mid=`expr 2 '*' $ac_mid + 1`
13945 fi
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947   done
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 struct { char filler; double field; } pgac_struct;
13956 #ifdef F77_DUMMY_MAIN
13957 #  ifdef __cplusplus
13958      extern "C"
13959 #  endif
13960    int F77_DUMMY_MAIN() { return 1; }
13961 #endif
13962 int
13963 main ()
13964 {
13965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13966 test_array [0] = 0
13967
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_hi=-1 ac_mid=-1
13985   while :; do
13986     cat >conftest.$ac_ext <<_ACEOF
13987 #line $LINENO "configure"
13988 #include "confdefs.h"
13989 $ac_includes_default
13990 struct { char filler; double field; } pgac_struct;
13991 #ifdef F77_DUMMY_MAIN
13992 #  ifdef __cplusplus
13993      extern "C"
13994 #  endif
13995    int F77_DUMMY_MAIN() { return 1; }
13996 #endif
13997 int
13998 main ()
13999 {
14000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14001 test_array [0] = 0
14002
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009   (eval $ac_compile) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   ac_lo=$ac_mid; break
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_hi=`expr '(' $ac_mid ')' - 1`
14024                        if test $ac_mid -le $ac_hi; then
14025                          ac_lo= ac_hi=
14026                          break
14027                        fi
14028                        ac_mid=`expr 2 '*' $ac_mid`
14029 fi
14030 rm -f conftest.$ac_objext conftest.$ac_ext
14031   done
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14035 ac_lo= ac_hi=
14036 fi
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 rm -f conftest.$ac_objext conftest.$ac_ext
14040 # Binary search between lo and hi bounds.
14041 while test "x$ac_lo" != "x$ac_hi"; do
14042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14043   cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 #include "confdefs.h"
14046 $ac_includes_default
14047 struct { char filler; double field; } pgac_struct;
14048 #ifdef F77_DUMMY_MAIN
14049 #  ifdef __cplusplus
14050      extern "C"
14051 #  endif
14052    int F77_DUMMY_MAIN() { return 1; }
14053 #endif
14054 int
14055 main ()
14056 {
14057 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14058 test_array [0] = 0
14059
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 rm -f conftest.$ac_objext
14065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14066   (eval $ac_compile) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -s conftest.$ac_objext'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076   ac_hi=$ac_mid
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 ac_lo=`expr '(' $ac_mid ')' + 1`
14081 fi
14082 rm -f conftest.$ac_objext conftest.$ac_ext
14083 done
14084 case $ac_lo in
14085 ?*) pgac_cv_alignof_double=$ac_lo;;
14086 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14087 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14088    { (exit 1); exit 1; }; } ;;
14089 esac
14090 else
14091   if test "$cross_compiling" = yes; then
14092   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14093 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14094    { (exit 1); exit 1; }; }
14095 else
14096   cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 $ac_includes_default
14100 struct { char filler; double field; } pgac_struct;
14101 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14102 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14103 #include <stdio.h>
14104 #include <stdlib.h>
14105 #ifdef F77_DUMMY_MAIN
14106 #  ifdef __cplusplus
14107      extern "C"
14108 #  endif
14109    int F77_DUMMY_MAIN() { return 1; }
14110 #endif
14111 int
14112 main ()
14113 {
14114
14115   FILE *f = fopen ("conftest.val", "w");
14116   if (! f)
14117     exit (1);
14118   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14119     {
14120       long i = longval ();
14121       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14122         exit (1);
14123       fprintf (f, "%ld\n", i);
14124     }
14125   else
14126     {
14127       unsigned long i = ulongval ();
14128       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14129         exit (1);
14130       fprintf (f, "%lu\n", i);
14131     }
14132   exit (ferror (f) || fclose (f) != 0);
14133
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140   (eval $ac_link) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145   (eval $ac_try) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   pgac_cv_alignof_double=`cat conftest.val`
14150 else
14151   echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 ( exit $ac_status )
14155 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14156 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14157    { (exit 1); exit 1; }; }
14158 fi
14159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14160 fi
14161 fi
14162 rm -f conftest.val
14163 else
14164   pgac_cv_alignof_double=0
14165 fi
14166 fi
14167 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14168 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14169 cat >>confdefs.h <<_ACEOF
14170 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14171 _ACEOF
14172
14173
14174
14175 # Compute maximum alignment of any basic type.
14176 # We assume long's alignment is at least as strong as char, short, or int;
14177 # but we must check long long (if it exists) and double.
14178
14179 MAX_ALIGNOF=$pgac_cv_alignof_long
14180 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14181   MAX_ALIGNOF=$pgac_cv_alignof_double
14182 fi
14183 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14184   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14185 fi
14186
14187 cat >>confdefs.h <<_ACEOF
14188 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14189 _ACEOF
14190
14191
14192
14193 # Some platforms predefine the types int8, int16, etc.  Only check
14194 # a (hopefully) representative subset.
14195 echo "$as_me:$LINENO: checking for int8" >&5
14196 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14197 if test "${ac_cv_type_int8+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 #line $LINENO "configure"
14202 #include "confdefs.h"
14203 #include <stdio.h>
14204 #ifdef HAVE_SUPPORTDEFS_H
14205 #include <SupportDefs.h>
14206 #endif
14207
14208 #ifdef F77_DUMMY_MAIN
14209 #  ifdef __cplusplus
14210      extern "C"
14211 #  endif
14212    int F77_DUMMY_MAIN() { return 1; }
14213 #endif
14214 int
14215 main ()
14216 {
14217 if ((int8 *) 0)
14218   return 0;
14219 if (sizeof (int8))
14220   return 0;
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227   (eval $ac_compile) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_type_int8=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 ac_cv_type_int8=no
14242 fi
14243 rm -f conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14246 echo "${ECHO_T}$ac_cv_type_int8" >&6
14247 if test $ac_cv_type_int8 = yes; then
14248
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_INT8 1
14251 _ACEOF
14252
14253
14254 fi
14255 echo "$as_me:$LINENO: checking for uint8" >&5
14256 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14257 if test "${ac_cv_type_uint8+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14262 #include "confdefs.h"
14263 #include <stdio.h>
14264 #ifdef HAVE_SUPPORTDEFS_H
14265 #include <SupportDefs.h>
14266 #endif
14267
14268 #ifdef F77_DUMMY_MAIN
14269 #  ifdef __cplusplus
14270      extern "C"
14271 #  endif
14272    int F77_DUMMY_MAIN() { return 1; }
14273 #endif
14274 int
14275 main ()
14276 {
14277 if ((uint8 *) 0)
14278   return 0;
14279 if (sizeof (uint8))
14280   return 0;
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287   (eval $ac_compile) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } &&
14291          { ac_try='test -s conftest.$ac_objext'
14292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293   (eval $ac_try) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; }; then
14297   ac_cv_type_uint8=yes
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 ac_cv_type_uint8=no
14302 fi
14303 rm -f conftest.$ac_objext conftest.$ac_ext
14304 fi
14305 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14306 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14307 if test $ac_cv_type_uint8 = yes; then
14308
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_UINT8 1
14311 _ACEOF
14312
14313
14314 fi
14315 echo "$as_me:$LINENO: checking for int64" >&5
14316 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14317 if test "${ac_cv_type_int64+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 #line $LINENO "configure"
14322 #include "confdefs.h"
14323 #include <stdio.h>
14324 #ifdef HAVE_SUPPORTDEFS_H
14325 #include <SupportDefs.h>
14326 #endif
14327
14328 #ifdef F77_DUMMY_MAIN
14329 #  ifdef __cplusplus
14330      extern "C"
14331 #  endif
14332    int F77_DUMMY_MAIN() { return 1; }
14333 #endif
14334 int
14335 main ()
14336 {
14337 if ((int64 *) 0)
14338   return 0;
14339 if (sizeof (int64))
14340   return 0;
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347   (eval $ac_compile) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   ac_cv_type_int64=yes
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 ac_cv_type_int64=no
14362 fi
14363 rm -f conftest.$ac_objext conftest.$ac_ext
14364 fi
14365 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14366 echo "${ECHO_T}$ac_cv_type_int64" >&6
14367 if test $ac_cv_type_int64 = yes; then
14368
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_INT64 1
14371 _ACEOF
14372
14373
14374 fi
14375 echo "$as_me:$LINENO: checking for uint64" >&5
14376 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14377 if test "${ac_cv_type_uint64+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 #include "confdefs.h"
14383 #include <stdio.h>
14384 #ifdef HAVE_SUPPORTDEFS_H
14385 #include <SupportDefs.h>
14386 #endif
14387
14388 #ifdef F77_DUMMY_MAIN
14389 #  ifdef __cplusplus
14390      extern "C"
14391 #  endif
14392    int F77_DUMMY_MAIN() { return 1; }
14393 #endif
14394 int
14395 main ()
14396 {
14397 if ((uint64 *) 0)
14398   return 0;
14399 if (sizeof (uint64))
14400   return 0;
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407   (eval $ac_compile) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -s conftest.$ac_objext'
14412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413   (eval $ac_try) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; }; then
14417   ac_cv_type_uint64=yes
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 ac_cv_type_uint64=no
14422 fi
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14424 fi
14425 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14426 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14427 if test $ac_cv_type_uint64 = yes; then
14428
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_UINT64 1
14431 _ACEOF
14432
14433
14434 fi
14435
14436
14437 # We also check for sig_atomic_t, which *should* be defined per ANSI
14438 # C, but is missing on some old platforms.
14439 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14440 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14441 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   cat >conftest.$ac_ext <<_ACEOF
14445 #line $LINENO "configure"
14446 #include "confdefs.h"
14447 #include <signal.h>
14448
14449 #ifdef F77_DUMMY_MAIN
14450 #  ifdef __cplusplus
14451      extern "C"
14452 #  endif
14453    int F77_DUMMY_MAIN() { return 1; }
14454 #endif
14455 int
14456 main ()
14457 {
14458 if ((sig_atomic_t *) 0)
14459   return 0;
14460 if (sizeof (sig_atomic_t))
14461   return 0;
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468   (eval $ac_compile) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   ac_cv_type_sig_atomic_t=yes
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14482 ac_cv_type_sig_atomic_t=no
14483 fi
14484 rm -f conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14487 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14488 if test $ac_cv_type_sig_atomic_t = yes; then
14489
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_SIG_ATOMIC_T 1
14492 _ACEOF
14493
14494
14495 fi
14496
14497
14498
14499 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14500 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14501 if test "${pgac_cv_func_posix_signals+set}" = set; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14506 #include "confdefs.h"
14507 #include <signal.h>
14508
14509 #ifdef F77_DUMMY_MAIN
14510 #  ifdef __cplusplus
14511      extern "C"
14512 #  endif
14513    int F77_DUMMY_MAIN() { return 1; }
14514 #endif
14515 int
14516 main ()
14517 {
14518 struct sigaction act, oact;
14519 sigemptyset(&act.sa_mask);
14520 act.sa_flags = SA_RESTART;
14521 sigaction(0, &act, &oact);
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext conftest$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528   (eval $ac_link) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -s conftest$ac_exeext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   pgac_cv_func_posix_signals=yes
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 pgac_cv_func_posix_signals=no
14543 fi
14544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14545 fi
14546 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14547 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14548 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14549
14550 cat >>confdefs.h <<\_ACEOF
14551 #define HAVE_POSIX_SIGNALS
14552 _ACEOF
14553
14554 fi
14555 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14556
14557 if test $ac_cv_func_fseeko = yes; then
14558 # Check whether --enable-largefile or --disable-largefile was given.
14559 if test "${enable_largefile+set}" = set; then
14560   enableval="$enable_largefile"
14561
14562 fi;
14563 if test "$enable_largefile" != no; then
14564
14565   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14566 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14567 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   ac_cv_sys_largefile_CC=no
14571      if test "$GCC" != yes; then
14572        ac_save_CC=$CC
14573        while :; do
14574          # IRIX 6.2 and later do not support large files by default,
14575          # so use the C compiler's -n32 option if that helps.
14576          cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 #include "confdefs.h"
14579 #include <sys/types.h>
14580  /* Check that off_t can represent 2**63 - 1 correctly.
14581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14582     since some C++ compilers masquerading as C compilers
14583     incorrectly reject 9223372036854775807.  */
14584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14586                        && LARGE_OFF_T % 2147483647 == 1)
14587                       ? 1 : -1];
14588 #ifdef F77_DUMMY_MAIN
14589 #  ifdef __cplusplus
14590      extern "C"
14591 #  endif
14592    int F77_DUMMY_MAIN() { return 1; }
14593 #endif
14594 int
14595 main ()
14596 {
14597
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602          rm -f conftest.$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604   (eval $ac_compile) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -s conftest.$ac_objext'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; }; then
14614   break
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 fi
14619 rm -f conftest.$ac_objext
14620          CC="$CC -n32"
14621          rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623   (eval $ac_compile) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -s conftest.$ac_objext'
14628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629   (eval $ac_try) 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); }; }; then
14633   ac_cv_sys_largefile_CC=' -n32'; break
14634 else
14635   echo "$as_me: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 fi
14638 rm -f conftest.$ac_objext
14639          break
14640        done
14641        CC=$ac_save_CC
14642        rm -f conftest.$ac_ext
14643     fi
14644 fi
14645 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14646 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14647   if test "$ac_cv_sys_largefile_CC" != no; then
14648     CC=$CC$ac_cv_sys_largefile_CC
14649   fi
14650
14651   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14652 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14653 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14654   echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656   while :; do
14657   ac_cv_sys_file_offset_bits=no
14658   cat >conftest.$ac_ext <<_ACEOF
14659 #line $LINENO "configure"
14660 #include "confdefs.h"
14661 #include <sys/types.h>
14662  /* Check that off_t can represent 2**63 - 1 correctly.
14663     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14664     since some C++ compilers masquerading as C compilers
14665     incorrectly reject 9223372036854775807.  */
14666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14667   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14668                        && LARGE_OFF_T % 2147483647 == 1)
14669                       ? 1 : -1];
14670 #ifdef F77_DUMMY_MAIN
14671 #  ifdef __cplusplus
14672      extern "C"
14673 #  endif
14674    int F77_DUMMY_MAIN() { return 1; }
14675 #endif
14676 int
14677 main ()
14678 {
14679
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -s conftest.$ac_objext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   break
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14700 fi
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702   cat >conftest.$ac_ext <<_ACEOF
14703 #line $LINENO "configure"
14704 #include "confdefs.h"
14705 #define _FILE_OFFSET_BITS 64
14706 #include <sys/types.h>
14707  /* Check that off_t can represent 2**63 - 1 correctly.
14708     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14709     since some C++ compilers masquerading as C compilers
14710     incorrectly reject 9223372036854775807.  */
14711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14712   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14713                        && LARGE_OFF_T % 2147483647 == 1)
14714                       ? 1 : -1];
14715 #ifdef F77_DUMMY_MAIN
14716 #  ifdef __cplusplus
14717      extern "C"
14718 #  endif
14719    int F77_DUMMY_MAIN() { return 1; }
14720 #endif
14721 int
14722 main ()
14723 {
14724
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731   (eval $ac_compile) 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); } &&
14735          { ac_try='test -s conftest.$ac_objext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_cv_sys_file_offset_bits=64; break
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 fi
14746 rm -f conftest.$ac_objext conftest.$ac_ext
14747   break
14748 done
14749 fi
14750 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14751 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14752 if test "$ac_cv_sys_file_offset_bits" != no; then
14753
14754 cat >>confdefs.h <<_ACEOF
14755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14756 _ACEOF
14757
14758 fi
14759 rm -f conftest*
14760   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14761 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14762 if test "${ac_cv_sys_large_files+set}" = set; then
14763   echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765   while :; do
14766   ac_cv_sys_large_files=no
14767   cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14770 #include <sys/types.h>
14771  /* Check that off_t can represent 2**63 - 1 correctly.
14772     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14773     since some C++ compilers masquerading as C compilers
14774     incorrectly reject 9223372036854775807.  */
14775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14776   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14777                        && LARGE_OFF_T % 2147483647 == 1)
14778                       ? 1 : -1];
14779 #ifdef F77_DUMMY_MAIN
14780 #  ifdef __cplusplus
14781      extern "C"
14782 #  endif
14783    int F77_DUMMY_MAIN() { return 1; }
14784 #endif
14785 int
14786 main ()
14787 {
14788
14789   ;
14790   return 0;
14791 }
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14795   (eval $ac_compile) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); } &&
14799          { ac_try='test -s conftest.$ac_objext'
14800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801   (eval $ac_try) 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   break
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14809 fi
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811   cat >conftest.$ac_ext <<_ACEOF
14812 #line $LINENO "configure"
14813 #include "confdefs.h"
14814 #define _LARGE_FILES 1
14815 #include <sys/types.h>
14816  /* Check that off_t can represent 2**63 - 1 correctly.
14817     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14818     since some C++ compilers masquerading as C compilers
14819     incorrectly reject 9223372036854775807.  */
14820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14821   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14822                        && LARGE_OFF_T % 2147483647 == 1)
14823                       ? 1 : -1];
14824 #ifdef F77_DUMMY_MAIN
14825 #  ifdef __cplusplus
14826      extern "C"
14827 #  endif
14828    int F77_DUMMY_MAIN() { return 1; }
14829 #endif
14830 int
14831 main ()
14832 {
14833
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840   (eval $ac_compile) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); } &&
14844          { ac_try='test -s conftest.$ac_objext'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   ac_cv_sys_large_files=1; break
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 fi
14855 rm -f conftest.$ac_objext conftest.$ac_ext
14856   break
14857 done
14858 fi
14859 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14860 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14861 if test "$ac_cv_sys_large_files" != no; then
14862
14863 cat >>confdefs.h <<_ACEOF
14864 #define _LARGE_FILES $ac_cv_sys_large_files
14865 _ACEOF
14866
14867 fi
14868 rm -f conftest*
14869 fi
14870
14871 fi
14872
14873
14874 # Select semaphore implementation type.
14875 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define USE_NAMED_POSIX_SEMAPHORES 1
14879 _ACEOF
14880
14881   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14882 else
14883   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14887 _ACEOF
14888
14889     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14890   else
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define USE_SYSV_SEMAPHORES 1
14894 _ACEOF
14895
14896     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14897   fi
14898 fi
14899
14900
14901 # Select shared-memory implementation type.
14902
14903 cat >>confdefs.h <<\_ACEOF
14904 #define USE_SYSV_SHARED_MEMORY 1
14905 _ACEOF
14906
14907 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14908
14909
14910 if test "$enable_nls" = yes ; then
14911
14912   echo "$as_me:$LINENO: checking for library containing gettext" >&5
14913 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14914 if test "${ac_cv_search_gettext+set}" = set; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   ac_func_search_save_LIBS=$LIBS
14918 ac_cv_search_gettext=no
14919 cat >conftest.$ac_ext <<_ACEOF
14920 #line $LINENO "configure"
14921 #include "confdefs.h"
14922
14923 /* Override any gcc2 internal prototype to avoid an error.  */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 /* We use char because int might match the return type of a gcc2
14928    builtin and then its argument prototype would still apply.  */
14929 char gettext ();
14930 #ifdef F77_DUMMY_MAIN
14931 #  ifdef __cplusplus
14932      extern "C"
14933 #  endif
14934    int F77_DUMMY_MAIN() { return 1; }
14935 #endif
14936 int
14937 main ()
14938 {
14939 gettext ();
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946   (eval $ac_link) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest$ac_exeext'
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_search_gettext="none required"
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 fi
14961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14962 if test "$ac_cv_search_gettext" = no; then
14963   for ac_lib in intl; do
14964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14965     cat >conftest.$ac_ext <<_ACEOF
14966 #line $LINENO "configure"
14967 #include "confdefs.h"
14968
14969 /* Override any gcc2 internal prototype to avoid an error.  */
14970 #ifdef __cplusplus
14971 extern "C"
14972 #endif
14973 /* We use char because int might match the return type of a gcc2
14974    builtin and then its argument prototype would still apply.  */
14975 char gettext ();
14976 #ifdef F77_DUMMY_MAIN
14977 #  ifdef __cplusplus
14978      extern "C"
14979 #  endif
14980    int F77_DUMMY_MAIN() { return 1; }
14981 #endif
14982 int
14983 main ()
14984 {
14985 gettext ();
14986   ;
14987   return 0;
14988 }
14989 _ACEOF
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992   (eval $ac_link) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } &&
14996          { ac_try='test -s conftest$ac_exeext'
14997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998   (eval $ac_try) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; }; then
15002   ac_cv_search_gettext="-l$ac_lib"
15003 break
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 fi
15008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15009   done
15010 fi
15011 LIBS=$ac_func_search_save_LIBS
15012 fi
15013 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15014 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15015 if test "$ac_cv_search_gettext" != no; then
15016   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15017
15018 else
15019   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15020 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15021    { (exit 1); exit 1; }; }
15022 fi
15023
15024   if test "${ac_cv_header_libintl_h+set}" = set; then
15025   echo "$as_me:$LINENO: checking for libintl.h" >&5
15026 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_libintl_h+set}" = set; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15032 else
15033   # Is the header compilable?
15034 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15035 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 #include "confdefs.h"
15039 $ac_includes_default
15040 #include <libintl.h>
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044   (eval $ac_compile) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_header_compiler=yes
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 ac_header_compiler=no
15059 fi
15060 rm -f conftest.$ac_objext conftest.$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 echo "${ECHO_T}$ac_header_compiler" >&6
15063
15064 # Is the header present?
15065 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15066 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15068 #line $LINENO "configure"
15069 #include "confdefs.h"
15070 #include <libintl.h>
15071 _ACEOF
15072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15074   ac_status=$?
15075   egrep -v '^ *\+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } >/dev/null; then
15080   if test -s conftest.err; then
15081     ac_cpp_err=$ac_c_preproc_warn_flag
15082   else
15083     ac_cpp_err=
15084   fi
15085 else
15086   ac_cpp_err=yes
15087 fi
15088 if test -z "$ac_cpp_err"; then
15089   ac_header_preproc=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092   cat conftest.$ac_ext >&5
15093   ac_header_preproc=no
15094 fi
15095 rm -f conftest.err conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15097 echo "${ECHO_T}$ac_header_preproc" >&6
15098
15099 # So?  What about this header?
15100 case $ac_header_compiler:$ac_header_preproc in
15101   yes:no )
15102     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15103 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15104     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15105 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15106   no:yes )
15107     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15108 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15109     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15110 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15112 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15113 esac
15114 echo "$as_me:$LINENO: checking for libintl.h" >&5
15115 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15116 if test "${ac_cv_header_libintl_h+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   ac_cv_header_libintl_h=$ac_header_preproc
15120 fi
15121 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15122 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15123
15124 fi
15125 if test $ac_cv_header_libintl_h = yes; then
15126   :
15127 else
15128   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15129 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15130    { (exit 1); exit 1; }; }
15131 fi
15132
15133
15134   for ac_prog in msgfmt
15135 do
15136   # Extract the first word of "$ac_prog", so it can be a program name with args.
15137 set dummy $ac_prog; ac_word=$2
15138 echo "$as_me:$LINENO: checking for $ac_word" >&5
15139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15140 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   if test -n "$MSGFMT"; then
15144   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15145 else
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15148 do
15149   IFS=$as_save_IFS
15150   test -z "$as_dir" && as_dir=.
15151   for ac_exec_ext in '' $ac_executable_extensions; do
15152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153     ac_cv_prog_MSGFMT="$ac_prog"
15154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15155     break 2
15156   fi
15157 done
15158 done
15159
15160 fi
15161 fi
15162 MSGFMT=$ac_cv_prog_MSGFMT
15163 if test -n "$MSGFMT"; then
15164   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15165 echo "${ECHO_T}$MSGFMT" >&6
15166 else
15167   echo "$as_me:$LINENO: result: no" >&5
15168 echo "${ECHO_T}no" >&6
15169 fi
15170
15171   test -n "$MSGFMT" && break
15172 done
15173
15174   if test -z "$MSGFMT"; then
15175     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15176 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15177    { (exit 1); exit 1; }; }
15178   fi
15179   for ac_prog in msgmerge
15180 do
15181   # Extract the first word of "$ac_prog", so it can be a program name with args.
15182 set dummy $ac_prog; ac_word=$2
15183 echo "$as_me:$LINENO: checking for $ac_word" >&5
15184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15185 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   if test -n "$MSGMERGE"; then
15189   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15190 else
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15193 do
15194   IFS=$as_save_IFS
15195   test -z "$as_dir" && as_dir=.
15196   for ac_exec_ext in '' $ac_executable_extensions; do
15197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198     ac_cv_prog_MSGMERGE="$ac_prog"
15199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15200     break 2
15201   fi
15202 done
15203 done
15204
15205 fi
15206 fi
15207 MSGMERGE=$ac_cv_prog_MSGMERGE
15208 if test -n "$MSGMERGE"; then
15209   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15210 echo "${ECHO_T}$MSGMERGE" >&6
15211 else
15212   echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15214 fi
15215
15216   test -n "$MSGMERGE" && break
15217 done
15218
15219   for ac_prog in xgettext
15220 do
15221   # Extract the first word of "$ac_prog", so it can be a program name with args.
15222 set dummy $ac_prog; ac_word=$2
15223 echo "$as_me:$LINENO: checking for $ac_word" >&5
15224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15225 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15226   echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228   if test -n "$XGETTEXT"; then
15229   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15230 else
15231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15233 do
15234   IFS=$as_save_IFS
15235   test -z "$as_dir" && as_dir=.
15236   for ac_exec_ext in '' $ac_executable_extensions; do
15237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238     ac_cv_prog_XGETTEXT="$ac_prog"
15239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15240     break 2
15241   fi
15242 done
15243 done
15244
15245 fi
15246 fi
15247 XGETTEXT=$ac_cv_prog_XGETTEXT
15248 if test -n "$XGETTEXT"; then
15249   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15250 echo "${ECHO_T}$XGETTEXT" >&6
15251 else
15252   echo "$as_me:$LINENO: result: no" >&5
15253 echo "${ECHO_T}no" >&6
15254 fi
15255
15256   test -n "$XGETTEXT" && break
15257 done
15258
15259
15260   # Note: share/locale is always the default, independent of $datadir
15261   localedir='${prefix}/share/locale'
15262   if test x"$prefix" = x"NONE"; then
15263     exp_localedir="$ac_default_prefix/share/locale"
15264   else
15265     exp_localedir="$prefix/share/locale"
15266   fi
15267
15268
15269
15270 cat >>confdefs.h <<_ACEOF
15271 #define LOCALEDIR "$exp_localedir"
15272 _ACEOF
15273
15274
15275 fi
15276
15277 # Check for Tcl configuration script tclConfig.sh
15278 if test "$with_tcl" = yes; then
15279     for ac_prog in tclsh tcl
15280 do
15281   # Extract the first word of "$ac_prog", so it can be a program name with args.
15282 set dummy $ac_prog; ac_word=$2
15283 echo "$as_me:$LINENO: checking for $ac_word" >&5
15284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15285 if test "${ac_cv_path_TCLSH+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   case $TCLSH in
15289   [\\/]* | ?:[\\/]*)
15290   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15291   ;;
15292   *)
15293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15295 do
15296   IFS=$as_save_IFS
15297   test -z "$as_dir" && as_dir=.
15298   for ac_exec_ext in '' $ac_executable_extensions; do
15299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302     break 2
15303   fi
15304 done
15305 done
15306
15307   ;;
15308 esac
15309 fi
15310 TCLSH=$ac_cv_path_TCLSH
15311
15312 if test -n "$TCLSH"; then
15313   echo "$as_me:$LINENO: result: $TCLSH" >&5
15314 echo "${ECHO_T}$TCLSH" >&6
15315 else
15316   echo "$as_me:$LINENO: result: no" >&5
15317 echo "${ECHO_T}no" >&6
15318 fi
15319
15320   test -n "$TCLSH" && break
15321 done
15322
15323 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15324 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15325 # Let user override test
15326 if test -z "$TCL_CONFIG_SH"; then
15327     pgac_test_dirs="$with_tclconfig"
15328
15329     set X $pgac_test_dirs; shift
15330     if test $# -eq 0; then
15331         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15332 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15333    { (exit 1); exit 1; }; }
15334         set X `echo 'puts $auto_path' | $TCLSH`; shift
15335     fi
15336
15337     for pgac_dir do
15338         if test -r "$pgac_dir/tclConfig.sh"; then
15339             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15340             break
15341         fi
15342     done
15343 fi
15344
15345 if test -z "$TCL_CONFIG_SH"; then
15346     echo "$as_me:$LINENO: result: no" >&5
15347 echo "${ECHO_T}no" >&6
15348     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15349 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15350    { (exit 1); exit 1; }; }
15351 else
15352     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15353 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15354 fi
15355
15356
15357
15358     . "$TCL_CONFIG_SH"
15359 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15360 eval TCL_LIBS=\"$TCL_LIBS\"
15361 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15362 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15363
15364     fi
15365
15366 # Check for Tk configuration script tkConfig.sh
15367 if test "$with_tk" = yes; then
15368     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15369 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15370 # Let user override test
15371 if test -z "$TK_CONFIG_SH"; then
15372     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15373
15374     set X $pgac_test_dirs; shift
15375     if test $# -eq 0; then
15376         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15377 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15378    { (exit 1); exit 1; }; }
15379         set X `echo 'puts $auto_path' | $TCLSH`; shift
15380     fi
15381
15382     for pgac_dir do
15383         if test -r "$pgac_dir/tkConfig.sh"; then
15384             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15385             break
15386         fi
15387     done
15388 fi
15389
15390 if test -z "$TK_CONFIG_SH"; then
15391     echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6
15393     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15394 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15395    { (exit 1); exit 1; }; }
15396 else
15397     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15398 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15399 fi
15400
15401
15402
15403     . "$TK_CONFIG_SH"
15404 eval TK_LIBS=\"$TK_LIBS\"
15405 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15406 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15407
15408 fi
15409
15410
15411 #
15412 # Check for DocBook and tools
15413 #
15414 for ac_prog in onsgmls nsgmls
15415 do
15416   # Extract the first word of "$ac_prog", so it can be a program name with args.
15417 set dummy $ac_prog; ac_word=$2
15418 echo "$as_me:$LINENO: checking for $ac_word" >&5
15419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15420 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   if test -n "$NSGMLS"; then
15424   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15425 else
15426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427 for as_dir in $PATH
15428 do
15429   IFS=$as_save_IFS
15430   test -z "$as_dir" && as_dir=.
15431   for ac_exec_ext in '' $ac_executable_extensions; do
15432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433     ac_cv_prog_NSGMLS="$ac_prog"
15434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15435     break 2
15436   fi
15437 done
15438 done
15439
15440 fi
15441 fi
15442 NSGMLS=$ac_cv_prog_NSGMLS
15443 if test -n "$NSGMLS"; then
15444   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15445 echo "${ECHO_T}$NSGMLS" >&6
15446 else
15447   echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6
15449 fi
15450
15451   test -n "$NSGMLS" && break
15452 done
15453
15454 for ac_prog in openjade jade
15455 do
15456   # Extract the first word of "$ac_prog", so it can be a program name with args.
15457 set dummy $ac_prog; ac_word=$2
15458 echo "$as_me:$LINENO: checking for $ac_word" >&5
15459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15460 if test "${ac_cv_prog_JADE+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463   if test -n "$JADE"; then
15464   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15465 else
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467 for as_dir in $PATH
15468 do
15469   IFS=$as_save_IFS
15470   test -z "$as_dir" && as_dir=.
15471   for ac_exec_ext in '' $ac_executable_extensions; do
15472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473     ac_cv_prog_JADE="$ac_prog"
15474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15475     break 2
15476   fi
15477 done
15478 done
15479
15480 fi
15481 fi
15482 JADE=$ac_cv_prog_JADE
15483 if test -n "$JADE"; then
15484   echo "$as_me:$LINENO: result: $JADE" >&5
15485 echo "${ECHO_T}$JADE" >&6
15486 else
15487   echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15489 fi
15490
15491   test -n "$JADE" && break
15492 done
15493
15494
15495 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15496 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15497 if test "${pgac_cv_check_docbook+set}" = set; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   cat >conftest.sgml <<EOF
15501 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15502 <book>
15503  <title>test</title>
15504  <chapter>
15505   <title>random</title>
15506    <sect1>
15507     <title>testsect</title>
15508     <para>text</para>
15509   </sect1>
15510  </chapter>
15511 </book>
15512 EOF
15513
15514 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15515 if test $? -eq 0; then
15516   pgac_cv_check_docbook=yes
15517 else
15518   pgac_cv_check_docbook=no
15519 fi
15520 rm -f conftest.sgml
15521 fi
15522 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15523 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15524
15525 have_docbook=$pgac_cv_check_docbook
15526
15527
15528 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15529 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15530 if test "${pgac_cv_path_stylesheets+set}" = set; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   if test -n "$DOCBOOKSTYLE"; then
15534   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15535 else
15536   for pgac_prefix in /usr /usr/local /opt; do
15537     for pgac_infix in share lib; do
15538       for pgac_postfix in \
15539         sgml/stylesheets/nwalsh-modular \
15540         sgml/stylesheets/docbook \
15541         sgml/docbook/dsssl/modular \
15542         sgml/docbook/stylesheet/dsssl/modular \
15543         sgml/docbook/dsssl-stylesheets
15544       do
15545         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15546         if test -r "$pgac_candidate/html/docbook.dsl" \
15547            && test -r "$pgac_candidate/print/docbook.dsl"
15548         then
15549           pgac_cv_path_stylesheets=$pgac_candidate
15550           break 3
15551         fi
15552       done
15553     done
15554   done
15555 fi
15556 fi
15557
15558 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15559
15560 if test -n "$DOCBOOKSTYLE"; then
15561   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15562 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15563 else
15564   echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15566 fi
15567 if test -n "$DOCBOOKSTYLE"; then
15568   for ac_prog in collateindex.pl
15569 do
15570   # Extract the first word of "$ac_prog", so it can be a program name with args.
15571 set dummy $ac_prog; ac_word=$2
15572 echo "$as_me:$LINENO: checking for $ac_word" >&5
15573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15574 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   case $COLLATEINDEX in
15578   [\\/]* | ?:[\\/]*)
15579   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15580   ;;
15581   *)
15582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 for as_dir in $DOCBOOKSTYLE/bin $PATH
15584 do
15585   IFS=$as_save_IFS
15586   test -z "$as_dir" && as_dir=.
15587   for ac_exec_ext in '' $ac_executable_extensions; do
15588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15589     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15591     break 2
15592   fi
15593 done
15594 done
15595
15596   ;;
15597 esac
15598 fi
15599 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15600
15601 if test -n "$COLLATEINDEX"; then
15602   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15603 echo "${ECHO_T}$COLLATEINDEX" >&6
15604 else
15605   echo "$as_me:$LINENO: result: no" >&5
15606 echo "${ECHO_T}no" >&6
15607 fi
15608
15609   test -n "$COLLATEINDEX" && break
15610 done
15611
15612 else
15613   for ac_prog in collateindex.pl
15614 do
15615   # Extract the first word of "$ac_prog", so it can be a program name with args.
15616 set dummy $ac_prog; ac_word=$2
15617 echo "$as_me:$LINENO: checking for $ac_word" >&5
15618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15619 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   case $COLLATEINDEX in
15623   [\\/]* | ?:[\\/]*)
15624   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15625   ;;
15626   *)
15627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15628 for as_dir in $PATH
15629 do
15630   IFS=$as_save_IFS
15631   test -z "$as_dir" && as_dir=.
15632   for ac_exec_ext in '' $ac_executable_extensions; do
15633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15634     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15636     break 2
15637   fi
15638 done
15639 done
15640
15641   ;;
15642 esac
15643 fi
15644 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15645
15646 if test -n "$COLLATEINDEX"; then
15647   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15648 echo "${ECHO_T}$COLLATEINDEX" >&6
15649 else
15650   echo "$as_me:$LINENO: result: no" >&5
15651 echo "${ECHO_T}no" >&6
15652 fi
15653
15654   test -n "$COLLATEINDEX" && break
15655 done
15656
15657 fi
15658 for ac_prog in sgmlspl
15659 do
15660   # Extract the first word of "$ac_prog", so it can be a program name with args.
15661 set dummy $ac_prog; ac_word=$2
15662 echo "$as_me:$LINENO: checking for $ac_word" >&5
15663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15664 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667   if test -n "$SGMLSPL"; then
15668   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15669 else
15670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $PATH
15672 do
15673   IFS=$as_save_IFS
15674   test -z "$as_dir" && as_dir=.
15675   for ac_exec_ext in '' $ac_executable_extensions; do
15676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15677     ac_cv_prog_SGMLSPL="$ac_prog"
15678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15679     break 2
15680   fi
15681 done
15682 done
15683
15684 fi
15685 fi
15686 SGMLSPL=$ac_cv_prog_SGMLSPL
15687 if test -n "$SGMLSPL"; then
15688   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15689 echo "${ECHO_T}$SGMLSPL" >&6
15690 else
15691   echo "$as_me:$LINENO: result: no" >&5
15692 echo "${ECHO_T}no" >&6
15693 fi
15694
15695   test -n "$SGMLSPL" && break
15696 done
15697
15698
15699
15700 # prepare build tree if outside source tree
15701 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15702 # Note 2: /bin/pwd might be better than shell's built-in at getting
15703 #         a symlink-free name.
15704 if test "$no_create" != yes; then
15705   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15706     :
15707   else
15708     vpath_build=yes
15709
15710     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15711     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15712     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15713       || { { echo "$as_me:$LINENO: error: failed" >&5
15714 echo "$as_me: error: failed" >&2;}
15715    { (exit 1); exit 1; }; }
15716     echo "$as_me:$LINENO: result: done" >&5
15717 echo "${ECHO_T}done" >&6
15718   fi
15719 fi
15720
15721
15722 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15723
15724
15725 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}"
15726
15727
15728 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15729
15730
15731 cat >confcache <<\_ACEOF
15732 # This file is a shell script that caches the results of configure
15733 # tests run on this system so they can be shared between configure
15734 # scripts and configure runs, see configure's option --config-cache.
15735 # It is not useful on other systems.  If it contains results you don't
15736 # want to keep, you may remove or edit it.
15737 #
15738 # config.status only pays attention to the cache file if you give it
15739 # the --recheck option to rerun configure.
15740 #
15741 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15743 # following values.
15744
15745 _ACEOF
15746
15747 # The following way of writing the cache mishandles newlines in values,
15748 # but we know of no workaround that is simple, portable, and efficient.
15749 # So, don't put newlines in cache variables' values.
15750 # Ultrix sh set writes to stderr and can't be redirected directly,
15751 # and sets the high bit in the cache file unless we assign to the vars.
15752 {
15753   (set) 2>&1 |
15754     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15755     *ac_space=\ *)
15756       # `set' does not quote correctly, so add quotes (double-quote
15757       # substitution turns \\\\ into \\, and sed turns \\ into \).
15758       sed -n \
15759         "s/'/'\\\\''/g;
15760           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15761       ;;
15762     *)
15763       # `set' quotes correctly as required by POSIX, so do not add quotes.
15764       sed -n \
15765         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15766       ;;
15767     esac;
15768 } |
15769   sed '
15770      t clear
15771      : clear
15772      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15773      t end
15774      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15775      : end' >>confcache
15776 if cmp -s $cache_file confcache; then :; else
15777   if test -w $cache_file; then
15778     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15779     cat confcache >$cache_file
15780   else
15781     echo "not updating unwritable cache $cache_file"
15782   fi
15783 fi
15784 rm -f confcache
15785
15786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15787 # Let make expand exec_prefix.
15788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15789
15790 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15791 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15792 # trailing colons and then remove the whole line if VPATH becomes empty
15793 # (actually we leave an empty line to preserve line numbers).
15794 if test "x$srcdir" = x.; then
15795   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15796 s/:*\$(srcdir):*/:/;
15797 s/:*\${srcdir}:*/:/;
15798 s/:*@srcdir@:*/:/;
15799 s/^\([^=]*=[    ]*\):*/\1/;
15800 s/:*$//;
15801 s/^[^=]*=[      ]*$//;
15802 }'
15803 fi
15804
15805 DEFS=-DHAVE_CONFIG_H
15806
15807
15808 : ${CONFIG_STATUS=./config.status}
15809 ac_clean_files_save=$ac_clean_files
15810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15811 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15812 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15813 cat >$CONFIG_STATUS <<_ACEOF
15814 #! $SHELL
15815 # Generated by $as_me.
15816 # Run this file to recreate the current configuration.
15817 # Compiler output produced by configure, useful for debugging
15818 # configure, is in config.log if it exists.
15819
15820 debug=false
15821 SHELL=\${CONFIG_SHELL-$SHELL}
15822 _ACEOF
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF
15825
15826 ## --------------------- ##
15827 ## M4sh Initialization.  ##
15828 ## --------------------- ##
15829
15830 # Be Bourne compatible
15831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15832   emulate sh
15833   NULLCMD=:
15834 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15835   set -o posix
15836 fi
15837
15838 # NLS nuisances.
15839 # Support unset when possible.
15840 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15841   as_unset=unset
15842 else
15843   as_unset=false
15844 fi
15845
15846 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15847     { $as_unset LANG || test "${LANG+set}" != set; } ||
15848       { LANG=C; export LANG; }
15849 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15850     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15851       { LC_ALL=C; export LC_ALL; }
15852 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15853     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15854       { LC_TIME=C; export LC_TIME; }
15855 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15856     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15857       { LC_CTYPE=C; export LC_CTYPE; }
15858 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15859     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15860       { LANGUAGE=C; export LANGUAGE; }
15861 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15862     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15863       { LC_COLLATE=C; export LC_COLLATE; }
15864 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15865     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15866       { LC_NUMERIC=C; export LC_NUMERIC; }
15867 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15868     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15869       { LC_MESSAGES=C; export LC_MESSAGES; }
15870
15871
15872 # Name of the executable.
15873 as_me=`(basename "$0") 2>/dev/null ||
15874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15875          X"$0" : 'X\(//\)$' \| \
15876          X"$0" : 'X\(/\)$' \| \
15877          .     : '\(.\)' 2>/dev/null ||
15878 echo X/"$0" |
15879     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15880           /^X\/\(\/\/\)$/{ s//\1/; q; }
15881           /^X\/\(\/\).*/{ s//\1/; q; }
15882           s/.*/./; q'`
15883
15884 # PATH needs CR, and LINENO needs CR and PATH.
15885 # Avoid depending upon Character Ranges.
15886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15889 as_cr_digits='0123456789'
15890 as_cr_alnum=$as_cr_Letters$as_cr_digits
15891
15892 # The user is always right.
15893 if test "${PATH_SEPARATOR+set}" != set; then
15894   echo "#! /bin/sh" >conftest.sh
15895   echo  "exit 0"   >>conftest.sh
15896   chmod +x conftest.sh
15897   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15898     PATH_SEPARATOR=';'
15899   else
15900     PATH_SEPARATOR=:
15901   fi
15902   rm -f conftest.sh
15903 fi
15904
15905
15906   as_lineno_1=$LINENO
15907   as_lineno_2=$LINENO
15908   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15909   test "x$as_lineno_1" != "x$as_lineno_2" &&
15910   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15911   # Find who we are.  Look in the path if we contain no path at all
15912   # relative or not.
15913   case $0 in
15914     *[\\/]* ) as_myself=$0 ;;
15915     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918   IFS=$as_save_IFS
15919   test -z "$as_dir" && as_dir=.
15920   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15921 done
15922
15923        ;;
15924   esac
15925   # We did not find ourselves, most probably we were run as `sh COMMAND'
15926   # in which case we are not to be found in the path.
15927   if test "x$as_myself" = x; then
15928     as_myself=$0
15929   fi
15930   if test ! -f "$as_myself"; then
15931     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15932 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15933    { (exit 1); exit 1; }; }
15934   fi
15935   case $CONFIG_SHELL in
15936   '')
15937     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15939 do
15940   IFS=$as_save_IFS
15941   test -z "$as_dir" && as_dir=.
15942   for as_base in sh bash ksh sh5; do
15943          case $as_dir in
15944          /*)
15945            if ("$as_dir/$as_base" -c '
15946   as_lineno_1=$LINENO
15947   as_lineno_2=$LINENO
15948   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15949   test "x$as_lineno_1" != "x$as_lineno_2" &&
15950   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15951              CONFIG_SHELL=$as_dir/$as_base
15952              export CONFIG_SHELL
15953              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15954            fi;;
15955          esac
15956        done
15957 done
15958 ;;
15959   esac
15960
15961   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15962   # uniformly replaced by the line number.  The first 'sed' inserts a
15963   # line-number line before each line; the second 'sed' does the real
15964   # work.  The second script uses 'N' to pair each line-number line
15965   # with the numbered line, and appends trailing '-' during
15966   # substitution so that $LINENO is not a special case at line end.
15967   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15968   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15969   sed '=' <$as_myself |
15970     sed '
15971       N
15972       s,$,-,
15973       : loop
15974       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15975       t loop
15976       s,-$,,
15977       s,^['$as_cr_digits']*\n,,
15978     ' >$as_me.lineno &&
15979   chmod +x $as_me.lineno ||
15980     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15981 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15982    { (exit 1); exit 1; }; }
15983
15984   # Don't try to exec as it changes $[0], causing all sort of problems
15985   # (the dirname of $[0] is not the place where we might find the
15986   # original and so on.  Autoconf is especially sensible to this).
15987   . ./$as_me.lineno
15988   # Exit status is that of the last command.
15989   exit
15990 }
15991
15992
15993 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15994   *c*,-n*) ECHO_N= ECHO_C='
15995 ' ECHO_T='      ' ;;
15996   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15997   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15998 esac
15999
16000 if expr a : '\(a\)' >/dev/null 2>&1; then
16001   as_expr=expr
16002 else
16003   as_expr=false
16004 fi
16005
16006 rm -f conf$$ conf$$.exe conf$$.file
16007 echo >conf$$.file
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009   # We could just check for DJGPP; but this test a) works b) is more generic
16010   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16011   if test -f conf$$.exe; then
16012     # Don't use ln at all; we don't have any links
16013     as_ln_s='cp -p'
16014   else
16015     as_ln_s='ln -s'
16016   fi
16017 elif ln conf$$.file conf$$ 2>/dev/null; then
16018   as_ln_s=ln
16019 else
16020   as_ln_s='cp -p'
16021 fi
16022 rm -f conf$$ conf$$.exe conf$$.file
16023
16024 as_executable_p="test -f"
16025
16026 # Sed expression to map a string onto a valid CPP name.
16027 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16028
16029 # Sed expression to map a string onto a valid variable name.
16030 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16031
16032
16033 # IFS
16034 # We need space, tab and new line, in precisely that order.
16035 as_nl='
16036 '
16037 IFS="   $as_nl"
16038
16039 # CDPATH.
16040 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16041
16042 exec 6>&1
16043
16044 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16045 # report actual input values of CONFIG_FILES etc. instead of their
16046 # values after options handling.  Logging --version etc. is OK.
16047 exec 5>>config.log
16048 {
16049   echo
16050   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16051 ## Running $as_me. ##
16052 _ASBOX
16053 } >&5
16054 cat >&5 <<_CSEOF
16055
16056 This file was extended by PostgreSQL $as_me 7.3b1, which was
16057 generated by GNU Autoconf 2.53.  Invocation command line was
16058
16059   CONFIG_FILES    = $CONFIG_FILES
16060   CONFIG_HEADERS  = $CONFIG_HEADERS
16061   CONFIG_LINKS    = $CONFIG_LINKS
16062   CONFIG_COMMANDS = $CONFIG_COMMANDS
16063   $ $0 $@
16064
16065 _CSEOF
16066 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16067 echo >&5
16068 _ACEOF
16069
16070 # Files that config.status was made for.
16071 if test -n "$ac_config_files"; then
16072   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16073 fi
16074
16075 if test -n "$ac_config_headers"; then
16076   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16077 fi
16078
16079 if test -n "$ac_config_links"; then
16080   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16081 fi
16082
16083 if test -n "$ac_config_commands"; then
16084   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16085 fi
16086
16087 cat >>$CONFIG_STATUS <<\_ACEOF
16088
16089 ac_cs_usage="\
16090 \`$as_me' instantiates files from templates according to the
16091 current configuration.
16092
16093 Usage: $0 [OPTIONS] [FILE]...
16094
16095   -h, --help       print this help, then exit
16096   -V, --version    print version number, then exit
16097   -d, --debug      don't remove temporary files
16098       --recheck    update $as_me by reconfiguring in the same conditions
16099   --file=FILE[:TEMPLATE]
16100                    instantiate the configuration file FILE
16101   --header=FILE[:TEMPLATE]
16102                    instantiate the configuration header FILE
16103
16104 Configuration files:
16105 $config_files
16106
16107 Configuration headers:
16108 $config_headers
16109
16110 Configuration links:
16111 $config_links
16112
16113 Report bugs to <bug-autoconf@gnu.org>."
16114 _ACEOF
16115
16116 cat >>$CONFIG_STATUS <<_ACEOF
16117 ac_cs_version="\\
16118 PostgreSQL config.status 7.3b1
16119 configured by $0, generated by GNU Autoconf 2.53,
16120   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16121
16122 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16123 Free Software Foundation, Inc.
16124 This config.status script is free software; the Free Software Foundation
16125 gives unlimited permission to copy, distribute and modify it."
16126 srcdir=$srcdir
16127 _ACEOF
16128
16129 cat >>$CONFIG_STATUS <<\_ACEOF
16130 # If no file are specified by the user, then we need to provide default
16131 # value.  By we need to know if files were specified by the user.
16132 ac_need_defaults=:
16133 while test $# != 0
16134 do
16135   case $1 in
16136   --*=*)
16137     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16138     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16139     shift
16140     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16141     shift
16142     ;;
16143   -*);;
16144   *) # This is not an option, so the user has probably given explicit
16145      # arguments.
16146      ac_need_defaults=false;;
16147   esac
16148
16149   case $1 in
16150   # Handling of the options.
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<_ACEOF
16153   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16154     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16155     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16156 _ACEOF
16157 cat >>$CONFIG_STATUS <<\_ACEOF
16158   --version | --vers* | -V )
16159     echo "$ac_cs_version"; exit 0 ;;
16160   --he | --h)
16161     # Conflict between --help and --header
16162     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16163 Try \`$0 --help' for more information." >&5
16164 echo "$as_me: error: ambiguous option: $1
16165 Try \`$0 --help' for more information." >&2;}
16166    { (exit 1); exit 1; }; };;
16167   --help | --hel | -h )
16168     echo "$ac_cs_usage"; exit 0 ;;
16169   --debug | --d* | -d )
16170     debug=: ;;
16171   --file | --fil | --fi | --f )
16172     shift
16173     CONFIG_FILES="$CONFIG_FILES $1"
16174     ac_need_defaults=false;;
16175   --header | --heade | --head | --hea )
16176     shift
16177     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16178     ac_need_defaults=false;;
16179
16180   # This is an error.
16181   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16182 Try \`$0 --help' for more information." >&5
16183 echo "$as_me: error: unrecognized option: $1
16184 Try \`$0 --help' for more information." >&2;}
16185    { (exit 1); exit 1; }; } ;;
16186
16187   *) ac_config_targets="$ac_config_targets $1" ;;
16188
16189   esac
16190   shift
16191 done
16192
16193 _ACEOF
16194
16195
16196
16197
16198
16199 cat >>$CONFIG_STATUS <<\_ACEOF
16200 for ac_config_target in $ac_config_targets
16201 do
16202   case "$ac_config_target" in
16203   # Handling of arguments.
16204   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16205   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16206   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16207   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16208   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16209   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16210   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16211   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16212   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16213   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16214   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16216    { (exit 1); exit 1; }; };;
16217   esac
16218 done
16219
16220 # If the user did not use the arguments to specify the items to instantiate,
16221 # then the envvar interface is used.  Set only those that are not.
16222 # We use the long form for the default assignment because of an extremely
16223 # bizarre bug on SunOS 4.1.3.
16224 if $ac_need_defaults; then
16225   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16226   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16227   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16228 fi
16229
16230 # Create a temporary directory, and hook for its removal unless debugging.
16231 $debug ||
16232 {
16233   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16234   trap '{ (exit 1); exit 1; }' 1 2 13 15
16235 }
16236
16237 # Create a (secure) tmp directory for tmp files.
16238 : ${TMPDIR=/tmp}
16239 {
16240   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16241   test -n "$tmp" && test -d "$tmp"
16242 }  ||
16243 {
16244   tmp=$TMPDIR/cs$$-$RANDOM
16245   (umask 077 && mkdir $tmp)
16246 } ||
16247 {
16248    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16249    { (exit 1); exit 1; }
16250 }
16251
16252 _ACEOF
16253
16254 cat >>$CONFIG_STATUS <<_ACEOF
16255
16256 #
16257 # CONFIG_FILES section.
16258 #
16259
16260 # No need to generate the scripts if there are no CONFIG_FILES.
16261 # This happens for instance when ./config.status config.h
16262 if test -n "\$CONFIG_FILES"; then
16263   # Protect against being on the right side of a sed subst in config.status.
16264   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16265    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16266 s,@SHELL@,$SHELL,;t t
16267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16273 s,@exec_prefix@,$exec_prefix,;t t
16274 s,@prefix@,$prefix,;t t
16275 s,@program_transform_name@,$program_transform_name,;t t
16276 s,@bindir@,$bindir,;t t
16277 s,@sbindir@,$sbindir,;t t
16278 s,@libexecdir@,$libexecdir,;t t
16279 s,@datadir@,$datadir,;t t
16280 s,@sysconfdir@,$sysconfdir,;t t
16281 s,@sharedstatedir@,$sharedstatedir,;t t
16282 s,@localstatedir@,$localstatedir,;t t
16283 s,@libdir@,$libdir,;t t
16284 s,@includedir@,$includedir,;t t
16285 s,@oldincludedir@,$oldincludedir,;t t
16286 s,@infodir@,$infodir,;t t
16287 s,@mandir@,$mandir,;t t
16288 s,@build_alias@,$build_alias,;t t
16289 s,@host_alias@,$host_alias,;t t
16290 s,@target_alias@,$target_alias,;t t
16291 s,@DEFS@,$DEFS,;t t
16292 s,@ECHO_C@,$ECHO_C,;t t
16293 s,@ECHO_N@,$ECHO_N,;t t
16294 s,@ECHO_T@,$ECHO_T,;t t
16295 s,@LIBS@,$LIBS,;t t
16296 s,@docdir@,$docdir,;t t
16297 s,@configure_args@,$configure_args,;t t
16298 s,@build@,$build,;t t
16299 s,@build_cpu@,$build_cpu,;t t
16300 s,@build_vendor@,$build_vendor,;t t
16301 s,@build_os@,$build_os,;t t
16302 s,@host@,$host,;t t
16303 s,@host_cpu@,$host_cpu,;t t
16304 s,@host_vendor@,$host_vendor,;t t
16305 s,@host_os@,$host_os,;t t
16306 s,@PORTNAME@,$PORTNAME,;t t
16307 s,@TAS@,$TAS,;t t
16308 s,@enable_nls@,$enable_nls,;t t
16309 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16310 s,@default_port@,$default_port,;t t
16311 s,@enable_shared@,$enable_shared,;t t
16312 s,@enable_rpath@,$enable_rpath,;t t
16313 s,@enable_debug@,$enable_debug,;t t
16314 s,@CC@,$CC,;t t
16315 s,@CFLAGS@,$CFLAGS,;t t
16316 s,@LDFLAGS@,$LDFLAGS,;t t
16317 s,@CPPFLAGS@,$CPPFLAGS,;t t
16318 s,@ac_ct_CC@,$ac_ct_CC,;t t
16319 s,@EXEEXT@,$EXEEXT,;t t
16320 s,@OBJEXT@,$OBJEXT,;t t
16321 s,@CPP@,$CPP,;t t
16322 s,@GCC@,$GCC,;t t
16323 s,@autodepend@,$autodepend,;t t
16324 s,@INCLUDES@,$INCLUDES,;t t
16325 s,@with_tcl@,$with_tcl,;t t
16326 s,@with_tk@,$with_tk,;t t
16327 s,@with_perl@,$with_perl,;t t
16328 s,@with_python@,$with_python,;t t
16329 s,@ANT@,$ANT,;t t
16330 s,@with_java@,$with_java,;t t
16331 s,@with_krb4@,$with_krb4,;t t
16332 s,@with_krb5@,$with_krb5,;t t
16333 s,@krb_srvtab@,$krb_srvtab,;t t
16334 s,@with_pam@,$with_pam,;t t
16335 s,@with_openssl@,$with_openssl,;t t
16336 s,@ELF_SYS@,$ELF_SYS,;t t
16337 s,@AWK@,$AWK,;t t
16338 s,@FLEX@,$FLEX,;t t
16339 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16340 s,@LN_S@,$LN_S,;t t
16341 s,@LD@,$LD,;t t
16342 s,@with_gnu_ld@,$with_gnu_ld,;t t
16343 s,@ld_R_works@,$ld_R_works,;t t
16344 s,@RANLIB@,$RANLIB,;t t
16345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16346 s,@LORDER@,$LORDER,;t t
16347 s,@TAR@,$TAR,;t t
16348 s,@STRIP@,$STRIP,;t t
16349 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16350 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16351 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16352 s,@YACC@,$YACC,;t t
16353 s,@YFLAGS@,$YFLAGS,;t t
16354 s,@PERL@,$PERL,;t t
16355 s,@perl_archlibexp@,$perl_archlibexp,;t t
16356 s,@perl_privlibexp@,$perl_privlibexp,;t t
16357 s,@perl_useshrplib@,$perl_useshrplib,;t t
16358 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16359 s,@PYTHON@,$PYTHON,;t t
16360 s,@python_version@,$python_version,;t t
16361 s,@python_prefix@,$python_prefix,;t t
16362 s,@python_execprefix@,$python_execprefix,;t t
16363 s,@python_configdir@,$python_configdir,;t t
16364 s,@python_moduledir@,$python_moduledir,;t t
16365 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16366 s,@python_includespec@,$python_includespec,;t t
16367 s,@python_libspec@,$python_libspec,;t t
16368 s,@LIBOBJS@,$LIBOBJS,;t t
16369 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16370 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16371 s,@MSGFMT@,$MSGFMT,;t t
16372 s,@MSGMERGE@,$MSGMERGE,;t t
16373 s,@XGETTEXT@,$XGETTEXT,;t t
16374 s,@localedir@,$localedir,;t t
16375 s,@TCLSH@,$TCLSH,;t t
16376 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16377 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16378 s,@TCL_LIBS@,$TCL_LIBS,;t t
16379 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16380 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16381 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16382 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16383 s,@TK_LIBS@,$TK_LIBS,;t t
16384 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16385 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16386 s,@NSGMLS@,$NSGMLS,;t t
16387 s,@JADE@,$JADE,;t t
16388 s,@have_docbook@,$have_docbook,;t t
16389 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16390 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16391 s,@SGMLSPL@,$SGMLSPL,;t t
16392 s,@vpath_build@,$vpath_build,;t t
16393 CEOF
16394
16395 _ACEOF
16396
16397   cat >>$CONFIG_STATUS <<\_ACEOF
16398   # Split the substitutions into bite-sized pieces for seds with
16399   # small command number limits, like on Digital OSF/1 and HP-UX.
16400   ac_max_sed_lines=48
16401   ac_sed_frag=1 # Number of current file.
16402   ac_beg=1 # First line for current file.
16403   ac_end=$ac_max_sed_lines # Line after last line for current file.
16404   ac_more_lines=:
16405   ac_sed_cmds=
16406   while $ac_more_lines; do
16407     if test $ac_beg -gt 1; then
16408       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16409     else
16410       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16411     fi
16412     if test ! -s $tmp/subs.frag; then
16413       ac_more_lines=false
16414     else
16415       # The purpose of the label and of the branching condition is to
16416       # speed up the sed processing (if there are no `@' at all, there
16417       # is no need to browse any of the substitutions).
16418       # These are the two extra sed commands mentioned above.
16419       (echo ':t
16420   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16421       if test -z "$ac_sed_cmds"; then
16422         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16423       else
16424         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16425       fi
16426       ac_sed_frag=`expr $ac_sed_frag + 1`
16427       ac_beg=$ac_end
16428       ac_end=`expr $ac_end + $ac_max_sed_lines`
16429     fi
16430   done
16431   if test -z "$ac_sed_cmds"; then
16432     ac_sed_cmds=cat
16433   fi
16434 fi # test -n "$CONFIG_FILES"
16435
16436 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16439   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16440   case $ac_file in
16441   - | *:- | *:-:* ) # input from stdin
16442         cat >$tmp/stdin
16443         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16444         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16445   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16446         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16447   * )   ac_file_in=$ac_file.in ;;
16448   esac
16449
16450   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16451   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16453          X"$ac_file" : 'X\(//\)[^/]' \| \
16454          X"$ac_file" : 'X\(//\)$' \| \
16455          X"$ac_file" : 'X\(/\)' \| \
16456          .     : '\(.\)' 2>/dev/null ||
16457 echo X"$ac_file" |
16458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16460           /^X\(\/\/\)$/{ s//\1/; q; }
16461           /^X\(\/\).*/{ s//\1/; q; }
16462           s/.*/./; q'`
16463   { case "$ac_dir" in
16464   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16465   *)                      as_incr_dir=.;;
16466 esac
16467 as_dummy="$ac_dir"
16468 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16469   case $as_mkdir_dir in
16470     # Skip DOS drivespec
16471     ?:) as_incr_dir=$as_mkdir_dir ;;
16472     *)
16473       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16474       test -d "$as_incr_dir" ||
16475         mkdir "$as_incr_dir" ||
16476         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16477 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16478    { (exit 1); exit 1; }; }
16479     ;;
16480   esac
16481 done; }
16482
16483   ac_builddir=.
16484
16485 if test "$ac_dir" != .; then
16486   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16487   # A "../" for each directory in $ac_dir_suffix.
16488   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16489 else
16490   ac_dir_suffix= ac_top_builddir=
16491 fi
16492
16493 case $srcdir in
16494   .)  # No --srcdir option.  We are building in place.
16495     ac_srcdir=.
16496     if test -z "$ac_top_builddir"; then
16497        ac_top_srcdir=.
16498     else
16499        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16500     fi ;;
16501   [\\/]* | ?:[\\/]* )  # Absolute path.
16502     ac_srcdir=$srcdir$ac_dir_suffix;
16503     ac_top_srcdir=$srcdir ;;
16504   *) # Relative path.
16505     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16506     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16507 esac
16508 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16509 # absolute.
16510 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16511 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16512 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16513 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16514
16515
16516
16517   if test x"$ac_file" != x-; then
16518     { echo "$as_me:$LINENO: creating $ac_file" >&5
16519 echo "$as_me: creating $ac_file" >&6;}
16520     rm -f "$ac_file"
16521   fi
16522   # Let's still pretend it is `configure' which instantiates (i.e., don't
16523   # use $as_me), people would be surprised to read:
16524   #    /* config.h.  Generated by config.status.  */
16525   if test x"$ac_file" = x-; then
16526     configure_input=
16527   else
16528     configure_input="$ac_file.  "
16529   fi
16530   configure_input=$configure_input"Generated from `echo $ac_file_in |
16531                                      sed 's,.*/,,'` by configure."
16532
16533   # First look for the input files in the build tree, otherwise in the
16534   # src tree.
16535   ac_file_inputs=`IFS=:
16536     for f in $ac_file_in; do
16537       case $f in
16538       -) echo $tmp/stdin ;;
16539       [\\/$]*)
16540          # Absolute (can't be DOS-style, as IFS=:)
16541          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543    { (exit 1); exit 1; }; }
16544          echo $f;;
16545       *) # Relative
16546          if test -f "$f"; then
16547            # Build tree
16548            echo $f
16549          elif test -f "$srcdir/$f"; then
16550            # Source tree
16551            echo $srcdir/$f
16552          else
16553            # /dev/null tree
16554            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16555 echo "$as_me: error: cannot find input file: $f" >&2;}
16556    { (exit 1); exit 1; }; }
16557          fi;;
16558       esac
16559     done` || { (exit 1); exit 1; }
16560 _ACEOF
16561 cat >>$CONFIG_STATUS <<_ACEOF
16562   sed "$ac_vpsub
16563 $extrasub
16564 _ACEOF
16565 cat >>$CONFIG_STATUS <<\_ACEOF
16566 :t
16567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16568 s,@configure_input@,$configure_input,;t t
16569 s,@srcdir@,$ac_srcdir,;t t
16570 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16571 s,@top_srcdir@,$ac_top_srcdir,;t t
16572 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16573 s,@builddir@,$ac_builddir,;t t
16574 s,@abs_builddir@,$ac_abs_builddir,;t t
16575 s,@top_builddir@,$ac_top_builddir,;t t
16576 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16577 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16578   rm -f $tmp/stdin
16579   if test x"$ac_file" != x-; then
16580     mv $tmp/out $ac_file
16581   else
16582     cat $tmp/out
16583     rm -f $tmp/out
16584   fi
16585
16586 done
16587 _ACEOF
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16589
16590 #
16591 # CONFIG_HEADER section.
16592 #
16593
16594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16596 #
16597 # ac_d sets the value in "#define NAME VALUE" lines.
16598 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16599 ac_dB='[        ].*$,\1#\2'
16600 ac_dC=' '
16601 ac_dD=',;t'
16602 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16603 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16604 ac_uB='$,\1#\2define\3'
16605 ac_uC=' '
16606 ac_uD=',;t'
16607
16608 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16609   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16610   case $ac_file in
16611   - | *:- | *:-:* ) # input from stdin
16612         cat >$tmp/stdin
16613         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16614         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16615   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16616         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16617   * )   ac_file_in=$ac_file.in ;;
16618   esac
16619
16620   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16621 echo "$as_me: creating $ac_file" >&6;}
16622
16623   # First look for the input files in the build tree, otherwise in the
16624   # src tree.
16625   ac_file_inputs=`IFS=:
16626     for f in $ac_file_in; do
16627       case $f in
16628       -) echo $tmp/stdin ;;
16629       [\\/$]*)
16630          # Absolute (can't be DOS-style, as IFS=:)
16631          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16632 echo "$as_me: error: cannot find input file: $f" >&2;}
16633    { (exit 1); exit 1; }; }
16634          echo $f;;
16635       *) # Relative
16636          if test -f "$f"; then
16637            # Build tree
16638            echo $f
16639          elif test -f "$srcdir/$f"; then
16640            # Source tree
16641            echo $srcdir/$f
16642          else
16643            # /dev/null tree
16644            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16645 echo "$as_me: error: cannot find input file: $f" >&2;}
16646    { (exit 1); exit 1; }; }
16647          fi;;
16648       esac
16649     done` || { (exit 1); exit 1; }
16650   # Remove the trailing spaces.
16651   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16652
16653 _ACEOF
16654
16655 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16656 # `conftest.undefs', that substitutes the proper values into
16657 # config.h.in to produce config.h.  The first handles `#define'
16658 # templates, and the second `#undef' templates.
16659 # And first: Protect against being on the right side of a sed subst in
16660 # config.status.  Protect against being in an unquoted here document
16661 # in config.status.
16662 rm -f conftest.defines conftest.undefs
16663 # Using a here document instead of a string reduces the quoting nightmare.
16664 # Putting comments in sed scripts is not portable.
16665 #
16666 # `end' is used to avoid that the second main sed command (meant for
16667 # 0-ary CPP macros) applies to n-ary macro definitions.
16668 # See the Autoconf documentation for `clear'.
16669 cat >confdef2sed.sed <<\_ACEOF
16670 s/[\\&,]/\\&/g
16671 s,[\\$`],\\&,g
16672 t clear
16673 : clear
16674 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16675 t end
16676 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16677 : end
16678 _ACEOF
16679 # If some macros were called several times there might be several times
16680 # the same #defines, which is useless.  Nevertheless, we may not want to
16681 # sort them, since we want the *last* AC-DEFINE to be honored.
16682 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16683 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16684 rm -f confdef2sed.sed
16685
16686 # This sed command replaces #undef with comments.  This is necessary, for
16687 # example, in the case of _POSIX_SOURCE, which is predefined and required
16688 # on some systems where configure will not decide to define it.
16689 cat >>conftest.undefs <<\_ACEOF
16690 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16691 _ACEOF
16692
16693 # Break up conftest.defines because some shells have a limit on the size
16694 # of here documents, and old seds have small limits too (100 cmds).
16695 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16696 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16697 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16698 echo '  :' >>$CONFIG_STATUS
16699 rm -f conftest.tail
16700 while grep . conftest.defines >/dev/null
16701 do
16702   # Write a limited-size here document to $tmp/defines.sed.
16703   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16704   # Speed up: don't consider the non `#define' lines.
16705   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16706   # Work around the forget-to-reset-the-flag bug.
16707   echo 't clr' >>$CONFIG_STATUS
16708   echo ': clr' >>$CONFIG_STATUS
16709   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16710   echo 'CEOF
16711   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16712   rm -f $tmp/in
16713   mv $tmp/out $tmp/in
16714 ' >>$CONFIG_STATUS
16715   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16716   rm -f conftest.defines
16717   mv conftest.tail conftest.defines
16718 done
16719 rm -f conftest.defines
16720 echo '  fi # egrep' >>$CONFIG_STATUS
16721 echo >>$CONFIG_STATUS
16722
16723 # Break up conftest.undefs because some shells have a limit on the size
16724 # of here documents, and old seds have small limits too (100 cmds).
16725 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16726 rm -f conftest.tail
16727 while grep . conftest.undefs >/dev/null
16728 do
16729   # Write a limited-size here document to $tmp/undefs.sed.
16730   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16731   # Speed up: don't consider the non `#undef'
16732   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16733   # Work around the forget-to-reset-the-flag bug.
16734   echo 't clr' >>$CONFIG_STATUS
16735   echo ': clr' >>$CONFIG_STATUS
16736   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16737   echo 'CEOF
16738   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16739   rm -f $tmp/in
16740   mv $tmp/out $tmp/in
16741 ' >>$CONFIG_STATUS
16742   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16743   rm -f conftest.undefs
16744   mv conftest.tail conftest.undefs
16745 done
16746 rm -f conftest.undefs
16747
16748 cat >>$CONFIG_STATUS <<\_ACEOF
16749   # Let's still pretend it is `configure' which instantiates (i.e., don't
16750   # use $as_me), people would be surprised to read:
16751   #    /* config.h.  Generated by config.status.  */
16752   if test x"$ac_file" = x-; then
16753     echo "/* Generated by configure.  */" >$tmp/config.h
16754   else
16755     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16756   fi
16757   cat $tmp/in >>$tmp/config.h
16758   rm -f $tmp/in
16759   if test x"$ac_file" != x-; then
16760     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16761       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16762 echo "$as_me: $ac_file is unchanged" >&6;}
16763     else
16764       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16766          X"$ac_file" : 'X\(//\)[^/]' \| \
16767          X"$ac_file" : 'X\(//\)$' \| \
16768          X"$ac_file" : 'X\(/\)' \| \
16769          .     : '\(.\)' 2>/dev/null ||
16770 echo X"$ac_file" |
16771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16772           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16773           /^X\(\/\/\)$/{ s//\1/; q; }
16774           /^X\(\/\).*/{ s//\1/; q; }
16775           s/.*/./; q'`
16776       { case "$ac_dir" in
16777   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16778   *)                      as_incr_dir=.;;
16779 esac
16780 as_dummy="$ac_dir"
16781 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16782   case $as_mkdir_dir in
16783     # Skip DOS drivespec
16784     ?:) as_incr_dir=$as_mkdir_dir ;;
16785     *)
16786       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16787       test -d "$as_incr_dir" ||
16788         mkdir "$as_incr_dir" ||
16789         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16790 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16791    { (exit 1); exit 1; }; }
16792     ;;
16793   esac
16794 done; }
16795
16796       rm -f $ac_file
16797       mv $tmp/config.h $ac_file
16798     fi
16799   else
16800     cat $tmp/config.h
16801     rm -f $tmp/config.h
16802   fi
16803   # Run the commands associated with the file.
16804   case $ac_file in
16805     src/include/pg_config.h )
16806 # Update timestamp for pg_config.h (see Makefile.global)
16807 echo >src/include/stamp-h
16808  ;;
16809   esac
16810 done
16811 _ACEOF
16812 cat >>$CONFIG_STATUS <<\_ACEOF
16813
16814 #
16815 # CONFIG_LINKS section.
16816 #
16817
16818 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16819   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16820   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16821
16822   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16823 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16824
16825   if test ! -r $srcdir/$ac_source; then
16826     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16827 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16828    { (exit 1); exit 1; }; }
16829   fi
16830   rm -f $ac_dest
16831
16832   # Make relative symlinks.
16833   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16834 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835          X"$ac_dest" : 'X\(//\)[^/]' \| \
16836          X"$ac_dest" : 'X\(//\)$' \| \
16837          X"$ac_dest" : 'X\(/\)' \| \
16838          .     : '\(.\)' 2>/dev/null ||
16839 echo X"$ac_dest" |
16840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16842           /^X\(\/\/\)$/{ s//\1/; q; }
16843           /^X\(\/\).*/{ s//\1/; q; }
16844           s/.*/./; q'`
16845   { case "$ac_dest_dir" in
16846   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16847   *)                      as_incr_dir=.;;
16848 esac
16849 as_dummy="$ac_dest_dir"
16850 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16851   case $as_mkdir_dir in
16852     # Skip DOS drivespec
16853     ?:) as_incr_dir=$as_mkdir_dir ;;
16854     *)
16855       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16856       test -d "$as_incr_dir" ||
16857         mkdir "$as_incr_dir" ||
16858         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16859 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16860    { (exit 1); exit 1; }; }
16861     ;;
16862   esac
16863 done; }
16864
16865   ac_builddir=.
16866
16867 if test "$ac_dest_dir" != .; then
16868   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16869   # A "../" for each directory in $ac_dir_suffix.
16870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16871 else
16872   ac_dir_suffix= ac_top_builddir=
16873 fi
16874
16875 case $srcdir in
16876   .)  # No --srcdir option.  We are building in place.
16877     ac_srcdir=.
16878     if test -z "$ac_top_builddir"; then
16879        ac_top_srcdir=.
16880     else
16881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16882     fi ;;
16883   [\\/]* | ?:[\\/]* )  # Absolute path.
16884     ac_srcdir=$srcdir$ac_dir_suffix;
16885     ac_top_srcdir=$srcdir ;;
16886   *) # Relative path.
16887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16889 esac
16890 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16891 # absolute.
16892 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16893 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16894 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16895 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16896
16897
16898   case $srcdir in
16899   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16900       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16901   esac
16902
16903   # Make a symlink if possible; otherwise try a hard link.
16904   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16905     ln $srcdir/$ac_source $ac_dest ||
16906     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16907 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16908    { (exit 1); exit 1; }; }
16909 done
16910 _ACEOF
16911
16912 cat >>$CONFIG_STATUS <<\_ACEOF
16913
16914 { (exit 0); exit 0; }
16915 _ACEOF
16916 chmod +x $CONFIG_STATUS
16917 ac_clean_files=$ac_clean_files_save
16918
16919
16920 # configure is writing to config.log, and then calls config.status.
16921 # config.status does its own redirection, appending to config.log.
16922 # Unfortunately, on DOS this fails, as config.log is still kept open
16923 # by configure, so config.status won't be able to write to it; its
16924 # output is simply discarded.  So we exec the FD to /dev/null,
16925 # effectively closing config.log, so it can be properly (re)opened and
16926 # appended to by config.status.  When coming back to configure, we
16927 # need to make the FD available again.
16928 if test "$no_create" != yes; then
16929   ac_cs_success=:
16930   exec 5>/dev/null
16931   $SHELL $CONFIG_STATUS || ac_cs_success=false
16932   exec 5>>config.log
16933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16934   # would make configure fail if this is the last instruction.
16935   $ac_cs_success || { (exit 1); exit 1; }
16936 fi
16937